Signal output method and device of earphone

By detecting the acceleration and angular velocity of the headphones, the system automatically identifies the wearing position of the headphones and outputs the corresponding channel signal, solving the problem of cumbersome channel matching in existing headphones and realizing automatic channel matching after the headphones are worn, thus improving the user experience.

CN121126180APending Publication Date: 2025-12-12VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511179913.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Existing headphones have a cumbersome channel matching process when worn, requiring users to manually adjust to ensure that the channel signal is output to the correct ear, which affects the listening experience.

Method used

By detecting the acceleration and angular velocity of the headphones, the system automatically determines whether the headphones are worn in the left or right ear and outputs the corresponding channel signal based on the position, simplifying the channel matching process.

Benefits of technology

Without requiring manual operation from the user, the headphones can automatically output the correct audio signal after being worn, improving wearing convenience and listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121126180A_ABST
    Figure CN121126180A_ABST
Patent Text Reader

Abstract

The invention discloses a signal output method and device of an earphone, and belongs to the technical field of wearable equipment. The method comprises the following steps: acquiring at least one of acceleration and angular velocity of the earphone when it is detected that the earphone is in a wearing state; determining whether the wearing position of the earphone is a left ear position or a right ear position according to at least one of the acceleration and the angular velocity; and outputting a sound channel signal corresponding to the wearing position according to the wearing position of the earphone.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of wearable devices, and particularly relates to a signal output method and device of earphones. BACKGROUND

[0002] When playing stereo audio through earphones, a left-channel signal needs to be output to the earphone worn on the left ear, and a right-channel signal needs to be output to the earphone worn on the right ear, so as to ensure correct sound direction and accurate spatial sense, and improve the level and immersion of the output audio.

[0003] However, many earphones have the same structure on the left and right sides, so the left and right ears are often random when actually worn by the user. Once the channel output does not match the wearing position of the earphone, the sound direction will be disordered, seriously affecting the auditory experience. At this time, the user needs to manually adjust the wearing of the earphone so that the channel signal is output to the correct ear, but this way requires the user to manually operate to output the channel signal to the correct ear, and the process of matching the channels of the earphone is relatively cumbersome. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a signal output method and device of earphones, which can solve the technical problem of a cumbersome process of matching channels of existing earphones.

[0005] In a first aspect, the embodiments of the present application provide a signal output method of earphones, which comprises:

[0006] In the case of detecting that the earphones are in a wearing state, at least one of the acceleration and the angular velocity of the earphones is acquired;

[0007] The wearing position of the earphones is determined according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left-ear position or a right-ear position;

[0008] The channel signal corresponding to the wearing position of the earphones is output according to the wearing position.

[0009] In a second aspect, the embodiments of the present application provide a signal output device of earphones, which comprises:

[0010] An acquisition module is configured to acquire at least one of the acceleration and the angular velocity of the earphones in the case of detecting that the earphones are in a wearing state;

[0011] A determination module is configured to determine the wearing position of the earphones according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left-ear position or a right-ear position;

[0012] An output module is configured to output the channel signal corresponding to the wearing position of the earphones according to the wearing position.

[0013] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable by the processor. When the programs or instructions are executed by the processor, the steps of the method provided in the first aspect are implemented.

[0014] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method provided in the first aspect are implemented.

[0015] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method provided in the first aspect.

[0016] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method provided in the first aspect.

[0017] In the signal output method and device of the earphone provided in the present application, after detecting that the earphone is in a wearing state, at least one of the acceleration and the angular velocity of the earphone is obtained, and then it is automatically judged whether the wearing position of the earphone is the left ear or the right ear according to at least one of the acceleration and the angular velocity, and the corresponding channel signal is output accordingly. Compared with the related art in which the user manually adjusts the wearing position of the earphone so that the earphone outputs the channel signal corresponding to the ear, the present solution does not require manual operation of the user, and can automatically output the corresponding channel signal to different ears after the earphone is worn, thereby simplifying the process of matching the channel of the earphone. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 FIG. 1 is a flowchart of a signal output method of an earphone provided in some embodiments of the present application;

[0019] Figure 2 FIG. 3 is a waveform diagram of an acceleration signal provided in some embodiments of the present application;

[0020] Figure 3 FIG. 5 is a waveform diagram of an acceleration signal provided in some embodiments of the present application;

[0021] Figure 4 FIG. 7 is a structural diagram of a signal output device of an earphone provided in some embodiments of the present application;

[0022] Figure 5 FIG. 9 is a structural diagram of an electronic device provided in some embodiments of the present application;

