Earphone control method and device, computer readable storage medium and earphone
By integrating sensors in the headphones, real-time monitoring and adjustment of wearing positions, the problem of hearing experience deterioration caused by the deviation of the wearing position of the ear clip type headphones is solved, and a better sound quality experience is achieved.
Patent Information
- Application Number
- CN202510010697.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-15
AI Technical Summary
The wearing position of the ear clip earphones has a significant impact on the sound quality, resulting in differences in the frequency response, volume, sound field positioning, etc. of different wearing positions, which in turn affects the user's auditory experience.
By integrating sensors in the headset, data of the wearing position is obtained and compared with preset reference sensor data to determine whether the wearing position meets the wearing requirements. If it does not meet the requirements, the headphones will send a preset prompt message to help the user adjust the wearing position.
By monitoring and adjusting the wearing position of the headphones in real time, users can get a better auditory experience and avoid poor hearing problems caused by misalignment of wearing position.
Smart Images

Figure CN119835567A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic device control, and in particular, relates to an earphone control method, device, computer-readable storage medium, and earphone. Background Art
[0002] In recent years, ear clip headphones have become increasingly popular in the market due to their unique design and portability. Ear clip headphones do not need to be inserted into the ear canal, avoiding the discomfort and hygiene problems that may be caused by traditional in-ear headphones. However, the wearing position of ear clip headphones on the ear has a significant impact on the sound quality. Different wearing positions will lead to differences in the frequency response, volume, sound field positioning, etc. When users wear ear clip headphones improperly, the user's auditory experience will be deteriorated due to the deviation of the wearing position. Summary of the invention
[0003] In view of this, embodiments of the present application provide an earphone control method, device, computer-readable storage medium, and earphone to solve the problem of a user's auditory experience being deteriorated due to a deviation in the wearing position of the earphone.
[0004] A first aspect of an embodiment of the present application provides an earphone control method, which may include:
[0005] Acquire first sensor data; wherein the first sensor data is data collected by a sensor of the headset when the headset is in a first wearing position;
[0006] determining whether the first wearing position meets wearing requirements according to the first sensor data;
[0007] When the first wearing position does not meet the wearing requirements, the headset is controlled to issue a preset prompt message.
[0008] In a specific implementation of the first aspect, determining whether the first wearing position meets the wearing requirement according to the first sensor data may include:
[0009] Determining data similarity between the first sensor data and preset reference sensor data; wherein the reference sensor data is data collected by the sensor of the headset when the headset is located at a preset reference wearing position;
[0010] Determine whether the first wearing position meets the wearing requirement according to the data similarity.
[0011] In a specific implementation of the first aspect, determining whether the first wearing position meets the wearing requirement according to the data similarity may include:
[0012] When the data similarity is greater than a preset similarity threshold, determining that the first wearing position meets the wearing requirement;
[0013] When the data similarity is less than or equal to the similarity threshold, it is determined that the first wearing position does not meet the wearing requirement.
[0014] In a specific implementation of the first aspect, the earphone control method may further include:
[0015] Acquire second sensor data; wherein the second sensor data is data collected by the sensor of the headset when receiving a preset reference wearing position setting instruction;
[0016] The reference sensor data is updated according to the second sensor data to obtain the updated reference sensor data.
[0017] In a specific implementation of the first aspect, after controlling the headset to send a preset prompt message, the headset control method may further include:
[0018] Detecting whether the wearing position of the earphone is adjusted within a preset adjustment time;
[0019] If the wearing position of the headset is not adjusted within the adjustment time, recording the first sensor data in a preset sensor data set;
[0020] determining the amount of sensor data recorded in the sensor data set;
[0021] When the amount of sensor data recorded in the sensor data set is greater than a preset amount threshold, the reference sensor data is updated according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data.
[0022] In a specific implementation of the first aspect, updating the reference sensor data according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data may include:
[0023] Performing data fusion processing on the sensor data recorded in the sensor data set to obtain fused sensor data;
[0024] The reference sensor data is updated according to the fusion sensor data to obtain the updated reference sensor data.
[0025] In a specific implementation of the first aspect, controlling the headset to issue a preset prompt message may include:
[0026] Controlling the earphone to issue a preset voice prompt message;
[0027] And / or, controlling the headset to emit a preset indicator light prompt message;
[0028] And / or, controlling the headset to send out a preset vibration prompt message.
[0029] A second aspect of an embodiment of the present application provides an earphone control device, which may include:
[0030] A first sensor data acquisition module, used to acquire first sensor data; wherein the first sensor data is data collected by the sensor of the headset when the headset is located in the first wearing position;
[0031] A wearing position determination module, used for determining whether the first wearing position meets the wearing requirements according to the first sensor data;
[0032] The information prompt module is used to control the headset to send a preset prompt message when the first wearing position does not meet the wearing requirements.
[0033] In a specific implementation of the second aspect, the wearing position determination module may include:
[0034] a data similarity determination unit, configured to determine the data similarity between the first sensor data and preset reference sensor data; wherein the reference sensor data is data collected by the sensor of the headset when the headset is located at a preset reference wearing position;
[0035] A wearing position determination unit is used to determine whether the first wearing position meets the wearing requirements according to the data similarity.
[0036] In a specific implementation of the second aspect, the wearing position determination unit can be specifically used to: when the data similarity is greater than a preset similarity threshold, determine that the first wearing position meets the wearing requirements; when the data similarity is less than or equal to the similarity threshold, determine that the first wearing position does not meet the wearing requirements.
[0037] In a specific implementation of the second aspect, the earphone control device may further include:
[0038] A second sensor data acquisition module, used to acquire second sensor data; wherein the second sensor data is data collected by the sensor of the headset when receiving a preset reference wearing position setting instruction;
[0039] The first updating module is used to update the reference sensor data according to the second sensor data to obtain the updated reference sensor data.
[0040] In a specific implementation of the second aspect, the earphone control device may further include:
[0041] A wearing position detection module, used to detect whether the wearing position of the headset is adjusted within a preset adjustment time;
[0042] a sensor data recording module, configured to record the first sensor data in a preset sensor data set when the wearing position of the headset is not adjusted within the adjustment time;
[0043] a quantity determination module, configured to determine the quantity of sensor data recorded in the sensor data set;
[0044] The second updating module is used to update the reference sensor data according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data when the amount of sensor data recorded in the sensor data set is greater than a preset amount threshold.
[0045] In a specific implementation of the second aspect, the second update module can be specifically used to: perform data fusion processing on the sensor data recorded in the sensor data set to obtain fused sensor data; and update the baseline sensor data according to the fused sensor data to obtain updated baseline sensor data.
[0046] In a specific implementation of the second aspect, the information prompt module can be specifically used to: control the headset to issue a preset voice prompt message; and / or, control the headset to issue a preset indicator light prompt message; and / or, control the headset to issue a preset vibration prompt message.
[0047] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned headphone control methods are implemented.
[0048] A fourth aspect of an embodiment of the present application provides a headset, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned headset control methods when executing the computer program.
[0049] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a headset, the headset executes the steps of any one of the above-mentioned headset control methods.
[0050] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain first sensor data; wherein the first sensor data is data collected by the sensor of the headset when the headset is in the first wearing position; whether the first wearing position meets the wearing requirements is determined based on the first sensor data; when the first wearing position does not meet the wearing requirements, the headset is controlled to issue a preset prompt message. Through the embodiments of the present application, it is possible to determine whether the wearing position meets the wearing requirements based on the sensor data of the headset, and to give a corresponding prompt when it does not meet the wearing requirements, so that the user can adjust the wearing position based on the prompt information, thereby correcting the deviation of the wearing position, so that the user can get a better auditory experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0052] Figure 1 This is a flow chart of an embodiment of a headset control method in an embodiment of the present application;
[0053] Figure 2 Shown is a schematic diagram of a specific application scenario of an embodiment of the present application;
[0054] Figure 3 Shown is a schematic diagram of another specific application scenario of an embodiment of the present application;
[0055] Figure 4 This is a structural diagram of an embodiment of an earphone control device in an embodiment of the present application;
[0056] Figure 5 This is a schematic block diagram of an earphone in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0059] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0060] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0061] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0062] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0063] In recent years, ear clip headphones have become increasingly popular in the market due to their unique design and portability. Ear clip headphones do not need to be inserted into the ear canal, avoiding the discomfort and hygiene problems that may be caused by traditional in-ear headphones. However, the wearing position of ear clip headphones on the ear has a significant impact on the sound quality. Different wearing positions will lead to differences in the frequency response, volume, sound field positioning, etc. When users wear ear clip headphones improperly, the user's auditory experience will be deteriorated due to the deviation of the wearing position.
[0064] In view of this, embodiments of the present application provide an earphone control method, device, computer-readable storage medium, and earphone to solve the problem of a user's auditory experience being deteriorated due to a deviation in the wearing position of the earphone.
[0065] In an embodiment of the present application, whether the wearing position meets the wearing requirements can be determined based on the sensor data of the earphones, and corresponding prompts can be given when it does not meet the wearing requirements, so that the user can adjust the wearing position according to the prompt information, thereby correcting the deviation of the wearing position, so that the user can get a better auditory experience.
[0066] The execution subject of the embodiment of the present application may be headphones, which may include but are not limited to ear-clip headphones and other types of headphones.
[0067] See also Figure 1 , an embodiment of a headset control method in the embodiment of the present application may include:
[0068] Step S101: Acquire first sensor data.
[0069] The first sensor data is data collected by the sensor of the headset when the headset is in the first wearing position. The first wearing position is the current wearing position of the user, and it is necessary to determine whether there is a position deviation in the wearing position.
[0070] The specific type of sensor to be used can be flexibly set according to actual conditions, and may include but is not limited to optical sensors, ultrasonic sensors and other sensors, which are not specifically limited in the embodiments of the present application.
[0071] Step S102: Determine whether the first wearing position meets the wearing requirements according to the first sensor data.
[0072] In the embodiment of the present application, the data similarity between the first sensor data and the preset reference sensor data can be determined. The reference sensor data is the data collected by the sensor of the earphone when the earphone is located in the preset reference wearing position. The reference wearing position is a pre-determined wearing position that can achieve a better auditory experience, which is used as a benchmark for measuring and judging the wearing position.
[0073] The specific similarity calculation method can be flexibly set according to actual conditions, including but not limited to cosine similarity, structural similarity index (Structural Similarity Index, SSIM) or other similarity calculation methods, which are not specifically limited in the embodiments of the present application.
[0074] In the case where the first sensor data is only single sensor data, for example, the first sensor data is only optical sensor data, or the first sensor data is only ultrasonic sensor data, the data similarity between the single sensor data and the corresponding reference sensor data can be directly determined and taken as the overall data similarity.
[0075] In the case where the first sensor data is composite data composed of two or more single sensor data, for example, the first sensor data is composite data composed of optical sensor data and ultrasonic sensor data, the data similarity between each single sensor data and the corresponding reference sensor data can be determined separately, and then data fusion processing is performed on these data similarities to obtain the overall data similarity.
[0076] The specific data fusion method can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this. As an example, the data similarity between each single sensor data and the corresponding reference sensor data can be weighted averaged to obtain the overall data similarity. The weight corresponding to each single sensor data can be flexibly set according to the actual situation. For example, if the accuracy of the optical sensor is higher than that of the ultrasonic sensor, the weight of the optical sensor data can be set to be greater than the weight of the ultrasonic sensor data. Conversely, if the accuracy of the ultrasonic sensor is higher than that of the optical sensor, the weight of the ultrasonic sensor data can be set to be greater than the weight of the optical sensor data, and so on. For the sake of simplicity, the same weight can also be directly set for each single sensor data, and the embodiments of the present application do not make specific restrictions on this.
[0077] After calculating the data similarity between the first sensor data and the reference sensor data, it can be determined whether the first wearing position meets the wearing requirements based on the data similarity. Specifically, the data similarity can be compared with a preset similarity threshold, wherein the specific value of the similarity threshold can be flexibly set according to actual conditions, for example, it can be set to 80%, 85%, 90% or other values, which is not specifically limited in the embodiments of the present application.
[0078] If the data similarity is greater than the preset similarity threshold, it can be determined that the first wearing position meets the wearing requirements, and no subsequent steps need to be performed. If the data similarity is less than or equal to the similarity threshold, it can be determined that the first wearing position does not meet the wearing requirements, and step S103 can be continued.
[0079] Step S103: When the first wearing position does not meet the wearing requirements, control the headset to issue a preset prompt message.
[0080] In an embodiment of the present application, when the first wearing position does not meet the wearing requirements, the headset can be controlled to issue a preset prompt message so that the user can adjust the wearing position according to the prompt message, thereby correcting the deviation of the wearing position, so that the user can obtain a better auditory experience.
[0081] The specific prompt method can be flexibly set according to actual conditions, and may include but is not limited to: controlling the headset to issue a preset voice prompt message; and / or, controlling the headset to issue a preset indicator light prompt message; and / or, controlling the headset to issue a preset vibration prompt message, etc. The embodiment of the present application does not make specific limitations on this.
[0082] Figure 2 Shown is a schematic diagram of a specific application scenario of an embodiment of the present application. As shown in the figure, the user wears the earphone at a certain position on the ear, which is recorded as wearing position A. At this time, the sensor data corresponding to the wearing position A can be obtained, and the data similarity between the sensor data corresponding to the wearing position A and the reference sensor data can be calculated. Since the data similarity is less than the similarity threshold, it can be determined that the wearing position A does not meet the wearing requirements, and the earphone is controlled to issue a prompt message.
[0083] Figure 3 Shown is a schematic diagram of another specific application scenario of an embodiment of the present application. As shown in the figure, the user wears the earphone at another position on the ear, which is recorded as wearing position B. At this time, the sensor data corresponding to the wearing position B can be obtained, and the data similarity between the sensor data corresponding to the wearing position B and the reference sensor data can be calculated. Since the data similarity is greater than the similarity threshold, it can be determined that the wearing position B meets the wearing requirements, and there is no need to control the earphone to issue a prompt message.
[0084] In a specific implementation of an embodiment of the present application, in order to meet the needs of different users, the headset can provide a personalized setting function, and the user can flexibly adjust the reference wearing position according to his or her preferences and hearing characteristics.
[0085] Specifically, the user can wear the headset in a wearing position that suits him / herself, and use it as a new reference wearing position. Then, the user can send instructions for resetting the reference wearing position to the headset through voice, gestures, buttons, touch screen interaction, etc., and record it as the reference wearing position setting instruction.
[0086] When the headset receives the reference wearing position setting instruction, the headset can obtain the data collected by the sensor of the headset at this time and record it as the second sensor data. After obtaining the second sensor data, the reference sensor data can be updated according to the second sensor data to obtain the updated reference sensor data.
[0087] The specific data update method can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this. For example, the second sensor data can be directly used as the updated benchmark sensor data to replace the original benchmark sensor data. For another example, the second sensor data and the original benchmark sensor data can be subjected to data fusion processing to obtain updated benchmark sensor data. The specific data fusion method can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this. As an example, the second sensor data and the original benchmark sensor data can be weighted averaged to obtain updated benchmark sensor data. The weight of the second sensor data and the weight of the original benchmark sensor data can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this.
[0088] In a specific implementation of the embodiment of the present application, the headset may also have a learning function. As the number of times the user uses the headset increases, the headset gradually understands the user's wearing habits and automatically adjusts the judgment criteria for the reference wearing position to provide the user with a more personalized service.
[0089] Specifically, after the headset is controlled to send a preset prompt message, it can also detect whether the wearing position of the headset is adjusted within a preset adjustment time. The specific value of the adjustment time can be flexibly set according to actual conditions, for example, it can be set to 3 seconds, 5 seconds, 10 seconds or other values, which is not specifically limited in the embodiment of the present application.
[0090] In the case where the wearing position of the headset is adjusted within the adjustment time, it means that the user has recognized the prompt information issued by the headset and adjusted the wearing position according to the prompt information. In the case where the wearing position of the headset is not adjusted within the adjustment time, it means that the user does not recognize the prompt information issued by the headset, but believes that the current wearing position of the headset is more suitable for him. At this time, the first sensor data can be recorded in the preset sensor data set. The sensor data set records the sensor data recorded when the user did not adjust the wearing position according to the prompt information in the previous times. After recording the current first sensor data in the sensor data set, the number of sensor data recorded in the sensor data set can be determined and compared with the preset number threshold. Among them, the specific value of the number threshold can be flexibly set according to the actual situation. For example, it can be set to 3 times, 5 times, 10 times or other values. The embodiment of the present application does not make specific limitations on this.
[0091] When the number of sensor data recorded in the sensor data set is less than or equal to the number threshold, the reference sensor data may not need to be updated. When the number of sensor data recorded in the sensor data set is greater than the number threshold, the reference sensor data may be updated according to the sensor data recorded in the sensor data set, thereby obtaining updated reference sensor data.
[0092] Since multiple sensor data are recorded in the sensor data set, the sensor data recorded in the sensor data set can be first subjected to data fusion processing to obtain fused sensor data. The specific data fusion method can be flexibly set according to actual conditions, and the embodiments of the present application do not specifically limit this. As an example, a weighted average calculation can be performed on each sensor data recorded in the sensor data set to obtain fused sensor data. The weight of each sensor data recorded in the sensor data set can be flexibly set according to actual conditions, and the embodiments of the present application do not specifically limit this.
[0093] After the fused sensor data is obtained, the reference sensor data may be updated according to the fused sensor data, thereby obtaining updated reference sensor data.
[0094] The specific data update method can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this. For example, the fused sensor data can be directly used as the updated benchmark sensor data to replace the original benchmark sensor data. For another example, the fused sensor data and the original benchmark sensor data can be subjected to data fusion processing to obtain updated benchmark sensor data. The specific data fusion method can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this. As an example, the fused sensor data and the original benchmark sensor data can be weighted averaged to obtain updated benchmark sensor data. The weight of the fused sensor data and the weight of the original benchmark sensor data can be flexibly set according to the actual situation, and the embodiments of the present application do not make specific restrictions on this.
[0095] In summary, the embodiment of the present application obtains first sensor data; wherein the first sensor data is data collected by the sensor of the headset when the headset is in the first wearing position; whether the first wearing position meets the wearing requirements is determined based on the first sensor data; when the first wearing position does not meet the wearing requirements, the headset is controlled to issue a preset prompt message. Through the embodiment of the present application, it is possible to determine whether the wearing position meets the wearing requirements based on the sensor data of the headset, and to give a corresponding prompt when it does not meet the wearing requirements, so that the user can adjust the wearing position according to the prompt information, thereby correcting the deviation of the wearing position, so that the user can get a better auditory experience.
[0096] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0097] Corresponding to the earphone control method described in the above embodiment, Figure 4 A structural diagram of an embodiment of an earphone control device provided in an embodiment of the present application is shown.
[0098] In this embodiment, an earphone control device may include:
[0099] A first sensor data acquisition module 401 is used to acquire first sensor data; wherein the first sensor data is data collected by the sensor of the headset when the headset is in the first wearing position;
[0100] A wearing position determination module 402, configured to determine whether the first wearing position meets the wearing requirements according to the first sensor data;
[0101] The information prompt module 403 is used to control the headset to send a preset prompt message when the first wearing position does not meet the wearing requirements.
[0102] In a specific implementation of the embodiment of the present application, the wearing position determination module may include:
[0103] a data similarity determination unit, configured to determine the data similarity between the first sensor data and preset reference sensor data; wherein the reference sensor data is data collected by the sensor of the headset when the headset is located at a preset reference wearing position;
[0104] A wearing position determination unit is used to determine whether the first wearing position meets the wearing requirements according to the data similarity.
[0105] In a specific implementation method of an embodiment of the present application, the wearing position determination unit can be specifically used to: when the data similarity is greater than a preset similarity threshold, determine that the first wearing position meets the wearing requirements; when the data similarity is less than or equal to the similarity threshold, determine that the first wearing position does not meet the wearing requirements.
[0106] In a specific implementation of the embodiment of the present application, the earphone control device may further include:
[0107] A second sensor data acquisition module, used to acquire second sensor data; wherein the second sensor data is data collected by the sensor of the headset when receiving a preset reference wearing position setting instruction;
[0108] The first updating module is used to update the reference sensor data according to the second sensor data to obtain the updated reference sensor data.
[0109] In a specific implementation of the embodiment of the present application, the earphone control device may further include:
[0110] A wearing position detection module, used to detect whether the wearing position of the headset is adjusted within a preset adjustment time;
[0111] a sensor data recording module, configured to record the first sensor data in a preset sensor data set when the wearing position of the headset is not adjusted within the adjustment time;
[0112] a quantity determination module, configured to determine the quantity of sensor data recorded in the sensor data set;
[0113] The second updating module is used to update the reference sensor data according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data when the amount of sensor data recorded in the sensor data set is greater than a preset amount threshold.
[0114] In a specific implementation of an embodiment of the present application, the second update module can be specifically used to: perform data fusion processing on the sensor data recorded in the sensor data set to obtain fused sensor data; and update the baseline sensor data according to the fused sensor data to obtain updated baseline sensor data.
[0115] In a specific implementation method of an embodiment of the present application, the information prompt module can be specifically used to: control the headset to issue a preset voice prompt message; and / or, control the headset to issue a preset indicator light prompt message; and / or, control the headset to issue a preset vibration prompt message.
[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0117] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0118] Figure 5 A schematic block diagram of an earphone provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0119] like Figure 5 As shown, the headset 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned headset control method embodiments are implemented, for example Figure 1 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 4 The functions of modules 401 to 403 are shown.
[0120] Exemplarily, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 52 in the headset 5.
[0121] The earphone 5 may include but is not limited to ear clip earphones and other types of earphones. Those skilled in the art will appreciate that Figure 5 It is only an example of the earphone 5 and does not constitute a limitation of the earphone 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the earphone 5 may also include input and output devices, network access devices, buses, etc.
[0122] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0123] The memory 51 may be an internal storage unit of the headset 5, such as a hard disk or memory of the headset 5. The memory 51 may also be an external storage device of the headset 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the headset 5. Further, the memory 51 may include both an internal storage unit of the headset 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the headset 5. The memory 51 may also be used to temporarily store data that has been output or is to be output.
[0124] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0125] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0126] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0127] In the embodiments provided in the present application, it should be understood that the disclosed devices / earphones and methods can be implemented in other ways. For example, the device / earphone embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0131] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling a headset, characterized in that: include: Acquire first sensor data; wherein the first sensor data is data collected by a sensor of the headset when the headset is in a first wearing position; determining whether the first wearing position meets wearing requirements according to the first sensor data; When the first wearing position does not meet the wearing requirements, the headset is controlled to issue a preset prompt message.
2. The headphone control method according to claim 1, characterized in that: The determining, according to the first sensor data, whether the first wearing position meets the wearing requirement includes: Determining data similarity between the first sensor data and preset reference sensor data; wherein the reference sensor data is data collected by the sensor of the headset when the headset is located at a preset reference wearing position; Determine whether the first wearing position meets the wearing requirement according to the data similarity.
3. The earphone control method according to claim 2, characterized in that: The determining, according to the data similarity, whether the first wearing position meets the wearing requirement includes: When the data similarity is greater than a preset similarity threshold, determining that the first wearing position meets the wearing requirement; When the data similarity is less than or equal to the similarity threshold, it is determined that the first wearing position does not meet the wearing requirement.
4. The earphone control method according to claim 2, characterized in that: Also includes: Acquire second sensor data; wherein the second sensor data is data collected by the sensor of the headset when receiving a preset reference wearing position setting instruction; The reference sensor data is updated according to the second sensor data to obtain the updated reference sensor data.
5. The earphone control method according to claim 2, characterized in that: After controlling the earphone to send a preset prompt message, the method further includes: Detecting whether the wearing position of the earphone is adjusted within a preset adjustment time; If the wearing position of the headset is not adjusted within the adjustment time, recording the first sensor data in a preset sensor data set; determining the amount of sensor data recorded in the sensor data set; When the amount of sensor data recorded in the sensor data set is greater than a preset amount threshold, the reference sensor data is updated according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data.
6. The earphone control method according to claim 5, characterized in that: The updating of the reference sensor data according to the sensor data recorded in the sensor data set to obtain the updated reference sensor data includes: Performing data fusion processing on the sensor data recorded in the sensor data set to obtain fused sensor data; The reference sensor data is updated according to the fused sensor data to obtain the updated reference sensor data.
7. The earphone control method according to any one of claims 1 to 6, characterized in that: The controlling the headset to send a preset prompt message includes: Controlling the earphone to issue a preset voice prompt message; And / or, controlling the headset to emit a preset indicator light prompt message; And / or, controlling the headset to send out a preset vibration prompt message.
8. An earphone control device, characterized in that: include: A first sensor data acquisition module, used to acquire first sensor data; wherein the first sensor data is data collected by the sensor of the headset when the headset is located in the first wearing position; A wearing position determination module, used for determining whether the first wearing position meets the wearing requirements according to the first sensor data; The information prompt module is used to control the headset to send a preset prompt message when the first wearing position does not meet the wearing requirements.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the earphone control method according to any one of claims 1 to 7 are implemented.
10. A headset comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the earphone control method according to any one of claims 1 to 7 are implemented.