WO2023051748A1 - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
WO2023051748A1
WO2023051748A1 PCT/CN2022/122987 CN2022122987W WO2023051748A1 WO 2023051748 A1 WO2023051748 A1 WO 2023051748A1 CN 2022122987 W CN2022122987 W CN 2022122987W WO 2023051748 A1 WO2023051748 A1 WO 2023051748A1
Authority
WO
WIPO (PCT)
Prior art keywords
sensor
earphone
measurement value
worn
earphones
Prior art date
Application number
PCT/CN2022/122987
Other languages
French (fr)
Chinese (zh)
Inventor
孙智达
许强
吴文昊
翟毅斌
黄雪妍
袁其云
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023051748A1 publication Critical patent/WO2023051748A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication

Definitions

  • the present application relates to the field of computer technology, in particular to a data processing method and related equipment.
  • earphones have become more and more popular products.
  • the invention of Bluetooth earphones, wireless earphones and other types of earphones enables users to have more room for activities when using earphones, and users can listen to audio, watch videos, and experience virtual reality (VR) games more conveniently.
  • VR virtual reality
  • the current mainstream method is that the two earphones of an earphone are pre-marked with left (left, L) and right (right, R), and the user needs to wear the two earphones on the On the left and right ears, but the two earphones may be worn by the user backwards. When playing stereo through the headset, wearing the reversed headset will cause the user to hear unnatural sound.
  • the embodiment of the present application provides a data processing method and related equipment, which determine whether each earphone is worn on the left ear or the right ear based on the user's actual wearing situation, that is, the user no longer needs to check the marking on the earphone, and The earphones are worn based on the marks on the earpieces, but the earphones can be worn randomly, which makes the user's operation easier and helps to improve the user viscosity of this solution.
  • an earphone includes two earphones, a first sensor and a second sensor are arranged in the two earphones, and the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn. That is, when the earphone is worn, if the first sensor corresponds to the helix region, the second sensor corresponds to the concha region; or, when the earphone is worn, if the first sensor corresponds to the concha region, the second sensor corresponds to the concha region.
  • the sensor corresponds to the helix area.
  • the sensor corresponds to the helix region may mean that the sensor is in contact with the helix region, or it may be that the sensor is suspended above the helix region; correspondingly, “the sensor corresponds to the concha region” may mean that the sensor is in contact with the concha region, or For the sensor to hang above the concha area.
  • the method may include: when two earphones are worn, the earphone obtains a first measurement value through a first sensor, and obtains a second measurement value through a second sensor; Size relationship, determine the first detection result corresponding to the earphone, the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear; the execution device can be the aforementioned earphone, or a communication connection can be established with the earphone other electronic equipment.
  • the two earphones of the earphone are equipped with a first sensor and a second sensor.
  • the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn.
  • the first measurement value is obtained by the first sensor
  • the second measurement value is obtained by the second sensor.
  • each sensor corresponds to the user's helix region or the user's concha region, and then it is determined that each earphone is worn Whether it is the left ear or the right ear; it can be seen from the above scheme that it is not necessary to pre-set the category of each earphone in this application, but after the user wears the earphone, it is determined whether each earphone is worn based on the user's actual wearing situation.
  • the user no longer needs to check the marks on the earphones and wear the earphones based on the marks on the earphones, but can wear the earphones randomly, which makes the user's operation easier and is conducive to improving the solution. user viscosity.
  • the first sensor and the second sensor are the same type of sensor, and the first measurement value and the second measurement value are any of the following information: capacitance value, resistance value or voltage value ; Both the first sensor and the second sensor can use any one of the following sensors: a capacitance sensor, a resistance sensor, a voltage sensor, a photosensitive sensor or a proximity sensor. Further, if the first sensor and the second sensor are capacitive sensors, the first measurement value and the second measurement value may be used to indicate the contact area between the user's ear and the sensor.
  • the first measurement value and the second measurement value may be used to indicate the pressure value between the ear and the sensor or the contact area between the ear and the sensor.
  • the first sensor and the second sensor are voltage sensors, the first measurement value and the second measurement value may be used to indicate the pressure value between the ear and the sensor or the contact area between the ear and the sensor.
  • the first sensor and the second sensor are photosensitive sensors, the first measurement value and the second measurement value may be used to indicate the contact area between the ear and the sensor.
  • the first measured value and the second measured value may represent the distance between the proximity sensor and the user's helix area in the target direction, or the distance between the proximity sensor and the user's helix area.
  • the distance of the user's concha area in the target direction, the target direction is perpendicular to the plane where the ear is located.
  • the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor. It should be noted that since in the actual production process, it may not be possible to guarantee that the shapes of the first sensor and the second sensor are exactly the same, nor can it be guaranteed that the areas of the first sensor and the second sensor are exactly the same, "the shape corresponding to the first sensor The shape corresponding to the second sensor may be the same” means "the similarity between the shape corresponding to the first sensor and the shape corresponding to the second sensor is higher than the first threshold", "the area corresponding to the first sensor The area corresponding to the second sensor may be the same” means “the difference between the first area corresponding to the first sensor and the second area corresponding to the second sensor and the first area (or second area) The ratio of is less than the second threshold".
  • the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor, which not only helps to reduce the cost of the sensor generation process, but also In addition, errors in the detection results caused by the difference in shape or area between the first sensor and the second sensor are avoided, so as to improve the accuracy of the generated detection results.
  • the first sensor and the second sensor are configured in different earphones, and the execution device determines the The first detection result includes: if the size relationship between the first measurement value and the second measurement value satisfies the first preset condition, the execution device determines that the first sensor is worn on the left ear and the second sensor is worn on the right ear ear; if the size relationship between the first measured value and the second measured value satisfies the second preset condition, the execution device determines that the first sensor is worn on the right ear and the second sensor is worn on the left ear, and the first preset The size relationship indicated by the condition is opposite to the size relationship indicated by the second preset condition.
  • the first preset condition can be that the first measured value is greater than the second measured value, and the second preset condition can be that the first measured value is smaller than the second measured value; or, the first preset condition can be that the first measured value is smaller than the second measured value value, and the second preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the first preset condition and the second preset condition needs to combine the positions of the first sensor and the second sensor, the type of information represented by the first measurement information and the second measurement information, and the first Factors such as the type of sensor and the second sensor determine.
  • the first sensor and the second sensor are configured in different earphones
  • a specific implementation of determining the actual wearing condition of the earphone is provided, and since the two sensors used are respectively configured in different earphones Sensors are arranged in the tubes, that is, in the two ear tubes, which is beneficial to realize the uniformity of the two ear tubes, so as to reduce the production cost of the earphones.
  • the first sensor and the second sensor are configured in a same target earphone, and the target earphone is one of the two earphones.
  • the execution device determines the first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, which may include: if the size relationship between the first measurement value and the second measurement value satisfies the third Preset conditions, the execution device determines that the target earphone is worn on the left ear; if the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, the execution device determines that the target earphone is worn on the right ear First, the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition.
  • the third preset condition can be that the first measured value is greater than the second measured value, and the fourth preset condition can be that the first measured value is less than the second measured value; or, the third preset condition can be that the first measured value is smaller than the second measured value value, and the fourth preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the third preset condition and the fourth preset condition needs to be combined with the positions of the first sensor and the second sensor in the target earphone, the type of information represented by the first measurement information and the second measurement information, and The factors such as the types of the first sensor and the second sensor are determined.
  • the method may further include: the execution device acquires a second detection result corresponding to the earphone, and the second detection result is used for Indicates that each earphone is worn on the left ear or on the right ear, and the second detection result is obtained after re-testing the wearing condition of the earphone; if the first detection result is inconsistent with the second detection result, and the audio to be played If the type belongs to the preset type, the execution device outputs target prompt information, wherein the target prompt information is used to ask the user whether to correct the category of each earphone, the audio to be played is the audio that needs to be played through the earphone, and the category of the earphone The headset is worn on the left or right ear.
  • the earphone is used for re-detection to obtain the second detection result corresponding to the earphone. If the second detection result is inconsistent with the first detection result, it will be judged again that the type of audio to be played belongs to the preset type , only when the type of the audio to be played belongs to the preset type, the target prompt information will be output to prompt the user to correct the type of the earphone.
  • the accuracy of the final determination of the wearing condition of each earphone can be improved; and only when the type of audio to be played belongs to the preset type, the user will correct the detection result, so as to reduce the inconvenience to the user. Necessary interruptions will help increase the user viscosity of this program.
  • the preset type includes any one or a combination of more of the following: stereo audio, audio from video applications, audio from game applications, and portable Audio with directional information.
  • stereo audio audio from video applications
  • audio from game applications audio from game applications
  • portable Audio with directional information portable Audio with directional information.
  • several specific types of preset types are provided, which improves the implementation flexibility of this solution and expands the application scenarios of this solution; For the audio of game applications and audio with directional information, if the wearing condition of each headset is inconsistent with the actual wearing condition of the user, the user experience will be greatly affected.
  • the audio to be played is In the case of audio from video or games or game applications, if the determined wearing condition of each earphone is inconsistent with the user's actual wearing condition, it will cause the picture that the user sees to be inconsistent with the sound that the user hears It cannot be matched correctly; for example, if the audio to be played is audio with direction information, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, the playback direction of the audio to be played will be different from that of the user. If the content in the playing audio cannot be matched correctly, etc., when the audio to be played is the preset audio, it will cause serious confusion to the user. Therefore, in these cases, it will be more necessary to ensure that each earphone is determined.
  • the wearing condition is consistent with the user's actual wearing condition, so as to provide the user with a good experience.
  • the method may further include: the execution device emits a prompt sound through the earphone, and the prompt sound is used to confirm the first detection result. Verify correctness.
  • the executive device can emit the first prompt sound through the earphone worn in the first direction, and emit the second prompt sound through the earphone worn in the second direction; the first direction is the left ear, and the second direction is the right ear ear; or, the first direction is the right ear and the second direction is the left ear.
  • the first prompt tone and the second prompt tone can both be monophonic notes; it can also be that both the first prompt tone and the second prompt tone are chord sounds composed of multiple notes; it can also be that the first prompt tone is a monophonic note , the second prompt tone is a chord tone composed of multiple notes.
  • the pitch and timbre of the first prompt sound and the second prompt sound can be consistent or different, and the setting of the first prompt sound and the second prompt sound can be flexibly determined in combination with the actual situation, and there is no limitation here .
  • At least one earphone will also emit a prompt sound to verify the predicted first detection result, so as to ensure the prediction of each earphone.
  • the wearing condition is consistent with the actual wearing condition to further increase the user viscosity of this solution.
  • the execution device emits a first prompt sound through an earphone worn in a first direction, and outputs first prompt information through a first display interface, and the first prompt information is used to indicate that the first Whether the direction is the left ear or the right ear; while the second prompt sound is issued through the earpiece worn in the second direction, the second prompt information is output through the first display interface, and the second prompt information is used to indicate that the second direction is left ear or right ear.
  • the user can directly combine the prompt information displayed on the display interface and the prompt sound heard to determine the wearing status of each earphone that performs device detection (that is, the detection result corresponding to each earphone) Whether it is correct or not reduces the difficulty of the verification process of the test results corresponding to each earphone, does not increase the user's additional cognitive burden, facilitates the user to develop new usage habits, and is conducive to improving the user viscosity of this solution.
  • the execution device acquires the earphones determined to be worn in the preset direction from the earphones worn in the first direction and the earphones worn in the second direction, and only An alert tone is emitted through earpieces determined to be worn in a preset orientation.
  • the preset direction can be left ear or right ear.
  • the prompt sound is only issued in the preset direction (that is, on the left ear or the right ear), that is, if the prompt sound is only issued through the earpiece that is determined to be worn on the left ear, the user needs to judge whether to send the prompt sound Whether the earphone is worn on the left ear; or only through the earphone that is determined to be worn on the right ear, the user needs to judge whether the earphone that emits the sound is worn on the right ear, providing a
  • the new method for verifying the test result of the earphone improves the implementation flexibility of the solution.
  • the first sensor is configured in the first earphone
  • the second sensor is configured in the second earphone
  • the first earphone and the second earphone belong to the earphone.
  • the method may further include: the execution device may determine first wearing information corresponding to the earphone where the first sensor is located according to the first measurement value, and the first wearing information indicates the wearing tightness of the earphone where the first sensor is located; the execution device may also determine according to the first wearing information
  • the second measurement value determines the second wearing information corresponding to the earphone where the second sensor is located, and the second wearing information indicates the wearing tightness of the earphone where the second sensor is located.
  • the execution device may be configured with a first preset value and a second preset value, and the execution device obtains the first wearing information by comparing the size relationship between the first measurement value and the first preset value; The magnitude relationship between the second measured value and the second preset value is used to obtain the second wearing information.
  • not only the actual wearing condition of each earphone can be directly measured, but also the wearing tightness of the earphone can be measured, that is, more wearing information of the earphone can be obtained to provide users with more services. It is beneficial to increase the user viscosity of this program.
  • the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or if the first measurement value and the second measurement value represent It can be a pressure value collected by a resistance sensor or a voltage sensor. Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in a "tight" state; if the first measurement value is smaller than the first preset value, the obtained first The wearing information indicates that the first earphone is in the "wear loose" state.
  • the obtained second wearing information indicates that the second earphone is in a "tight" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "loosely worn” state.
  • the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the proximity sensor The collected distance between the ear and the sensor in the target direction. Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in the "wear loose" state; if the first measurement value is less than the first preset value, the obtained first The wearing information indicates that the first earphone is in a "tightly worn" state.
  • the obtained second wearing information indicates that the second earphone is in the "wear loose” state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "tightly worn” state.
  • the embodiment of the present application provides a data processing method, which can be used in the field of wearable devices in the field of computer technology.
  • the method is applied to an earphone.
  • the earphone includes two earphones, and a first sensor and a second sensor are disposed in the two earphones.
  • the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn.
  • the method includes : When two earphones are worn, the earphone obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor; sends the first measurement value and the second measurement value to the electronic device, wherein, the first measurement value
  • the magnitude relationship between the measurement value and the second measurement value is used for the electronic device to determine a first detection result corresponding to the earphone, and the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
  • the first sensor and the second sensor are sensors of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
  • the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor.
  • the method may further include: the earphone emits a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the first detection result.
  • the embodiment of the present application provides a data processing method, which can be used in the field of wearable devices in the field of computer technology.
  • the method may include: the electronic device acquires a first measurement value and a second measurement value, wherein the first measurement value is obtained by a first sensor, and the second measurement value is obtained by a second sensor, and the first sensor and the second sensor are configured in the earphone Among the two earphones, the first sensor and the second sensor correspond to one of the helix area and the concha area when worn; Corresponding to the first detection result, the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
  • the first sensor and the second sensor are sensors of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
  • the electronic device determines, according to the magnitude relationship between the first measurement value and the second measurement value
  • the first detection result corresponding to the earphone includes: if the size relationship between the first measurement value and the second measurement value satisfies the first preset condition, the electronic device determines that the first sensor is worn on the left ear and the second sensor is worn on the left ear.
  • the electronic device determines that the first sensor is worn on the right ear and the second sensor is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
  • the electronic device determines according to the magnitude relationship between the first measurement value and the second measurement value
  • the first detection result corresponding to the earphone includes: if the size relationship between the first measured value and the second measured value satisfies the third preset condition, then it is determined that the target earphone is worn on the left ear, and the target earphone is two one of the earphones; if the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, then it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition and The size relationship indicated by the fourth preset condition is opposite.
  • the method further includes: the electronic device acquires a second detection result corresponding to the earphone, and the second detection result is used for Indicates that each earphone is worn on the left ear or on the right ear, and the second detection result is obtained after re-testing the wearing condition of the earphone; if the first detection result is inconsistent with the second detection result, and the audio to be played If the type belongs to the preset type, the electronic device will output the target prompt information, wherein the target prompt information is used to ask the user whether to correct the category of each earphone, the audio to be played is the audio that needs to be played through the earphone, and the earphone’s The category is that the headset is worn on the left or right ear.
  • the preset type includes any one or a combination of more of the following: stereo audio, audio from video applications, audio from game applications, and portable Audio with directional information.
  • the method may further include: the execution device sends a third instruction to at least one earphone, the third instruction is used to instruct the earphone The cylinder will beep.
  • an embodiment of the present application provides an earphone, which can be used in the field of wearable devices in the field of computer technology.
  • the earphone includes two earphones, and a first sensor and a second sensor are arranged in the two earphones.
  • the first sensor corresponds to one of the helix region and the concha region when worn; wherein, when two earphones are worn, the first sensor is used to obtain the first measurement value, and the second sensor is used to obtain the second measurement value; the magnitude relationship between the first measurement and the second measurement is used to determine a first test result corresponding to the earphones, the first test result being used to indicate whether each earphone is worn on the left ear or on the right ear .
  • the earphone provided in the fourth aspect of the embodiment of the present application can also execute the steps performed by the earphone in the first aspect or in each possible implementation manner of the third aspect.
  • the specific implementation steps, the positional relationship between the various components in the earphone, and the beneficial effects brought by each possible implementation can refer to the descriptions in the various possible implementations of the first aspect or the third aspect. No more details here.
  • the embodiment of the present application provides a data processing device, which can be used in the field of wearable devices in the field of computer technology.
  • the data processing device includes: an acquisition module, configured to acquire a first measurement value and a second measurement value, wherein , the first measurement value is obtained by a first sensor, the second measurement value is obtained by a second sensor, the first sensor and the second sensor are arranged in the two earphones of the earphone, the first The sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn; A first detection result corresponding to the earphones, the first detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear.
  • the data processing device provided in the fifth aspect of the embodiment of the present application can also execute the steps performed by other electronic devices that are communicatively connected to the headset in each possible implementation manner of the first aspect or the third aspect.
  • the fifth aspect of the embodiment of the present application and
  • the specific implementation steps of various possible implementations of the fifth aspect, as well as the beneficial effects brought by each possible implementation you can refer to the descriptions in the various possible implementations of the first aspect or the third aspect, here I won't repeat them one by one.
  • the embodiment of the present application provides a computer program that, when run on a computer, causes the computer to execute the data processing method described in the first aspect, the second aspect or the third aspect.
  • the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the program is run on a computer, the computer is made to execute the above-mentioned first aspect and the first aspect.
  • the embodiment of the present application provides an electronic device, which may include a processor, the processor is coupled to a memory, and the memory stores program instructions.
  • the program instructions stored in the memory are executed by the processor, the above first aspect or the first aspect is realized.
  • the steps performed by the electronic device that is, the electronic device communicatively connected with the earphone) in the three aspects.
  • an embodiment of the present application provides a circuit system, where the circuit system includes a processing circuit configured to execute the data processing method described in the first aspect, the second aspect, or the third aspect.
  • an embodiment of the present application provides a chip system
  • the chip system includes a processor, configured to implement the functions involved in the above aspects, for example, send or process the data and/or information involved in the above methods .
  • the chip system further includes a memory, and the memory is configured to store necessary program instructions and data of the server or the communication device.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • FIG. 1 is a schematic flow diagram of a data processing method provided in an embodiment of the present application
  • Fig. 2 is a schematic structural diagram of the ear in the data processing method provided by the embodiment of the present application;
  • Fig. 3 is a schematic structural diagram of the shapes of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
  • FIG. 4 is a schematic diagram of the positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
  • FIG. 5 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
  • FIG. 6 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
  • FIG. 7 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a data processing method provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an interface for outputting target prompt information in the data processing method provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of an interface for verifying the detection result of the ear tube in the data processing method provided in the embodiment of the present application;
  • Fig. 11 is a schematic diagram of an interface for verifying the detection result of the ear tube in the data processing method provided by the embodiment of the present application;
  • FIG. 12 is a schematic diagram of an interface triggering verification of the first detection result in the data processing method provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of an interface that triggers verification of the detection result corresponding to the earphone in the data processing method provided by the embodiment of the present application;
  • FIG. 14 is another schematic flowchart of the data processing method provided by the embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of an earphone provided by an embodiment of the present application.
  • FIG. 16 is another structural schematic diagram of the earphone provided by the embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a data processing device provided in an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • An earphone includes two earphones.
  • the two earphones can be symmetrical in shape; Other types of headphones and more.
  • the stereo sound effect can be played in the earphones. The sound of a train passing by from left to right. If the two earpieces of the headset are worn backwards by the user, there will be a mismatch between the picture and the hearing, resulting in auditory and visual confusion.
  • stereo sound effects can be played in the headset, such as a gun shooting game.
  • NPC non-player character
  • the audio to be played is "turn right", that is, the audio to be played carries direction information
  • the ear that is determined to be the right channel can Play "Turn Right” in the tube to guide the user more intuitively in the form of audio. If the two earpieces of the headset are worn backwards by the user, the hearing will not match the audio content, which will lead to more confusion for the user, etc. , it should be understood that the application scenarios of the embodiments of the present application are not exhaustively listed here.
  • FIG. 1 is a schematic flowchart of a data processing method provided in an embodiment of the present application. A1. When the two earpieces of the headset are worn, the headset obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor. The first sensor and the second sensor correspond to the helix (helix) respectively when worn.
  • the second sensor corresponds to the concha region, or, when the headset is worn, If the first sensor is associated with the concha region, the second sensor is associated with the helix region.
  • the electronic device determines the first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value.
  • the first detection result is used to indicate that each earphone is worn on the left ear or on the The right ear; the electronic device may be an earphone, or other terminal equipment communicatively connected to the earphone.
  • corresponding to the helix region can be in contact with the helix region, or can be suspended above the helix region; correspondingly, “corresponding to the concha region” can be in contact with the concha region, or can be suspended on the concha region above.
  • FIG. 2 is a schematic structural diagram of an ear in the data processing method provided by the embodiment of the present application.
  • Fig. 2 respectively shows the helix region and the concha region of the ear. It should be understood that the example in Fig. 2 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the first sensor and the second sensor may be of the same type, and the first measurement value and the second measurement value may be any of the following information: capacitance value, resistance value, voltage value or other types of information.
  • both the first sensor and the second sensor can adopt any of the following sensors: capacitance sensor, resistance sensor, voltage sensor, photosensitive sensor, proximity sensor, image sensor or other types of sensors, etc., not limited here lift.
  • the first measurement value and the second measurement value may be used to indicate the contact area between the user's ear and the sensor.
  • the first sensor and the second sensor are resistance sensors
  • the first measured value and the second measured value represent the resistance value collected by the resistance sensor
  • the resistance value represents the pressure between the ear and the sensor value or the contact area between the ear and the sensor.
  • the first measured value and the second measured value represent voltage values collected by the voltage sensor, which represent the pressure between the ear and the sensor value or the contact area between the ear and the sensor.
  • the first measured value and the second measured value represent the light intensity collected by the photosensitive sensor, and the light intensity represents the contact between the ear and the sensor. area.
  • the first measured value and the second measured value may represent the distance between the proximity sensor and the user's helix area in the target direction, or the distance between the proximity sensor and the user's helix area.
  • the distance of the user's concha area in the target direction, the target direction is perpendicular to the plane where the ear is located.
  • the first measurement value and the second measurement value may represent images of the user's helix region or concha region collected by the image sensor.
  • first measured value and the second measured value are provided, which improves the implementation flexibility of this solution; and the first sensor and the second sensor are the same type of sensor, which is beneficial to reduce the The cost during headset generation.
  • the first sensor can be represented as a large sensor, or it can be represented as a cluster composed of multiple small sensors; the situation of the second sensor is the same as that of the first sensor, and will not be repeated here.
  • the shape corresponding to the first sensor may be the same as the shape corresponding to the second sensor, and the first area corresponding to the first sensor may be the same as the second area corresponding to the second sensor.
  • the shape corresponding to the first sensor and the shape corresponding to the second sensor may be the same" means "the similarity between the shape corresponding to the first sensor and the shape corresponding to the second sensor is higher than the first threshold", as an example
  • the value of the first threshold may be 90%, 93%, 95%, 98%, 99% or other values.
  • the area corresponding to the first sensor and the area corresponding to the second sensor may be the same” in the embodiment of the present application may mean “the difference between the first area corresponding to the first sensor and the second area corresponding to the second sensor
  • the ratio of the difference between the first area (or the second area) to the first area (or second area) is less than the second threshold
  • the value of the second threshold can be 0.1%, 0.3%, 0.5%, 1%, 2% or other Values, etc., are not exhaustive here.
  • the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor, which is not only beneficial to reduce the cost of the sensor generation process , and avoid errors in the detection results caused by the difference in shape or area between the first sensor and the second sensor, so as to improve the accuracy of the generated detection results.
  • the shape corresponding to the first sensor refers to the shape of the outermost sensor among the multiple sensors included in the first sensor.
  • the area corresponding to the first sensor refers to the area of the shape formed by the connection of the outermost sensor among the multiple sensors included in the first sensor; the shape corresponding to the second sensor refers to the area of the second sensor.
  • the connection line of the outermost sensor among the plurality of sensors included in the sensor, the area corresponding to the second sensor refers to the area of the shape formed by the connection line of the outermost sensor among the plurality of sensors included in the second sensor .
  • FIG. 3 is a schematic structural diagram of the shapes of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • both the first sensor and the second sensor are shown as one large sensor and are arranged in the same ear tube as an example.
  • the first sensor and the second sensor have the same shape and the same area. It should be understood that , the example in FIG. 3 is only for the convenience of understanding the concept of "the shape of the first sensor and the second sensor", and is not used to limit this solution.
  • An earphone includes two earphones, and a first sensor and a second sensor are arranged in the two earphones. After the earphone leaves the factory, the positions of the first sensor and the second sensor in the earphone are fixed, and The shape is symmetrical. In an implementation manner, the first sensor and the second sensor are configured at fixed positions of different earphones. Further, in one case, when two ear tubes are worn, the sensor corresponding to the helix region is worn on the left ear, and the sensor corresponding to the concha region is worn on the right ear.
  • FIG. 4 is a schematic diagram of the positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • FIG. 5 is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • one set of sensors is fixed to correspond to the concha region of the left ear, and the other set of sensors is fixed to correspond to the helix region of the right ear. It should be understood that the example in FIG. The scheme is not used to limit this scheme.
  • the first sensor and the second sensor are configured in the same target earphone, and the target earphone is one of the two earphones; it should be noted that both earphones may be configured with
  • the two sets of sensors can also be that only one of the two earphones of the earphone is equipped with the first sensor and the second sensor, which can be determined in combination with the actual product form.
  • the target earphone is worn on the left ear; if the first sensor corresponds to the concha region and the second sensor Corresponding to the helix area, the target earpiece is worn on the right ear.
  • FIG. 6 is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • Fig. 6 only one of the two earphones is equipped with the first sensor and the second sensor as an example.
  • the target ear The tube is worn on the left ear; if the first sensor corresponds to the concha area and the second sensor corresponds to the helix area, then the target ear tube is worn on the right ear.
  • the example in Figure 6 is only for the convenience of understanding this solution. Not intended to limit this program.
  • the target earphone is worn on the right ear; if the first sensor corresponds to the concha region and the second sensor corresponds to the helix If the region corresponds, the target earphone is worn on the left ear.
  • FIG. 7 is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application.
  • two earphones are equipped with two sets of sensors as an example. As shown in the figure, if the first sensor corresponds to the helix area and the second sensor corresponds to the concha area, the target earphone is worn on the left ear; If the first sensor corresponds to the concha region and the second sensor corresponds to the helix region, then the target earphone is worn on the right ear. It should be understood that the example in FIG. 7 is only for understanding this solution, and is not intended to limit this solution.
  • the earphone can also be configured with a touch sensor, through which the touch operation input by the user can be received, as an example, such as a click, double-click, slide or other type of touch operation input by the user through the earphone surface, etc., here Do not exhaust.
  • the headset can also be configured with a feedback system, whereby the headset can provide feedback to the user wearing the headset through sound, vibration or other means.
  • the earphone can also be configured with various sensors, including but not limited to motion sensors, optical sensors, capacitive sensors, voltage sensors, impedance sensors, photosensitive sensors, proximity sensors, image sensors, or other types of sensors.
  • a motion sensor such as an accelerometer, a gyroscope or other types of motion sensors
  • an optical sensor can be used to detect the Whether the earphone is taken out of the earphone box
  • a touch sensor can be used to detect the contact of a finger on the surface of the earphone, etc., and the uses of various sensors are not exhaustively listed here.
  • the entire data processing system may include an earphone and an electronic device communicatively connected with the earphone, and the earphone includes two earphones.
  • the electronic device may have an input system, a feedback system, a display, a computing unit, a storage unit, and a communication unit.
  • the electronic device may be embodied as a mobile phone, a tablet computer, a smart TV, a VR device, or other forms of electronic devices, etc. , not exhaustive here.
  • FIG. 8 is a schematic flow diagram of the data processing method provided by the embodiment of the present application.
  • Data processing methods may include:
  • the execution device acquires a first measurement value and a second measurement value.
  • the first measurement value is obtained through a first sensor
  • the second measurement value is obtained through a second sensor.
  • the first sensor and the second sensor are configured on the two ears of the earphone In the tube, the first sensor and the second sensor respectively correspond to one of the helix region and the concha region when worn.
  • the execution device After determining that both earphones of the earphone are worn, the execution device starts to detect the actual wearing conditions of the two earphones, that is, triggers to start acquiring the first measurement value and the second measurement value.
  • the first measurement value is obtained by the first sensor
  • the second measurement value is obtained by the second sensor.
  • the first sensor and the second sensor are arranged in the two earpieces of the earphone, and the first sensor and the second sensor are respectively Corresponding to one of the helix area and the concha area; further, the first sensor and the second sensor are the same type of sensor, and the first measurement value and the second measurement value are any of the following information: capacitance value, resistance value, Voltage values or other types of information; for the specific manifestations of the first sensor and the second sensor, and the types of information carried by the first measurement value and the second measurement value, you can refer to the above description, which will not be repeated here.
  • the executing devices in the embodiments of the present application may be earphones, or other electronic devices communicatively connected with the earphones, which will not be described in subsequent embodiments.
  • step 801 may include: the earphone collects a first measurement value through a first sensor, and collects a second measurement value through a second sensor. If the execution device is another electronic device communicatively connected to the earphone, step 801 may include: the execution device receives the first measurement value and the second measurement value sent by the earphone.
  • a detection process for whether both earpieces of the headset are worn if the first sensor and the second sensor are configured in different earphones, the earphone can detect whether there is an input signal through the first sensor and the second sensor, and the first sensor and the second sensor both detect whether there is an input signal. When the input signal is received, make sure that both earpieces of the headset are worn. In another implementation, if the first sensor and the second sensor are configured in the same earphone, and two sets of sensors are configured in the two earphones, then the sensors in the two earphones both detect the input signal Next, make sure that both earpieces of the headset are worn. It should be understood that the earphones can also determine whether the two earphones are worn in other ways, and the specific implementation manner can be flexibly determined in combination with the actual product form, which is not limited here.
  • the execution device determines a first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, and the first detection result is used to indicate that each earphone is worn on the left ear or on the earphone. right ear.
  • the execution device may determine the first detection result corresponding to the earphone according to the magnitude relationship between the first measurement value and the second measurement value, and the first detection result corresponding to the earphone.
  • a detection result is used to indicate whether each earphone is worn on the left ear or on the right ear.
  • the first sensor and the second sensor are configured in two different earphones.
  • step 802 if the size relationship between the first measured value and the second measured value satisfies the first preset condition, it is determined that the first sensor is worn on the left ear and the second sensor is worn on the right ear; if the first measured value and the size relationship between the second measurement value satisfies the second preset condition, then it is determined that the first sensor is worn on the right ear and the second sensor is worn on the left ear, the size relationship indicated by the first preset condition and the second The size relationship indicated by the two preset conditions is opposite.
  • the first preset condition may be that the first measured value is greater than the second measured value, and the second preset condition is that the first measured value is smaller than the second measured value; or, the first preset condition may be that the first measured value is smaller than the second measured value Two measured values, the second preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the first preset condition and the second preset condition needs to combine the positions of the first sensor and the second sensor, the type of information represented by the first measurement information and the second measurement information, and the first Factors such as the type of sensor and the second sensor determine.
  • the sensor corresponding to the helix region is worn on the left ear
  • the sensor corresponding to the concha region is worn on the right ear.
  • the concha region there are fewer protruding parts, that is, when the user wears the earphone, the contact area between the user's helix area and the ear tube (that is, the sensor on the ear tube) is larger, and the user's concha area and the ear tube (that is, the ear tube)
  • the contact area between the sensors above) is smaller, so that the measurements collected by the sensors corresponding to the user's helix region are larger than the measurements collected by the sensors corresponding to the user's concha region.
  • the first measurement value and the second measurement value may represent pressure values collected by a resistance sensor or a voltage sensor. Since the user's helix region is more prominent than the concha region, that is, when When the user wears the headset, the user's helix area exerts more pressure on the sensor on the ear tube, and the user's concha area exerts less pressure on the sensor on the ear tube, so the sensor corresponding to the user's helix area collects The measured value of is larger than the measured value collected by the sensor corresponding to the user's concha region.
  • the first preset condition is that the first measured value is greater than the second measured value
  • the second preset condition is that the first measured value is smaller than the second measured value
  • the first measurement value and the second measurement value may represent the intensity of light collected by the photosensitive sensor.
  • the contact area is large, and the contact area between the user's concha area and the ear tube (that is, the sensor on the ear tube) is small, and the light intensity collected by the sensor corresponding to the user's helix area will be small, which is different from that of the ear tube.
  • the light intensity collected by the sensor corresponding to the user's concha region will be relatively large.
  • the first measurement value and the second measurement value represent the distance between the ear and the sensor in the target direction collected by the proximity sensor. Since the user's helix area is more prominent than the concha area, That is, when the user wears the earphone, the distance between the user's helix region and the sensor in the target direction is smaller, and the distance between the user's concha region and the sensor in the target direction is larger.
  • the first preset condition is that the first measured value is less than the second measured value
  • the second preset condition is that the first measured value is greater than the second measured value
  • the senor corresponding to the helix region is worn on the right ear, and the sensor corresponding to the concha region is worn on the left ear.
  • the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or the first measurement value and the second measurement value represent the collected pressure value, then the first The preset condition is that the first measured value is smaller than the second measured value, and the second preset condition is that the first measured value is greater than the second measured value.
  • the first preset condition is The first measured value is greater than the second measured value, and the second preset condition is that the first measured value is smaller than the second measured value.
  • the first sensor and the second sensor are configured in different earphones
  • a specific implementation method of determining the actual wearing condition of the earphone is provided, and since the two sensors used are respectively configured in different earphones Sensors are arranged in the earphones, that is, in both earphones, which is beneficial to realize the uniformity of the two earphones, so as to reduce the production cost of the earphones.
  • step 802 if the size relationship between the first measured value and the second measured value satisfies the third preset condition, it is determined that the target earphone is worn on the left ear; if the relationship between the first measured value and the second measured value If the size relationship satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition.
  • the execution device can select any one of the two earphones as the target earphone, and pre-configure each set of sensors with unique identification information to Two sets of sensors are distinguished.
  • the third preset condition can be that the first measured value is greater than the second measured value, and the fourth preset condition can be that the first measured value is less than the second measured value; or, the third preset condition can be that the first measured value is smaller than the second measured value value, and the fourth preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the third preset condition and the fourth preset condition needs to be combined with the positions of the first sensor and the second sensor in the target earphone, the type of information represented by the first measurement information and the second measurement information, and The factors such as the types of the first sensor and the second sensor are determined.
  • the target earphone is worn on the left ear.
  • the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or if the first measurement value and the second measurement value represent the is the pressure value collected by the resistance sensor or voltage sensor. Then if the first measured value is greater than the second measured value, it means that the first sensor corresponds to the user's helix region and the second sensor corresponds to the concha region; if the second measured value is smaller than the first measured value, it means that the first sensor corresponds to The concha region corresponds and the second sensor corresponds to the helix region. That is, in this implementation manner, the third preset condition is that the first measured value is greater than the second measured value, and the fourth preset condition is that the second measured value is smaller than the first measured value.
  • the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the ear light intensity collected by the proximity sensor The distance from the sensor in the direction of the target. Then if the first measured value is greater than the second measured value, it means that the first sensor corresponds to the concha region and the second sensor corresponds to the helix region; if the second measured value is greater than the first measured value, it means that the first sensor corresponds to the helix region; The user's helix region corresponds and the second sensor corresponds to the concha region. That is, in this implementation manner, the third preset condition is that the first measured value is smaller than the second measured value, and the fourth preset condition is that the second measured value is greater than the first measured value.
  • the target earpiece is worn on the right ear.
  • the third preset condition is that the first measured value is smaller than the second measured value
  • the fourth preset condition is that the second measured value is greater than the first measured value
  • the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the ear light intensity collected by the proximity sensor The distance from the sensor in the direction of the target.
  • the third preset condition is that the first measured value is greater than the second measured value
  • the fourth preset condition is that the second measured value is smaller than the first measured value.
  • the execution device obtains the first measurement value and the second measurement value
  • the first sensor and the second sensor are configured in two different earphones of the headset, and the first sensor is configured in the first earphone
  • the second sensor is configured in the second earphone
  • the executing device may also determine first wearing information corresponding to the first earphone according to the first measured value, the first wearing information indicating the wearing tightness of the first earphone; according to the first measurement value
  • the second measurement value determines second wearing information corresponding to the second earphone, and the second wearing information indicates the wearing tightness of the second earphone.
  • the execution device may be configured with a first preset value and a second preset value, and the execution device obtains the first wearing information by comparing the size relationship between the first measurement value and the first preset value; The magnitude relationship between the second measured value and the second preset value is used to obtain the second wearing information.
  • the obtained first wearing information indicates that the first earphone is in a "tight" state; if the first measurement value is smaller than the first preset value, the obtained first The wearing information indicates that the first earphone is in the "wear loose" state.
  • the obtained second wearing information indicates that the second earphone is in a "tight" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "loosely worn” state.
  • first measured value and the second measured value represent the light intensity collected by the photosensitive sensor, or the first measured value and the second measured value represent the distance between the ear and the sensor collected by the proximity sensor in the target direction . Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in the "wear loose” state; if the first measurement value is less than the first preset value, the obtained first The wearing information indicates that the first earphone is in a "tightly worn" state.
  • the obtained second wearing information indicates that the second earphone is in the "wear loose” state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "tightly worn” state.
  • not only the actual wearing condition of each earphone can be directly measured, but also the wearing tightness of the earphone can be measured, that is, more wearing information of the earphone can be obtained to provide users with more services. It is beneficial to increase the user viscosity of this program.
  • the execution device acquires a second detection result corresponding to the earphones, the second detection result is used to indicate whether each earphone is worn on the left ear or on the right ear, and the second detection result is to check the wearing condition of the earphones. Obtained after retesting.
  • the execution device may also perform a secondary detection on the wearing condition of each earphone to obtain a second detection result corresponding to the earphone, and the second detection result is used to indicate that each earphone is not worn. Wearing on the left ear or on the right ear, for the specific implementation manner of the detection, please refer to the description in steps 801 and 802, which will not be repeated here.
  • the execution device may also use other methods to detect the wearing condition of the earmuffs, that is, the method of generating the second detection result in step 803 may be different from the method of generating the first detection result in steps 801 and 802, specifically For the implementation manner, reference may be made to the description of the subsequent embodiments, and details are not repeated here.
  • the executing device judges whether the first detection result is consistent with the second detection result, and if not, proceeds to step 805; if consistent, proceeds to step 808.
  • the execution device judges whether the type of the audio to be played belongs to the preset type, and if the type of the audio to be played belongs to the preset type, proceed to step 806 or step 807; if the type of the audio to be played does not belong to the preset type, proceed to step 805. 808.
  • steps 804 and 805 are optional steps. If steps 804 and 805 are performed, the execution device can also obtain the audio to be played if it is determined through step 805 that the first detection result is inconsistent with the second detection result.
  • the type of the audio to be played is the audio that needs to be played through the earphone, and it is judged whether the type of the audio to be played belongs to the preset type. If the type of the audio to be played belongs to the preset type, go to step 806.
  • step 805 can also be directly entered after step 803 is executed, that is, after the execution device obtains the first detection result corresponding to each earphone through step 803, it can directly determine the Whether the type of the audio belongs to the preset type, if the type of the audio to be played belongs to the preset type, go to step 807.
  • the preset type includes any one or a combination of multiple of the following: stereo audio, audio from video applications, audio from game applications, audio with direction information or other left and right channels Distinguished audio, etc.
  • stereo audio audio from video applications
  • audio from game applications audio with direction information or other left and right channels Distinguished audio, etc.
  • the preset type may not include any one or a combination of multiple of the following: no audio output, audio marked as mono, voice call, audio marked as stereo with no distinction between left and right channels Or other audio with no difference between left and right channels, etc., not exhaustive here.
  • the execution device needs to intercept the audio of the two channels from the audio marked as stereo to compare whether they are consistent, and if they are consistent, prove that the aforementioned audio Although labeled as stereo there is no difference between the left and right channels.
  • the execution device outputs target prompt information, where the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
  • step 805 is an optional step. If step 805 is executed, the execution device determines that the first detection result is inconsistent with the second detection result, and the type of audio to be played belongs to the preset type and enters step 806 , that is, the execution device can output target prompt information.
  • the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
  • "Correcting the category of earphones” means changing the category of earphones determined to be worn on the left ear to those determined to be worn on the right ear, and changing the category of Determined to be worn on the left ear.
  • step 806 may be directly entered when the execution device determines that the first detection result is inconsistent with the second detection result, that is, the execution device may output target prompt information.
  • the execution device may output target prompt information through a text box, sound, or other forms.
  • target prompt information For example, when a video is being played on the execution device and the execution device determines that the second detection result is inconsistent with the first detection result, it may pass The text box outputs target prompt information.
  • the content in the target prompt information can specifically be "whether to switch the left and right audio channels of the earphones", "the left and right audio channels of the earphones seem to be reversed, do you want to switch", etc., to ask the user whether to check the type of the earphones. Correction, the specific content of the target prompt information is not exhaustive here.
  • FIG. 9 is a schematic diagram of an interface for outputting target prompt information in the data processing method provided by the embodiment of the present application.
  • outputting target prompt information in the form of a text box is taken as an example. It should be understood that the example in FIG. 9 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the earphone is used for re-detection to obtain the second detection result corresponding to the earphone. If the second detection result is inconsistent with the first detection result, it will be judged again that the type of audio to be played belongs to the preset Type, only when the type of the audio to be played belongs to the preset type, the target prompt information will be output to prompt the user to correct the type of the earphone.
  • the accuracy of the final determination of the wearing condition of each earphone can be improved; and only when the type of audio to be played belongs to the preset type, the user will correct the detection result, so as to reduce the inconvenience to the user. Necessary interruptions will help increase the user viscosity of this program.
  • Affect the user experience for example, if the audio to be played is audio from video or games or game applications, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, it will cause the user The picture seen cannot be correctly matched with the sound heard by the user; for example, if the audio to be played is audio with directional information, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, then It will cause the playback direction of the audio to be played and the content of the audio to be played to be incorrectly matched. When the audio to be played is the preset audio, it will cause serious confusion to the user. In these cases, the It is more necessary to ensure that the determined wearing condition of each earphone is consistent with the user's actual wearing condition, so as to provide the user with a good use experience.
  • the execution device sends out a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the detection result corresponding to the earphone.
  • the execution device may also emit a prompt sound through at least one of the two earphones, and the prompt sound is used to verify the correctness of the first detection result/second detection result corresponding to the earphone. If it is found that the first detection result/second detection result corresponding to the earphone is wrong, the user can correct the category of the earphone, that is, change the earphone that is determined to be worn on the left ear to be determined to be worn on the right ear. ear, change the earphone that is determined to be worn on the right ear to be determined to be worn on the left ear.
  • Step 807 may include: the execution device emits a first prompt sound through an earphone worn in a first direction, and emits a second prompt sound through an earphone worn in a second direction.
  • the first direction is the left ear, and the second direction is the right ear; or, the first direction is the right ear, and the second direction is the left ear.
  • the first prompt tone and the second prompt tone can both be monophonic notes; it can also be that both the first prompt tone and the second prompt tone are chord sounds composed of multiple notes; it can also be that the first prompt tone is a monophonic note , the second prompt tone is a chord tone composed of multiple notes.
  • the pitch and timbre of the first prompt sound and the second prompt sound can be consistent or different, and the setting of the first prompt sound and the second prompt sound can be flexibly determined in combination with the actual situation, and there is no limitation here .
  • step 807 may include: the execution device sends a third instruction to at least one earphone, and the third instruction is used to instruct the earphone to emit a prompt sound. If the execution device is an earphone, step 807 may include: the earphone emits a prompt sound through at least one earphone.
  • the execution device in order to keep the earphones worn in the second direction from making no sound, the execution device first emits the first prompt sound through the earphones worn in the first direction; then keep wearing the earphones in the The earphones in the first direction make no sound, and the earphones worn in the second direction emit a second prompt sound.
  • the executive device can emit sound through the earphone worn in the first direction and the earphone worn in the second direction at the same time, but the volume of the first prompt sound is much higher than that of the second prompt sound Then the sound is emitted through the earphone worn in the first direction and the earphone worn in the second direction at the same time, but the volume of the second prompt sound is much higher than the volume of the first prompt sound.
  • step 807 may include: the execution device emits a first prompt sound through an earphone worn in the first direction, and outputs first prompt information through a first display interface, the first prompt information is used to indicate that the first direction is left ear or the right ear; while the second prompt sound is issued through the earpiece worn in the second direction, the second prompt information is output through the first display interface, and the second prompt information is used to indicate whether the second direction is the left ear or the right ear Ear.
  • the user can directly combine the prompt information displayed on the display interface and the prompt sound heard to determine the wearing status of each earphone that performs device detection (that is, the detection result corresponding to each earphone) ) is correct, which reduces the difficulty of the verification process of the test results corresponding to each earphone, does not increase the user's additional cognitive burden, facilitates the user to develop new usage habits, and is conducive to improving the user viscosity of this solution.
  • FIG. 10 is a schematic diagram of an interface for verifying the detection results of earphones in the data processing method provided by the embodiment of the present application.
  • the first detection result of the ear tube is verified, and the first direction is the left ear, and the second direction is the right ear as an example.
  • the first direction is the left ear
  • the second direction is the right ear as an example.
  • the execution device is The earphones in one direction emit the first prompt sound, and the earphones worn in the second direction do not emit sound; at the same time, the execution device outputs the first prompt information through the first display interface, and the first prompt information is used to prompt The user currently sends out the first prompt sound is determined to be worn on the earphone on the left ear.
  • the execution device emits the second prompt sound through the earphone worn in the second direction, and does not emit a sound through the earphone worn in the first direction; at the same time, the execution device outputs the second prompt sound through the first display interface.
  • Two prompt information the second prompt information is used to remind the user that the earphone that is currently emitting the second prompt sound is determined to be worn on the right ear. It should be understood that the example in FIG. 10 is only for facilitating understanding of this solution, and is not used to limit this solution.
  • the execution device may also display a first icon through the first display interface, obtain the first operation input by the user through the first icon, and trigger the processing of the category corresponding to the earphone in response to the obtained first operation. correction.
  • FIG. 11 is a schematic diagram of an interface for verifying the detection results of earphones in the data processing method provided by the embodiment of the present application.
  • the icon pointed to by B1 is the first icon, and the user can input the first operation through the first icon at any time during the process of verifying the detection result of the earphone to trigger the correction of the category of the earphone.
  • Fig. 11 The examples in this document are only for the convenience of understanding the solution, and are not intended to limit the solution.
  • the two earphones include an earphone worn in the first direction and an earphone worn in the second direction
  • step 807 may include: executing the device from the earphone worn in the first direction
  • the earphones determined to be worn in the preset direction are acquired from the earphones worn in the second direction, and only the earphones determined to be worn in the preset direction emit a prompt sound.
  • the preset direction can be left ear or right ear.
  • the prompt sound is only issued in the preset direction (that is, on the left ear or the right ear), that is, if the prompt sound is only issued through the earpiece that is determined to be worn on the left ear, the user needs to judge the prompt Whether the earphone that sounds the sound is worn on the left ear; or only the earphone that is determined to be worn on the right ear emits the prompt sound. The user needs to determine whether the earphone that emits the prompt sound is worn on the right ear. A new verification method for the test result of the earphone improves the implementation flexibility of this solution.
  • step 803 can be used to enter step 807, that is, the execution device can directly enter step 807 after executing step 803, so as to trigger the user to carry out the first detection result generated by step 803 through step 807. verify.
  • the execution device may trigger the output of the first indication information through the second display interface, the first indication information is used to inform the user that the execution device has completed the inspection of the wearing status of each earphone. Detect operation.
  • a second icon may also be displayed on the second display interface, through which the user may input a second operation, and the execution device triggers the execution of step 807 in response to the acquired second operation.
  • the second operation may be expressed as clicking, dragging, or other operations on the second icon, which are not exhaustive here.
  • FIG. 12 is a schematic diagram of an interface that triggers verification of the first detection result in the data processing method provided by the embodiment of the present application.
  • the second display interface is taken as an example of the lock screen interface.
  • the execution device executes step 803, that is, after the execution device generates the first detection result corresponding to each earphone, it can be output in the form of a bullet box.
  • the icon pointed to by C1 represents the second icon.
  • the user can input the second operation through the second icon, and the execution device triggers the execution of step 807 in response to the obtained second operation.
  • FIG. 12 is only for the convenience of understanding this solution , is not used to limit this scheme.
  • step 807 it may also enter step 807 after step 806, and at the same time when the execution device outputs the target prompt information through the third display interface, a third icon may also be displayed on the third display interface, and the user may pass The third icon inputs a third operation; in response to the obtained third operation, the execution device triggers the execution of step 807, so as to verify the generated first detection result/second detection result through step 807.
  • FIG. 13 is a schematic diagram of an interface that triggers verification of the detection result corresponding to the earphone in the data processing method provided by the embodiment of the present application.
  • the audio of a video application is played as an example.
  • the execution device determines that the second detection result is inconsistent with the first detection result, and the audio to be played belongs to the preset audio, it will output the target through the third display interface.
  • Prompt information while outputting target prompt information through the third display interface, a third icon (that is, the icon pointed to by D1) can also be displayed on the third display interface, and the user can input the third operation through the third icon; execute the device response Based on the obtained third operation, the execution of step 807 is triggered.
  • a third icon that is, the icon pointed to by D1
  • step 807 may be triggered after step 805, that is, when the execution device determines that the first detection result is inconsistent with the second detection result, it may also directly trigger step 807 to pass Step 807 verifies the generated first detection result/second detection result.
  • step 807 may also be entered after step 805, that is, after the execution device obtains the first detection result corresponding to each earphone through step 803, It can be directly judged whether the type of the audio to be played belongs to the preset type, and if the type of the audio to be played belongs to the preset type, the trigger directly enters step 807 to verify the generated first detection result through step 807 .
  • At least one earphone after the actual wearing condition of each earphone is detected, at least one earphone will also emit a prompt sound to verify the predicted first detection result, so as to ensure the wearability of each earphone.
  • the predicted wearing situation is consistent with the actual wearing situation, so as to further increase the user viscosity of this solution.
  • the execution device plays the audio to be played through the earphone.
  • step 802 can directly enter step 808, if the audio to be played is stereo audio, play the left channel of the audio to be played through the earphone that is determined to be worn on the left ear For audio, the audio of the right channel in the audio to be played is played through the earphone determined to be worn on the right ear.
  • step 808 may no longer switch The playback channel of the audio to be played. If the execution device has not played the audio to be played, the execution device may play the audio to be played based on the first detection result or the second detection result.
  • step 806 if step 806 is used to enter step 808, if the execution device responds to the user's operation, it is determined that the type of each earphone needs to be corrected, that is, the earphone used to play the audio of the left channel needs to be corrected. Update the headset to play the audio of the right channel, and update the earpiece used to play the audio of the right channel to play the audio of the left channel.
  • the two earphones of the earphone are equipped with a first sensor and a second sensor, and the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn.
  • the first measurement value is obtained through the first sensor
  • the second measurement value is obtained through the second sensor.
  • each sensor corresponds to the user's helix region or the user's concha region, and then it is determined that each earphone is Whether it is worn on the left ear or the right ear; it can be seen from the above scheme that it is not necessary to pre-set the category of each earphone in this application, but after the user wears the earphone, it is determined based on the user’s actual wearing situation.
  • Figure 14 is another schematic flowchart of the data processing method provided by the embodiment of this application , the data processing method provided in the embodiment of this application may include:
  • the earphone When two earphones are worn, the earphone obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor.
  • the first sensor and the second sensor respectively correspond to the helix area and the concha of the ear when worn one of the regions.
  • the earphone sends the first measurement value and the second measurement value to the electronic device.
  • the electronic device determines a first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, and the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
  • step 1401 for the specific implementation of step 1401, please refer to the description of step 801 in the embodiment corresponding to FIG. 8 .
  • step 1403 please refer to the description of step 802 in the embodiment corresponding to FIG. .
  • the electronic device acquires a second detection result corresponding to the earphones, the second detection result is used to indicate whether each earphone is worn on the left ear or on the right ear, and the second detection result is to check the wearing condition of the earphones Obtained after retesting.
  • the electronic device judges whether the first detection result is consistent with the second detection result, and if not, proceeds to step 1406; if they are consistent, proceeds to step 1408.
  • the electronic device judges whether the type of the audio to be played belongs to the preset type. If the type of the audio to be played belongs to the preset type, proceed to step 1407 or step 1408; if the type of the audio to be played does not belong to the preset type, proceed to step 1406. 1409.
  • the electronic device outputs target prompt information, where the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
  • the earphone emits a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the detection result corresponding to the earphone.
  • the earphone plays the audio to be played through the earphone.
  • steps 1404 to 1409 for the specific implementation manner of steps 1404 to 1409, refer to the description of steps 803 to 808 in the embodiment corresponding to FIG. 8 , and details are not repeated here.
  • FIG. 15 is a schematic structural diagram of an earphone provided by an embodiment of the present application.
  • the earphone 1 includes two earphones 10 , and a first sensor 101 and a second sensor 102 are arranged in the two earphones 10 .
  • the sensor 101 and the second sensor 102 respectively correspond to one of the helix region and the concha region when worn.
  • the first sensor 101 is used to obtain the first measurement value
  • the second sensor 102 is used to obtain the second measurement value
  • the size relationship between the first measurement value and the second measurement value is defined by For determining the first detection result corresponding to the earphone, the first detection result is used to indicate whether each earphone is worn on the left ear or on the right ear.
  • the first sensor 101 and the second sensor 102 are of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
  • FIG. 16 is another structural schematic diagram of the earphone provided by the embodiment of the present application.
  • the first sensor 101 and the second sensor 102 are arranged in different earphones.
  • the earphone 1 also Including a processor 20, the processor 20 is specifically configured to: if the size relationship between the first measured value and the second measured value satisfies a first preset condition, then determine that the first sensor 101 is worn on the left ear and the second sensor 102 is worn on the right ear; if the size relationship between the first measured value and the second measured value satisfies the second preset condition, then it is determined that the first sensor 101 is worn on the right ear and the second sensor 102 is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
  • the first sensor 101 and the second sensor 102 are configured in the same target earphone, the target earphone is one of the two earphones, and the earphone 1 also includes a processor 20 for processing
  • the device 20 is specifically used for: if the size relationship between the first measurement value and the second measurement value satisfies the third preset condition, then determine that the target earphone is worn on the left ear; if the difference between the first measurement value and the second measurement value If the size relationship between them satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition.
  • FIG. 17 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
  • the data processing device 1700 includes: an acquisition module 1701, configured to acquire a first measurement value and a second measurement value, wherein the The first measurement value is obtained by the first sensor, the second measurement value is obtained by the second sensor, the first sensor and the second sensor are arranged in the two earphones of the earphone, the first sensor and the The second sensor respectively corresponds to one of the helix area and the concha area when worn; the determination module 1702 is configured to determine the relationship with the ear according to the size relationship between the first measurement value and the second measurement value.
  • a first detection result corresponding to the earphone, the first detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear.
  • the first sensor and the second sensor are of the same type, and both the first measurement value and the second measurement value are any one of the following information: capacitance value or resistance value.
  • FIG. 18 is a schematic structural diagram of the electronic device provided by the embodiment of the present application. Specifically, it can be expressed as other electronic devices connected in communication with the earphone, such as mobile phones, tablets, notebook computers or smart wearable devices, etc., which is not limited here.
  • the electronic device 1800 includes: a receiver 1801, a transmitter 1802, a processor 1803, and a memory 1804 (the number of processors 1803 in the electronic device 1800 may be one or more, and one processor is taken as an example in FIG. 18 ) , where the processor 1803 may include an application processor 18031 and a communication processor 18032 .
  • the receiver 1801, the transmitter 1802, the processor 1803 and the memory 1804 may be connected through a bus or in other ways.
  • the memory 1804 may include read-only memory and random-access memory, and provides instructions and data to the processor 1803 .
  • a part of the memory 1804 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 1804 stores processors and operating instructions, executable modules or data structures, or their subsets, or their extended sets, wherein the operating instructions may include various operating instructions for implementing various operations.
  • the processor 1803 controls the operation of the electronic device.
  • various components of an electronic device are coupled together through a bus system, where the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus.
  • the various buses are referred to as bus systems in the figures.
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 1803 or implemented by the processor 1803 .
  • the processor 1803 may be an integrated circuit chip and has a signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1803 or instructions in the form of software.
  • the above-mentioned processor 1803 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field programmable Field-programmable gate array
  • the processor 1803 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 1804, and the processor 1803 reads the information in the memory 1804, and completes the steps of the above method in combination with its hardware.
  • the receiver 1801 can be used to receive input digital or character information, and generate signal input related to related settings and function control of electronic equipment.
  • the transmitter 1802 can be used to output digital or character information through the first interface; the transmitter 1802 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 1802 can also include a display device such as a display screen .
  • the application processor 18031 in the processor 1803 is configured to execute the data processing method performed by the earphone in the embodiments corresponding to FIG. 3 to FIG. 14 .
  • the application processor 18031 in the processor 1803 is configured to execute the data processing method executed by other electronic devices having a communication connection with the earphone in the embodiments corresponding to FIG. 3 to FIG. 14 .
  • the embodiment of the present application also provides a computer program product that, when running on a computer, causes the computer to perform the steps performed by the headset in the method described in the embodiments shown in FIGS. 3 to 14 , or causes the computer to Execute the steps performed by other electronic devices communicatively connected with the earphone in the methods described in the embodiments shown in FIGS. 3 to 14 .
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for performing signal processing, and when it is run on a computer, the computer executes the program shown in Figure 3 to Figure 14 above. Illustrate the steps performed by the earphone in the method described in the embodiment, or make the computer execute the steps performed by other electronic devices communicatively connected with the earphone in the method described in the embodiment shown in FIG. 3 to FIG. 14 .
  • the earphones, electronic equipment, and execution equipment provided in the embodiments of the present application may specifically be chips, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, pipe pins or circuits etc.
  • the processing unit can execute the computer-executed instructions stored in the storage unit, so that the chip executes the data processing method described in the embodiments shown in FIGS. A training method for neural networks.
  • the storage unit is a storage unit in the chip, such as a register, a cache, etc.
  • the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
  • ROM Read-only memory
  • RAM random access memory
  • the processor mentioned in any of the above-mentioned places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the program execution of the above-mentioned method in the first aspect.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
  • the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, training device, or network device, etc.) execute the instructions described in various embodiments of the present application method.
  • a computer device which can be a personal computer, training device, or network device, etc.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, training device, or data
  • the center transmits to another website site, computer or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • wired eg coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a training device or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
  • Headphones And Earphones (AREA)