[0023] Figure 6 FIG. 11 is a hardware structure diagram of an electronic device provided in some embodiments of the present application. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0026] To address the aforementioned technical problems, this application provides a signal output method for headphones. The signal output method for headphones provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0027] like Figure 1 As shown, Figure 1 This is a flowchart illustrating a signal output method for headphones according to an embodiment of this application. This application provides a signal output method for headphones, which may include:

[0028] S101, when it is detected that the headphones are being worn, at least one of the acceleration and angular velocity of the headphones is obtained;

[0029] In this embodiment, the earphone can be an open-back wearable stereo (OWS) earphone. Since OWS earphones typically adopt an open-back structure, the structures of the left and right earphones are exactly the same and there are no obvious physical markings or differences. Therefore, it is difficult for users to determine which earphone is used for the left ear and which earphone is used for the right ear when wearing them.

[0030] Therefore, users can wear the earphones on either the left or right ear. Regardless of whether the user wears the earphones on the left or right ear, the earphones can detect that the user is wearing them. Once the earphones are detected to be wearing them, the acceleration and angular velocity of the earphones can be obtained.

[0031] Exemplarily, the earphone is provided with a 3-axis acceleration sensor and a 3-axis gyroscope sensor, wherein the acceleration sensor can measure acceleration data of the earphone in three axial directions, and the gyroscope sensor can measure angular velocity data of the earphone in three axial directions. When it is detected that the earphone is in a wearing state, the earphone can collect acceleration and angular velocity of the earphone at a certain frequency, and determine the wearing position of the earphone according to the acceleration and angular velocity of the earphone.

[0032] In S102, a wearing position of the earphone is determined according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left ear position or a right ear position.

[0033] In the embodiment, after it is detected that the earphone is in a wearing state, the motion state of the earphone is affected by the user's head motion, so that the acceleration and angular velocity and the like of the earphone can reflect the motion state of the earphone, and the motion state of the user's head motion and the wearing position of the earphone can be analyzed based on the motion state of the earphone. For example, when the user nods or shakes his head, the earphones worn on the left ear and the right ear will generate different acceleration and rotation rate patterns. Therefore, in this way, the system can automatically identify whether the wearing position of the earphone is a left ear position or a right ear position according to the acceleration and angular velocity data, so as to perform corresponding channel switching.

[0034] In some embodiments, the determining of the wearing position of the earphone according to at least one of the acceleration and the angular velocity comprises:

[0035] determining whether the user performs a nodding action according to at least one of the acceleration and the angular velocity;

[0036] in a case that the user performs the nodding action, determining the wearing position of the earphone according to the nodding action.

[0037] In the embodiment, the acceleration and angular velocity of the user's head in different directions are different when the user's head performs different actions, and when the earphone is worn on the user's ear, the earphone and the user's head move simultaneously, so that the acceleration and angular velocity of the earphone can reflect the acceleration and angular velocity of the user's head in different directions, thereby determining whether the action of the user's head is a nodding action.

[0038] Exemplarily, when the user performs a nodding action, the user's head usually experiences a process of first lowering the head and then lifting the head, and no matter whether it is lowering the head or lifting the head, the action of the user's head can be regarded as rotating around a neck horizontal axis, which can be an axis line transversely parallel to the ground and located at the head-neck connection. When the user lowers or lifts the head, the user's head rotates forward and backward around the neck horizontal axis.

[0039] Specifically, when the user lowers or raises his head, the user's head rotates from an initial static state to gradually accelerate around the horizontal axis of the neck, and then gradually decelerate around the horizontal axis of the neck, to a final static state. If the acceleration and angular velocity of the earphone meet the above characteristics, it can be considered that the user has performed a nodding action.

[0040] However, in the process of the user performing the nodding action, since the user's head rotates first accelerates and then decelerates around the horizontal axis of the neck, the left ear and the right ear are on opposite sides of the rotation path, so when the earphone is worn on the left ear or the earphone is worn on the right ear, the earphone will feel acceleration and angular velocity changes in opposite directions; by identifying these directional differences, it can be determined whether the earphone is worn on the left ear or the right ear.

[0041] In this embodiment, it can be first identified whether the user has performed a nodding action, and if the user has performed a nodding action, the directional difference in acceleration or angular velocity of the left and right ears during the user's nodding can be further used to determine the wearing position of the earphone, so that the system can accurately identify the wearing position of the earphone without the need for manual operation by the user.

[0042] In some embodiments, the earphone includes a sound outlet and an ear handle connected to each other, the sound outlet has a sound outlet hole, the first direction is the positive direction of the y-axis in a target coordinate system, the target coordinate system is constructed based on the right-hand coordinate system rule and is associated with the earphone, and the target coordinate system takes the sound direction of the sound outlet hole of the earphone as the positive direction of the z-axis and takes the direction from the end of the ear handle away from the sound outlet to the end of the ear handle close to the sound outlet as the positive direction of the x-axis.

[0043] The determination of whether the user performs a nodding action according to the acceleration includes:

[0044] All accelerations of the earphone in the first direction within a first time period are greater than a first threshold value, the maximum acceleration within the first time period is greater than a second threshold value, and the duration of the first time period is greater than a first duration threshold value, it is determined that the user performs a first action within the first time period, wherein the first threshold value is greater than 0, and the second threshold value is greater than the first threshold value.

[0045] All accelerations of the earphone in the first direction within a second time period are less than a third threshold value, the minimum acceleration within the first time period is less than a fourth threshold value, and the duration of the second time period is greater than a second duration threshold value, it is determined that the user performs a second action within the second time period, wherein the third threshold value is less than 0, and the fourth threshold value is less than the third threshold value.

[0046] In a case that a time interval between a first time period in which the user performs the first action and a second time period in which the user performs the second action is less than a fifth threshold value, it is determined that the user performs a nodding action once in the first time period and the second time period.

[0047] In the embodiment, the earphone can be composed of two parts, a sound outlet part and an ear handle part, which are connected to each other. The sound outlet part includes a sound outlet hole for transmitting sound into the user's ear, and the ear handle part extends outward and can be used to place components such as a microphone and a battery, and facilitate the user to fix and wear the earphone.

[0048] In order to accurately identify the spatial posture and wearing direction of the earphone, a three-dimensional target coordinate system associated with the structure of the earphone can be defined. In the target coordinate system, the positive direction of the z-axis can be set as the sound outlet direction of the sound outlet hole of the earphone, the positive direction of the x-axis can be set as the direction of the ear handle from the end away from the sound outlet part to the end close to the sound outlet part, and the positive direction of the y-axis can be determined according to the right-hand coordinate system rule, that is, the y-axis is perpendicular to the x-axis and the z-axis. The positive direction of the y-axis of the target coordinate system can be determined as the first direction.

[0049] Then, when the earphone is worn on the left ear of the user, the first direction points to the rear of the user, and when the earphone is worn on the right ear, the first direction points to the front of the user. In this way, the acceleration of the earphone in the first direction can be used to determine whether the user performs a nodding action and whether the earphone is worn on the left ear or the right ear.

[0050] Since the nodding action of the user includes a lowering action and a lifting action, when the user performs a nodding action, no matter whether the user performs a lowering action or a lifting action, the earphone will rotate from an initial static state to gradually accelerate around the horizontal axis of the neck, then gradually decelerate around the horizontal axis of the neck, and finally reach a static state. In this process, the absolute value of the acceleration will first increase and then decrease, and only the directions of the acceleration in the lowering action and the lifting action are opposite.

[0051] Therefore, if it is detected that the acceleration of the earphone in the first direction in the first time period is greater than a first threshold value, it means that the earphone continuously accelerates in the first direction in the first time period. If the maximum acceleration in the first time period is greater than a larger second threshold value, it means that the maximum acceleration of the user in the first time period is large, and it is not a slight shaking but a relatively forceful lifting or lowering action. If the duration of the first time period is greater than a first duration threshold value, it can be considered that the duration of the first time period is relatively long, and the earphone is not a short and random acceleration disturbance.

[0052] Therefore, if the acceleration of the earphone in the first direction during the first time period is greater than the first threshold value, the maximum acceleration during the first time period is greater than the second threshold value, and the duration of the first time period is greater than the first duration threshold value, it means that the earphone in the wearing state has performed a complete and stable acceleration action in the first direction for a long time period, there is a stable and significant acceleration process during the first time period, and it tends to stop or decelerate at the end of the time period. Therefore, it can be considered that the user performs the first action during the first time period, and the first action can be a head-up action or a head-down action.

[0053] Similarly, if the acceleration of the earphone in the first direction during the second time period is less than the third threshold value, the minimum acceleration during the second time period is less than the fourth threshold value, and the duration of the second time period is greater than the second duration threshold value, it means that the earphone has performed a complete and stable acceleration action in the direction opposite to the first direction for a long time period, there is a stable and significant acceleration process during the second time period, and it tends to stop or decelerate at the end of the time period. Therefore, it can be considered that the user performs the second action during the second time period, and the second action can be a head-up action or a head-down action.

[0054] In addition, if the first action is a head-up action, the second action is a head-down action; if the second action is a head-down action, the first action is a head-up action.

[0055] In addition, if the time interval between the first action and the second action is less than the fifth threshold value, it means that the time interval between the head-down and head-up of the user is very close, and the first action and the second action can be collectively regarded as a nod action.

[0056] Exemplarily, Figure 2 and Figure 3 are waveform diagrams of the detected acceleration in the first direction changing with time. The points a-h in the waveform diagram are feature calculation points, p1 and p2 are peak points, v1 and v2 are valley points, r1 is the first threshold value, r2 is the third threshold value, t1-t4 are the durations of the wave peaks and wave troughs, and h1-h4 are the heights of the peaks and troughs.

[0057] The points in the waveform diagram can be traversed, and in the case that the feature point a is first detected to have an acceleration less than the third threshold value, the above process can be started. For example, Figure 2 and Figure 3As shown, the second time period is the time period between point a and point b, the duration of the second time period is t1, the acceleration of the earphone in the first direction in the second time period t1 is less than the third threshold r2, the minimum acceleration v1 in the second time period is less than the fourth threshold, and the duration of the second time period t1 is greater than the second duration threshold, which means that the earphone has a complete and stable acceleration action in the direction opposite to the first direction for a long time, there is a stable and significant acceleration process in the second time period, and it tends to stop or decelerate at the end of the time period. Therefore, it can be considered that the user performs the second action in the second time period.

[0058] Similarly, as shown in Figure 2 and Figure 3 After point b, when the feature point c is first detected, the acceleration is greater than the first threshold, then the first time period is the time period between point c and point d, the duration of the second time period is t2, the acceleration of the earphone in the first direction in the first time period t2 is greater than the first threshold r1, the maximum acceleration p1 in the first time period is greater than the second threshold, and the duration of the first time period t2 is greater than the first duration threshold, which means that the earphone has a complete and stable acceleration action in the first direction for a long time, there is a stable and significant acceleration process in the first time period, and it tends to stop or decelerate at the end of the time period. Therefore, it can be considered that the user performs the first action in the first time period.

[0059] And if the time interval between the first action and the second action is less than the fifth threshold, that is Figure 2 the time interval between b and c in the fifth threshold, it can be considered that the first action and the second action are close, and the first action and the second action can be determined as a nodding action together.

[0060] In the above manner, based on the acceleration direction, acceleration amplitude, and duration of the earphone in the wearing state, as well as the time interval of acceleration in different directions, the user's continuous actions of lowering and raising the head can be accurately recognized, and this judgment can be determined as a complete nodding behavior. Compared with the recognition method relying on single instantaneous acceleration, this scheme has stronger anti-interference and action recognition accuracy, can effectively reduce the misjudgment rate, and can more accurately recognize the user's nodding action.

[0061] In some embodiments, the first direction is the x-axis direction or the y-axis direction in a target coordinate system, the target coordinate system is a three-dimensional coordinate system constructed based on the right-hand coordinate system rule with the second direction as the z-axis, and the second direction is the direction in which the earphone shell points to the sound outlet of the earphone;

[0062] The determination of the wearing position of the earphone according to the nodding action comprises:

[0063] In the case that the first action is prior to the second action in the nodding action, the wearing position of the earphone is determined as the right ear of the user;

[0064] In the case that the second action is prior to the first action in the nodding action, the wearing position of the earphone is determined as the left ear of the user.

[0065] In the embodiment, for the user, when the earphone is worn on the left ear of the user, the first direction points to the rear of the user; when the earphone is worn on the right ear of the user, the first direction points to the front of the user, and in the process of the user lowering the head, the earphone accelerates forward and downward, and in the process of the user raising the head, the earphone accelerates upward and rearward.

[0066] Then, if the earphone is worn on the left ear of the user, when the user lowers the head and the earphone accelerates forward and downward, the direction of acceleration is opposite to the first direction, at this time, the user performs the second action; when the user raises the head and the earphone accelerates upward and rearward, the direction of acceleration is the same as the first direction, at this time, the user performs the first action, therefore, if the second action is performed prior to the first action in each nodding action, it can be determined that the earphone is worn on the left ear of the user.

[0067] Conversely, if the earphone is worn on the right ear of the user, the z-axis direction is the direction from the right of the user to the left of the user, correspondingly, the y-axis direction is the direction from the upper of the user to the lower of the user, and the x-axis direction is the direction from the rear of the user to the front of the user; that is, when the earphone is worn on the right ear of the user, for the user, the first direction can be the direction from the upper to the lower, or the direction from the rear to the front. In the process of the user lowering the head, the earphone accelerates forward and downward, and in the process of the user raising the head, the earphone accelerates upward and rearward.

[0068] Then, if the earphone is worn on the right ear of the user, when the user lowers the head and the earphone accelerates forward and downward, the direction of acceleration is the same as the first direction, at this time, the user performs the first action; when the user raises the head and the earphone accelerates upward and rearward, the direction of acceleration is opposite to the first direction, at this time, the user performs the second action, therefore, if the second action is performed prior to the first action in each nodding action, it can be determined that the earphone is worn on the right ear of the user.

[0069] In the above manner, the wearing position of the earphone can be accurately determined by analyzing the relative relationship between the acceleration and the first direction and the time sequence in the nodding action, so as to realize automatic channel switching and improve wearing convenience.

[0070] In addition, as mentioned above, since the nodding motion is essentially a forward and backward rotation of the head around the horizontal axis of the neck, the head will cause the earphone to have a positive and negative angular velocity fluctuation in the first direction during the process of lowering and raising the head, regardless of whether the earphone is worn on the left ear or the right ear. Therefore, the composition of the nodding motion can also be determined by judging the absolute value of the rotation angular velocity and the rotation direction. And further by the relationship between the rotation angular velocity and the first direction, and the sequence of the forward and backward motions, to determine the wearing position of the earphone.

[0071] S103, outputting a channel signal corresponding to the wearing position of the earphone according to the wearing position of the earphone.

[0072] In the embodiments of the present application, the channel signal refers to a certain specific direction of sound data stream for outputting audio content, and the channel signal includes a left channel signal and a right channel signal.

[0073] And because the human ear perceives the spatial position of sound through the difference in the direction of receiving sound by the left and right ears. Therefore, it is necessary to transmit the left channel signal to the left ear and the right channel signal to the right ear, so that the designed direction and stereo sense in the audio can be restored, allowing the user to accurately feel that the sound comes from the left or right, thereby improving the sense of hearing reality and immersion. If the left channel and the right channel are connected in reverse, the sound direction will be disordered, affecting the user's experience of listening to music, watching movies, playing games, etc. Therefore, in the case where it is detected that the wearing position of the earphone is the left ear of the user, the left channel signal needs to be output to the earphone; in the case where it is detected that the wearing position of the earphone is the right ear of the user, the right channel signal needs to be output to the earphone.

[0074] In the above manner, after detecting that the earphone is in the wearing state, at least one of the acceleration and the angular velocity of the earphone is obtained, and then it is automatically judged whether the wearing position of the earphone is the left ear or the right ear according to at least one of the acceleration and the angular velocity, and the corresponding channel signal is output accordingly. Compared with the related art in which the user manually adjusts the wearing position of the earphone so that the earphone outputs the channel signal corresponding to the ear, the present solution does not require manual operation of the user, and can automatically output the corresponding channel signal to different ears after the earphone is worn, thereby simplifying the process of matching the channel of the earphone.

[0075] In some embodiments, the method further comprises:

[0076] In a third time period after detecting that the earphone is in the wearing state, if the wearing position of the earphone is not identified, outputting a prompt information, the prompt information is used to prompt that the wearing position of the earphone cannot be detected.

[0077] In this embodiment, if the wearing position of the earphone cannot be recognized through the above manner, the earphone can play a prompt information, which can be a voice prompt such as "wearing position not recognized" or a specific prompt tone, to prompt the user that the wearing position of the earphone cannot be detected.

[0078] After hearing the prompt information, the user can manually select the wearing position of the earphone or slightly nod to re-trigger the identification process of the wearing position of the earphone.

[0079] In the above scheme, the prompt information can be output when the wearing position detection fails, so as to timely guide the user to adjust the wearing of the earphone or re-trigger the identification operation, and avoid continuously outputting the incorrect channel signal, thereby improving the fault tolerance and user experience of the system.

[0080] Figure 4 is a structural schematic diagram of a signal output device of an earphone provided by another embodiment of the present application, as shown in Figure 4 The signal output device of the earphone can include:

[0081] The acquisition module 401 is configured to acquire at least one of an acceleration and an angular velocity of the earphone when it is detected that the earphone is in a wearing state.

[0082] The determination module 402 is configured to determine a wearing position of the earphone according to the at least one of the acceleration and the angular velocity, where the wearing position is a left ear position or a right ear position.

[0083] The output module 403 is configured to output a channel signal corresponding to the wearing position of the earphone according to the wearing position of the earphone.

[0084] In the present application, at least one of the acceleration and the angular velocity of the earphone can be acquired after it is detected that the earphone is in a wearing state, and then the wearing position of the earphone is automatically determined to be the left ear or the right ear according to the at least one of the acceleration and the angular velocity, and the corresponding channel signal is output accordingly. Compared with the related art in which the user manually adjusts the wearing position of the earphone so that the earphone outputs the channel signal corresponding to the ear, the present scheme does not require manual operation of the user, and can automatically output the corresponding channel signal to different ears after the earphone is worn, thereby simplifying the process of matching the channel of the earphone.

[0085] In another optional example, the determination module 402 further includes:

[0086] The first determination unit is configured to determine whether the user performs a nodding action according to the at least one of the acceleration and the angular velocity.

[0087] The second determination unit is configured to determine the wearing position of the earphone according to the nodding action when the user performs the nodding action.

[0088] In another optional example, the first determining unit further includes:

[0089] a first determining sub-unit, configured to determine that a user performs a first action in a first time period, if all accelerations of the earphone in the first direction in the first time period are greater than a first threshold value, a maximum acceleration in the first time period is greater than a second threshold value, and a duration of the first time period is greater than a first duration threshold value, wherein the first threshold value is greater than 0, and the second threshold value is greater than the first threshold value;

[0090] a second determining sub-unit, configured to determine that a user performs a second action in a second time period, if all accelerations of the earphone in the first direction in the second time period are less than a third threshold value, a minimum acceleration in the first time period is less than a fourth threshold value, and a duration of the second time period is greater than a second duration threshold value, wherein the third threshold value is less than 0, and the fourth threshold value is less than the third threshold value;

[0091] a third determining sub-unit, configured to determine that the user performs a nodding action in the first time period and the second time period, if a time interval between the first time period in which the user performs the first action and the second time period in which the user performs the second action is less than a fifth threshold value.

[0092] In another optional example, the second determining unit further includes:

[0093] a fourth determining sub-unit, configured to determine that the earphone is worn on a right ear of the user, if the first action is before the second action in the nodding action;

[0094] a fifth determining sub-unit, configured to determine that the earphone is worn on a left ear of the user, if the second action is before the first action in the nodding action.

[0095] In another optional example, the apparatus further includes:

[0096] a prompting module, configured to output a prompt information for prompting that the wearing position of the earphone cannot be detected, if the wearing position of the earphone is not identified in a third time period after detecting that the earphone is in the wearing state.

[0097] The signal output device of the earphone in the embodiments of the present applicationapplicationbe an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic deviceapplicationbe a terminal, or another device other than a terminal. For example, the electronic deviceapplicationbe a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), andapplicationbe a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, andapplicationbe a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the embodiments of the present application do not make a specific limitation.

[0098] The signal output device of the earphone in the embodiments of the present applicationapplicationbe a device having an operating system. The operating systemapplicationbe an Android operating system, an IOS operating system, or another possible operating system, and the embodiments of the present application do not make a specific limitation.

[0099] The signal output device of the earphone provided in the embodiments of the present applicationapplicationbe capable of implementing the method embodiments. Figure 1 The processes implemented by the method embodimentsapplicationbe described above, and thus are not described herein again to avoid repetition.

[0100] Optionally, as shown in Figure 5 the embodiments of the present application further provide an electronic device 100, which includes a processor 110, a memory 119, and a program or instruction stored in the memory 119 and executable on the processor 110. When the program or instruction is executed by the processor 110, each process of the above-mentioned signal output method of the earphone is implemented, and the same technical effects are achieved. To avoid repetition, each process is not described herein again.

[0101] It should be noted that the electronic device in the embodiments of the present applicationapplicationinclude the above-mentioned mobile electronic device and non-mobile electronic device.

[0102] Please refer toFigure 6 , Figure 6 A hardware structure schematic diagram of an electronic device according to an embodiment of the present application. The electronic device 100 includes, but is not limited to, a radio frequency unit 121, a network module 122, an audio output unit 123, an input unit 124, a sensor 125, a display unit 126, a user input unit 127, an interface unit 128, a memory 129, and a processor 120, etc.

[0103] Those skilled in the art can understand that the electronic device 100 can also include a power supply (such as a battery) for powering various components, and the power supply can be logically connected to the processor 120 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.

[0104] The processor 120 is configured to acquire at least one of an acceleration and an angular velocity of the earphone in a case where it is detected that the earphone is in a wearing state.

[0105] The processor 120 is configured to determine a wearing position of the earphone according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left ear position or a right ear position.

[0106] The processor 120 is configured to output a channel signal corresponding to the wearing position according to the wearing position of the earphone.

[0107] In the present application, at least one of the acceleration and the angular velocity of the earphone can be acquired after it is detected that the earphone is in a wearing state, and then the wearing position of the earphone is automatically determined to be the left ear or the right ear according to at least one of the acceleration and the angular velocity, and the corresponding channel signal is output accordingly. Compared with the related art in which the user manually adjusts the wearing position of the earphone so that the earphone outputs the channel signal corresponding to the ear, the present solution does not require manual operation of the user, and can automatically output the corresponding channel signal to different ears after the earphone is worn, thereby simplifying the process of matching the channel of the earphone.

[0108] In another optional example, the processor 120 is further configured to:

[0109] determine whether the user performs a nodding action according to at least one of the acceleration and the angular velocity;

[0110] In a case where the user performs the nodding action, determine the wearing position of the earphone according to the nodding action.

[0111] In another optional example, the processor 120 is further configured to:

[0112] determine that the user performs a first action in a first time period, when all the accelerations of the earphone in the first direction in the first time period are greater than a first threshold, a maximum acceleration in the first time period is greater than a second threshold, and a duration of the first time period is greater than a first duration threshold, wherein the first threshold is greater than 0, and the second threshold is greater than the first threshold;

[0113] determine that the user performs a second action in a second time period, when all the accelerations of the earphone in the first direction in the second time period are less than a third threshold, a minimum acceleration in the second time period is less than a fourth threshold, and a duration of the second time period is greater than a second duration threshold, wherein the third threshold is less than 0, and the fourth threshold is less than the third threshold;

[0114] determine that the user performs a nodding action in the first time period and the second time period, when a time interval between the first time period and the second time period is less than a fifth threshold.

[0115] In another optional example, the processor 120 is further configured to:

[0116] determine that the earphone is worn on the right ear of the user, when the first action is before the second action in the nodding action.

[0117] determine that the earphone is worn on the left ear of the user, when the second action is before the first action in the nodding action.

[0118] In another optional example, the processor 120 is further configured to:

[0119] output a prompt information for prompting that the wearing position of the earphone cannot be detected, when the wearing position of the earphone is not identified in a third time period after detecting that the earphone is in the wearing state.

[0120] It should be understood that in the embodiments of the present application, the input unit 124 can include a graphics processing unit (GPU) 1241 and a microphone 1242. The graphics processing unit 1241 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 126 can include a display panel 1261, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 127 includes at least one of a touch panel 1271 and other input devices 1272. The touch panel 1271 is also referred to as a touch screen. The touch panel 1271 can include two parts of a touch detection device and a touch controller. The other input devices 1272 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0121] The memory 129 can be used to store software programs and various data. The memory 129 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 129 can include a volatile memory or a non-volatile memory, or the memory 129 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link DRAM (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 129 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0122] The processor 120 can include one or more processing units; optionally, the processor 120 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes a wireless communication signal, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 120.

[0123] The embodiment of the present application further provides a readable storage medium, and the readable storage medium stores a program or instructions, the program or instructions are executed by a processor to realize each process of the signal output method of the earphone and achieve the same technical effects. To avoid repetition, details are not described herein.

[0124] The processor is a processor in the electronic device in the above-mentioned embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.

[0125] The embodiment of the present application further provides a chip, and the chip includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is configured to execute a program or instructions to realize each process of the signal output method of the earphone and achieve the same technical effects. To avoid repetition, details are not described herein.

[0126] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system, or a system on chip, etc.

[0127] The embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to realize each process of the signal output method of the earphone and achieve the same technical effects. To avoid repetition, details are not described herein.

[0128] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intervening action that are carried out at the same time, either in a simultaneous fashion or in a fashion that is interleaved in time. For example, the described methods can be performed in a different order from that described, and / or various steps can be combined or omitted, and / or additional steps can be added, without departing from the scope of the present application. Also, features described with respect to certain examples can be combined in other examples.

[0129] From the above description of the embodiments, it is apparent that the above-described method of the embodiments can be realized by means of software and general-purpose hardware platforms, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such an understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present application.

[0130] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, rather than limiting, and those of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims, which all belong to the protection of the present application.

Claims

1. A signal output method of a headphone, characterized by, The method comprises the following steps: In the case of detecting that the earphone is in a wearing state, at least one of the acceleration and the angular velocity of the earphone is acquired; The wearing position of the earphone is determined according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left ear position or a right ear position; The channel signal corresponding to the wearing position of the earphone is output according to the wearing position of the earphone.

2. The method of claim 1, wherein, The determination of the wearing position of the earphone according to at least one of the acceleration and the angular velocity comprises the following steps: It is determined whether the user performs a nodding action according to at least one of the acceleration and the angular velocity; In the case that the user performs a nodding action, the wearing position of the earphone is determined according to the nodding action.

3. The method of claim 2, wherein, The earphone comprises a sound outlet and a handle part connected to each other, the sound outlet has a sound outlet hole, the first direction is the positive direction of the y-axis in a target coordinate system, the target coordinate system is a three-dimensional coordinate system associated with the earphone and constructed based on the right-hand coordinate system rule, wherein the sound outlet hole of the earphone is the positive direction of the z-axis, and the direction from one end of the handle part of the earphone away from the sound outlet to the other end of the handle part close to the sound outlet is the positive direction of the x-axis; The determination of whether the user performs a nodding action according to the acceleration comprises the following steps: In the case that all accelerations of the earphone in the first direction in a first time period are greater than a first threshold value, the maximum acceleration in the first time period is greater than a second threshold value, and the duration of the first time period is greater than a first duration threshold value, it is determined that the user performs a first action in the first time period, wherein the first threshold value is greater than 0, and the second threshold value is greater than the first threshold value; In the case that all accelerations of the earphone in the first direction in a second time period are less than a third threshold value, the minimum acceleration in the first time period is less than a fourth threshold value, and the duration of the second time period is greater than a second duration threshold value, it is determined that the user performs a second action in the second time period, wherein the third threshold value is less than 0, and the fourth threshold value is less than the third threshold value; In the case that the time interval between the first time period in which the user performs the first action and the second time period in which the user performs the second action is less than a fifth threshold value, it is determined that the user performs a nodding action once in the first time period and the second time period.

4. The method of claim 3, wherein, The determination of the wearing position of the earphone according to the nodding action comprises the following steps: In the case that the first action is before the second action in the nodding action, the wearing position of the earphone is determined as the right ear of the user; In the case that the second action is before the first action in the nodding action, the wearing position of the earphone is determined as the left ear of the user.

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises the following steps: In the case that the wearing position of the earphone is not identified in a third time period after detecting that the earphone is in a wearing state, prompt information is output, and the prompt information is used to prompt that the wearing position of the earphone cannot be detected.

6. A signal output device of a headphone, characterized by comprising: The method comprises the following steps: An acquisition module is configured to acquire at least one of the acceleration and the angular velocity of the earphone in the case of detecting that the earphone is in a wearing state. The determining module is configured to determine a wearing position of the earphone according to at least one of the acceleration and the angular velocity, wherein the wearing position is a left ear position or a right ear position. The output module is configured to output a channel signal corresponding to the wearing position of the earphone according to the wearing position of the earphone.

7. The apparatus of claim 6, wherein, The determining module further includes: The first determining unit is configured to determine whether the user performs a nodding action according to at least one of the acceleration and the angular velocity. The second determining unit is configured to determine the wearing position of the earphone according to the nodding action in a case where the user performs the nodding action.

8. The apparatus of claim 7, wherein, The earphone includes a sound outlet and an ear handle part connected to each other, the sound outlet has a sound outlet hole, a first direction is a positive direction of a y-axis in a target coordinate system, the target coordinate system is a three-dimensional coordinate system associated with the earphone and constructed based on a right-hand coordinate system rule, and a positive direction of a z-axis of the target coordinate system is a sound emission direction of the sound outlet hole of the earphone, a positive direction of an x-axis of the target coordinate system is a direction in which an end of the ear handle part away from the sound outlet points to an end of the ear handle part close to the sound outlet. The first determining unit further includes: The first determining sub-unit is configured to determine that the user performs a first action in a first time period in a case where all accelerations of the earphone in the first direction in the first time period are greater than a first threshold value, a maximum acceleration in the first time period is greater than a second threshold value, and a duration of the first time period is greater than a first duration threshold value, wherein the first threshold value is greater than 0, and the second threshold value is greater than the first threshold value. The second determining sub-unit is configured to determine that the user performs a second action in a second time period in a case where all accelerations of the earphone in the first direction in the second time period are less than a third threshold value, a minimum acceleration in the first time period is less than a fourth threshold value, and a duration of the second time period is greater than a second duration threshold value, wherein the third threshold value is less than 0, and the fourth threshold value is less than the third threshold value. The third determining sub-unit is configured to determine that the user performs a nodding action once in the first time period and the second time period in a case where a time interval between the first time period in which the user performs the first action and the second time period in which the user performs the second action is less than a fifth threshold value.

9. The apparatus of claim 8, wherein, The second determining unit further includes: The fourth determining sub-unit is configured to determine that the wearing position of the earphone is a right ear of the user in a case where the first action is before the second action in the nodding action. The fifth determining sub-unit is configured to determine that the wearing position of the earphone is a left ear of the user in a case where the second action is before the first action in the nodding action.

10. The apparatus of any one of claims 6-9, wherein, The apparatus further includes: The prompting module is configured to output prompt information in a case where the wearing position of the earphone is not identified in a third time period after it is detected that the earphone is in a wearing state, wherein the prompt information is used to prompt the user that the wearing position of the earphone cannot be detected.