Abstract

A data processing method and a related device. The method may be applied to the field of wearable devices in the technical field of computers. A first sensor and a second sensor are configured in two earpieces of earphones, and when the earpieces are worn, the first sensor and the second sensor respectively correspond to one of a helix region and an auricular concha region. The method comprises: when two earpieces are worn, acquiring a first measurement value by means of a first sensor, and acquiring a second measurement value by means of a second sensor; and determining, according to the magnitude relationship between the first measurement value and the second measurement value, a first detection result corresponding to the earpieces, wherein the first detection result is used for indicating whether each earpiece is worn on the left ear or is worn on the right ear. Whether each earpiece is worn on the left ear or the right ear is determined on the basis of the actual wearing condition of a user, that is, the user can arbitrarily wear earphones, such that the operation for the user is simpler, thereby facilitating the improvement of the user viscosity of the solution.

Description

一种数据处理方法以及相关设备A data processing method and related equipment
本申请要求于2021年9月30日提交中国专利局、申请号为202111163639.8、发明名称为“一种数据处理方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111163639.8 and the title of the invention "a data processing method and related equipment" submitted to the China Patent Office on September 30, 2021, the entire contents of which are incorporated by reference in this application middle.
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种数据处理方法以及相关设备。The present application relates to the field of computer technology, in particular to a data processing method and related equipment.
背景技术Background technique
随着科技的发展,耳机成为越来越流行的一种产品。蓝牙耳机、无线耳机等类型的耳机的发明,使得用户在使用耳机有了更大的活动空间,用户可以更加方便的收听音频、观看视频、体验虚拟现实(virtual reality,VR)游戏等。With the development of technology, earphones have become more and more popular products. The invention of Bluetooth earphones, wireless earphones and other types of earphones enables users to have more room for activities when using earphones, and users can listen to audio, watch videos, and experience virtual reality (VR) games more conveniently.
目前主流的方式为,一个耳机的两个耳筒上预先标记有左(left,L)和右(right,R),用户需要根据两个耳筒上的标记,将两个耳筒分别佩戴于左耳和右耳上,但两个耳筒可能会被用户戴反,当通过耳机播放立体声时,戴反耳机会导致用户听到的声音不自然。The current mainstream method is that the two earphones of an earphone are pre-marked with left (left, L) and right (right, R), and the user needs to wear the two earphones on the On the left and right ears, but the two earphones may be worn by the user backwards. When playing stereo through the headset, wearing the reversed headset will cause the user to hear unnatural sound.
发明内容Contents of the invention
本申请实施例提供了一种数据处理方法以及相关设备,基于用户的实际佩戴情况来确定每个耳筒是佩戴在左耳还是右耳,也即用户不再需要查看耳筒上的标记,以及基于耳筒上的标记佩戴耳机,而是可以随机的佩戴耳机,使用户操作更为简单,有利于提高本方案的用户粘度。The embodiment of the present application provides a data processing method and related equipment, which determine whether each earphone is worn on the left ear or the right ear based on the user's actual wearing situation, that is, the user no longer needs to check the marking on the earphone, and The earphones are worn based on the marks on the earpieces, but the earphones can be worn randomly, which makes the user's operation easier and helps to improve the user viscosity of this solution.
为解决上述技术问题,本申请实施例提供以下技术方案:In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
第一方面,本申请实施例提供一种数据处理方法,可用于计算机技术领域的可穿戴设备领域中。一个耳机包括两个耳筒,两个耳筒中配置有第一传感器和第二传感器,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个。也即当该耳机被佩戴时,若第一传感器与耳轮区域对应,则第二传感器与耳甲区域对应;或者,当该耳机被佩戴时,若第一传感器与耳甲区域对应,则第二传感器与耳轮区域对应。进一步地,“传感器与耳轮区域对应”可以为传感器与耳轮区域接触,也可以为传感器悬挂在耳轮区域上方;对应的,“传感器与耳甲区域对应”可以为传感器与耳甲区域接触,也可以为传感器悬挂在耳甲区域上方。方法可以包括:当两个耳筒被佩戴时,耳机通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值;执行设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳;执行设备可以为前述耳机,也可以与耳机建立通信连接的其他电子设备。In the first aspect, the embodiment of the present application provides a data processing method, which can be used in the field of wearable devices in the field of computer technology. An earphone includes two earphones, a first sensor and a second sensor are arranged in the two earphones, and the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn. That is, when the earphone is worn, if the first sensor corresponds to the helix region, the second sensor corresponds to the concha region; or, when the earphone is worn, if the first sensor corresponds to the concha region, the second sensor corresponds to the concha region. The sensor corresponds to the helix area. Further, "the sensor corresponds to the helix region" may mean that the sensor is in contact with the helix region, or it may be that the sensor is suspended above the helix region; correspondingly, "the sensor corresponds to the concha region" may mean that the sensor is in contact with the concha region, or For the sensor to hang above the concha area. The method may include: when two earphones are worn, the earphone obtains a first measurement value through a first sensor, and obtains a second measurement value through a second sensor; Size relationship, determine the first detection result corresponding to the earphone, the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear; the execution device can be the aforementioned earphone, or a communication connection can be established with the earphone other electronic equipment.
本实现方式中,耳机的两个耳筒中配置有第一传感器和第二传感器,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个,当两个耳筒被佩戴时,通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值,由于用户的耳轮区域与传感器的接触面积大于耳甲区域与传感器的接触面积,且用户的耳轮区域高于耳甲区域,所 以能够根据第一测量值和第二测量值之间的大小关系,确定每个传感器是与用户的耳轮区域对应还是与用户的耳甲区域对应,进而确定每个耳筒为佩戴于左耳还是右耳;通过前述方案可知,本申请中不需要预先设定每个耳筒的类别,而是在用户佩戴耳筒后,基于用户的实际佩戴情况来确定每个耳筒是佩戴在左耳还是右耳,也即用户不再需要查看耳筒上的标记,以及基于耳筒上的标记佩戴耳机,而是可以随机的佩戴耳机,使用户操作更为简单,有利于提高本方案的用户粘度。In this implementation, the two earphones of the earphone are equipped with a first sensor and a second sensor. The first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn. When the two earphones are worn , the first measurement value is obtained by the first sensor, and the second measurement value is obtained by the second sensor. Since the contact area between the user's helix region and the sensor is larger than the contact area between the concha region and the sensor, and the user's helix region is higher than Therefore, according to the size relationship between the first measurement value and the second measurement value, it can be determined whether each sensor corresponds to the user's helix region or the user's concha region, and then it is determined that each earphone is worn Whether it is the left ear or the right ear; it can be seen from the above scheme that it is not necessary to pre-set the category of each earphone in this application, but after the user wears the earphone, it is determined whether each earphone is worn based on the user's actual wearing situation. Whether it is the left ear or the right ear, that is, the user no longer needs to check the marks on the earphones and wear the earphones based on the marks on the earphones, but can wear the earphones randomly, which makes the user's operation easier and is conducive to improving the solution. user viscosity.
在第一方面的一种可能实现方式中,第一传感器和第二传感器为相同类型的传感器,第一测量值和第二测量值均为如下任一种信息:电容值、电阻值或电压值;第一传感器和第二传感器均可以采用如下任意一种传感器:电容传感器、电阻传感器、电压传感器、光敏传感器或接近传感器。进一步地,若第一传感器和第二传感器采用的为电容传感器,则第一测量值和第二测量值可以用于指示用户的耳朵与传感器之间的接触面积。或者,若第一传感器和第二传感器采用的为电阻传感器,则第一测量值和第二测量值可以用于指示耳朵与传感器之间的压力值或耳朵与传感器之间的接触面积。或者,若第一传感器和第二传感器采用的为电压传感器,则第一测量值和第二测量值可以用于指示耳朵与传感器之间的压力值或耳朵与传感器之间的接触面积。或者,若第一传感器和第二传感器采用的为光敏传感器,则第一测量值和第二测量值可以用于指示耳朵与传感器之间的接触面积。或者,若第一传感器和第二传感器采用的为接近传感器,则第一测量值和第二测量值代表的可以为接近传感器与用户的耳轮区域在目标方向上的距离,或者,为接近传感器与用户的耳甲区域在目标方向上的距离,目标方向与耳朵所在平面垂直。In a possible implementation of the first aspect, the first sensor and the second sensor are the same type of sensor, and the first measurement value and the second measurement value are any of the following information: capacitance value, resistance value or voltage value ; Both the first sensor and the second sensor can use any one of the following sensors: a capacitance sensor, a resistance sensor, a voltage sensor, a photosensitive sensor or a proximity sensor. Further, if the first sensor and the second sensor are capacitive sensors, the first measurement value and the second measurement value may be used to indicate the contact area between the user's ear and the sensor. Alternatively, if the first sensor and the second sensor are resistive sensors, the first measurement value and the second measurement value may be used to indicate the pressure value between the ear and the sensor or the contact area between the ear and the sensor. Alternatively, if the first sensor and the second sensor are voltage sensors, the first measurement value and the second measurement value may be used to indicate the pressure value between the ear and the sensor or the contact area between the ear and the sensor. Alternatively, if the first sensor and the second sensor are photosensitive sensors, the first measurement value and the second measurement value may be used to indicate the contact area between the ear and the sensor. Alternatively, if the first sensor and the second sensor are proximity sensors, the first measured value and the second measured value may represent the distance between the proximity sensor and the user's helix area in the target direction, or the distance between the proximity sensor and the user's helix area. The distance of the user's concha area in the target direction, the target direction is perpendicular to the plane where the ear is located.
本申请实施例中,提供了第一测量值和第二测量值的多种具体实现方式,提高了本方案的实现灵活性。In the embodiment of the present application, various specific implementation manners of the first measurement value and the second measurement value are provided, which improves the implementation flexibility of the solution.
在第一方面的一种可能实现方式中,与第一传感器对应的形状和与第二传感器对应的形状相同,且,与第一传感器对应的面积和与第二传感器对应的面积相同。需要说明的是,由于在实际生产过程中,可能无法保证第一传感器和第二传感器的形状完全相同,也无法保证第一传感器和第二传感器的面积完全相同,“与第一传感器对应的形状和与第二传感器对应的形状可以相同”指的是“与第一传感器对应的形状和与第二传感器对应的形状之间的相似度高于第一阈值”,“与第一传感器对应的面积和与第二传感器对应的面积可以相同”指的可以为“与第一传感器对应的第一面积和与第二传感器对应的第二面积之间的差值与第一面积(或第二面积)的比值小于第二阈值”。In a possible implementation manner of the first aspect, the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor. It should be noted that since in the actual production process, it may not be possible to guarantee that the shapes of the first sensor and the second sensor are exactly the same, nor can it be guaranteed that the areas of the first sensor and the second sensor are exactly the same, "the shape corresponding to the first sensor The shape corresponding to the second sensor may be the same" means "the similarity between the shape corresponding to the first sensor and the shape corresponding to the second sensor is higher than the first threshold", "the area corresponding to the first sensor The area corresponding to the second sensor may be the same" means "the difference between the first area corresponding to the first sensor and the second area corresponding to the second sensor and the first area (or second area) The ratio of is less than the second threshold".
本实现方式中,与第一传感器对应的形状和与第二传感器对应的形状相同,且与第一传感器对应的面积和与第二传感器对应的面积相同,不仅有利于降低传感器生成过程的成本,且避免了由于第一传感器和第二传感器之间的形状或面积不同所导致的检测结果出现错误,以提高生成的检测结果的准确率。In this implementation, the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor, which not only helps to reduce the cost of the sensor generation process, but also In addition, errors in the detection results caused by the difference in shape or area between the first sensor and the second sensor are avoided, so as to improve the accuracy of the generated detection results.
在第一方面的一种可能实现方式中,第一传感器和第二传感器被配置于不同的耳筒中,执行设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,包括:若第一测量值和第二测量值之间的大小关系满足第一预设条件,则执行设备确定第一传感器被佩戴于左耳且第二传感器被佩戴于右耳;若第一测量值和第二测量值之间的大 小关系满足第二预设条件,则执行设备确定第一传感器被佩戴于右耳且第二传感器被佩戴于左耳,第一预设条件所指示的大小关系和第二预设条件所指示的大小关系相反。第一预设条件可以为第一测量值大于第二测量值,第二预设条件为第一测量值小于第二测量值;或者,第一预设条件可以为第一测量值小于第二测量值,第二预设条件为第一测量值大于第二测量值。需要说明的是,第一预设条件和第二预设条件的设定需要结合第一传感器和第二传感器所配置的位置、第一测量信息和第二测量信息所代表的信息类型以及第一传感器和第二传感器的类型等因素确定。In a possible implementation manner of the first aspect, the first sensor and the second sensor are configured in different earphones, and the execution device determines the The first detection result includes: if the size relationship between the first measurement value and the second measurement value satisfies the first preset condition, the execution device determines that the first sensor is worn on the left ear and the second sensor is worn on the right ear ear; if the size relationship between the first measured value and the second measured value satisfies the second preset condition, the execution device determines that the first sensor is worn on the right ear and the second sensor is worn on the left ear, and the first preset The size relationship indicated by the condition is opposite to the size relationship indicated by the second preset condition. The first preset condition can be that the first measured value is greater than the second measured value, and the second preset condition can be that the first measured value is smaller than the second measured value; or, the first preset condition can be that the first measured value is smaller than the second measured value value, and the second preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the first preset condition and the second preset condition needs to combine the positions of the first sensor and the second sensor, the type of information represented by the first measurement information and the second measurement information, and the first Factors such as the type of sensor and the second sensor determine.
本实现方式中,提供了第一传感器和第二传感器被配置于不同的耳筒中时,确定耳筒的实际佩戴情况的一种具体实现方式,且由于利用的两个传感器分别配置于不同的耳筒中,也即两个耳筒中均配置有传感器,有利于实现两个耳筒的一致化,以降低耳机的制作成本。In this implementation, when the first sensor and the second sensor are configured in different earphones, a specific implementation of determining the actual wearing condition of the earphone is provided, and since the two sensors used are respectively configured in different earphones Sensors are arranged in the tubes, that is, in the two ear tubes, which is beneficial to realize the uniformity of the two ear tubes, so as to reduce the production cost of the earphones.
在第一方面的一种可能实现方式中,第一传感器和第二传感器被配置于同一目标耳筒中,目标耳筒为两个耳筒中的一个。执行设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,可以包括:若第一测量值和第二测量值之间的大小关系满足第三预设条件,则执行设备确定目标耳筒被佩戴于左耳;若第一测量值和第二测量值之间的大小关系满足第四预设条件,则执行设备确定目标耳筒被佩戴于右耳,第三预设条件所指示的大小关系和第四预设条件所指示的大小关系相反。第三预设条件可以为第一测量值大于第二测量值,第四预设条件为第一测量值小于第二测量值;或者,第三预设条件可以为第一测量值小于第二测量值,第四预设条件为第一测量值大于第二测量值。需要说明的是,第三预设条件和第四预设条件的设定需要结合第一传感器和第二传感器在目标耳筒中的位置、第一测量信息和第二测量信息所代表的信息类型以及第一传感器和第二传感器的类型等因素确定。In a possible implementation manner of the first aspect, the first sensor and the second sensor are configured in a same target earphone, and the target earphone is one of the two earphones. The execution device determines the first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, which may include: if the size relationship between the first measurement value and the second measurement value satisfies the third Preset conditions, the execution device determines that the target earphone is worn on the left ear; if the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, the execution device determines that the target earphone is worn on the right ear First, the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition. The third preset condition can be that the first measured value is greater than the second measured value, and the fourth preset condition can be that the first measured value is less than the second measured value; or, the third preset condition can be that the first measured value is smaller than the second measured value value, and the fourth preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the third preset condition and the fourth preset condition needs to be combined with the positions of the first sensor and the second sensor in the target earphone, the type of information represented by the first measurement information and the second measurement information, and The factors such as the types of the first sensor and the second sensor are determined.
本实现方式中,提供了第一传感器和第二传感器被配置于同一耳筒中时,确定耳筒的实际佩戴情况的另一种具体实现方式,提高了本方案的实现灵活性。In this implementation manner, when the first sensor and the second sensor are configured in the same earmuff, another specific implementation manner of determining the actual wearing condition of the earmuff is provided, which improves the implementation flexibility of this solution.
在第一方面的一种可能实现方式中,执行设备确定与耳筒对应的第一检测结果之后,方法还可以包括:执行设备获取与耳筒对应的第二检测结果,第二检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳,第二检测结果为对耳筒的佩戴情况进行再次检测后得到;若第一检测结果和第二检测结果不一致,且待播放音频的类型属于预设类型,则执行设备输出目标提示信息,其中,目标提示信息用于询问用户是否对每个耳筒的类别进行矫正,待播放音频为需要通过耳筒播放的音频,耳筒的类别为耳筒佩戴于左耳或右耳。In a possible implementation manner of the first aspect, after the execution device determines the first detection result corresponding to the earphone, the method may further include: the execution device acquires a second detection result corresponding to the earphone, and the second detection result is used for Indicates that each earphone is worn on the left ear or on the right ear, and the second detection result is obtained after re-testing the wearing condition of the earphone; if the first detection result is inconsistent with the second detection result, and the audio to be played If the type belongs to the preset type, the execution device outputs target prompt information, wherein the target prompt information is used to ask the user whether to correct the category of each earphone, the audio to be played is the audio that needs to be played through the earphone, and the category of the earphone The headset is worn on the left or right ear.
本实现方式中,通过耳筒进行再次检测,得到耳筒所对应的第二检测结果,在第二检测结果与第一检测结果不一致的情况下,会再次判断待播放音频的类型属于预设类型,只有在待播放音频的类型属于预设类型的情况下,才会输出目标提示信息以提示用户对耳筒的类别进行矫正。通过前述方式,能够提高最终确定的每个耳筒的佩戴情况的准确性;且只有在待播放音频的类型属于预设类型的情况,才会由用户对检测结果进行校正,以减少对用户不必要的打扰,有利于提高本方案的用户粘度。In this implementation, the earphone is used for re-detection to obtain the second detection result corresponding to the earphone. If the second detection result is inconsistent with the first detection result, it will be judged again that the type of audio to be played belongs to the preset type , only when the type of the audio to be played belongs to the preset type, the target prompt information will be output to prompt the user to correct the type of the earphone. Through the foregoing method, the accuracy of the final determination of the wearing condition of each earphone can be improved; and only when the type of audio to be played belongs to the preset type, the user will correct the detection result, so as to reduce the inconvenience to the user. Necessary interruptions will help increase the user viscosity of this program.
在第一方面的一种可能实现方式中,预设类型包括以下中的任一种或多种的组合:立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频和携带有方向信 息的音频。本实现方式中,提供了预设类型的具体几种类型,提高了本方案的实现灵活性,扩展了本方案的应用场景;此外,由于对于立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频和携带有方向信息的音频这几种类型的音频,若每个耳筒的佩戴情况与用户的实际佩戴情况不一致,往往会非常影响用户体验,例如在待播放音频为来源于视频类或游戏类或游戏类应用程序的音频的情况下,若确定的每个耳筒的佩戴情况与用户的实际佩戴情况不一致,则会导致用户看到的画面与用户听到的声音无法正确匹配;再例如在待播放音频为携带有方向信息的音频的情况下,若确定的每个耳筒的佩戴情况与用户的实际佩戴情况不一致,则会导致待播放音频的播放方向与待播放音频中的内容无法正确匹配等,在待播放音频为预设音频的情况下,都会给用户造成很严重的混乱,从而在这几种情况下,会更加需要保证确定的每个耳筒的佩戴情况与用户的实际佩戴情况的一致性,以给用户提供良好的使用体验。In a possible implementation manner of the first aspect, the preset type includes any one or a combination of more of the following: stereo audio, audio from video applications, audio from game applications, and portable Audio with directional information. In this implementation, several specific types of preset types are provided, which improves the implementation flexibility of this solution and expands the application scenarios of this solution; For the audio of game applications and audio with directional information, if the wearing condition of each headset is inconsistent with the actual wearing condition of the user, the user experience will be greatly affected. For example, when the audio to be played is In the case of audio from video or games or game applications, if the determined wearing condition of each earphone is inconsistent with the user's actual wearing condition, it will cause the picture that the user sees to be inconsistent with the sound that the user hears It cannot be matched correctly; for example, if the audio to be played is audio with direction information, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, the playback direction of the audio to be played will be different from that of the user. If the content in the playing audio cannot be matched correctly, etc., when the audio to be played is the preset audio, it will cause serious confusion to the user. Therefore, in these cases, it will be more necessary to ensure that each earphone is determined. The wearing condition is consistent with the user's actual wearing condition, so as to provide the user with a good experience.
在第一方面的一种可能实现方式中,执行设备确定与耳筒对应的第一检测结果之后,方法还可以包括:执行设备通过耳筒发出提示音,提示音用于对第一检测结果的正确性进行验证。进一步地,执行设备可以通过佩戴于第一方向上的耳筒发出第一提示音,通过佩戴于第二方向上的耳筒发出第二提示音;第一方向为左耳,第二方向为右耳;或者,第一方向为右耳,第二方向为左耳。第一提示音和第二提示音可以均为单音音符;也可以为第一提示音和第二提示音均为由多个音符组成的和弦音;也可以为第一提示音为单音音符,第二提示音为由多个音符组成的和弦音。进一步地,第一提示音和第二提示音的音高、音色等方面可以一致,也可以不同,对于第一提示音和第二提示音的设置可结合实际情况灵活确定,此处不做限定。In a possible implementation manner of the first aspect, after the execution device determines the first detection result corresponding to the earphone, the method may further include: the execution device emits a prompt sound through the earphone, and the prompt sound is used to confirm the first detection result. Verify correctness. Further, the executive device can emit the first prompt sound through the earphone worn in the first direction, and emit the second prompt sound through the earphone worn in the second direction; the first direction is the left ear, and the second direction is the right ear ear; or, the first direction is the right ear and the second direction is the left ear. The first prompt tone and the second prompt tone can both be monophonic notes; it can also be that both the first prompt tone and the second prompt tone are chord sounds composed of multiple notes; it can also be that the first prompt tone is a monophonic note , the second prompt tone is a chord tone composed of multiple notes. Further, the pitch and timbre of the first prompt sound and the second prompt sound can be consistent or different, and the setting of the first prompt sound and the second prompt sound can be flexibly determined in combination with the actual situation, and there is no limitation here .
本实现方式中,在完成对每个耳筒的实际佩戴情况进行检测之后,还会通过至少一个耳筒发出提示音,以对预测的第一检测结果进行验证,以保证每个耳筒的预测佩戴情况与实际佩戴情况符合,以进一步提高本方案的用户粘度。In this implementation, after the actual wearing condition of each earphone is detected, at least one earphone will also emit a prompt sound to verify the predicted first detection result, so as to ensure the prediction of each earphone. The wearing condition is consistent with the actual wearing condition to further increase the user viscosity of this solution.
在第一方面的一种可能实现方式中,执行设备通过佩戴于第一方向上的耳筒发出第一提示音,通过第一展示界面输出第一提示信息,第一提示信息用于指示第一方向为左耳还是右耳;在通过佩戴于第二方向上的耳筒发出第二提示音的同时,通过第一展示界面输出第二提示信息,第二提示信息用于指示第二方向为左耳还是右耳。In a possible implementation manner of the first aspect, the execution device emits a first prompt sound through an earphone worn in a first direction, and outputs first prompt information through a first display interface, and the first prompt information is used to indicate that the first Whether the direction is the left ear or the right ear; while the second prompt sound is issued through the earpiece worn in the second direction, the second prompt information is output through the first display interface, and the second prompt information is used to indicate that the second direction is left ear or right ear.
本实现方式中,用户可以直接结合通过展示界面示出的提示信息和听到的提示音,来确定执行设备检测的每个耳筒的佩戴情况(也即每个耳筒所对应的检测结果)是否正确,降低了每个耳筒所对应的检测结果的验证过程的难度,不增加用户额外的认知负担,方便用户养成新的使用习惯,有利于提高本方案的用户粘度。In this implementation, the user can directly combine the prompt information displayed on the display interface and the prompt sound heard to determine the wearing status of each earphone that performs device detection (that is, the detection result corresponding to each earphone) Whether it is correct or not reduces the difficulty of the verification process of the test results corresponding to each earphone, does not increase the user's additional cognitive burden, facilitates the user to develop new usage habits, and is conducive to improving the user viscosity of this solution.
在第一方面的一种可能实现方式中,执行设备从佩戴于第一方向上的耳筒和佩戴于第二方向上的耳筒中获取被确定为佩戴于预设方向上的耳筒,并仅通过被确定为佩戴于预设方向上的耳筒发出提示音。预设方向可以为左耳,也可以为右耳。In a possible implementation manner of the first aspect, the execution device acquires the earphones determined to be worn in the preset direction from the earphones worn in the first direction and the earphones worn in the second direction, and only An alert tone is emitted through earpieces determined to be worn in a preset orientation. The preset direction can be left ear or right ear.
本实现方式中,仅在预设方向(也即左耳或者右耳上)发出提示音,也即若仅通过被确定为佩戴于左耳上的耳筒发出提示音,用户需要判断发出提示音的耳筒是否被佩戴于左耳上;或者仅通过被确定为佩戴于右耳上的耳筒发出提示音,用户需要判断发出提示音的 耳筒是否被佩戴于右耳上,提供了一种新的耳筒的检测结果的验证方式,提高了本方案的实现灵活性。In this implementation, the prompt sound is only issued in the preset direction (that is, on the left ear or the right ear), that is, if the prompt sound is only issued through the earpiece that is determined to be worn on the left ear, the user needs to judge whether to send the prompt sound Whether the earphone is worn on the left ear; or only through the earphone that is determined to be worn on the right ear, the user needs to judge whether the earphone that emits the sound is worn on the right ear, providing a The new method for verifying the test result of the earphone improves the implementation flexibility of the solution.
在第一方面的一种可能实现方式中,第一传感器被配置于第一耳筒中,第二传感器被配置于第二耳筒中,第一耳筒和第二耳筒归属于耳机。方法还可以包括:执行设备可以根据第一测量值确定与第一传感器所在耳筒对应的第一佩戴信息,第一佩戴信息指示第一传感器所在耳筒的佩戴松紧度;执行设备还可以根据第二测量值确定与第二传感器所在耳筒对应的第二佩戴信息,第二佩戴信息指示第二传感器所在耳筒的佩戴松紧度。进一步地,执行设备上可以配置有第一预设值和第二预设值,执行设备通过对比第一测量值和第一预设值之间的大小关系,得到该第一佩戴信息;通过对比第二测量值和第二预设值之间的大小关系,得到该第二佩戴信息。In a possible implementation manner of the first aspect, the first sensor is configured in the first earphone, the second sensor is configured in the second earphone, and the first earphone and the second earphone belong to the earphone. The method may further include: the execution device may determine first wearing information corresponding to the earphone where the first sensor is located according to the first measurement value, and the first wearing information indicates the wearing tightness of the earphone where the first sensor is located; the execution device may also determine according to the first wearing information The second measurement value determines the second wearing information corresponding to the earphone where the second sensor is located, and the second wearing information indicates the wearing tightness of the earphone where the second sensor is located. Further, the execution device may be configured with a first preset value and a second preset value, and the execution device obtains the first wearing information by comparing the size relationship between the first measurement value and the first preset value; The magnitude relationship between the second measured value and the second preset value is used to obtain the second wearing information.
本申请实施例中,不仅可以直接测量每个耳筒的实际佩戴情况,而且可以测量耳筒的佩戴松紧度,也即能够得到耳筒更多的佩戴信息,以给用户提供更多的服务,有利于提高本方案的用户粘度。In the embodiment of the present application, not only the actual wearing condition of each earphone can be directly measured, but also the wearing tightness of the earphone can be measured, that is, more wearing information of the earphone can be obtained to provide users with more services. It is beneficial to increase the user viscosity of this program.
在第一方面的一种可能实现方式中,若第一测量值和第二测量值代表的为用户的耳朵与传感器之间的接触面积,或者,若第一测量值和第二测量值代表的可以为通过电阻传感器或电压传感器采集到的压力值。则若第一测量值大于第一预设值,则得到的第一佩戴信息指示第一耳筒为“戴紧”状态;若第一测量值小于第一预设值,则可以得到的第一佩戴信息指示第一耳筒为“戴松”状态。同样的,若第二测量值大于第二预设值,则得到的第二佩戴信息指示第二耳筒为“戴紧”状态;若第二测量值小于第二预设值,则可以得到的第二佩戴信息指示第二耳筒为“戴松”状态。In a possible implementation of the first aspect, if the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or if the first measurement value and the second measurement value represent It can be a pressure value collected by a resistance sensor or a voltage sensor. Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in a "tight" state; if the first measurement value is smaller than the first preset value, the obtained first The wearing information indicates that the first earphone is in the "wear loose" state. Similarly, if the second measured value is greater than the second preset value, the obtained second wearing information indicates that the second earphone is in a "tight" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "loosely worn" state.
在第一方面的一种可能实现方式中,若第一测量值和第二测量值代表的为通过光敏传感器采集到的光线强度,或者,第一测量值和第二测量值代表的为接近传感器采集到的耳朵与传感器在目标方向上的距离。则若第一测量值大于第一预设值,则得到的第一佩戴信息指示第一耳筒为“戴松”状态;若第一测量值小于第一预设值,则可以得到的第一佩戴信息指示第一耳筒为“戴紧”状态。同样的,若第二测量值大于第二预设值,则得到的第二佩戴信息指示第二耳筒为“戴松”状态;若第二测量值小于第二预设值,则可以得到的第二佩戴信息指示第二耳筒为“戴紧”状态。In a possible implementation of the first aspect, if the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the proximity sensor The collected distance between the ear and the sensor in the target direction. Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in the "wear loose" state; if the first measurement value is less than the first preset value, the obtained first The wearing information indicates that the first earphone is in a "tightly worn" state. Similarly, if the second measured value is greater than the second preset value, the obtained second wearing information indicates that the second earphone is in the "wear loose" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "tightly worn" state.
第二方面,本申请实施例提供了一种数据处理方法,可用于计算机技术领域的可穿戴设备领域中。方法应用于耳机,耳机包括两个耳筒,两个耳筒中配置有第一传感器和第二传感器,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个,方法包括:当两个耳筒被佩戴时,耳机通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值;向电子设备发送第一测量值和第二测量值,其中,第一测量值和第二测量值之间的大小关系用于供电子设备确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。In the second aspect, the embodiment of the present application provides a data processing method, which can be used in the field of wearable devices in the field of computer technology. The method is applied to an earphone. The earphone includes two earphones, and a first sensor and a second sensor are disposed in the two earphones. The first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn. The method includes : When two earphones are worn, the earphone obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor; sends the first measurement value and the second measurement value to the electronic device, wherein, the first measurement value The magnitude relationship between the measurement value and the second measurement value is used for the electronic device to determine a first detection result corresponding to the earphone, and the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
在第二方面的一种可能实现方式中,第一传感器和第二传感器为相同类型的传感器,第一测量值和第二测量值均为如下任一种信息:电容值或电阻值。In a possible implementation manner of the second aspect, the first sensor and the second sensor are sensors of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
在第二方面的一种可能实现方式中,与第一传感器对应的形状和与第二传感器对应的 形状相同,且,与第一传感器对应的面积和与第二传感器对应的面积相同。In a possible implementation manner of the second aspect, the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor.
在第二方面的一种可能实现方式中,方法还可以包括:耳机通过耳筒发出提示音,提示音用于对第一检测结果的正确性进行验证。In a possible implementation manner of the second aspect, the method may further include: the earphone emits a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the first detection result.
对于本申请实施例第二方面以及第二方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第二方面中各种可能的实现方式中的描述,此处不再一一赘述。For the specific implementation steps of the second aspect of the embodiment of the present application and the various possible implementations of the second aspect, the specific meanings of terms, and the beneficial effects brought by each possible implementation, you can refer to the various possible implementations in the second aspect. The description in the implementation manner of , will not be repeated here.
第三方面,本申请实施例提供了一种数据处理方法,可用于计算机技术领域的可穿戴设备领域中。方法可以包括:电子设备获取第一测量值和第二测量值,其中,第一测量值通过第一传感器得到,第二测量值通过第二传感器得到,第一传感器和第二传感器被配置于耳机的两个耳筒中,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;电子设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。In a third aspect, the embodiment of the present application provides a data processing method, which can be used in the field of wearable devices in the field of computer technology. The method may include: the electronic device acquires a first measurement value and a second measurement value, wherein the first measurement value is obtained by a first sensor, and the second measurement value is obtained by a second sensor, and the first sensor and the second sensor are configured in the earphone Among the two earphones, the first sensor and the second sensor correspond to one of the helix area and the concha area when worn; Corresponding to the first detection result, the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
在第三方面的一种可能实现方式中,第一传感器和第二传感器为相同类型的传感器,第一测量值和第二测量值均为如下任一种信息:电容值或电阻值。In a possible implementation manner of the third aspect, the first sensor and the second sensor are sensors of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
在第三方面的一种可能实现方式中,在第一传感器和第二传感器被配置于不同的耳筒中的情况下,电子设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,包括:若第一测量值和第二测量值之间的大小关系满足第一预设条件,则电子设备确定第一传感器被佩戴于左耳且第二传感器被佩戴于右耳;若第一测量值和第二测量值之间的大小关系满足第二预设条件,则电子设备确定第一传感器被佩戴于右耳且第二传感器被佩戴于左耳,第一预设条件所指示的大小关系和第二预设条件所指示的大小关系相反。In a possible implementation manner of the third aspect, when the first sensor and the second sensor are configured in different earpieces, the electronic device determines, according to the magnitude relationship between the first measurement value and the second measurement value The first detection result corresponding to the earphone includes: if the size relationship between the first measurement value and the second measurement value satisfies the first preset condition, the electronic device determines that the first sensor is worn on the left ear and the second sensor is worn on the left ear. is worn on the right ear; if the size relationship between the first measured value and the second measured value satisfies a second preset condition, the electronic device determines that the first sensor is worn on the right ear and the second sensor is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
在第三方面的一种可能实现方式中,在第一传感器和第二传感器被配置于同一目标耳筒中的情况下,电子设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,包括:若第一测量值和第二测量值之间的大小关系满足第三预设条件,则确定目标耳筒被佩戴于左耳,目标耳筒为两个耳筒中的一个;若第一测量值和第二测量值之间的大小关系满足第四预设条件,则确定目标耳筒被佩戴于右耳,第三预设条件所指示的大小关系和第四预设条件所指示的大小关系相反。In a possible implementation manner of the third aspect, when the first sensor and the second sensor are configured in the same target earphone, the electronic device determines according to the magnitude relationship between the first measurement value and the second measurement value The first detection result corresponding to the earphone includes: if the size relationship between the first measured value and the second measured value satisfies the third preset condition, then it is determined that the target earphone is worn on the left ear, and the target earphone is two one of the earphones; if the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, then it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition and The size relationship indicated by the fourth preset condition is opposite.
在第三方面的一种可能实现方式中,电子设备确定与耳筒对应的第一检测结果之后,方法还包括:电子设备根获取与耳筒对应的第二检测结果,第二检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳,第二检测结果为对耳筒的佩戴情况进行再次检测后得到;若第一检测结果和第二检测结果不一致,且待播放音频的类型属于预设类型,则电子设备根输出目标提示信息,其中,目标提示信息用于询问用户是否对每个耳筒的类别进行矫正,待播放音频为需要通过耳筒播放的音频,耳筒的类别为耳筒佩戴于左耳或右耳。In a possible implementation manner of the third aspect, after the electronic device determines the first detection result corresponding to the earphone, the method further includes: the electronic device acquires a second detection result corresponding to the earphone, and the second detection result is used for Indicates that each earphone is worn on the left ear or on the right ear, and the second detection result is obtained after re-testing the wearing condition of the earphone; if the first detection result is inconsistent with the second detection result, and the audio to be played If the type belongs to the preset type, the electronic device will output the target prompt information, wherein the target prompt information is used to ask the user whether to correct the category of each earphone, the audio to be played is the audio that needs to be played through the earphone, and the earphone’s The category is that the headset is worn on the left or right ear.
在第三方面的一种可能实现方式中,预设类型包括以下中的任一种或多种的组合:立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频和携带有方向信息的音频。In a possible implementation manner of the third aspect, the preset type includes any one or a combination of more of the following: stereo audio, audio from video applications, audio from game applications, and portable Audio with directional information.
在第三方面的一种可能实现方式中,电子设备确定与耳筒对应的第一检测结果之后, 方法还可以包括:执行设备向至少一个耳筒发出第三指令,第三指令用于指示耳筒发出提示音。In a possible implementation manner of the third aspect, after the electronic device determines the first detection result corresponding to the earphone, the method may further include: the execution device sends a third instruction to at least one earphone, the third instruction is used to instruct the earphone The cylinder will beep.
对于本申请实施例第三方面以及第三方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第三方面中各种可能的实现方式中的描述,此处不再一一赘述。For the specific implementation steps of the third aspect of the embodiment of the present application and the various possible implementations of the third aspect, the specific meanings of terms, and the beneficial effects brought by each possible implementation, you can refer to the various possible implementations in the third aspect. The description in the implementation manner of , will not be repeated here.
第四方面,本申请实施例提供了一种耳机,可用于计算机技术领域的可穿戴设备领域中,耳机包括两个耳筒,两个耳筒中配置有第一传感器和第二传感器,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;其中,当两个耳筒被佩戴时,第一传感器用于获取第一测量值,第二传感器用于获取第二测量值;第一测量值和第二测量值之间的大小关系用于确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。In a fourth aspect, an embodiment of the present application provides an earphone, which can be used in the field of wearable devices in the field of computer technology. The earphone includes two earphones, and a first sensor and a second sensor are arranged in the two earphones. The first sensor The second sensor corresponds to one of the helix region and the concha region when worn; wherein, when two earphones are worn, the first sensor is used to obtain the first measurement value, and the second sensor is used to obtain the second measurement value; the magnitude relationship between the first measurement and the second measurement is used to determine a first test result corresponding to the earphones, the first test result being used to indicate whether each earphone is worn on the left ear or on the right ear .
本申请实施例的第四方面提供的耳机还可以执行第一方面或第三方面的各个可能实现方式中耳机执行的步骤,对于本申请实施例第四方面以及第四方面的各种可能实现方式的具体实现步骤、耳机中各个元器件之间的位置关系以及每种可能实现方式所带来的有益效果,均可以参考第一方面或第三方面的各种可能的实现方式中的描述,此处不再一一赘述。The earphone provided in the fourth aspect of the embodiment of the present application can also execute the steps performed by the earphone in the first aspect or in each possible implementation manner of the third aspect. For the fourth aspect of the embodiment of the present application and various possible implementation manners of the fourth aspect The specific implementation steps, the positional relationship between the various components in the earphone, and the beneficial effects brought by each possible implementation can refer to the descriptions in the various possible implementations of the first aspect or the third aspect. No more details here.
第五方面,本申请实施例提供了一种数据处理装置,可用于计算机技术领域的可穿戴设备领域中,数据处理装置包括:获取模块,用于获取第一测量值和第二测量值,其中,所述第一测量值通过第一传感器得到,所述第二测量值通过第二传感器得到,所述第一传感器和所述第二传感器被配置于耳机的两个耳筒中,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;确定模块,用于根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。In the fifth aspect, the embodiment of the present application provides a data processing device, which can be used in the field of wearable devices in the field of computer technology. The data processing device includes: an acquisition module, configured to acquire a first measurement value and a second measurement value, wherein , the first measurement value is obtained by a first sensor, the second measurement value is obtained by a second sensor, the first sensor and the second sensor are arranged in the two earphones of the earphone, the first The sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn; A first detection result corresponding to the earphones, the first detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear.
本申请实施例的第五方面提供的数据处理装置还可以执行第一方面或第三方面的各个可能实现方式中与耳机通信连接的其他电子设备执行的步骤,对于本申请实施例第五方面以及第五方面的各种可能实现方式的具体实现步骤,以及每种可能实现方式所带来的有益效果,均可以参考第一方面或第三方面中各种可能的实现方式中的描述,此处不再一一赘述。The data processing device provided in the fifth aspect of the embodiment of the present application can also execute the steps performed by other electronic devices that are communicatively connected to the headset in each possible implementation manner of the first aspect or the third aspect. For the fifth aspect of the embodiment of the present application and For the specific implementation steps of various possible implementations of the fifth aspect, as well as the beneficial effects brought by each possible implementation, you can refer to the descriptions in the various possible implementations of the first aspect or the third aspect, here I won't repeat them one by one.
第六方面,本申请实施例提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面或第三方面所述的数据处理方法。In the sixth aspect, the embodiment of the present application provides a computer program that, when run on a computer, causes the computer to execute the data processing method described in the first aspect, the second aspect or the third aspect.
第七方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述程序在计算机上运行时,使得计算机执行上述第一方面、第二方面或第三方面所述的数据处理方法。In the seventh aspect, the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the program is run on a computer, the computer is made to execute the above-mentioned first aspect and the first aspect. The data processing method described in the second aspect or the third aspect.
第八方面,本申请实施例提供了一种电子设备,可以包括处理器,处理器和存储器耦合,存储器存储有程序指令,当存储器存储的程序指令被处理器执行时实现上述第一方面或第三方面中电子设备(也即与耳机通信连接的电子设备)执行的步骤。In the eighth aspect, the embodiment of the present application provides an electronic device, which may include a processor, the processor is coupled to a memory, and the memory stores program instructions. When the program instructions stored in the memory are executed by the processor, the above first aspect or the first aspect is realized. The steps performed by the electronic device (that is, the electronic device communicatively connected with the earphone) in the three aspects.
第九方面,本申请实施例提供了一种电路系统,所述电路系统包括处理电路,所述处理电路配置为执行上述第一方面、第二方面或第三方面所述的数据处理方法。In a ninth aspect, an embodiment of the present application provides a circuit system, where the circuit system includes a processing circuit configured to execute the data processing method described in the first aspect, the second aspect, or the third aspect.
第十方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于实现上述各个方面中所涉及的功能,例如,发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存服务器或通信设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。In a tenth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, configured to implement the functions involved in the above aspects, for example, send or process the data and/or information involved in the above methods . In a possible design, the chip system further includes a memory, and the memory is configured to store necessary program instructions and data of the server or the communication device. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
附图说明Description of drawings
图1为本申请实施例提供的数据处理方法的一种流程示意图;FIG. 1 is a schematic flow diagram of a data processing method provided in an embodiment of the present application;
图2为本申请实施例提供的数据处理方法中耳朵的一种结构示意图;Fig. 2 is a schematic structural diagram of the ear in the data processing method provided by the embodiment of the present application;
图3为本申请实施例提供的数据处理方法中第一传感器和第二传感器的形状的一种结构示意图;Fig. 3 is a schematic structural diagram of the shapes of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
图4为本申请实施例提供的数据处理方法中第一传感器和第二传感器的一种位置示意图;FIG. 4 is a schematic diagram of the positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
图5为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图;FIG. 5 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
图6为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图;FIG. 6 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
图7为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图;FIG. 7 is a schematic diagram of another position of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application;
图8为本申请实施例提供的数据处理方法的一种流程示意图;FIG. 8 is a schematic flowchart of a data processing method provided in an embodiment of the present application;
图9为本申请实施例提供的数据处理方法中输出目标提示信息的一种界面示意图;9 is a schematic diagram of an interface for outputting target prompt information in the data processing method provided by the embodiment of the present application;
图10为本申请实施例提供的数据处理方法中对耳筒的检测结果进行验证的一种界面示意图;FIG. 10 is a schematic diagram of an interface for verifying the detection result of the ear tube in the data processing method provided in the embodiment of the present application;
图11为本申请实施例提供的数据处理方法中对耳筒的检测结果进行验证的一种界面示意图;Fig. 11 is a schematic diagram of an interface for verifying the detection result of the ear tube in the data processing method provided by the embodiment of the present application;
图12为本申请实施例提供的数据处理方法中触发对第一检测结果进行验证的一种界面示意图;FIG. 12 is a schematic diagram of an interface triggering verification of the first detection result in the data processing method provided by the embodiment of the present application;
图13为本申请实施例提供的数据处理方法中触发对耳筒所对应的检测结果进行验证的一种界面示意图;FIG. 13 is a schematic diagram of an interface that triggers verification of the detection result corresponding to the earphone in the data processing method provided by the embodiment of the present application;
图14为本申请实施例提供的数据处理方法的另一种流程示意图;FIG. 14 is another schematic flowchart of the data processing method provided by the embodiment of the present application;
图15为本申请实施例提供的耳机的一种结构示意图;FIG. 15 is a schematic structural diagram of an earphone provided by an embodiment of the present application;
图16为本申请实施例提供的耳机的另一种结构示意图;FIG. 16 is another structural schematic diagram of the earphone provided by the embodiment of the present application;
图17为本申请实施例提供的数据处理装置的一种结构示意图;FIG. 17 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
图18为本申请实施例提供的电子设备的一种结构示意图。FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况 下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is just a description of the way in which objects with the same attribute are described in the embodiments of the present application. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or apparatus comprising a series of elements is not necessarily limited to those elements, but may include elements not expressly included. Other elements listed explicitly or inherent to the process, method, product, or apparatus.
下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请可以应用于耳机的各种应用场景中,一个耳机包括两个耳筒,可选地,该两个耳筒可以形状对称;前述耳机包括但不限于包耳式耳机、压耳式耳机或其他类型的耳机等等。具体的,作为示例,例如用户佩戴耳机看电影时,耳机中播放的可以为立体声声效,例如画面中一辆火车从左到右的驶过去,通过耳机的两个耳筒配合播放声效以营造出火车从左到右驶过的声音。若耳机的两个耳筒被用户戴反,会出现画面与听觉不匹配的情况,导致听觉与视觉上产生错乱。This application can be applied to various application scenarios of earphones. An earphone includes two earphones. Optionally, the two earphones can be symmetrical in shape; Other types of headphones and more. Specifically, as an example, for example, when a user wears earphones to watch a movie, the stereo sound effect can be played in the earphones. The sound of a train passing by from left to right. If the two earpieces of the headset are worn backwards by the user, there will be a mismatch between the picture and the hearing, resulting in auditory and visual confusion.
作为另一示例,例如用户佩戴耳机玩游戏时,耳机中播放的可以为立体声音效,例如枪击类的游戏,当游戏中的非玩家角色(non-player character,NPC)出现在用户周围时,可以通过耳机的两个耳筒模拟出NPC相对于用户的方位,以增强用户的沉浸感。若耳机的两个耳筒被用户戴反,会导致听觉与视觉上产生错乱。As another example, for example, when a user wears a headset to play a game, stereo sound effects can be played in the headset, such as a gun shooting game. When a non-player character (NPC) in the game appears around the user, it can The orientation of the NPC relative to the user is simulated through the two earpieces of the headset to enhance the user's sense of immersion. If the two earpieces of the headset are worn backwards by the user, it will cause auditory and visual confusion.
作为再一示例,例如导航类通过耳机向用户播放导航路线时,待播放音频为“向右转”,也即待播放音频中携带有方向信息,则可以仅在被确定为右声道的耳筒里播放“向右转”以通过音频的形式对用户进行更为直观地导航,若耳机的两个耳筒被用户戴反,会导致听觉与播放音频内容不符,进而导致用户更加混乱等等,应理解,此处不对本申请实施例的应用场景进行穷举。As another example, for example, when the navigation class plays the navigation route to the user through the earphone, the audio to be played is "turn right", that is, the audio to be played carries direction information, then only the ear that is determined to be the right channel can Play "Turn Right" in the tube to guide the user more intuitively in the form of audio. If the two earpieces of the headset are worn backwards by the user, the hearing will not match the audio content, which will lead to more confusion for the user, etc. , it should be understood that the application scenarios of the embodiments of the present application are not exhaustively listed here.
为了能够在上述种种应用场景中,能够基于用户的实际佩戴情况,检测每个耳筒为佩戴于左耳还是右耳,本申请实施例提供了一种数据处理方法,该数据处理方法为采用声学的原理来自动检测每个耳筒的具体佩戴情况。具体的,请参阅图1,图1为本申请实施例提供的数据处理方法的一种流程示意图。A1、当耳机的两个耳筒被佩戴时,耳机通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值,第一传感器与第二传感器在佩戴时分别对应耳轮(helix)区域与耳甲(concha)区域中的一个;也即当该耳机被佩戴时,若第一传感器与耳轮区域对应,则第二传感器与耳甲区域对应,或者,当该耳机被佩戴时,若第一传感器与耳甲区域对应,则第二传感器与耳轮区域对应。In order to be able to detect whether each earphone is worn on the left ear or the right ear based on the actual wearing situation of the user in the above-mentioned various application scenarios, the embodiment of the present application provides a data processing method. The principle to automatically detect the specific wearing situation of each earphone. Specifically, please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a data processing method provided in an embodiment of the present application. A1. When the two earpieces of the headset are worn, the headset obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor. The first sensor and the second sensor correspond to the helix (helix) respectively when worn. ) region and one of the concha regions; that is, when the headset is worn, if the first sensor corresponds to the helix region, the second sensor corresponds to the concha region, or, when the headset is worn, If the first sensor is associated with the concha region, the second sensor is associated with the helix region.
A2、电子设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳;电子设备可以为耳机,也可以为与耳机通信连接的其他终端设备。A2. The electronic device determines the first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value. The first detection result is used to indicate that each earphone is worn on the left ear or on the The right ear; the electronic device may be an earphone, or other terminal equipment communicatively connected to the earphone.
本申请实施例中,通过上述方案可知,本申请中不需要预先设定每个耳筒的类别,而是在用户佩戴耳筒后,基于用户的实际佩戴情况来确定每个耳筒是佩戴在左耳还是右耳,也即用户不再需要查看耳筒上的标记,以及基于耳筒上的标记佩戴耳机,而是可以随机的佩戴耳机,使用户操作更为简单,有利于提高本方案的用户粘度。In the embodiment of the present application, it can be seen from the above-mentioned solution that it is not necessary to pre-set the category of each earphone in this application, but after the user wears the earphone, it is determined based on the user's actual wearing situation that each earphone is worn on The left ear is still the right ear, that is, the user no longer needs to check the mark on the earphone and wear the earphone based on the mark on the earphone, but can wear the earphone randomly, which makes the user's operation easier and helps to improve the efficiency of this solution. user stickiness.
其中,“与耳轮区域对应”可以为与耳轮区域接触,也可以为悬挂在耳轮区域上方;对 应的,“与耳甲区域对应”可以为与耳甲区域接触,也可以为悬挂在耳甲区域上方。Wherein, "corresponding to the helix region" can be in contact with the helix region, or can be suspended above the helix region; correspondingly, "corresponding to the concha region" can be in contact with the concha region, or can be suspended on the concha region above.
为了更直观地理解本方案,请参阅图2,图2为本申请实施例提供的数据处理方法中耳朵的一种结构示意图。图2分别示出了耳朵的耳轮区域和耳甲区域,应理解,图2中的示例仅为方便理解本方案,不用于限定本方案。In order to understand this solution more intuitively, please refer to FIG. 2 , which is a schematic structural diagram of an ear in the data processing method provided by the embodiment of the present application. Fig. 2 respectively shows the helix region and the concha region of the ear. It should be understood that the example in Fig. 2 is only for the convenience of understanding the solution, and is not used to limit the solution.
针对第一传感器和第二传感器的类型。第一传感器和第二传感器可以采用相同类型的传感器,第一测量值和第二测量值可以均为如下任一种信息:电容值、电阻值、电压值或其他类型的信息等。作为示例,例如第一传感器和第二传感器均可以采用如下任意一种传感器:电容传感器、电阻传感器、电压传感器、光敏传感器、接近传感器、图像传感器或其他类型的传感器等等,此处不做穷举。For the type of the first sensor and the second sensor. The first sensor and the second sensor may be of the same type, and the first measurement value and the second measurement value may be any of the following information: capacitance value, resistance value, voltage value or other types of information. As an example, for example, both the first sensor and the second sensor can adopt any of the following sensors: capacitance sensor, resistance sensor, voltage sensor, photosensitive sensor, proximity sensor, image sensor or other types of sensors, etc., not limited here lift.
进一步地,若第一传感器和第二传感器采用的为电容传感器,则第一测量值和第二测量值可以用于指示用户的耳朵与传感器之间的接触面积。Further, if the first sensor and the second sensor are capacitive sensors, the first measurement value and the second measurement value may be used to indicate the contact area between the user's ear and the sensor.
或者,若第一传感器和第二传感器采用的为电阻传感器,则第一测量值和第二测量值代表的可以为通过电阻传感器采集到的电阻值,该电阻值代表耳朵与传感器之间的压力值或耳朵与传感器之间的接触面积。Alternatively, if the first sensor and the second sensor are resistance sensors, then the first measured value and the second measured value represent the resistance value collected by the resistance sensor, and the resistance value represents the pressure between the ear and the sensor value or the contact area between the ear and the sensor.
或者,若第一传感器和第二传感器采用的为电压传感器,则第一测量值和第二测量值代表的可以为通过电压传感器采集到的电压值,该电压值代表耳朵与传感器之间的压力值或耳朵与传感器之间的接触面积。Alternatively, if the first sensor and the second sensor are voltage sensors, the first measured value and the second measured value represent voltage values collected by the voltage sensor, which represent the pressure between the ear and the sensor value or the contact area between the ear and the sensor.
或者,若第一传感器和第二传感器采用的为光敏传感器,则第一测量值和第二测量值代表的可以为通过光敏传感器采集到的光线强度,该光线强度代表耳朵与传感器之间的接触面积。Alternatively, if the first sensor and the second sensor are photosensitive sensors, the first measured value and the second measured value represent the light intensity collected by the photosensitive sensor, and the light intensity represents the contact between the ear and the sensor. area.
或者,若第一传感器和第二传感器采用的为接近传感器,则第一测量值和第二测量值代表的可以为接近传感器与用户的耳轮区域在目标方向上的距离,或者,为接近传感器与用户的耳甲区域在目标方向上的距离,目标方向与耳朵所在平面垂直。Alternatively, if the first sensor and the second sensor are proximity sensors, the first measured value and the second measured value may represent the distance between the proximity sensor and the user's helix area in the target direction, or the distance between the proximity sensor and the user's helix area. The distance of the user's concha area in the target direction, the target direction is perpendicular to the plane where the ear is located.
或者,若第一传感器和第二传感器采用的为图像传感器,则第一测量值和第二测量值代表的可以为通过图像传感器采集到的用户的耳轮区域或耳甲区域的图像。Alternatively, if the first sensor and the second sensor are image sensors, the first measurement value and the second measurement value may represent images of the user's helix region or concha region collected by the image sensor.
本申请实施例中,提供了第一测量值和第二测量值的多种具体实现方式,提高了本方案的实现灵活性;且第一传感器和第二传感器为相同类型的传感器,有利于降低耳机生成过程中的成本。In the embodiment of the present application, a variety of specific implementations of the first measured value and the second measured value are provided, which improves the implementation flexibility of this solution; and the first sensor and the second sensor are the same type of sensor, which is beneficial to reduce the The cost during headset generation.
针对第一传感器和第二传感器的数量、面积以及形状。第一传感器可以表现为一个大的传感器,也可以表现为由多个小的传感器组成的集群;第二传感器的情况与第一传感器的情况相同,此处不做赘述。可选地,与第一传感器对应的形状和与第二传感器对应的形状可以相同,且,与第一传感器对应的第一面积和与第二传感器对应的第二面积可以相同。For the number, area and shape of the first sensor and the second sensor. The first sensor can be represented as a large sensor, or it can be represented as a cluster composed of multiple small sensors; the situation of the second sensor is the same as that of the first sensor, and will not be repeated here. Optionally, the shape corresponding to the first sensor may be the same as the shape corresponding to the second sensor, and the first area corresponding to the first sensor may be the same as the second area corresponding to the second sensor.
需要说明的是,由于在实际生产过程中,可能无法保证第一传感器和第二传感器的形状完全相同,也无法保证第一传感器和第二传感器的面积完全相同,本申请实施例中的“与第一传感器对应的形状和与第二传感器对应的形状可以相同”指的是“与第一传感器对应的形状和与第二传感器对应的形状之间的相似度高于第一阈值”,作为示例,例如第一阈值的取值可以为90%、93%、95%、98%、99%或其他取值等等。本申请实施例中的“与第一传 感器对应的面积和与第二传感器对应的面积可以相同”指的可以为“与第一传感器对应的第一面积和与第二传感器对应的第二面积之间的差值与第一面积(或第二面积)的比值小于第二阈值”,作为示例,例如第二阈值的取值可以为0.1%、0.3%、0.5%、1%、2%或其他取值等等,此处不做穷举。It should be noted that, in the actual production process, it may not be possible to ensure that the shapes of the first sensor and the second sensor are exactly the same, and it is also impossible to ensure that the areas of the first sensor and the second sensor are completely the same. The shape corresponding to the first sensor and the shape corresponding to the second sensor may be the same" means "the similarity between the shape corresponding to the first sensor and the shape corresponding to the second sensor is higher than the first threshold", as an example For example, the value of the first threshold may be 90%, 93%, 95%, 98%, 99% or other values. "The area corresponding to the first sensor and the area corresponding to the second sensor may be the same" in the embodiment of the present application may mean "the difference between the first area corresponding to the first sensor and the second area corresponding to the second sensor The ratio of the difference between the first area (or the second area) to the first area (or second area) is less than the second threshold", as an example, for example, the value of the second threshold can be 0.1%, 0.3%, 0.5%, 1%, 2% or other Values, etc., are not exhaustive here.
本申请实施例中,与第一传感器对应的形状和与第二传感器对应的形状相同,且与第一传感器对应的面积和与第二传感器对应的面积相同,不仅有利于降低传感器生成过程的成本,且避免了由于第一传感器和第二传感器之间的形状或面积不同所导致的检测结果出现错误,以提高生成的检测结果的准确率。In the embodiment of the present application, the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor, which is not only beneficial to reduce the cost of the sensor generation process , and avoid errors in the detection results caused by the difference in shape or area between the first sensor and the second sensor, so as to improve the accuracy of the generated detection results.
进一步地,若第一传感器和第二传感器均表现为由多个小的传感器组成的集群,则与第一传感器对应的形状指的是第一传感器包括的多个传感器中最外层的传感器的连线,则与第一传感器对应的面积指的是第一传感器包括的多个传感器中最外层的传感器的连线所构成的形状的面积;与第二传感器对应的形状指的是第二传感器包括的多个传感器中最外层的传感器的连线,则与第二传感器对应的面积指的是第二传感器包括的多个传感器中最外层的传感器的连线所构成的形状的面积。Further, if both the first sensor and the second sensor are represented as clusters composed of multiple small sensors, the shape corresponding to the first sensor refers to the shape of the outermost sensor among the multiple sensors included in the first sensor. The area corresponding to the first sensor refers to the area of the shape formed by the connection of the outermost sensor among the multiple sensors included in the first sensor; the shape corresponding to the second sensor refers to the area of the second sensor. The connection line of the outermost sensor among the plurality of sensors included in the sensor, the area corresponding to the second sensor refers to the area of the shape formed by the connection line of the outermost sensor among the plurality of sensors included in the second sensor .
为了更直观地理解本方案,请参阅图3,图3为本申请实施例提供的数据处理方法中第一传感器和第二传感器的形状的一种结构示意图。图3中以第一传感器和第二传感器均表现为一个大的传感器,且配置于同一耳筒中为例,如图3所示,第一传感器和第二传感器的形状相同且面积一致,应理解,图3中的示例仅为方便理解“第一传感器和第二传感器的形状”这一概念,不用于限定本方案。In order to understand this solution more intuitively, please refer to FIG. 3 , which is a schematic structural diagram of the shapes of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application. In Fig. 3, both the first sensor and the second sensor are shown as one large sensor and are arranged in the same ear tube as an example. As shown in Fig. 3, the first sensor and the second sensor have the same shape and the same area. It should be understood that , the example in FIG. 3 is only for the convenience of understanding the concept of "the shape of the first sensor and the second sensor", and is not used to limit this solution.
针对第一传感器和第二传感器在耳筒中的位置。一个耳机包括两个耳筒,两个耳筒中配置有第一传感器和第二传感器,耳机出厂后,第一传感器和第二传感器在耳筒中的位置固定不变,且耳机的两个耳筒的形状对称。在一种实现方式中,第一传感器和第二传感器被配置于不同耳筒的固定位置上。进一步地,在一种情况中,当两个耳筒被佩戴时,与耳轮区域对应的传感器为佩戴于左耳,与耳甲区域对应的传感器为佩戴于右耳。For the position of the first sensor and the second sensor in the earpiece. An earphone includes two earphones, and a first sensor and a second sensor are arranged in the two earphones. After the earphone leaves the factory, the positions of the first sensor and the second sensor in the earphone are fixed, and The shape is symmetrical. In an implementation manner, the first sensor and the second sensor are configured at fixed positions of different earphones. Further, in one case, when two ear tubes are worn, the sensor corresponding to the helix region is worn on the left ear, and the sensor corresponding to the concha region is worn on the right ear.
为了更直观地理解本方案,请参阅图4,图4为本申请实施例提供的数据处理方法中第一传感器和第二传感器的一种位置示意图。当两个耳筒被佩戴时,一组传感器固定的与左耳的耳轮区域对应,另一组传感器固定的与右耳的耳甲区域对应,应理解,图4中的示例仅为方便理解本方案,不用于限定本方案。In order to understand this solution more intuitively, please refer to FIG. 4 , which is a schematic diagram of the positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application. When two earphones are worn, one set of sensors is fixed to correspond to the helix region of the left ear, and the other set of sensors is fixed to correspond to the concha region of the right ear. It should be understood that the example in FIG. The scheme is not used to limit this scheme.
在另一种情况中,当两个耳筒被佩戴时,与耳轮区域对应的传感器为佩戴于右耳,与耳甲区域对应的传感器为佩戴于左耳。为了更直观地理解本方案,请参阅图5,图5为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图。当两个耳筒被佩戴时,一组传感器固定的与左耳的耳甲区域对应,另一组传感器固定的与右耳的耳轮区域对应,应理解,图5中的示例仅为方便理解本方案,不用于限定本方案。In another case, when both earpieces are worn, the sensor corresponding to the helix region is worn on the right ear and the sensor corresponding to the concha region is worn on the left ear. In order to understand this solution more intuitively, please refer to FIG. 5 , which is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application. When two earphones are worn, one set of sensors is fixed to correspond to the concha region of the left ear, and the other set of sensors is fixed to correspond to the helix region of the right ear. It should be understood that the example in FIG. The scheme is not used to limit this scheme.
在另一种实现方式中,第一传感器和第二传感器被配置于同一目标耳筒中,目标耳筒为两个耳筒中的一个;需要说明的是,可以为耳机的两个耳筒中均配置有两组传感器,也可以为耳机的两个耳筒中只有一个耳筒中配置有第一传感器和第二传感器,具体可结合实际产品形态确定。In another implementation, the first sensor and the second sensor are configured in the same target earphone, and the target earphone is one of the two earphones; it should be noted that both earphones may be configured with The two sets of sensors can also be that only one of the two earphones of the earphone is equipped with the first sensor and the second sensor, which can be determined in combination with the actual product form.
进一步地,在一种情况中,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于左耳;若第一传感器与耳甲区域对应且第二传感器与耳轮区域对应,则目标耳筒为佩戴于右耳。Further, in one case, if the first sensor corresponds to the helix region and the second sensor corresponds to the concha region, the target earphone is worn on the left ear; if the first sensor corresponds to the concha region and the second sensor Corresponding to the helix area, the target earpiece is worn on the right ear.
请参阅图6,图6为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图。图6中以两个耳筒中只有一个耳筒中配置有第一传感器和第二传感器为例,如图所示,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于左耳;若第一传感器与耳甲区域对应且第二传感器与耳轮区域对应,则目标耳筒为佩戴于右耳,应理解,图6中的示例仅为方便理解本方案,不用于限定本方案。Please refer to FIG. 6 . FIG. 6 is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application. In Fig. 6, only one of the two earphones is equipped with the first sensor and the second sensor as an example. As shown in the figure, if the first sensor corresponds to the helix area and the second sensor corresponds to the concha area, the target ear The tube is worn on the left ear; if the first sensor corresponds to the concha area and the second sensor corresponds to the helix area, then the target ear tube is worn on the right ear. It should be understood that the example in Figure 6 is only for the convenience of understanding this solution. Not intended to limit this program.
在另一种情况中,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于右耳;若第一传感器与耳甲区域对应且第二传感器与耳轮区域对应,则目标耳筒为佩戴于左耳。In another case, if the first sensor corresponds to the helix region and the second sensor corresponds to the concha region, the target earphone is worn on the right ear; if the first sensor corresponds to the concha region and the second sensor corresponds to the helix If the region corresponds, the target earphone is worn on the left ear.
请参阅图7,图7为本申请实施例提供的数据处理方法中第一传感器和第二传感器的另一种位置示意图。图7中以两个耳筒均配置有两组传感器为例,如图所示,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于左耳;若第一传感器与耳甲区域对应且第二传感器与耳轮区域对应,则目标耳筒为佩戴于右耳,应理解,图7中的示例仅为方便理解本方案,不用于限定本方案。Please refer to FIG. 7 . FIG. 7 is another schematic diagram of positions of the first sensor and the second sensor in the data processing method provided by the embodiment of the present application. In Figure 7, two earphones are equipped with two sets of sensors as an example. As shown in the figure, if the first sensor corresponds to the helix area and the second sensor corresponds to the concha area, the target earphone is worn on the left ear; If the first sensor corresponds to the concha region and the second sensor corresponds to the helix region, then the target earphone is worn on the right ear. It should be understood that the example in FIG. 7 is only for understanding this solution, and is not intended to limit this solution.
可选地,耳机还可以配置有触摸传感器,通过该触摸传感器可以接收用户输入的触摸操作,作为示例,例如用户通过耳机表面输入的点击、双击、滑动或其他类型的触摸操作等等,此处不做穷举。耳机还可以配置有反馈系统,耳机可以通过声音、振动或其他方式为佩戴耳机的用户提供反馈。Optionally, the earphone can also be configured with a touch sensor, through which the touch operation input by the user can be received, as an example, such as a click, double-click, slide or other type of touch operation input by the user through the earphone surface, etc., here Do not exhaust. The headset can also be configured with a feedback system, whereby the headset can provide feedback to the user wearing the headset through sound, vibration or other means.
耳机还可以配置有多种传感器,前述多种传感器包括但不限于运动传感器、光学传感器、电容传感器、电压传感器、阻抗传感器、光敏传感器、接近传感器、图像传感器或其他类型的传感器等等。进一步地,作为示例,例如可以通过耳机中的运动传感器(例如加速计、陀螺仪或其他类型的运动传感器)来检测耳机的位姿;作为另一示例,例如可以通过光学传感器检测到耳机包括的耳筒是否从耳机盒子中取出;作为另一示例,例如可以通过触摸传感器检测手指在耳机表面上的触点等,此处不对多种传感器的用途进行穷举。The earphone can also be configured with various sensors, including but not limited to motion sensors, optical sensors, capacitive sensors, voltage sensors, impedance sensors, photosensitive sensors, proximity sensors, image sensors, or other types of sensors. Further, as an example, for example, a motion sensor (such as an accelerometer, a gyroscope or other types of motion sensors) in the earphone can be used to detect the pose of the earphone; as another example, for example, an optical sensor can be used to detect the Whether the earphone is taken out of the earphone box; as another example, for example, a touch sensor can be used to detect the contact of a finger on the surface of the earphone, etc., and the uses of various sensors are not exhaustively listed here.
在对本申请实施例提供的数据处理方法进行详细介绍之前,先对本申请实施例提供的数据处理系统进行介绍。整个数据处理系统可以包括耳机以及与耳机进行通信连接的电子设备,耳机包括两个耳筒。该电子设备可以具有输入系统、反馈系统、显示器、计算单元、存储单元和通信单元,作为示例,例如该电子设备具体可以表现为手机、平板电脑、智能电视、VR设备或其他形态的电子设备等,此处不做穷举。Before introducing the data processing method provided in the embodiment of the present application in detail, the data processing system provided in the embodiment of the present application is introduced first. The entire data processing system may include an earphone and an electronic device communicatively connected with the earphone, and the earphone includes two earphones. The electronic device may have an input system, a feedback system, a display, a computing unit, a storage unit, and a communication unit. For example, the electronic device may be embodied as a mobile phone, a tablet computer, a smart TV, a VR device, or other forms of electronic devices, etc. , not exhaustive here.
下面开始对本申请实施例提供的数据处理方法的具体实现流程进行描述,具体的,请参阅图8,图8为本申请实施例提供的数据处理方法的一种流程示意图,本申请实施例提供的数据处理方法可以包括:The following begins to describe the specific implementation process of the data processing method provided by the embodiment of the present application. Specifically, please refer to FIG. 8. FIG. 8 is a schematic flow diagram of the data processing method provided by the embodiment of the present application. Data processing methods may include:
801、执行设备获取第一测量值和第二测量值,第一测量值通过第一传感器得到,第二测量值通过第二传感器得到,第一传感器和第二传感器被配置于耳机的两个耳筒中,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个。801. The execution device acquires a first measurement value and a second measurement value. The first measurement value is obtained through a first sensor, and the second measurement value is obtained through a second sensor. The first sensor and the second sensor are configured on the two ears of the earphone In the tube, the first sensor and the second sensor respectively correspond to one of the helix region and the concha region when worn.
本申请实施例中,执行设备可以在确定耳机的两个耳筒均被佩戴后,再开始检测两个耳筒的实际佩戴情况,也即触发开始获取第一测量值和第二测量值。其中,第一测量值通过第一传感器得到,第二测量值通过第二传感器得到,第一传感器和第二传感器被配置于耳机的两个耳筒中,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;进一步地,第一传感器和第二传感器为相同类型的传感器,第一测量值和第二测量值均为如下任一种信息:电容值、电阻值、电压值或其他类型的信息;对于第一传感器和第二传感器的具体表现形式,以及第一测量值和第二测量值所携带的信息类型均可以参阅上述描述,此处不做赘述。In the embodiment of the present application, after determining that both earphones of the earphone are worn, the execution device starts to detect the actual wearing conditions of the two earphones, that is, triggers to start acquiring the first measurement value and the second measurement value. Wherein, the first measurement value is obtained by the first sensor, and the second measurement value is obtained by the second sensor. The first sensor and the second sensor are arranged in the two earpieces of the earphone, and the first sensor and the second sensor are respectively Corresponding to one of the helix area and the concha area; further, the first sensor and the second sensor are the same type of sensor, and the first measurement value and the second measurement value are any of the following information: capacitance value, resistance value, Voltage values or other types of information; for the specific manifestations of the first sensor and the second sensor, and the types of information carried by the first measurement value and the second measurement value, you can refer to the above description, which will not be repeated here.
需要说明的是,本申请实施例中的执行设备均既可以为耳机,或者,也可以为与耳机通信连接的其他电子设备,在后续实施例中不再进行说明。It should be noted that the executing devices in the embodiments of the present application may be earphones, or other electronic devices communicatively connected with the earphones, which will not be described in subsequent embodiments.
进一步地,若执行设备为耳机,则步骤801可以包括:耳机通过第一传感器采集第一测量值,并通过第二传感器采集第二测量值。若执行设备为与耳机通信连接的其他电子设备,则步骤801可以包括:执行设备接收耳机发送的第一测量值和第二测量值。Further, if the execution device is an earphone, step 801 may include: the earphone collects a first measurement value through a first sensor, and collects a second measurement value through a second sensor. If the execution device is another electronic device communicatively connected to the earphone, step 801 may include: the execution device receives the first measurement value and the second measurement value sent by the earphone.
针对耳机的两个耳筒是否均被佩戴的检测过程。在一种实现方式中,若第一传感器和第二传感器被配置于不同的耳筒中,则耳机可以通过第一传感器和第二传感器检测是否有输入信号,在第一传感器和第二传感器均检测到输入信号的情况下,确定耳机的两个耳筒均被佩戴。在另一种实现方式中,若第一传感器和第二传感器被配置于同一耳筒中,且两个耳筒中均配置有两组传感器,则在两个耳筒中的传感器均检测到输入信号的情况下,确定耳机的两个耳筒均被佩戴。应理解,耳机还可以通过其他方式来确定两个耳机是否均被佩戴,具体实现方式可以结合实际产品形态灵活确定,此处不做限定。A detection process for whether both earpieces of the headset are worn. In one implementation, if the first sensor and the second sensor are configured in different earphones, the earphone can detect whether there is an input signal through the first sensor and the second sensor, and the first sensor and the second sensor both detect whether there is an input signal. When the input signal is received, make sure that both earpieces of the headset are worn. In another implementation, if the first sensor and the second sensor are configured in the same earphone, and two sets of sensors are configured in the two earphones, then the sensors in the two earphones both detect the input signal Next, make sure that both earpieces of the headset are worn. It should be understood that the earphones can also determine whether the two earphones are worn in other ways, and the specific implementation manner can be flexibly determined in combination with the actual product form, which is not limited here.
802、执行设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。802. The execution device determines a first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, and the first detection result is used to indicate that each earphone is worn on the left ear or on the earphone. right ear.
本申请实施例中,执行设备在得到第一测量值和第二测量值之后,可以根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。In the embodiment of the present application, after obtaining the first measurement value and the second measurement value, the execution device may determine the first detection result corresponding to the earphone according to the magnitude relationship between the first measurement value and the second measurement value, and the first detection result corresponding to the earphone. A detection result is used to indicate whether each earphone is worn on the left ear or on the right ear.
具体的,在一种实现方式中,第一传感器和第二传感器被配置于两个不同的耳筒中。步骤802中,若第一测量值和第二测量值之间的大小关系满足第一预设条件,则确定第一传感器被佩戴于左耳且第二传感器被佩戴于右耳;若第一测量值和第二测量值之间的大小关系满足第二预设条件,则确定第一传感器被佩戴于右耳且第二传感器被佩戴于左耳,第一预设条件所指示的大小关系和第二预设条件所指示的大小关系相反。Specifically, in an implementation manner, the first sensor and the second sensor are configured in two different earphones. In step 802, if the size relationship between the first measured value and the second measured value satisfies the first preset condition, it is determined that the first sensor is worn on the left ear and the second sensor is worn on the right ear; if the first measured value and the size relationship between the second measurement value satisfies the second preset condition, then it is determined that the first sensor is worn on the right ear and the second sensor is worn on the left ear, the size relationship indicated by the first preset condition and the second The size relationship indicated by the two preset conditions is opposite.
其中,第一预设条件可以为第一测量值大于第二测量值,第二预设条件为第一测量值小于第二测量值;或者,第一预设条件可以为第一测量值小于第二测量值,第二预设条件为第一测量值大于第二测量值。需要说明的是,第一预设条件和第二预设条件的设定需要结合第一传感器和第二传感器所配置的位置、第一测量信息和第二测量信息所代表的信息类型以及第一传感器和第二传感器的类型等因素确定。Wherein, the first preset condition may be that the first measured value is greater than the second measured value, and the second preset condition is that the first measured value is smaller than the second measured value; or, the first preset condition may be that the first measured value is smaller than the second measured value Two measured values, the second preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the first preset condition and the second preset condition needs to combine the positions of the first sensor and the second sensor, the type of information represented by the first measurement information and the second measurement information, and the first Factors such as the type of sensor and the second sensor determine.
进一步地,在一种情况下,第一传感器和第二传感器中与耳轮区域对应的传感器为佩戴于左耳,与耳甲区域对应的传感器为佩戴于右耳。Further, in one case, among the first sensor and the second sensor, the sensor corresponding to the helix region is worn on the left ear, and the sensor corresponding to the concha region is worn on the right ear.
更进一步地,在一种实现方式中,若第一测量值和第二测量值代表的可以为用户的耳朵与传感器之间的接触面积,则由于用户的耳轮区域突出部分较多,耳甲区域突出部分较少,也即当用户佩戴耳机时,用户的耳轮区域与耳筒(也即耳筒上的传感器)之间的接触面积较大,用户的耳甲区域与耳筒(也即耳筒上的传感器)之间的接触面积较小,从而与用户的耳轮区域对应的传感器所采集到的测量值,比与用户的耳甲区域对应的传感器所采集到的测量值大。Furthermore, in an implementation manner, if the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, since the user's helix region protrudes more, the concha region There are fewer protruding parts, that is, when the user wears the earphone, the contact area between the user's helix area and the ear tube (that is, the sensor on the ear tube) is larger, and the user's concha area and the ear tube (that is, the ear tube) The contact area between the sensors above) is smaller, so that the measurements collected by the sensors corresponding to the user's helix region are larger than the measurements collected by the sensors corresponding to the user's concha region.
在另一种实现方式中,第一测量值和第二测量值代表的可以为通过电阻传感器或电压传感器采集到的压力值,则由于用户的耳轮区域比耳甲区域更为突出,也即当用户佩戴耳机时,用户的耳轮区域给耳筒上的传感器施加的压力更大,用户的耳甲区域给耳筒上的传感器施加的压力更小,从而与用户的耳轮区域对应的传感器所采集到的测量值,比与用户的耳甲区域对应的传感器所采集到的测量值大。In another implementation manner, the first measurement value and the second measurement value may represent pressure values collected by a resistance sensor or a voltage sensor. Since the user's helix region is more prominent than the concha region, that is, when When the user wears the headset, the user's helix area exerts more pressure on the sensor on the ear tube, and the user's concha area exerts less pressure on the sensor on the ear tube, so the sensor corresponding to the user's helix area collects The measured value of is larger than the measured value collected by the sensor corresponding to the user's concha region.
则在上述两种实现方式中,第一预设条件为第一测量值大于第二测量值,第二预设条件为第一测量值小于第二测量值,进而执行设备可以根据前述第一预设条件和第二预设条件,确定与耳筒对应的第一检测结果。Then, in the above two implementations, the first preset condition is that the first measured value is greater than the second measured value, and the second preset condition is that the first measured value is smaller than the second measured value, and then the execution device can Set the condition and the second preset condition, and determine the first detection result corresponding to the earphone.
在另一种实现方式中,第一测量值和第二测量值代表的可以为通过光敏传感器采集到的光线强度,由于用户的耳轮区域与耳筒(也即耳筒上的传感器)之间的接触面积较大,用户的耳甲区域与耳筒(也即耳筒上的传感器)之间的接触面积较小,则与用户的耳轮区域对应的传感器所采集到的光线强度会较小,与用户的耳甲区域对应的传感器所采集到的光线强度会较大。In another implementation, the first measurement value and the second measurement value may represent the intensity of light collected by the photosensitive sensor. The contact area is large, and the contact area between the user's concha area and the ear tube (that is, the sensor on the ear tube) is small, and the light intensity collected by the sensor corresponding to the user's helix area will be small, which is different from that of the ear tube. The light intensity collected by the sensor corresponding to the user's concha region will be relatively large.
在另一种实现方式中,第一测量值和第二测量值代表的可以为接近传感器采集到的耳朵与传感器在目标方向上的距离,由于用户的耳轮区域比耳甲区域更为突出,也即当用户佩戴耳机时,用户的耳轮区域与传感器在目标方向上的距离值更小,用户的耳甲区域与传感器在目标方向上的距离值更大。In another implementation, the first measurement value and the second measurement value represent the distance between the ear and the sensor in the target direction collected by the proximity sensor. Since the user's helix area is more prominent than the concha area, That is, when the user wears the earphone, the distance between the user's helix region and the sensor in the target direction is smaller, and the distance between the user's concha region and the sensor in the target direction is larger.
则在上述两种实现方式中,第一预设条件为第一测量值小于第二测量值,第二预设条件为第一测量值大于第二测量值,进而执行设备可以根据前述第一预设条件和第二预设条件,确定与耳筒对应的第一检测结果。Then, in the above two implementations, the first preset condition is that the first measured value is less than the second measured value, and the second preset condition is that the first measured value is greater than the second measured value, and then the execution device can Set the condition and the second preset condition, and determine the first detection result corresponding to the earphone.
在另一种情况中,第一传感器和第二传感器中与耳轮区域对应的传感器为佩戴于右耳,与耳甲区域对应的传感器为佩戴于左耳。In another case, among the first sensor and the second sensor, the sensor corresponding to the helix region is worn on the right ear, and the sensor corresponding to the concha region is worn on the left ear.
进一步地,若第一测量值和第二测量值代表的为用户的耳朵与传感器之间的接触面积,或者,第一测量值和第二测量值代表的为采集到的压力值,则第一预设条件为第一测量值小于第二测量值,第二预设条件为第一测量值大于第二测量值。Further, if the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or the first measurement value and the second measurement value represent the collected pressure value, then the first The preset condition is that the first measured value is smaller than the second measured value, and the second preset condition is that the first measured value is greater than the second measured value.
若第一测量值和第二测量值代表的为采集到的光线强度,或者,第一测量值和第二测量值代表的为耳朵与传感器在目标方向上的距离,则第一预设条件为第一测量值大于第二测量值,第二预设条件为第一测量值小于第二测量值。If the first measured value and the second measured value represent the collected light intensity, or the first measured value and the second measured value represent the distance between the ear and the sensor in the target direction, then the first preset condition is The first measured value is greater than the second measured value, and the second preset condition is that the first measured value is smaller than the second measured value.
本申请实施例中,提供了第一传感器和第二传感器被配置于不同的耳筒中时,确定耳筒的实际佩戴情况的一种具体实现方式,且由于利用的两个传感器分别配置于不同的耳筒中,也即两个耳筒中均配置有传感器,有利于实现两个耳筒的一致化,以降低耳机的制作 成本。In the embodiment of the present application, when the first sensor and the second sensor are configured in different earphones, a specific implementation method of determining the actual wearing condition of the earphone is provided, and since the two sensors used are respectively configured in different earphones Sensors are arranged in the earphones, that is, in both earphones, which is beneficial to realize the uniformity of the two earphones, so as to reduce the production cost of the earphones.
在另一种实现方式中,若第一传感器和第二传感器配置于同一目标耳筒中。步骤802中,若第一测量值和第二测量值之间的大小关系满足第三预设条件,则确定目标耳筒被佩戴于左耳;若第一测量值和第二测量值之间的大小关系满足第四预设条件,则确定目标耳筒被佩戴于右耳,第三预设条件所指示的大小关系和第四预设条件所指示的大小关系相反。In another implementation manner, if the first sensor and the second sensor are configured in the same target earphone. In step 802, if the size relationship between the first measured value and the second measured value satisfies the third preset condition, it is determined that the target earphone is worn on the left ear; if the relationship between the first measured value and the second measured value If the size relationship satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition.
其中,若两个耳筒中仅有一个耳筒中配置有第一传感器和第二传感器,则配置有第一传感器和第二传感器的耳筒就是目标耳筒。若两个耳筒中均配置有两组传感器,则执行设备可以从两个耳筒中选择任意一个耳筒作为目标耳筒,并预先为每组传感器配置有唯一的标识信息,以对同一耳筒中的两组传感器进行区分。Wherein, if only one of the two earphones is configured with the first sensor and the second sensor, the earphone configured with the first sensor and the second sensor is the target earphone. If two sets of sensors are configured in the two earphones, the execution device can select any one of the two earphones as the target earphone, and pre-configure each set of sensors with unique identification information to Two sets of sensors are distinguished.
第三预设条件可以为第一测量值大于第二测量值,第四预设条件为第一测量值小于第二测量值;或者,第三预设条件可以为第一测量值小于第二测量值,第四预设条件为第一测量值大于第二测量值。需要说明的是,第三预设条件和第四预设条件的设定需要结合第一传感器和第二传感器在目标耳筒中的位置、第一测量信息和第二测量信息所代表的信息类型以及第一传感器和第二传感器的类型等因素确定。The third preset condition can be that the first measured value is greater than the second measured value, and the fourth preset condition can be that the first measured value is less than the second measured value; or, the third preset condition can be that the first measured value is smaller than the second measured value value, and the fourth preset condition is that the first measured value is greater than the second measured value. It should be noted that the setting of the third preset condition and the fourth preset condition needs to be combined with the positions of the first sensor and the second sensor in the target earphone, the type of information represented by the first measurement information and the second measurement information, and The factors such as the types of the first sensor and the second sensor are determined.
进一步地,在一种情况下,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于左耳。Further, in one case, if the first sensor corresponds to the helix region and the second sensor corresponds to the concha region, then the target earphone is worn on the left ear.
更进一步地,在一种实现方式中,若第一测量值和第二测量值代表的为用户的耳朵与传感器之间的接触面积,或者,若第一测量值和第二测量值代表的可以为通过电阻传感器或电压传感器采集到的压力值。则若第一测量值大于第二测量值,则代表第一传感器与用户的耳轮区域对应且第二传感器与耳甲区域对应;若第二测量值小于第一测量值,则代表第一传感器与耳甲区域对应且所述第二传感器与耳轮区域对应。也即在本实现方式中,第三预设条件为第一测量值大于第二测量值,第四预设条件为第二测量值小于第一测量值。Furthermore, in an implementation manner, if the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or if the first measurement value and the second measurement value represent the is the pressure value collected by the resistance sensor or voltage sensor. Then if the first measured value is greater than the second measured value, it means that the first sensor corresponds to the user's helix region and the second sensor corresponds to the concha region; if the second measured value is smaller than the first measured value, it means that the first sensor corresponds to The concha region corresponds and the second sensor corresponds to the helix region. That is, in this implementation manner, the third preset condition is that the first measured value is greater than the second measured value, and the fourth preset condition is that the second measured value is smaller than the first measured value.
在另一种实现方式中,若第一测量值和第二测量值代表的为通过光敏传感器采集到的光线强度,或者,第一测量值和第二测量值代表的为接近传感器采集到的耳朵与传感器在目标方向上的距离。则若第一测量值大于第二测量值,则代表第一传感器与耳甲区域对应且所述第二传感器与耳轮区域对应;若第二测量值大于第一测量值,则代表第一传感器与用户的耳轮区域对应且第二传感器与耳甲区域对应。也即在本实现方式中,第三预设条件为第一测量值小于第二测量值,第四预设条件为第二测量值大于第一测量值。In another implementation, if the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the ear light intensity collected by the proximity sensor The distance from the sensor in the direction of the target. Then if the first measured value is greater than the second measured value, it means that the first sensor corresponds to the concha region and the second sensor corresponds to the helix region; if the second measured value is greater than the first measured value, it means that the first sensor corresponds to the helix region; The user's helix region corresponds and the second sensor corresponds to the concha region. That is, in this implementation manner, the third preset condition is that the first measured value is smaller than the second measured value, and the fourth preset condition is that the second measured value is greater than the first measured value.
在另一种情况下,若第一传感器与耳轮区域对应且第二传感器与耳甲区域对应,则目标耳筒为佩戴于右耳。In another case, if the first sensor corresponds to the helix region and the second sensor corresponds to the concha region, then the target earpiece is worn on the right ear.
更进一步地,在一种实现方式中,若第一测量值和第二测量值代表的为用户的耳朵与传感器之间的接触面积,或者,若第一测量值和第二测量值代表的可以为通过电阻传感器或电压传感器采集到的压力值。在本实现方式中,第三预设条件为第一测量值小于第二测量值,第四预设条件为第二测量值大于第一测量值。Furthermore, in an implementation manner, if the first measurement value and the second measurement value represent the contact area between the user's ear and the sensor, or if the first measurement value and the second measurement value represent the is the pressure value collected by the resistance sensor or voltage sensor. In this implementation manner, the third preset condition is that the first measured value is smaller than the second measured value, and the fourth preset condition is that the second measured value is greater than the first measured value.
在另一种实现方式中,若第一测量值和第二测量值代表的为通过光敏传感器采集到的光线强度,或者,第一测量值和第二测量值代表的为接近传感器采集到的耳朵与传感器在目标方向上的距离。在本实现方式中,第三预设条件为第一测量值大于第二测量值,第四 预设条件为第二测量值小于第一测量值。In another implementation, if the first measurement value and the second measurement value represent the light intensity collected by the photosensitive sensor, or the first measurement value and the second measurement value represent the ear light intensity collected by the proximity sensor The distance from the sensor in the direction of the target. In this implementation, the third preset condition is that the first measured value is greater than the second measured value, and the fourth preset condition is that the second measured value is smaller than the first measured value.
本申请实施例中,提供了第一传感器和第二传感器被配置于同一耳筒中时,确定耳筒的实际佩戴情况的另一种具体实现方式,提高了本方案的实现灵活性。In the embodiment of the present application, when the first sensor and the second sensor are configured in the same earphone, another specific implementation manner is provided to determine the actual wearing condition of the earphone, which improves the implementation flexibility of the solution.
可选地,执行设备在得到第一测量值和第二测量值之后,若第一传感器和第二传感器被配置于耳机的两个不同的耳筒中,第一传感器被配置于第一耳筒中,第二传感器被配置于第二耳筒中,则执行设备还可以根据第一测量值确定与第一耳筒对应的第一佩戴信息,第一佩戴信息指示第一耳筒的佩戴松紧度;根据第二测量值确定与第二耳筒对应的第二佩戴信息,第二佩戴信息指示第二耳筒的佩戴松紧度。Optionally, after the execution device obtains the first measurement value and the second measurement value, if the first sensor and the second sensor are configured in two different earphones of the headset, and the first sensor is configured in the first earphone, The second sensor is configured in the second earphone, and the executing device may also determine first wearing information corresponding to the first earphone according to the first measured value, the first wearing information indicating the wearing tightness of the first earphone; according to the first measurement value The second measurement value determines second wearing information corresponding to the second earphone, and the second wearing information indicates the wearing tightness of the second earphone.
进一步地,执行设备上可以配置有第一预设值和第二预设值,执行设备通过对比第一测量值和第一预设值之间的大小关系,得到该第一佩戴信息;通过对比第二测量值和第二预设值之间的大小关系,得到该第二佩戴信息。Further, the execution device may be configured with a first preset value and a second preset value, and the execution device obtains the first wearing information by comparing the size relationship between the first measurement value and the first preset value; The magnitude relationship between the second measured value and the second preset value is used to obtain the second wearing information.
更进一步地,若第一测量值和第二测量值代表的为用户的耳朵与传感器之间的接触面积,或者,若第一测量值和第二测量值代表的可以为通过电阻传感器或电压传感器采集到的压力值。则若第一测量值大于第一预设值,则得到的第一佩戴信息指示第一耳筒为“戴紧”状态;若第一测量值小于第一预设值,则可以得到的第一佩戴信息指示第一耳筒为“戴松”状态。同样的,若第二测量值大于第二预设值,则得到的第二佩戴信息指示第二耳筒为“戴紧”状态;若第二测量值小于第二预设值,则可以得到的第二佩戴信息指示第二耳筒为“戴松”状态。Furthermore, if the first measured value and the second measured value represent the contact area between the user's ear and the sensor, or if the first measured value and the second measured value represent the contact area between the user's ear and the sensor, The collected pressure value. Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in a "tight" state; if the first measurement value is smaller than the first preset value, the obtained first The wearing information indicates that the first earphone is in the "wear loose" state. Similarly, if the second measured value is greater than the second preset value, the obtained second wearing information indicates that the second earphone is in a "tight" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "loosely worn" state.
若第一测量值和第二测量值代表的为通过光敏传感器采集到的光线强度,或者,第一测量值和第二测量值代表的为接近传感器采集到的耳朵与传感器在目标方向上的距离。则若第一测量值大于第一预设值,则得到的第一佩戴信息指示第一耳筒为“戴松”状态;若第一测量值小于第一预设值,则可以得到的第一佩戴信息指示第一耳筒为“戴紧”状态。同样的,若第二测量值大于第二预设值,则得到的第二佩戴信息指示第二耳筒为“戴松”状态;若第二测量值小于第二预设值,则可以得到的第二佩戴信息指示第二耳筒为“戴紧”状态。If the first measured value and the second measured value represent the light intensity collected by the photosensitive sensor, or the first measured value and the second measured value represent the distance between the ear and the sensor collected by the proximity sensor in the target direction . Then if the first measurement value is greater than the first preset value, the obtained first wearing information indicates that the first earphone is in the "wear loose" state; if the first measurement value is less than the first preset value, the obtained first The wearing information indicates that the first earphone is in a "tightly worn" state. Similarly, if the second measured value is greater than the second preset value, the obtained second wearing information indicates that the second earphone is in the "wear loose" state; if the second measured value is smaller than the second preset value, the obtained The second wearing information indicates that the second earphone is in a "tightly worn" state.
本申请实施例中,不仅可以直接测量每个耳筒的实际佩戴情况,而且可以测量耳筒的佩戴松紧度,也即能够得到耳筒更多的佩戴信息,以给用户提供更多的服务,有利于提高本方案的用户粘度。In the embodiment of the present application, not only the actual wearing condition of each earphone can be directly measured, but also the wearing tightness of the earphone can be measured, that is, more wearing information of the earphone can be obtained to provide users with more services. It is beneficial to increase the user viscosity of this program.
803、执行设备获取与耳筒对应的第二检测结果,第二检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳,第二检测结果为对通过耳筒的佩戴情况进行再次检测后得到。803. The execution device acquires a second detection result corresponding to the earphones, the second detection result is used to indicate whether each earphone is worn on the left ear or on the right ear, and the second detection result is to check the wearing condition of the earphones. Obtained after retesting.
本申请的一些实施例中,执行设备还可以对每个耳筒的佩戴情况进行二次检测,以得到与耳筒对应的第二检测结果,第二检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳,对于检测的具体实现方式可参阅步骤801和802中的描述,此处不做赘述。In some embodiments of the present application, the execution device may also perform a secondary detection on the wearing condition of each earphone to obtain a second detection result corresponding to the earphone, and the second detection result is used to indicate that each earphone is not worn. Wearing on the left ear or on the right ear, for the specific implementation manner of the detection, please refer to the description in steps 801 and 802, which will not be repeated here.
需要说明的是,执行设备还可以采用其他方式对耳筒的佩戴情况进行检测,也即步骤803生成第二检测结果的方式,与步骤801和802中生成第一检测结果的方式可以不同,具体实现方式可以参阅后续实施例的描述,此处不做赘述。It should be noted that the execution device may also use other methods to detect the wearing condition of the earmuffs, that is, the method of generating the second detection result in step 803 may be different from the method of generating the first detection result in steps 801 and 802, specifically For the implementation manner, reference may be made to the description of the subsequent embodiments, and details are not repeated here.
804、执行设备判断第一检测结果和第二检测结果是否一致,若不一致,则进入步骤 805;若一致,则进入步骤808。804. The executing device judges whether the first detection result is consistent with the second detection result, and if not, proceeds to step 805; if consistent, proceeds to step 808.
805、执行设备判断待播放音频的类型是否属于预设类型,若待播放音频的类型属于预设类型,则进入步骤806或步骤807;若待播放音频的类型不属于预设类型,则进入步骤808。805. The execution device judges whether the type of the audio to be played belongs to the preset type, and if the type of the audio to be played belongs to the preset type, proceed to step 806 or step 807; if the type of the audio to be played does not belong to the preset type, proceed to step 805. 808.
本申请实施例中,步骤804和805为可选步骤,若执行步骤804和805,则在通过步骤805确定第一检测结果和第二检测结果不一致的情况下,执行设备还可以获取待播放音频的类型,待播放音频为需要通过耳筒播放的音频,并判断待播放音频的类型是否属于预设类型,若待播放音频的类型属于预设类型,则进入步骤806。In the embodiment of the present application, steps 804 and 805 are optional steps. If steps 804 and 805 are performed, the execution device can also obtain the audio to be played if it is determined through step 805 that the first detection result is inconsistent with the second detection result. The type of the audio to be played is the audio that needs to be played through the earphone, and it is judged whether the type of the audio to be played belongs to the preset type. If the type of the audio to be played belongs to the preset type, go to step 806.
若不执行步骤804和805,则在执行完步骤803后也可以直接进入步骤805,也即执行设备在通过步骤803获取到与每个耳筒对应的第一检测结果后,可以直接判断待播放音频的类型是否属于预设类型,若待播放音频的类型属于预设类型,则进入步骤807。If steps 804 and 805 are not executed, then step 805 can also be directly entered after step 803 is executed, that is, after the execution device obtains the first detection result corresponding to each earphone through step 803, it can directly determine the Whether the type of the audio belongs to the preset type, if the type of the audio to be played belongs to the preset type, go to step 807.
其中,预设类型包括以下中的任一种或多种的组合:立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频、携带有方向信息的音频或其他左右声道有区别的音频等等,对于前述音频的进一步理解可参阅上述对应用场景中的举例,此处不再进一步介绍。Wherein, the preset type includes any one or a combination of multiple of the following: stereo audio, audio from video applications, audio from game applications, audio with direction information or other left and right channels Distinguished audio, etc. For a further understanding of the aforementioned audio, please refer to the examples in the above-mentioned application scenarios, which will not be further introduced here.
可选地,预设类型可以不包括以下中的任一种或多种的组合:无音频输出、被标记为单声道的音频、语音通话、被标记为立体声但左右声道没有区别的音频或其他左右声道没有区别的音频等等,此处不做穷举。进一步地,针对“被标记为立体声但左右声道没有区别的音频”,执行设备需要从被标记为立体声的音频中分别截取两个声道的音频来比较是否一致,若一致,则证明前述音频虽然被标记为立体声但左右声道没有区别。Optionally, the preset type may not include any one or a combination of multiple of the following: no audio output, audio marked as mono, voice call, audio marked as stereo with no distinction between left and right channels Or other audio with no difference between left and right channels, etc., not exhaustive here. Furthermore, for "audio marked as stereo but with no difference between the left and right channels", the execution device needs to intercept the audio of the two channels from the audio marked as stereo to compare whether they are consistent, and if they are consistent, prove that the aforementioned audio Although labeled as stereo there is no difference between the left and right channels.
806、执行设备输出目标提示信息,目标提示信息用于询问用户是否对耳筒的类别进行矫正,耳筒的类别为耳筒佩戴于左耳或右耳。806. The execution device outputs target prompt information, where the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
本申请实施例中,步骤805为可选步骤,若执行步骤805,则在执行设备确定第一检测结果与第二检测结果不一致,且待播放音频的类型属于预设类型的情况下进入步骤806,也即执行设备可以输出目标提示信息。其中,目标提示信息用于询问用户是否对耳筒的类别进行矫正,耳筒的类别为耳筒佩戴于左耳或右耳。“对耳筒的类别进行矫正”指的是将被确定为佩戴于左耳的耳筒的类别更改为被确定为佩戴于右耳,将被确定为佩戴于右耳的耳筒的类别更改为被确定为佩戴于左耳。In the embodiment of the present application, step 805 is an optional step. If step 805 is executed, the execution device determines that the first detection result is inconsistent with the second detection result, and the type of audio to be played belongs to the preset type and enters step 806 , that is, the execution device can output target prompt information. Wherein, the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear. "Correcting the category of earphones" means changing the category of earphones determined to be worn on the left ear to those determined to be worn on the right ear, and changing the category of Determined to be worn on the left ear.
若不执行步骤805,则可以在执行设备确定第一检测结果与第二检测结果不一致的情况下直接进入步骤806,也即执行设备可以输出目标提示信息。If step 805 is not performed, step 806 may be directly entered when the execution device determines that the first detection result is inconsistent with the second detection result, that is, the execution device may output target prompt information.
具体的,执行设备可以通过文本框、声音或其他形式等输出目标提示信息,作为示例,例如当执行设备上正播放有视频,执行设备确定第二检测结果与第一检测结果不一致,则可以通过文本框输出目标提示信息。作为示例,例如目标提示信息中的内容具体可以为“请问是否切换耳机的左右声道”、“耳机的左右声道好像弄反了,是否切换”等,以询问用户是否对耳筒的类别进行矫正,此处不对目标提示信息的具体内容进行穷举。Specifically, the execution device may output target prompt information through a text box, sound, or other forms. For example, when a video is being played on the execution device and the execution device determines that the second detection result is inconsistent with the first detection result, it may pass The text box outputs target prompt information. As an example, for example, the content in the target prompt information can specifically be "whether to switch the left and right audio channels of the earphones", "the left and right audio channels of the earphones seem to be reversed, do you want to switch", etc., to ask the user whether to check the type of the earphones. Correction, the specific content of the target prompt information is not exhaustive here.
为更直观地理解本方案,请参阅图9,图9为本申请实施例提供的数据处理方法中输出目标提示信息的一种界面示意图。图9中以通过文本框的形式输出目标提示信息为例, 应理解,图9中的示例仅为方便理解本方案,不用于限定本方案。For a more intuitive understanding of this solution, please refer to FIG. 9 , which is a schematic diagram of an interface for outputting target prompt information in the data processing method provided by the embodiment of the present application. In FIG. 9 , outputting target prompt information in the form of a text box is taken as an example. It should be understood that the example in FIG. 9 is only for the convenience of understanding the solution, and is not used to limit the solution.
本申请实施例中,通过耳筒进行再次检测,得到耳筒所对应的第二检测结果,在第二检测结果与第一检测结果不一致的情况下,会再次判断待播放音频的类型属于预设类型,只有在待播放音频的类型属于预设类型的情况下,才会输出目标提示信息以提示用户对耳筒的类别进行矫正。通过前述方式,能够提高最终确定的每个耳筒的佩戴情况的准确性;且只有在待播放音频的类型属于预设类型的情况,才会由用户对检测结果进行校正,以减少对用户不必要的打扰,有利于提高本方案的用户粘度。In the embodiment of the present application, the earphone is used for re-detection to obtain the second detection result corresponding to the earphone. If the second detection result is inconsistent with the first detection result, it will be judged again that the type of audio to be played belongs to the preset Type, only when the type of the audio to be played belongs to the preset type, the target prompt information will be output to prompt the user to correct the type of the earphone. Through the foregoing method, the accuracy of the final determination of the wearing condition of each earphone can be improved; and only when the type of audio to be played belongs to the preset type, the user will correct the detection result, so as to reduce the inconvenience to the user. Necessary interruptions will help increase the user viscosity of this program.
本申请实施例中,提供了需要用户进行矫正的预设类型的具体几种类型,提高了本方案的实现灵活性,扩展了本方案的应用场景;此外,由于对于立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频和携带有方向信息的音频这几种类型的音频,若执行设备确定的每个耳筒的佩戴情况与用户的实际佩戴情况不一致,往往会非常影响用户体验,例如在待播放音频为来源于视频类或游戏类或游戏类应用程序的音频的情况下,若确定的每个耳筒的佩戴情况与用户的实际佩戴情况不一致,则会导致用户看到的画面与用户听到的声音无法正确匹配;再例如在待播放音频为携带有方向信息的音频的情况下,若确定的每个耳筒的佩戴情况与用户的实际佩戴情况不一致,则会导致待播放音频的播放方向与待播放音频中的内容无法正确匹配等,在待播放音频为预设音频的情况下,都会给用户造成很严重的混乱,从而在这几种情况下,会更加需要保证确定的每个耳筒的佩戴情况与用户的实际佩戴情况的一致性,以给用户提供良好的使用体验。In the embodiment of this application, several specific types of preset types that need to be corrected by the user are provided, which improves the implementation flexibility of this solution and expands the application scenarios of this solution; For audio types such as application audio, audio from game applications, and audio with directional information, if the wearing condition of each earphone determined by the execution device is inconsistent with the actual wearing condition of the user, it will often be very difficult. Affect the user experience, for example, if the audio to be played is audio from video or games or game applications, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, it will cause the user The picture seen cannot be correctly matched with the sound heard by the user; for example, if the audio to be played is audio with directional information, if the determined wearing condition of each earphone is inconsistent with the actual wearing condition of the user, then It will cause the playback direction of the audio to be played and the content of the audio to be played to be incorrectly matched. When the audio to be played is the preset audio, it will cause serious confusion to the user. In these cases, the It is more necessary to ensure that the determined wearing condition of each earphone is consistent with the user's actual wearing condition, so as to provide the user with a good use experience.
807、执行设备通过耳筒发出提示音,提示音用于对耳筒所对应的检测结果的正确性进行验证。807. The execution device sends out a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the detection result corresponding to the earphone.
本申请实施例中,执行设备还可以通过两个耳筒中的至少一个耳筒发出提示音,提示音用于对耳筒所对应的第一检测结果/第二检测结果的正确性进行验证,若发现耳筒所对应的第一检测结果/第二检测结果是错误的,则用户可以对耳筒的类别进行校正,也即将被确定为佩戴于左耳的耳筒更改为被确定为佩戴于右耳,将被确定为佩戴于右耳的耳筒更改为被确定为佩戴于左耳。In the embodiment of the present application, the execution device may also emit a prompt sound through at least one of the two earphones, and the prompt sound is used to verify the correctness of the first detection result/second detection result corresponding to the earphone. If it is found that the first detection result/second detection result corresponding to the earphone is wrong, the user can correct the category of the earphone, that is, change the earphone that is determined to be worn on the left ear to be determined to be worn on the right ear. ear, change the earphone that is determined to be worn on the right ear to be determined to be worn on the left ear.
针对通过耳筒发出提示音的具体实现方式。步骤807可以包括:执行设备通过佩戴于第一方向上的耳筒发出第一提示音,通过佩戴于第二方向上的耳筒发出第二提示音。Aiming at the specific implementation of sending out the prompt sound through the earphone. Step 807 may include: the execution device emits a first prompt sound through an earphone worn in a first direction, and emits a second prompt sound through an earphone worn in a second direction.
其中,第一方向为左耳,第二方向为右耳;或者,第一方向为右耳,第二方向为左耳。Wherein, the first direction is the left ear, and the second direction is the right ear; or, the first direction is the right ear, and the second direction is the left ear.
第一提示音和第二提示音可以均为单音音符;也可以为第一提示音和第二提示音均为由多个音符组成的和弦音;也可以为第一提示音为单音音符,第二提示音为由多个音符组成的和弦音。进一步地,第一提示音和第二提示音的音高、音色等方面可以一致,也可以不同,对于第一提示音和第二提示音的设置可结合实际情况灵活确定,此处不做限定。The first prompt tone and the second prompt tone can both be monophonic notes; it can also be that both the first prompt tone and the second prompt tone are chord sounds composed of multiple notes; it can also be that the first prompt tone is a monophonic note , the second prompt tone is a chord tone composed of multiple notes. Further, the pitch and timbre of the first prompt sound and the second prompt sound can be consistent or different, and the setting of the first prompt sound and the second prompt sound can be flexibly determined in combination with the actual situation, and there is no limitation here .
具体的,若执行设备为与耳机连接的执行设备,则步骤807可以包括:执行设备向至少一个耳筒发出第三指令,第三指令用于指示耳筒发出提示音。若执行设备为耳机,则步骤807可以包括:耳机通过至少一个耳筒发出提示音。Specifically, if the execution device is an execution device connected to an earphone, step 807 may include: the execution device sends a third instruction to at least one earphone, and the third instruction is used to instruct the earphone to emit a prompt sound. If the execution device is an earphone, step 807 may include: the earphone emits a prompt sound through at least one earphone.
更具体的,在一种实现方式中,执行设备可以为保持佩戴于第二方向上的耳筒不发出声音,先通过佩戴于第一方向上的耳筒发出第一提示音;然后保持佩戴于第一方向上的耳 筒不发出声音,通过佩戴于第二方向上的耳筒发出第二提示音。More specifically, in an implementation manner, in order to keep the earphones worn in the second direction from making no sound, the execution device first emits the first prompt sound through the earphones worn in the first direction; then keep wearing the earphones in the The earphones in the first direction make no sound, and the earphones worn in the second direction emit a second prompt sound.
在另一种实现方式中,执行设备可以同时通过佩戴于第一方向上的耳筒和佩戴于第二方向上的耳筒发出声音,但第一提示音的音量要远高于第二提示音的音量;然后同时通过佩戴于第一方向上的耳筒和佩戴于第二方向上的耳筒发出声音,但第二提示音的音量要远高于第一提示音的音量。In another implementation, the executive device can emit sound through the earphone worn in the first direction and the earphone worn in the second direction at the same time, but the volume of the first prompt sound is much higher than that of the second prompt sound Then the sound is emitted through the earphone worn in the first direction and the earphone worn in the second direction at the same time, but the volume of the second prompt sound is much higher than the volume of the first prompt sound.
可选地,步骤807可以包括:执行设备通过佩戴于第一方向上的耳筒发出第一提示音,通过第一展示界面输出第一提示信息,第一提示信息用于指示第一方向为左耳还是右耳;在通过佩戴于第二方向上的耳筒发出第二提示音的同时,通过第一展示界面输出第二提示信息,第二提示信息用于指示第二方向为左耳还是右耳。Optionally, step 807 may include: the execution device emits a first prompt sound through an earphone worn in the first direction, and outputs first prompt information through a first display interface, the first prompt information is used to indicate that the first direction is left ear or the right ear; while the second prompt sound is issued through the earpiece worn in the second direction, the second prompt information is output through the first display interface, and the second prompt information is used to indicate whether the second direction is the left ear or the right ear Ear.
本申请实施例中,用户可以直接结合通过展示界面示出的提示信息和听到的提示音,来确定执行设备检测的每个耳筒的佩戴情况(也即每个耳筒所对应的检测结果)是否正确,降低了每个耳筒所对应的检测结果的验证过程的难度,不增加用户额外的认知负担,方便用户养成新的使用习惯,有利于提高本方案的用户粘度。In this embodiment of the application, the user can directly combine the prompt information displayed on the display interface and the prompt sound heard to determine the wearing status of each earphone that performs device detection (that is, the detection result corresponding to each earphone) ) is correct, which reduces the difficulty of the verification process of the test results corresponding to each earphone, does not increase the user's additional cognitive burden, facilitates the user to develop new usage habits, and is conducive to improving the user viscosity of this solution.
为更直观地理解本方案,请参阅图10,图10为本申请实施例提供的数据处理方法中对耳筒的检测结果进行验证的一种界面示意图。图10中以对耳筒的第一检测结果进行验证,且以第一方向为左耳,第二方向为右耳为例,如图10所示,在t1时刻,执行设备通过佩戴于第一方向上的耳筒发出第一提示音,且不通过佩戴于第二方向上的耳筒发出声音;与此同时,执行设备通过第一展示界面输出第一提示信息,第一提示信息用于提示用户当前发出第一提示音的为被确定为佩戴于左耳上的耳筒。For a more intuitive understanding of this solution, please refer to FIG. 10 , which is a schematic diagram of an interface for verifying the detection results of earphones in the data processing method provided by the embodiment of the present application. In Fig. 10, the first detection result of the ear tube is verified, and the first direction is the left ear, and the second direction is the right ear as an example. As shown in Fig. 10, at time t1, the execution device is The earphones in one direction emit the first prompt sound, and the earphones worn in the second direction do not emit sound; at the same time, the execution device outputs the first prompt information through the first display interface, and the first prompt information is used to prompt The user currently sends out the first prompt sound is determined to be worn on the earphone on the left ear.
在t2时刻,执行设备通过佩戴于第二方向上的耳筒发出第二提示音,且不通过佩戴于第一方向上的耳筒发出声音;与此同时,执行设备通过第一展示界面输出第二提示信息,第二提示信息用于提示用户当前发出第二提示音的为被确定为佩戴于右耳上的耳筒。应理解,图10中的示例仅为方便理解本方案,不用于限定本方案。At time t2, the execution device emits the second prompt sound through the earphone worn in the second direction, and does not emit a sound through the earphone worn in the first direction; at the same time, the execution device outputs the second prompt sound through the first display interface. Two prompt information, the second prompt information is used to remind the user that the earphone that is currently emitting the second prompt sound is determined to be worn on the right ear. It should be understood that the example in FIG. 10 is only for facilitating understanding of this solution, and is not used to limit this solution.
进一步可选地,执行设备还可以通过第一展示界面展示有第一图标,通过第一图标获取用户输入的第一操作,响应于获取到的第一操作,触发对耳筒所对应的类别进行矫正。Further optionally, the execution device may also display a first icon through the first display interface, obtain the first operation input by the user through the first icon, and trigger the processing of the category corresponding to the earphone in response to the obtained first operation. correction.
为更直观地理解本方案,请参阅图11,图11为本申请实施例提供的数据处理方法中对耳筒的检测结果进行验证的一种界面示意图。其中,B1指向的图标为第一图标,用户在对耳筒的检测结果进行验证的过程中可以随时通过第一图标输入第一操作,以触发对耳筒的类别进行矫正,应理解,图11中的示例仅为方便理解本方案,不用于限定本方案。For a more intuitive understanding of this solution, please refer to FIG. 11 , which is a schematic diagram of an interface for verifying the detection results of earphones in the data processing method provided by the embodiment of the present application. Among them, the icon pointed to by B1 is the first icon, and the user can input the first operation through the first icon at any time during the process of verifying the detection result of the earphone to trigger the correction of the category of the earphone. It should be understood that Fig. 11 The examples in this document are only for the convenience of understanding the solution, and are not intended to limit the solution.
在另一种实现方式中,两个耳筒包括佩戴于第一方向上的耳筒和佩戴于第二方向上的耳筒,步骤807可以包括:执行设备从佩戴于第一方向上的耳筒和佩戴于第二方向上的耳筒中获取被确定为佩戴于预设方向上的耳筒,并仅通过被确定为佩戴于预设方向上的耳筒发出提示音。预设方向可以为左耳,也可以为右耳。In another implementation manner, the two earphones include an earphone worn in the first direction and an earphone worn in the second direction, and step 807 may include: executing the device from the earphone worn in the first direction The earphones determined to be worn in the preset direction are acquired from the earphones worn in the second direction, and only the earphones determined to be worn in the preset direction emit a prompt sound. The preset direction can be left ear or right ear.
本申请实施例中,仅在预设方向(也即左耳或者右耳上)发出提示音,也即若仅通过被确定为佩戴于左耳上的耳筒发出提示音,用户需要判断发出提示音的耳筒是否被佩戴于左耳上;或者仅通过被确定为佩戴于右耳上的耳筒发出提示音,用户需要判断发出提示音的耳筒是否被佩戴于右耳上,提供了一种新的耳筒的检测结果的验证方式,提高了本方案 的实现灵活性。In the embodiment of the present application, the prompt sound is only issued in the preset direction (that is, on the left ear or the right ear), that is, if the prompt sound is only issued through the earpiece that is determined to be worn on the left ear, the user needs to judge the prompt Whether the earphone that sounds the sound is worn on the left ear; or only the earphone that is determined to be worn on the right ear emits the prompt sound. The user needs to determine whether the earphone that emits the prompt sound is worn on the right ear. A new verification method for the test result of the earphone improves the implementation flexibility of this solution.
针对步骤807的触发时机。在一种实现方式中,可以为通过步骤803进入步骤807,也即执行设备在执行完步骤803后可以直接进入步骤807,以通过步骤807触发由用户对通过步骤803生成的第一检测结果进行验证。Trigger timing for step 807. In one implementation, step 803 can be used to enter step 807, that is, the execution device can directly enter step 807 after executing step 803, so as to trigger the user to carry out the first detection result generated by step 803 through step 807. verify.
可选地,也可以为执行设备在执行完步骤803后,触发通过第二展示界面输出第一指示信息,第一指示信息用于告知用户执行设备已经完成了对每个耳筒的佩戴状况的检测操作。在第二展示界面上还可以示出第二图标,用户可以通过该第二图标输入第二操作,执行设备响应于获取到的第二操作,触发执行步骤807。作为示例,例如第二操作可以表现为对第二图标的点击、拖拽或其他操作等,此处不做穷举。Optionally, after executing step 803, the execution device may trigger the output of the first indication information through the second display interface, the first indication information is used to inform the user that the execution device has completed the inspection of the wearing status of each earphone. Detect operation. A second icon may also be displayed on the second display interface, through which the user may input a second operation, and the execution device triggers the execution of step 807 in response to the acquired second operation. As an example, for example, the second operation may be expressed as clicking, dragging, or other operations on the second icon, which are not exhaustive here.
为更直观地理解本方案,请参阅图12,图12为本申请实施例提供的数据处理方法中触发对第一检测结果进行验证的一种界面示意图。图12中以第二展示界面为锁屏界面为例,当执行设备执行完步骤803后,也即在执行设备生成每个耳筒所对应的第一检测结果后,可以采用弹框的形式输出第一指示信息。C1指向的图标代表第二图标,用户可以通过第二图标输入第二操作,执行设备响应于获取到的第二操作,触发执行步骤807,应理解,图12中的示例仅为方便理解本方案,不用于限定本方案。For a more intuitive understanding of this solution, please refer to FIG. 12 , which is a schematic diagram of an interface that triggers verification of the first detection result in the data processing method provided by the embodiment of the present application. In Figure 12, the second display interface is taken as an example of the lock screen interface. After the execution device executes step 803, that is, after the execution device generates the first detection result corresponding to each earphone, it can be output in the form of a bullet box. The first instruction message. The icon pointed to by C1 represents the second icon. The user can input the second operation through the second icon, and the execution device triggers the execution of step 807 in response to the obtained second operation. It should be understood that the example in FIG. 12 is only for the convenience of understanding this solution , is not used to limit this scheme.
在另一种实现方式中,也可以为在步骤806之后进入步骤807,则执行设备通过第三展示界面输出目标提示信息的同时,第三展示界面上还可以展示有第三图标,用户可以通过第三图标输入第三操作;执行设备响应于获取到的第三操作,触发执行步骤807,以通过步骤807对生成的第一检测结果/第二检测结果进行验证。In another implementation, it may also enter step 807 after step 806, and at the same time when the execution device outputs the target prompt information through the third display interface, a third icon may also be displayed on the third display interface, and the user may pass The third icon inputs a third operation; in response to the obtained third operation, the execution device triggers the execution of step 807, so as to verify the generated first detection result/second detection result through step 807.
为更直观地理解本方案,请参阅图13,图13为本申请实施例提供的数据处理方法中触发对耳筒所对应的检测结果进行验证的一种界面示意图。图13中以在播放视频类应用程序的音频为例,执行设备在确定第二检测结果与第一检测结果不一致,且待播放音频属于预设音频的情况下,会通过第三展示界面输出目标提示信息,通过第三展示界面输出目标提示信息的同时,第三展示界面上还可以展示有第三图标(也即D1指向的图标),用户可以通过第三图标输入第三操作;执行设备响应于获取到的第三操作,触发执行步骤807,应理解,图13中的示例仅为方便理解本方案,不用于限定本方案。For a more intuitive understanding of this solution, please refer to FIG. 13 , which is a schematic diagram of an interface that triggers verification of the detection result corresponding to the earphone in the data processing method provided by the embodiment of the present application. In Figure 13, the audio of a video application is played as an example. When the execution device determines that the second detection result is inconsistent with the first detection result, and the audio to be played belongs to the preset audio, it will output the target through the third display interface. Prompt information, while outputting target prompt information through the third display interface, a third icon (that is, the icon pointed to by D1) can also be displayed on the third display interface, and the user can input the third operation through the third icon; execute the device response Based on the obtained third operation, the execution of step 807 is triggered. It should be understood that the example in FIG. 13 is only for the convenience of understanding this solution, and is not used to limit this solution.
在另一种实现方式中,也可以为在步骤805之后触发进入步骤807,也即执行设备在确定第一检测结果和第二检测结果不一致的情况下,也可以直接触发进入步骤807,以通过步骤807对生成的第一检测结果/第二检测结果进行验证。In another implementation, step 807 may be triggered after step 805, that is, when the execution device determines that the first detection result is inconsistent with the second detection result, it may also directly trigger step 807 to pass Step 807 verifies the generated first detection result/second detection result.
在另一种实现方式中,若不执行步骤804和805,也可以为在步骤805之后进入步骤807,也即执行设备在通过步骤803获取到与每个耳筒对应的第一检测结果后,可以直接判断待播放音频的类型是否属于预设类型,并在待播放音频的类型属于预设类型的情况下,触发直接进入步骤807,以通过步骤807对生成的第一检测结果进行验证。In another implementation, if steps 804 and 805 are not performed, step 807 may also be entered after step 805, that is, after the execution device obtains the first detection result corresponding to each earphone through step 803, It can be directly judged whether the type of the audio to be played belongs to the preset type, and if the type of the audio to be played belongs to the preset type, the trigger directly enters step 807 to verify the generated first detection result through step 807 .
本申请实施例中,在完成对每个耳筒的实际佩戴情况进行检测之后,还会通过至少一个耳筒发出提示音,以对预测的第一检测结果进行验证,以保证每个耳筒的预测佩戴情况与实际佩戴情况符合,以进一步提高本方案的用户粘度。In the embodiment of the present application, after the actual wearing condition of each earphone is detected, at least one earphone will also emit a prompt sound to verify the predicted first detection result, so as to ensure the wearability of each earphone. The predicted wearing situation is consistent with the actual wearing situation, so as to further increase the user viscosity of this solution.
808、执行设备通过耳筒播放待播放音频。808. The execution device plays the audio to be played through the earphone.
本申请实施例中,在一种情况下,通过步骤802可以直接进入步骤808,若待播放音频为立体声音频,则通过被确定为佩戴于左耳的耳筒播放待播放音频中左声道的音频,通过被确定为佩戴于右耳的耳筒播放待播放音频中右声道的音频。In the embodiment of the present application, in one case, step 802 can directly enter step 808, if the audio to be played is stereo audio, play the left channel of the audio to be played through the earphone that is determined to be worn on the left ear For audio, the audio of the right channel in the audio to be played is played through the earphone determined to be worn on the right ear.
在另一种情况下,通过步骤805进入步骤808,也即在第一检测结果和第二检测结果不一致,且待播放音频的类型不属于预设类型的情况下,则执行设备可以不再切换待播放音频的播放声道。若执行设备尚未播放待播放音频,则执行设备可以基于第一检测结果或第二检测结果播放待播放音频。In another case, go to step 808 through step 805, that is, if the first detection result is inconsistent with the second detection result, and the type of audio to be played does not belong to the preset type, the execution device may no longer switch The playback channel of the audio to be played. If the execution device has not played the audio to be played, the execution device may play the audio to be played based on the first detection result or the second detection result.
在另一种情况下,若通过步骤806进入步骤808,若执行设备响应于用户的操作,确定需要对每个耳筒的类别进行矫正,也即需要将用于播放左声道的音频的耳筒更新为播放右声道的音频,将用于播放右声道的音频的耳筒更新为播放左声道的音频。In another case, if step 806 is used to enter step 808, if the execution device responds to the user's operation, it is determined that the type of each earphone needs to be corrected, that is, the earphone used to play the audio of the left channel needs to be corrected. Update the headset to play the audio of the right channel, and update the earpiece used to play the audio of the right channel to play the audio of the left channel.
本申请实施例中,耳机的两个耳筒中配置有第一传感器和第二传感器,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个,当两个耳筒被佩戴时,通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值,由于用户的耳轮区域与传感器的接触面积大于耳甲区域与传感器的接触面积,且用户的耳轮区域高于耳甲区域,所以能够根据第一测量值和第二测量值之间的大小关系,确定每个传感器是与用户的耳轮区域对应还是与用户的耳甲区域对应,进而确定每个耳筒为佩戴于左耳还是右耳;通过前述方案可知,本申请中不需要预先设定每个耳筒的类别,而是在用户佩戴耳筒后,基于用户的实际佩戴情况来确定每个耳筒是佩戴在左耳还是右耳,也即用户不再需要查看耳筒上的标记,以及基于耳筒上的标记佩戴耳机,而是可以随机的佩戴耳机,使用户操作更为简单,有利于提高本方案的用户粘度。In the embodiment of the present application, the two earphones of the earphone are equipped with a first sensor and a second sensor, and the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn. When wearing, the first measurement value is obtained through the first sensor, and the second measurement value is obtained through the second sensor. Since the contact area between the user's helix region and the sensor is larger than the contact area between the concha region and the sensor, and the user's helix region is high Therefore, according to the size relationship between the first measurement value and the second measurement value, it can be determined whether each sensor corresponds to the user's helix region or the user's concha region, and then it is determined that each earphone is Whether it is worn on the left ear or the right ear; it can be seen from the above scheme that it is not necessary to pre-set the category of each earphone in this application, but after the user wears the earphone, it is determined based on the user’s actual wearing situation. Whether it is worn on the left ear or the right ear, that is, the user no longer needs to check the mark on the earpiece and wear the earphone based on the mark on the earpiece, but can wear the earphone randomly, which makes the user’s operation easier and helps to improve the performance of the earphone. User stickiness of the scheme.
在图1至图13对应的实施例的基础上,本申请实施例还提供了一种数据处理方法,请参阅图14,图14为本申请实施例提供的数据处理方法的另一种流程示意图,本申请实施例提供的数据处理方法可以包括:On the basis of the embodiments corresponding to Figures 1 to 13, the embodiment of this application also provides a data processing method, please refer to Figure 14, Figure 14 is another schematic flowchart of the data processing method provided by the embodiment of this application , the data processing method provided in the embodiment of this application may include:
1401、当两个耳筒被佩戴时,耳机通过第一传感器获取第一测量值,并通过第二传感器获取第二测量值,第一传感器与第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个。1401. When two earphones are worn, the earphone obtains the first measurement value through the first sensor, and obtains the second measurement value through the second sensor. The first sensor and the second sensor respectively correspond to the helix area and the concha of the ear when worn one of the regions.
1402、耳机向电子设备发送第一测量值和第二测量值。1402. The earphone sends the first measurement value and the second measurement value to the electronic device.
1403、电子设备根据第一测量值和第二测量值之间的大小关系,确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。1403. The electronic device determines a first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, and the first detection result is used to indicate that each earphone is worn on the left ear or on the right ear.
本申请实施例中,步骤1401的具体实现方式可参阅图8对应实施例中步骤801的描述,步骤1403的具体实现方式可参阅图8对应实施例中步骤802的描述,此处均不做赘述。In the embodiment of the present application, for the specific implementation of step 1401, please refer to the description of step 801 in the embodiment corresponding to FIG. 8 . For the specific implementation of step 1403, please refer to the description of step 802 in the embodiment corresponding to FIG. .
1404、电子设备获取与耳筒对应的第二检测结果,第二检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳,第二检测结果为对通过耳筒的佩戴情况进行再次检测后得到。1404. The electronic device acquires a second detection result corresponding to the earphones, the second detection result is used to indicate whether each earphone is worn on the left ear or on the right ear, and the second detection result is to check the wearing condition of the earphones Obtained after retesting.
1405、电子设备判断第一检测结果和第二检测结果是否一致,若不一致,则进入步骤1406;若一致,则进入步骤1408。1405. The electronic device judges whether the first detection result is consistent with the second detection result, and if not, proceeds to step 1406; if they are consistent, proceeds to step 1408.
1406、电子设备判断待播放音频的类型是否属于预设类型,若待播放音频的类型属于预设类型,则进入步骤1407或步骤1408;若待播放音频的类型不属于预设类型,则进入 步骤1409。1406. The electronic device judges whether the type of the audio to be played belongs to the preset type. If the type of the audio to be played belongs to the preset type, proceed to step 1407 or step 1408; if the type of the audio to be played does not belong to the preset type, proceed to step 1406. 1409.
1407、电子设备输出目标提示信息,目标提示信息用于询问用户是否对耳筒的类别进行矫正,耳筒的类别为耳筒佩戴于左耳或右耳。1407. The electronic device outputs target prompt information, where the target prompt information is used to ask the user whether to correct the type of the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
1408、耳机通过耳筒发出提示音,提示音用于对耳筒所对应的检测结果的正确性进行验证。1408. The earphone emits a prompt sound through the earpiece, and the prompt sound is used to verify the correctness of the detection result corresponding to the earphone.
1409、耳机通过耳筒播放待播放音频。1409. The earphone plays the audio to be played through the earphone.
本申请实施例中,步骤1404至1409的具体实现方式可参阅图8对应实施例中步骤803至808的描述,此处不做赘述。In the embodiment of the present application, for the specific implementation manner of steps 1404 to 1409, refer to the description of steps 803 to 808 in the embodiment corresponding to FIG. 8 , and details are not repeated here.
在图1至图14所对应的实施例的基础上,为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关设备。具体参阅图15,图15为本申请实施例提供的耳机的一种结构示意图,耳机1包括两个耳筒10,两个耳筒10中配置有第一传感器101和第二传感器102,第一传感器101与第二传感器102在佩戴时分别对应耳轮区域与耳甲区域中的一个。其中,当两个耳筒被佩戴时,第一传感器101用于获取第一测量值,第二传感器102用于获取第二测量值;第一测量值和第二测量值之间的大小关系用于确定与耳筒对应的第一检测结果,第一检测结果用于指示每个耳筒为佩戴于左耳或佩戴于右耳。On the basis of the embodiments corresponding to FIG. 1 to FIG. 14 , in order to better implement the above-mentioned solution of the embodiment of the present application, related equipment for implementing the above-mentioned solution is also provided below. Specifically refer to FIG. 15 . FIG. 15 is a schematic structural diagram of an earphone provided by an embodiment of the present application. The earphone 1 includes two earphones 10 , and a first sensor 101 and a second sensor 102 are arranged in the two earphones 10 . The sensor 101 and the second sensor 102 respectively correspond to one of the helix region and the concha region when worn. Wherein, when two earphones are worn, the first sensor 101 is used to obtain the first measurement value, and the second sensor 102 is used to obtain the second measurement value; the size relationship between the first measurement value and the second measurement value is defined by For determining the first detection result corresponding to the earphone, the first detection result is used to indicate whether each earphone is worn on the left ear or on the right ear.
在一种可能的设计中,第一传感器101和第二传感器102为相同类型的传感器,第一测量值和第二测量值均为如下任一种信息:电容值或电阻值。In a possible design, the first sensor 101 and the second sensor 102 are of the same type, and both the first measurement value and the second measurement value are any of the following information: capacitance value or resistance value.
在一种可能的设计中,请参阅图16,图16为本申请实施例提供的耳机的另一种结构示意图,第一传感器101和第二传感器102被配置于不同的耳筒中,耳机1还包括处理器20,处理器20具体用于:若第一测量值和第二测量值之间的大小关系满足第一预设条件,则确定第一传感器101被佩戴于左耳且第二传感器102被佩戴于右耳;若第一测量值和第二测量值之间的大小关系满足第二预设条件,则确定第一传感器101被佩戴于右耳且第二传感器102被佩戴于左耳,第一预设条件所指示的大小关系和第二预设条件所指示的大小关系相反。In a possible design, please refer to FIG. 16. FIG. 16 is another structural schematic diagram of the earphone provided by the embodiment of the present application. The first sensor 101 and the second sensor 102 are arranged in different earphones. The earphone 1 also Including a processor 20, the processor 20 is specifically configured to: if the size relationship between the first measured value and the second measured value satisfies a first preset condition, then determine that the first sensor 101 is worn on the left ear and the second sensor 102 is worn on the right ear; if the size relationship between the first measured value and the second measured value satisfies the second preset condition, then it is determined that the first sensor 101 is worn on the right ear and the second sensor 102 is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
在一种可能的设计中,请参阅图16,第一传感器101和第二传感器102被配置于同一目标耳筒中,目标耳筒为两个耳筒中的一个,耳机1还包括处理器20,处理器20具体用于:若第一测量值和第二测量值之间的大小关系满足第三预设条件,则确定目标耳筒被佩戴于左耳;若第一测量值和第二测量值之间的大小关系满足第四预设条件,则确定目标耳筒被佩戴于右耳,第三预设条件所指示的大小关系和第四预设条件所指示的大小关系相反。In a possible design, referring to FIG. 16 , the first sensor 101 and the second sensor 102 are configured in the same target earphone, the target earphone is one of the two earphones, and the earphone 1 also includes a processor 20 for processing The device 20 is specifically used for: if the size relationship between the first measurement value and the second measurement value satisfies the third preset condition, then determine that the target earphone is worn on the left ear; if the difference between the first measurement value and the second measurement value If the size relationship between them satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size relationship indicated by the third preset condition is opposite to the size relationship indicated by the fourth preset condition.
需要说明的是,耳机1中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3至图14对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information exchange and execution process among the various modules/units in the earphone 1 are based on the same concept as the method embodiments corresponding to Fig. 3 to Fig. 14 in this application, and for details, please refer to the aforementioned The narration in the method embodiment shown is not repeated here.
请参阅图17,图17为本申请实施例提供的数据处理装置的一种结构示意图,数据处理装置1700包括:获取模块1701,用于获取第一测量值和第二测量值,其中,所述第一测量值通过第一传感器得到,所述第二测量值通过第二传感器得到,所述第一传感器和所述第二传感器被配置于耳机的两个耳筒中,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;确定模块1702,用于根据所述第一测量值和所述第 二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。Please refer to FIG. 17. FIG. 17 is a schematic structural diagram of a data processing device provided by an embodiment of the present application. The data processing device 1700 includes: an acquisition module 1701, configured to acquire a first measurement value and a second measurement value, wherein the The first measurement value is obtained by the first sensor, the second measurement value is obtained by the second sensor, the first sensor and the second sensor are arranged in the two earphones of the earphone, the first sensor and the The second sensor respectively corresponds to one of the helix area and the concha area when worn; the determination module 1702 is configured to determine the relationship with the ear according to the size relationship between the first measurement value and the second measurement value. A first detection result corresponding to the earphone, the first detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear.
在一种可能的设计中,第一传感器和第二传感器为相同类型的传感器,第一测量值和所述第二测量值均为如下任一种信息:电容值或电阻值。In a possible design, the first sensor and the second sensor are of the same type, and both the first measurement value and the second measurement value are any one of the following information: capacitance value or resistance value.
需要说明的是,数据处理装置1700中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3至图14对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction and execution process among the various modules/units in the data processing device 1700 are based on the same concept as the method embodiments corresponding to Fig. 3 to Fig. 14 in this application, and details can be found in this application The narrations in the aforementioned method embodiments will not be repeated here.
接下来介绍本申请实施例提供的一种电子设备,请参阅图18,图18为本申请实施例提供的电子设备的一种结构示意图,电子设备1800具体可以表现为耳机,或者,电子设备1800具体可以表现为与耳机通信连接的其他电子设备,例如手机、平板、笔记本电脑或者智能穿戴设备等,此处不做限定。具体的,电子设备1800包括:接收器1801、发射器1802、处理器1803和存储器1804(其中电子设备1800中的处理器1803的数量可以一个或多个,图18中以一个处理器为例),其中,处理器1803可以包括应用处理器18031和通信处理器18032。在本申请的一些实施例中,接收器1801、发射器1802、处理器1803和存储器1804可通过总线或其它方式连接。Next, an electronic device provided by the embodiment of the present application is introduced. Please refer to FIG. 18. FIG. 18 is a schematic structural diagram of the electronic device provided by the embodiment of the present application. Specifically, it can be expressed as other electronic devices connected in communication with the earphone, such as mobile phones, tablets, notebook computers or smart wearable devices, etc., which is not limited here. Specifically, the electronic device 1800 includes: a receiver 1801, a transmitter 1802, a processor 1803, and a memory 1804 (the number of processors 1803 in the electronic device 1800 may be one or more, and one processor is taken as an example in FIG. 18 ) , where the processor 1803 may include an application processor 18031 and a communication processor 18032 . In some embodiments of the present application, the receiver 1801, the transmitter 1802, the processor 1803 and the memory 1804 may be connected through a bus or in other ways.
存储器1804可以包括只读存储器和随机存取存储器,并向处理器1803提供指令和数据。存储器1804的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。存储器1804存储有处理器和操作指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,操作指令可包括各种操作指令,用于实现各种操作。The memory 1804 may include read-only memory and random-access memory, and provides instructions and data to the processor 1803 . A part of the memory 1804 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM). The memory 1804 stores processors and operating instructions, executable modules or data structures, or their subsets, or their extended sets, wherein the operating instructions may include various operating instructions for implementing various operations.
处理器1803控制电子设备的操作。具体的应用中,电子设备的各个组件通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都称为总线系统。The processor 1803 controls the operation of the electronic device. In a specific application, various components of an electronic device are coupled together through a bus system, where the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, the various buses are referred to as bus systems in the figures.
上述本申请实施例揭示的方法可以应用于处理器1803中,或者由处理器1803实现。处理器1803可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1803中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1803可以是通用处理器、数字信号处理器(digital signal processing,DSP)、微处理器或微控制器,还可进一步包括专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该处理器1803可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1804,处理器1803读取存储器1804中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present application may be applied to the processor 1803 or implemented by the processor 1803 . The processor 1803 may be an integrated circuit chip and has a signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1803 or instructions in the form of software. The above-mentioned processor 1803 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The processor 1803 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1804, and the processor 1803 reads the information in the memory 1804, and completes the steps of the above method in combination with its hardware.
接收器1801可用于接收输入的数字或字符信息,以及产生与电子设备的相关设置以及 功能控制有关的信号输入。发射器1802可用于通过第一接口输出数字或字符信息;发射器1802还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器1802还可以包括显示屏等显示设备。The receiver 1801 can be used to receive input digital or character information, and generate signal input related to related settings and function control of electronic equipment. The transmitter 1802 can be used to output digital or character information through the first interface; the transmitter 1802 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 1802 can also include a display device such as a display screen .
本申请实施例中,在一种情况中,处理器1803中的应用处理器18031,用于执行图3至图14对应实施例中的耳机执行的数据处理方法。在另一种情况中,处理器1803中的应用处理器18031,用于执行图3至图14对应实施例中的与耳机具有通信连接的其他电子设备执行的数据处理方法。In the embodiment of the present application, in one case, the application processor 18031 in the processor 1803 is configured to execute the data processing method performed by the earphone in the embodiments corresponding to FIG. 3 to FIG. 14 . In another case, the application processor 18031 in the processor 1803 is configured to execute the data processing method executed by other electronic devices having a communication connection with the earphone in the embodiments corresponding to FIG. 3 to FIG. 14 .
需要说明的是,应用处理器18031执行上述各个步骤的具体方式,与本申请中图9对应的各个方法实施例基于同一构思,其带来的技术效果与本申请实施例中图3至图14对应的各个方法实施例相同,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that, the specific way for the application processor 18031 to execute the above steps is based on the same concept as the method embodiments corresponding to Figure 9 in this application, and the technical effects brought about by it are the same as those shown in Figure 3 to Figure 14 in the embodiment of this application The corresponding method embodiments are the same, and for specific content, please refer to the description in the foregoing method embodiments of the present application, which will not be repeated here.
本申请实施例中还提供一种包括计算机程序产品,当其在计算机上运行时,使得计算机执行如前述图3至图14所示实施例描述的方法中耳机所执行的步骤,或者,使得计算机执行如前述图3至图14所示实施例描述的方法中与耳机通信连接的其他电子设备所执行的步骤。The embodiment of the present application also provides a computer program product that, when running on a computer, causes the computer to perform the steps performed by the headset in the method described in the embodiments shown in FIGS. 3 to 14 , or causes the computer to Execute the steps performed by other electronic devices communicatively connected with the earphone in the methods described in the embodiments shown in FIGS. 3 to 14 .
本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如前述图3至图14所示实施例描述的方法中耳机所执行的步骤,或者,使得计算机执行如前述图3至图14所示实施例描述的方法中与耳机通信连接的其他电子设备所执行的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for performing signal processing, and when it is run on a computer, the computer executes the program shown in Figure 3 to Figure 14 above. Illustrate the steps performed by the earphone in the method described in the embodiment, or make the computer execute the steps performed by other electronic devices communicatively connected with the earphone in the method described in the embodiment shown in FIG. 3 to FIG. 14 .
本申请实施例提供的耳机、电子设备以及执行设备具体可以为芯片,芯片包括:处理单元和通信单元,所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使芯片执行上述图3至图14所示实施例描述的数据处理方法,或者,以使芯片执行上述3至图14所示实施例描述的神经网络的训练方法。可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述无线接入设备端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。The earphones, electronic equipment, and execution equipment provided in the embodiments of the present application may specifically be chips, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, pipe pins or circuits etc. The processing unit can execute the computer-executed instructions stored in the storage unit, so that the chip executes the data processing method described in the embodiments shown in FIGS. A training method for neural networks. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
其中,上述任一处提到的处理器,可以是一个通用中央处理器,微处理器,ASIC,或一个或多个用于控制上述第一方面方法的程序执行的集成电路。Wherein, the processor mentioned in any of the above-mentioned places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the program execution of the above-mentioned method in the first aspect.
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。In addition, it should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、 专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,训练设备,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, and of course it can also be realized by special hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions completed by computer programs can be easily realized by corresponding hardware, and the specific hardware structure used to realize the same function can also be varied, such as analog circuits, digital circuits or special-purpose circuit etc. However, for this application, software program implementation is a better implementation mode in most cases. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, training device, or network device, etc.) execute the instructions described in various embodiments of the present application method.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、训练设备或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的训练设备、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, training device, or data The center transmits to another website site, computer or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a training device or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Claims (20)

  1. 一种数据处理方法,其特征在于,一个耳机包括两个耳筒,所述两个耳筒中配置有第一传感器和第二传感器,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个,所述方法包括:A data processing method, characterized in that an earphone includes two earphones, a first sensor and a second sensor are disposed in the two earphones, and the first sensor and the second sensor respectively correspond to each other when worn. One of the helix region and the concha region, the method comprising:
    当所述两个耳筒被佩戴时,通过所述第一传感器获取第一测量值,并通过所述第二传感器获取第二测量值;When the two earphones are worn, a first measurement value is obtained by the first sensor, and a second measurement value is obtained by the second sensor;
    根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。According to the size relationship between the first measurement value and the second measurement value, determine a first detection result corresponding to the earphones, where the first detection result is used to indicate that each of the earphones is worn Wear it on the left ear or on the right ear.
  2. 根据权利要求1所述的方法,其特征在于,所述第一传感器和所述第二传感器为相同类型的传感器,所述第一测量值和所述第二测量值均为如下任一种信息:电容值或电阻值。The method according to claim 1, wherein the first sensor and the second sensor are sensors of the same type, and the first measured value and the second measured value are any of the following information : capacitance value or resistance value.
  3. 根据权利要求1或2所述的方法,其特征在于,与所述第一传感器对应的形状和与所述第二传感器对应的形状相同,且,与所述第一传感器对应的面积和与第二传感器对应的面积相同。The method according to claim 1 or 2, wherein the shape corresponding to the first sensor is the same as the shape corresponding to the second sensor, and the area corresponding to the first sensor is the same as the area corresponding to the second sensor. The corresponding areas of the two sensors are the same.
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一传感器和所述第二传感器被配置于不同的耳筒中,所述根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,包括:The method according to claim 1 or 2, characterized in that the first sensor and the second sensor are configured in different earpieces, and according to the first measured value and the second measured value The size relationship between the earphones is determined to determine the first detection result corresponding to the earphone, including:
    若所述第一测量值和所述第二测量值之间的大小关系满足第一预设条件,则确定所述第一传感器被佩戴于左耳且所述第二传感器被佩戴于右耳;If the magnitude relationship between the first measured value and the second measured value satisfies a first preset condition, then determining that the first sensor is worn on the left ear and the second sensor is worn on the right ear;
    若所述第一测量值和所述第二测量值之间的大小关系满足第二预设条件,则确定所述第一传感器被佩戴于右耳且所述第二传感器被佩戴于左耳,所述第一预设条件所指示的大小关系和所述第二预设条件所指示的大小关系相反。If the magnitude relationship between the first measured value and the second measured value satisfies a second preset condition, then determining that the first sensor is worn on the right ear and the second sensor is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
  5. 根据权利要求1或2所述的方法,其特征在于,所述第一传感器和所述第二传感器被配置于同一目标耳筒中,所述目标耳筒为所述两个耳筒中的一个,所述根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,包括:The method according to claim 1 or 2, wherein the first sensor and the second sensor are configured in the same target earphone, and the target earphone is one of the two earphones, so The method of determining the first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value includes:
    若所述第一测量值和所述第二测量值之间的大小关系满足第三预设条件,则确定所述目标耳筒被佩戴于左耳;If the magnitude relationship between the first measurement value and the second measurement value satisfies a third preset condition, then determining that the target earphone is worn on the left ear;
    若所述第一测量值和所述第二测量值之间的大小关系满足第四预设条件,则确定所述目标耳筒被佩戴于右耳,所述第三预设条件所指示的大小关系和所述第四预设条件所指示的大小关系相反。If the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size indicated by the third preset condition The relationship is opposite to the size relationship indicated by the fourth preset condition.
  6. 根据权利要求1或2所述的方法,其特征在于,所述确定与所述耳筒对应的第一检测结果之后,所述方法还包括:The method according to claim 1 or 2, wherein after the determination of the first detection result corresponding to the ear tube, the method further comprises:
    获取与所述耳筒对应的第二检测结果,所述第二检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳,所述第二检测结果为对所述耳筒的佩戴情况进行再次检测后得到;Acquire a second detection result corresponding to the earphones, the second detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear, and the second detection result is the It is obtained after re-testing the wearing condition of the cylinder;
    若所述第一检测结果和所述第二检测结果不一致,且待播放音频的类型属于预设类型,则输出目标提示信息,其中,所述目标提示信息用于询问用户是否对每个所述耳筒的类别进行矫正,所述待播放音频为需要通过所述耳筒播放的音频,所述耳筒的类别为所述耳筒 佩戴于左耳或右耳。If the first detection result is inconsistent with the second detection result, and the type of audio to be played belongs to the preset type, output target prompt information, wherein the target prompt information is used to ask the user whether to The type of the earphone is corrected, the audio to be played is the audio that needs to be played through the earphone, and the type of the earphone is that the earphone is worn on the left ear or the right ear.
  7. 根据权利要求6所述的方法,其特征在于,所述预设类型包括以下中的任一种或多种的组合:立体声音频、来源于视频类应用程序的音频、来源于游戏类应用程序的音频和携带有方向信息的音频。The method according to claim 6, wherein the preset type includes any one or a combination of more of the following: stereo audio, audio from a video application, audio from a game application audio and audio with directional information.
  8. 根据权利要求1或2所述的方法,其特征在于,所述确定与所述耳筒对应的第一检测结果之后,所述方法还包括:The method according to claim 1 or 2, wherein after the determination of the first detection result corresponding to the ear tube, the method further comprises:
    通过所述耳筒发出提示音,所述提示音用于对所述第一检测结果的正确性进行验证。A prompt sound is emitted through the earphone, and the prompt sound is used to verify the correctness of the first detection result.
  9. 根据权利要求1或2所述的方法,其特征在于,所述第一传感器被配置于第一耳筒中,所述第一耳筒归属于所述耳机,所述方法还包括:The method according to claim 1 or 2, wherein the first sensor is configured in a first earphone, and the first earphone belongs to the earphone, and the method further comprises:
    根据所述第一测量值确定与所述第一耳筒对应的第一佩戴信息,所述第一佩戴信息指示所述第一耳筒的佩戴松紧度。First wearing information corresponding to the first earphone is determined according to the first measurement value, where the first wearing information indicates a wearing tightness of the first earphone.
  10. 一种数据处理方法,其特征在于,所述方法应用于耳机,所述耳机包括两个耳筒,所述两个耳筒中配置有第一传感器和第二传感器,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个,所述方法包括:A data processing method, characterized in that the method is applied to an earphone, the earphone includes two earphones, a first sensor and a second sensor are arranged in the two earphones, the first sensor and the The second sensor respectively corresponds to one of the helix region and the concha region when worn, and the method includes:
    当所述两个耳筒被佩戴时,通过所述第一传感器获取第一测量值,并通过所述第二传感器获取第二测量值;When the two earphones are worn, a first measurement value is obtained by the first sensor, and a second measurement value is obtained by the second sensor;
    向电子设备发送所述第一测量值和所述第二测量值,其中,所述第一测量值和所述第二测量值之间的大小关系用于供所述电子设备确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。sending the first measurement value and the second measurement value to the electronic device, wherein the size relationship between the first measurement value and the second measurement value is used for the electronic device to determine the relationship with the ear A first detection result corresponding to the earphone, the first detection result is used to indicate that each of the earphones is worn on the left ear or on the right ear.
  11. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    获取第一测量值和第二测量值,其中,所述第一测量值通过第一传感器得到,所述第二测量值通过第二传感器得到,所述第一传感器和所述第二传感器被配置于耳机的两个耳筒中,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;obtaining a first measurement value and a second measurement value, wherein the first measurement value is obtained by a first sensor and the second measurement value is obtained by a second sensor, the first sensor and the second sensor are configured In the two earpieces of the earphone, the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn;
    根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。According to the size relationship between the first measurement value and the second measurement value, determine a first detection result corresponding to the earphones, where the first detection result is used to indicate that each of the earphones is worn Wear it on the left ear or on the right ear.
  12. 一种耳机,其特征在于,所述耳机包括两个耳筒,所述两个耳筒中配置有第一传感器和第二传感器,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;其中,An earphone, characterized in that the earphone includes two earphones, a first sensor and a second sensor are arranged in the two earphones, and the first sensor and the second sensor respectively correspond to the helix when worn One of the region and the concha region; where,
    当所述两个耳筒被佩戴时,所述第一传感器用于获取第一测量值,所述第二传感器用于获取第二测量值;When the two earphones are worn, the first sensor is used to obtain a first measurement value, and the second sensor is used to obtain a second measurement value;
    所述第一测量值和所述第二测量值之间的大小关系用于确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。The size relationship between the first measurement value and the second measurement value is used to determine a first detection result corresponding to the earphones, and the first detection result is used to indicate that each of the earphones is worn Wear it on the left ear or on the right ear.
  13. 根据权利要求12所述的耳机,其特征在于,所述第一传感器和所述第二传感器为相同类型的传感器,所述第一测量值和所述第二测量值均为如下任一种信息:电容值或电阻值。The earphone according to claim 12, wherein the first sensor and the second sensor are of the same type, and the first measurement value and the second measurement value are any of the following information : capacitance value or resistance value.
  14. 根据权利要求12或13所述的耳机,其特征在于,所述第一传感器和所述第二传感器被配置于不同的耳筒中,所述耳机还包括处理器,所述处理器具体用于:The earphone according to claim 12 or 13, wherein the first sensor and the second sensor are configured in different earphones, the earphone further comprises a processor, and the processor is specifically used for:
    若所述第一测量值和所述第二测量值之间的大小关系满足第一预设条件,则确定所述第一传感器被佩戴于左耳且所述第二传感器被佩戴于右耳;If the magnitude relationship between the first measured value and the second measured value satisfies a first preset condition, then determining that the first sensor is worn on the left ear and the second sensor is worn on the right ear;
    若所述第一测量值和所述第二测量值之间的大小关系满足第二预设条件,则确定所述第一传感器被佩戴于右耳且所述第二传感器被佩戴于左耳,所述第一预设条件所指示的大小关系和所述第二预设条件所指示的大小关系相反。If the magnitude relationship between the first measured value and the second measured value satisfies a second preset condition, then determining that the first sensor is worn on the right ear and the second sensor is worn on the left ear, The size relationship indicated by the first preset condition is opposite to the size relationship indicated by the second preset condition.
  15. 根据权利要求12或13所述的耳机,其特征在于,所述第一传感器和所述第二传感器被配置于同一目标耳筒中,所述目标耳筒为所述两个耳筒中的一个,所述耳机还包括处理器,所述处理器具体用于:The earphone according to claim 12 or 13, wherein the first sensor and the second sensor are configured in the same target earphone, and the target earphone is one of the two earphones, so The earphone also includes a processor, and the processor is specifically used for:
    若所述第一测量值和所述第二测量值之间的大小关系满足第三预设条件,则确定所述目标耳筒被佩戴于左耳;If the magnitude relationship between the first measurement value and the second measurement value satisfies a third preset condition, then determining that the target earphone is worn on the left ear;
    若所述第一测量值和所述第二测量值之间的大小关系满足第四预设条件,则确定所述目标耳筒被佩戴于右耳,所述第三预设条件所指示的大小关系和所述第四预设条件所指示的大小关系相反。If the size relationship between the first measurement value and the second measurement value satisfies the fourth preset condition, it is determined that the target earphone is worn on the right ear, and the size indicated by the third preset condition The relationship is opposite to the size relationship indicated by the fourth preset condition.
  16. 一种数据处理装置,其特征在于,所述数据处理装置包括:A data processing device, characterized in that the data processing device comprises:
    获取模块,用于获取第一测量值和第二测量值,其中,所述第一测量值通过第一传感器得到,所述第二测量值通过第二传感器得到,所述第一传感器和所述第二传感器被配置于耳机的两个耳筒中,所述第一传感器与所述第二传感器在佩戴时分别对应耳轮区域与耳甲区域中的一个;An acquisition module, configured to acquire a first measurement value and a second measurement value, wherein the first measurement value is obtained by a first sensor, the second measurement value is obtained by a second sensor, and the first sensor and the The second sensor is configured in the two ear tubes of the earphone, and the first sensor and the second sensor respectively correspond to one of the helix area and the concha area when worn;
    确定模块,用于根据所述第一测量值和所述第二测量值之间的大小关系,确定与所述耳筒对应的第一检测结果,所述第一检测结果用于指示每个所述耳筒为佩戴于左耳或佩戴于右耳。A determination module, configured to determine a first detection result corresponding to the earphone according to the size relationship between the first measurement value and the second measurement value, and the first detection result is used to indicate that each The earphones are worn on the left ear or on the right ear.
  17. 根据权利要求16所述的装置,其特征在于,所述第一传感器和所述第二传感器为相同类型的传感器,所述第一测量值和所述第二测量值均为如下任一种信息:电容值或电阻值。The device according to claim 16, wherein the first sensor and the second sensor are of the same type, and the first measurement value and the second measurement value are any of the following information : capacitance value or resistance value.
  18. 一种计算机程序,其特征在于,当所述计算机程序在计算机上运行时,使得计算机执行如权利要求1至9中任意一项所述的方法,或者,使得计算机执行如权利要求10所述的方法,或者,使得计算机执行如权利要求11所述的方法。A computer program, characterized in that, when the computer program is run on a computer, it causes the computer to perform the method according to any one of claims 1 to 9, or causes the computer to perform the method according to claim 10 method, or causing a computer to execute the method as claimed in claim 11.
  19. 一种计算机可读存储介质,其特征在于,包括程序,当所述程序在计算机上运行时,使得计算机执行如权利要求1至9中任意一项所述的方法,或者,使得计算机执行如权利要求10所述的方法,或者,使得计算机执行如权利要求11所述的方法。A computer-readable storage medium, characterized in that it includes a program, and when the program is run on a computer, it causes the computer to execute the method according to any one of claims 1 to 9, or causes the computer to execute the method according to any one of claims 1-9. The method as claimed in claim 10, or causing a computer to execute the method as claimed in claim 11.
  20. 一种电子设备,其特征在于,包括处理器和存储器,所述处理器与所述存储器耦合,An electronic device, characterized in that it includes a processor and a memory, the processor is coupled to the memory,
    所述存储器,用于存储程序;The memory is used to store programs;
    所述处理器,用于执行所述存储器中的程序,使得所述电子设备执行如权利要求11所述的方法。The processor is configured to execute the program in the memory, so that the electronic device executes the method according to claim 11.
PCT/CN2022/122987 2021-09-30 2022-09-30 Data processing method and related device WO2023051748A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111163639.8A CN115914912A (en) 2021-09-30 2021-09-30 Data processing method and related equipment
CN202111163639.8 2021-09-30

Publications (1)

Publication Number Publication Date
WO2023051748A1 true WO2023051748A1 (en) 2023-04-06

Family

ID=85729566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/122987 WO2023051748A1 (en) 2021-09-30 2022-09-30 Data processing method and related device

Country Status (2)

Country Link
CN (1) CN115914912A (en)
WO (1) WO2023051748A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105872895A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Audio output apparatus, information processing methods, and audio play device
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
US20180288515A1 (en) * 2017-03-31 2018-10-04 Apple Inc. Electronic Devices With Configurable Capacitive Proximity Sensors
CN110891217A (en) * 2019-11-12 2020-03-17 维沃移动通信有限公司 Earphone, earphone control method and electronic equipment
WO2021015761A1 (en) * 2019-07-24 2021-01-28 Hewlett-Packard Development Company L.P. Audio headset position detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105872895A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Audio output apparatus, information processing methods, and audio play device
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
US20180288515A1 (en) * 2017-03-31 2018-10-04 Apple Inc. Electronic Devices With Configurable Capacitive Proximity Sensors
WO2021015761A1 (en) * 2019-07-24 2021-01-28 Hewlett-Packard Development Company L.P. Audio headset position detection
CN110891217A (en) * 2019-11-12 2020-03-17 维沃移动通信有限公司 Earphone, earphone control method and electronic equipment

Also Published As

Publication number Publication date
CN115914912A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
US9113246B2 (en) Automated left-right headphone earpiece identifier
EP2839675B1 (en) Auto detection of headphone orientation
WO2018126632A1 (en) Loudspeaker control method and mobile terminal
JP7170742B2 (en) SOUND SOURCE DETERMINATION METHOD AND DEVICE, COMPUTER PROGRAM, AND ELECTRONIC DEVICE
US10219089B2 (en) Hearing loss compensation apparatus and method using 3D equal loudness contour
WO2019085840A1 (en) Resource adjustment method and apparatus
CN109889325B (en) Verification method, verification device, electronic equipment and medium
CN110392375A (en) WiFi network channel amending method, terminal, server and storage medium
TW201320471A (en) Signal connecting module, electronic device, and connector identification method thereof
CN110719529A (en) Multi-channel video synchronization method, device, storage medium and terminal
WO2020063028A1 (en) 3d sound effect processing method and related product
WO2020063037A1 (en) 3d sound effect processing method and related product
WO2023051748A1 (en) Data processing method and related device
CN113365191A (en) Music playing method, device, equipment and storage medium
JP7487663B2 (en) Information processing device, information processing method, and program
WO2020063027A1 (en) 3d sound effect processing method and related product
CN108882112B (en) Audio playing control method and device, storage medium and terminal equipment
CN104062830A (en) Projector and method for setting the projector
CN108260115A (en) Bluetooth equipment position information processing method, device, terminal device and storage medium
WO2023051750A1 (en) Data processing method and related device
CN113099373B (en) Sound field width expansion method, device, terminal and storage medium
EP4210049A1 (en) Audio watermark adding method and device, audio watermark analyzing method and device, and medium
WO2021036782A1 (en) Voice processing method and apparatus, electronic device, and computer readable storage medium
US20130077609A1 (en) Audio communications system and methods using personal wireless communication devices
CN111147982A (en) Audio playing method and device, storage medium and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22875129

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE