CN114845203B - Playing control method, device and equipment of capacitive earphone and storage medium - Google Patents

Playing control method, device and equipment of capacitive earphone and storage medium Download PDF

Info

Publication number
CN114845203B
CN114845203B CN202210763174.8A CN202210763174A CN114845203B CN 114845203 B CN114845203 B CN 114845203B CN 202210763174 A CN202210763174 A CN 202210763174A CN 114845203 B CN114845203 B CN 114845203B
Authority
CN
China
Prior art keywords
capacitive
capacitance
earphone
threshold
determining
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210763174.8A
Other languages
Chinese (zh)
Other versions
CN114845203A (en
Inventor
廖越
程黎辉
关亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longcheer Electronics Huizhou Co Ltd
Original Assignee
Longcheer Electronics Huizhou Co Ltd
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 Longcheer Electronics Huizhou Co Ltd filed Critical Longcheer Electronics Huizhou Co Ltd
Priority to CN202210763174.8A priority Critical patent/CN114845203B/en
Publication of CN114845203A publication Critical patent/CN114845203A/en
Application granted granted Critical
Publication of CN114845203B publication Critical patent/CN114845203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04R1/1041Mechanical or electronic switches, or control elements

Abstract

The application provides a playing control method, a playing control device, playing control equipment and a storage medium of a capacitive earphone. The method comprises the following steps: determining the wearing times of the capacitive earphone in a wearing state; if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitive sensor is arranged in the capacitive earphone, and the capacitance data is the capacitance data of the capacitive earphone within the wearing times; determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold. According to the method, the capacitance threshold values suitable for different users can be obtained, the accuracy of automatic playing control of the earphone is improved, and the use experience of the user is improved.

Description

Playing control method, device and equipment of capacitive earphone and storage medium
Technical Field
The present application relates to automatic control technologies, and in particular, to a playing control method, device, apparatus, and storage medium for a capacitive earphone.
Background
With the popularization of the capacitive earphones, the user experience requirements on the functions of the earphones are higher and higher. For example, after the user wears the headset, the headset may automatically start playing the sound in the handset to which the headset is connected.
In the prior art, a capacitance threshold is preset for the earphone, and if the capacitance data of the earphone reaches the capacitance threshold, it is determined that the earphone is in a wearing state, and the earphone can be controlled to play voice.
However, there are differences in the human ear structure of different users, for example, some users have deeper cavum conchae. When different ears wear the earphone, capacitance data collected by the capacitance sensor are different, and when a user wears the earphone, the capacitance data may not reach a capacitance threshold value, and then the earphone cannot be automatically played. The playing control precision of the earphone is low, and the user experience is influenced.
Disclosure of Invention
The application provides a playing control method, a playing control device, playing control equipment and a storage medium of a capacitive earphone, which are used for obtaining a capacitance threshold value suitable for a user and improving the playing control precision of the earphone.
In a first aspect, the present application provides a method for controlling playback of a capacitive earphone, including:
determining the wearing times of the capacitive earphone in a wearing state;
if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitive sensor is arranged in the capacitive earphone, and the capacitance data is the capacitance data of the capacitive earphone within the wearing times;
determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold.
In a second aspect, the present application provides a playback control apparatus for a capacitive earphone, including:
the frequency determining module is used for determining the wearing frequency of the capacitive earphone in a wearing state;
the capacitance data determining module is used for acquiring capacitance data acquired by the capacitive sensor if the wearing times exceed a preset time threshold; the capacitive sensor is arranged in the capacitive earphone, and the capacitance data is the capacitance data of the capacitive earphone within the wearing times;
the capacitance threshold value determining module is used for determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method for controlling playback of a capacitive earphone according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, having stored therein computer-executable instructions, which when executed by a processor, are used for implementing the playback control method of the capacitive earphone according to the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method for controlling playback of a capacitive earphone according to the first aspect.
According to the playing control method, device, equipment and storage medium of the capacitive earphone, whether the capacitive earphone is in a wearing state or not is determined, and the wearing times in the wearing state are determined. And judging whether the wearing times exceed a preset time threshold value, and if so, acquiring the capacitance data under the wearing times. From the capacitance data, a capacitance threshold is determined that is appropriate for the user's individual. When a user wears the earphone, if the capacitance data exceeds the determined capacitance threshold value, the sound is automatically played. The problem of among the prior art, some users can't trigger the automatic broadcast function of in-ear after wearing the earphone is solved. The capacitance threshold value suitable for the user is obtained by obtaining the capacitance data of different users, the flexibility of determining the capacitance threshold value is improved, the control precision of playing is improved according to the suitable capacitance threshold value, and the use experience of the user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a playing control method for a capacitive earphone according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a playing control method for a capacitive earphone according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a playing control method for a capacitive earphone according to an embodiment of the present disclosure;
fig. 4 is a schematic wearing state diagram provided in the embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a play control device of a capacitive earphone according to an embodiment of the present disclosure;
fig. 6 is a block diagram illustrating a structure of a playing control device of a capacitive earphone according to an embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present disclosure.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the claims that follow.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It should be noted that, for the sake of brevity, this description does not exhaust all alternative embodiments, and it should be understood by those skilled in the art after reading this description that any combination of features may constitute an alternative embodiment as long as the features are not mutually inconsistent. The following examples are described in detail.
With the popularization of the use of a capacitive TWS (True Wireless Stereo) headset, the user has higher and higher experience requirements on the functions of the headset, for different ears, part of users cannot normally use the in-out playing control function of the headset, and the headset cannot automatically play the sound in the mobile phone after being worn by the user.
At present, a uniform capacitance threshold value is set for earphones in the market, and when capacitance data collected by a capacitance sensor in the capacitance type earphone exceeds the capacitance threshold value, a user is considered to wear the earphones, and the earphones start to play sound automatically. However, different users have different ear structures, and in daily use, because the ear structures of the human bodies are different, the contact surface of the contact plate of the capacitive sensor and the human body is different, so that when a part of groups wear the earphones, the difference between capacitance data and a capacitance threshold value is large, and the function of automatic playing in the ears is disabled.
That is, the current capacitive earphones cannot be compatible with different ear structures. The capacitance threshold value of the earphone cannot be adjusted in a targeted manner, the capacitance threshold value of the earphone cannot be matched with human ears, and the capacitance threshold values suitable for different users cannot be obtained. The control precision of the earphone playing is low, and the use experience of a user is influenced.
The application provides a playing control method, a playing control device, playing control equipment and a storage medium of a capacitive earphone, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a playing control method for a capacitive earphone according to an embodiment of the present disclosure, where the method is executed by a playing control device for a capacitive earphone. As shown in fig. 1, the method comprises the steps of:
s101, determining the wearing times of the capacitive earphone in a wearing state.
Illustratively, the states of the capacitive headset may include a wearing state in which the capacitive headset is worn on the human ear and an idle state in which the capacitive headset is not worn on the human ear. Whether the capacitive earphone is in a wearing state or not can be determined in real time, for example, after the capacitive earphone is in the ear, a user can manually click a preset key on the earphone to indicate that the earphone is in the ear, and the current state of the earphone is determined to be the wearing state. The capacitive earphone can be connected with a mobile terminal of a user, and the user can click a preset key on the mobile terminal to indicate that the earphone is in the ear and determine that the current state of the earphone is a wearing state. The capacitive earphone can be further provided with equipment such as a light intensity sensor, if the light intensity is collected and becomes bright or dark, the capacitive earphone can be considered to be in the ear, and the current state of the earphone is determined to be the wearing state.
After the capacitive earphone leaves a factory, whether the capacitive earphone is in a wearing state or not can be judged when the earphone is started every time. Or after the capacitive earphone is activated, whether the capacitive earphone is in a wearing state is judged every time the earphone is started.
And updating the wearing times each time the capacitive earphone is confirmed to be in the wearing state. The number of wearing times refers to the number of times the capacitive headset is in a wearing state. After the capacitive earphone is started every time, whether the current state of the capacitive earphone is a wearing state or not can be judged, and if yes, the wearing frequency is increased by one; if not, the wearing times are not changed. And after the current state of the capacitive headset is determined to be the wearing state, determining the wearing times of the capacitive headset in the wearing state. For example, the number of times the capacitive headset is worn from factory to the present may be determined.
The activation of the capacitive headset may refer to the capacitive headset establishing a connection with the mobile terminal, e.g. the capacitive headset may be in a bluetooth connection with the mobile terminal. After the capacitive earphone is connected with the mobile terminal every time, the current state of the capacitive earphone can be determined to be a wearing state.
S102, if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitance sensor is arranged in the capacitance earphone, and the capacitance data is the capacitance data of the capacitance earphone within the wearing times.
For example, a number threshold may be preset, and the number threshold may be expressed as a minimum number of wearing times that allow the capacitive headset to adjust the capacitance threshold. That is, if the number of wearing times reaches the number threshold, the capacitance threshold can be adjusted. After a new wearing time is obtained each time, the wearing time can be compared with the time threshold value to determine whether the wearing time exceeds the time threshold value. If not, the capacitance threshold value is not adjusted, and the subsequent steps of the application are not carried out; and if so, acquiring capacitance data acquired by the capacitive sensor. The acquired capacitance data are acquired within the wearing times of the capacitive earphone in the wearing state.
A capacitive sensor is arranged in the capacitive earphone, a contact plate of the capacitive sensor can be in contact with a human body, and the capacitive sensor can acquire capacitance data when the capacitive sensor is in contact with the human body. After the capacitive earphone is started, when a contact plate of the capacitive sensor is in contact with a human body, capacitance data can be acquired. And recording the capacitance data each time, and recording the current state of the capacitive earphone each time the capacitance data is generated. That is, after the capacitive earphone is started, the current state of the capacitive earphone needs to be judged, and the capacitance data needs to be determined.
And after the wearing times exceed a preset time threshold value, determining the capacitance data of all times collected in the wearing state from the recorded capacitance data. For example, there are five pieces of recorded capacitance data, and if the current state of the headset is the wearing state when three pieces of capacitance data are acquired, only the three pieces of capacitance data may be acquired.
Or after the capacitive earphone is started every time, whether the capacitive earphone is in a wearing state or not can be judged firstly. If yes, the capacitance data at the moment are collected again for recording, namely, the recorded capacitance data are all capacitance data in a wearing state. And after the wearing times exceed a preset time threshold value, directly acquiring all recorded capacitance data as the capacitance data of the capacitive earphone within the wearing times.
S103, determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold.
Illustratively, after obtaining the capacitance data under the wearing times, the capacitance threshold value is determined according to the capacitance data under the wearing times. The capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold, that is, when the capacitance data collected by the capacitive sensor exceeds the capacitance threshold, the automatic playing function of the capacitive earphone can be triggered, and the capacitive earphone can automatically play the sound in the connected mobile terminal without clicking a 'start playing' key by a user.
One capacitance data can be selected from the acquired capacitance data in the wearing state as a capacitance threshold, and the capacitance data in the wearing state can also be calculated to obtain the capacitance threshold. For example, the minimum value may be selected from the capacitance data in the wearing state as the capacitance threshold; alternatively, an average value of the capacitance data in the wearing state is calculated as the capacitance threshold value.
The capacitance thresholds of different capacitive headsets may be different, i.e. a capacitance threshold may be obtained that is suitable for the user person. After the capacitance threshold value is obtained, if the capacitance data is detected to exceed the capacitance threshold value, it is determined that the user wears the earphone, and the sound in the connected mobile terminal is automatically played.
Before the capacitor type earphone leaves a factory, an initial capacitor threshold value can be preset, before the capacitor threshold value is adjusted, when a user uses the capacitor type earphone, collected capacitor data can be compared with the initial capacitor threshold value, and if the collected capacitor data exceeds the initial capacitor threshold value, sound in the mobile terminal starts to be played. That is, when the wearing times do not exceed the preset times threshold, the initial capacitance threshold is used as the control basis for automatic playing.
In this embodiment, a number of times threshold determination function and a number of times threshold determination parameter are preset, the number of times threshold determination parameter is applied to the number of times threshold determination function, and the number of times threshold determination function is used for calculating the number of times threshold according to the number of times threshold determination parameter; the method further comprises the following steps: determining a function and a parameter according to a preset frequency threshold to obtain a frequency threshold; if the wearing times exceed the times threshold, obtaining a new times threshold determination parameter according to a preset parameter updating rule, and obtaining a new times threshold according to the new times threshold determination parameter and the times threshold determination function.
Specifically, the number threshold may not be a preset fixed value, and a number threshold determination function may be preset to calculate the number threshold. The number threshold determination function may include a number threshold determination parameter, and an initial number threshold determination parameter is preset. An initial number threshold may be calculated based on the initial number threshold determination parameter. The number of times threshold determining parameter may be continuously updated during use of the capacitive headset, thereby updating the number of times threshold. Each time the frequency threshold determination parameter is updated, a new frequency threshold can be obtained according to the frequency threshold determination function. After the new number threshold is obtained, the number of times of wearing and the number threshold are determined each time.
For example, the number threshold determination function is the m power of 2, m is the number threshold determination parameter, and the initial number threshold determination parameter may be set to 1, i.e., the initial number threshold is 2. When the wearing times exceed two times, the capacitance data acquired by the capacitance sensor can be acquired to determine the capacitance threshold value, and the time threshold value determination parameter is updated according to the preset parameter updating rule. And after updating the time threshold determination parameter, determining the parameter according to the new time threshold to obtain a new time threshold. When the number of wear times exceeds the new number threshold again, the capacitance threshold is adjusted again.
The beneficial effect who sets up like this lies in, through setting up number of times threshold value definite function and number of times threshold value definite parameter, can change the number of times threshold value in a flexible way to in capacitive earphone's use, constantly change the electric capacity threshold value, make the electric capacity threshold value accord with user's individual wearing condition, thereby improve the control accuracy of earphone broadcast, promote user experience.
In this embodiment, obtaining a new number threshold determination parameter according to a preset parameter update rule includes: and adding one to the time threshold determination parameter to obtain a new time threshold determination parameter.
Specifically, a parameter update rule is preset, and the parameter update rule is used for updating the number threshold determination parameter. And after the wearing times are determined to exceed the current times threshold, changing the current times threshold determination parameters according to the parameter updating rule. The current number threshold determination parameter may be incremented by one to obtain a new number threshold determination parameter. For example, the number threshold determination function is the m power of 2, m is the number threshold determination parameter, and the initial number threshold determination parameter may be set to 1, i.e., the initial number threshold is 2. When the wearing times exceed two times, m is added with one to obtain 2, the new time threshold value determination parameter is 2, and the new time threshold value is 4. When the number of wearing times exceeds four times, the new number threshold determination parameter is 3, and the new number threshold is 8. Continuous updating of the time threshold is achieved.
A plurality of times threshold determination functions may also be preset, and each time threshold determination function includes a times threshold determination parameter. The range of a time threshold determination parameter is preset, time threshold determination parameters in different ranges are preset, and different time threshold determination functions are correspondingly used. For example, the degree threshold determination function is m powers of 2, and 1000 times m. If m is less than 10, calculating a time threshold by using the power m of 2; if m is equal to or greater than 10, 1000 times m is applied to calculate the number threshold. That is, an exponential function may be used to initially raise the order threshold faster, and a linear function may be selected to smoothly raise the order threshold. The frequency threshold value can be updated continuously, and frequent change of the frequency threshold value can be avoided. In this embodiment, the number threshold determination function is not specifically limited.
The method has the advantages that the times threshold value determining parameter is changed continuously, so that the times threshold value is changed, the times threshold value can be changed along with the use condition of a user, and the determining flexibility of the capacitance threshold value and the playing control precision of the earphone are improved.
In this embodiment, after determining the capacitance threshold value when the capacitive earphone is in the wearing state, the method further includes: responding to a starting instruction of the capacitive earphone, and acquiring current capacitance data acquired by a capacitive sensor; and if the current capacitance data exceeds the capacitance threshold value, triggering the playing function of the capacitive earphone.
Specifically, after the capacitance threshold is determined, when the capacitive earphone is started next time, whether the play function is automatically started may be determined by using the capacitance threshold. That is, after the adjusted capacitance threshold is obtained, if a start instruction of the capacitive earphone is responded, current capacitance data acquired by the capacitive sensor is acquired. The starting instruction of the capacitive earphone can be an instruction for establishing connection between the capacitive earphone and the mobile terminal. And if the connection between the capacitive earphone and the mobile terminal is determined, acquiring current capacitance data acquired by the capacitive sensor. For example, after the capacitive headset is connected with the mobile phone bluetooth, the current capacitance data is collected.
Judging whether the current capacitance data exceeds a determined capacitance threshold value, if so, determining that a user wears a capacitive earphone, and triggering a playing function of the capacitive earphone, wherein the playing function can be used for automatically playing voice played in a connected mobile terminal; if not, determining that the user does not wear the earphone, and not triggering the automatic playing function. After the capacitive earphone is connected with the mobile terminal, if the collected first capacitance data does not exceed the capacitance threshold, new capacitance data can be collected continuously, and if the newly collected capacitance data exceeds the capacitance threshold, the playing function of the capacitive earphone is triggered. Namely, the automatic playing function can be triggered at any time in the using process of the capacitive earphone.
The beneficial effect that sets up like this lies in, after obtaining the electric capacity threshold value, use the electric capacity earphone each time, can all judge whether the user wears the earphone according to the electric capacity threshold value, realize carrying out the judgement of pertinence to the user. The problem that playing is started before some users wear the earphones or the playing is not performed after the users wear the earphones due to the fact that a uniform capacitance threshold value is adopted is solved. The playing control precision of the capacitive earphone is improved, and the use experience of a user is effectively improved.
According to the playing control method of the capacitive earphone, whether the capacitive earphone is in a wearing state or not is determined, and the wearing times of the capacitive earphone in the wearing state are determined. And judging whether the wearing times exceed a preset time threshold value, and if so, acquiring the capacitance data under the wearing times. From the capacitance data, a capacitance threshold is determined that is appropriate for the user's individual. When a user wears the earphone, if the capacitance data exceeds the determined capacitance threshold value, the sound is automatically played. The problem of among the prior art, some users can't trigger the automatic broadcast function of in-ear after wearing the earphone is solved. The capacitance threshold value suitable for the user is obtained by obtaining the capacitance data of different users, the flexibility of determining the capacitance threshold value is improved, the control precision of playing is improved according to the suitable capacitance threshold value, and the use experience of the user is improved.
Fig. 2 is a schematic flow chart of a playing control method for a capacitive earphone according to an embodiment of the present application, which is an alternative embodiment based on the foregoing embodiment.
In this embodiment, the capacitance threshold value when the capacitive earphone is in the wearing state is determined according to the capacitance data, which may be detailed as: determining dispersion of capacitance data; and determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data and based on the dispersion of the capacitance data.
As shown in fig. 2, the method comprises the steps of:
s201, determining the wearing times of the capacitive earphone in a wearing state.
For example, this step may refer to step S101 described above, and is not described again.
S202, if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitance sensor is arranged in the capacitance earphone, and the capacitance data is the capacitance data of the capacitance earphone within the wearing times.
For example, this step may refer to step S102 described above, and is not described again.
And S203, determining the dispersion of the capacitance data.
For example, after the capacitance data is obtained, the dispersion of the capacitance data may be determined according to a preset dispersion determination algorithm. The dispersion may be used to represent the degree of dispersion or concentration of the capacitance data. The preset dispersion determination algorithm may be to determine the dispersion of the capacitance data by using a variance or a standard deviation function. In this embodiment, the dispersion determination algorithm is not specifically limited.
And S204, determining a capacitance threshold value of the capacitive earphone in a wearing state according to the capacitance data and based on the dispersion of the capacitance data.
Illustratively, the distribution of the capacitance data is determined as discrete or concentrated based on the calculated dispersion. For example, a dispersion threshold may be preset, and if the calculated dispersion is greater than the dispersion threshold, the capacitance data distribution may be considered to be discrete; if the calculated dispersion is less than or equal to the dispersion threshold, the capacitance data distribution may be considered to be concentrated.
A plurality of capacitance threshold value determination rules are set in advance, for example, two capacitance threshold value determination rules may be set, one for when the capacitance data distribution is discrete and one for when the capacitance data distribution is concentrated. After the dispersion of the capacitance data is obtained, the capacitance data can be determined according to a preset capacitance threshold determination rule. For example, when the capacitance data are distributed intensively, it may be considered that the human ear environment is better, and the capacitance threshold determination rule may be to use the minimum capacitance data as the capacitance threshold; when the capacitance data are distributed discretely, the ear environment of a person can be considered to be poor, and the capacitance threshold value determination rule may be to use an average value of the capacitance data as a capacitance threshold value.
In this embodiment, determining the capacitance threshold value of the capacitive earphone in the wearing state according to the capacitance data and based on the dispersion of the capacitance data includes: determining a capacitance threshold value determination rule associated with the dispersion of the capacitance data according to an association relationship between a preset dispersion and the capacitance threshold value determination rule, and determining the rule for a target capacitance threshold value; and determining a capacitance threshold value when the capacitive earphone is in a wearing state based on a target capacitance threshold value determination rule according to the capacitance data.
Specifically, a plurality of capacitance threshold value determination rules are preset, and different capacitance threshold value determination rules and different dispersion degrees are stored in an associated manner. For example, two capacitance threshold determination rules are set, rule one for use when capacitance data is discrete and rule two for use when capacitance data is concentrated.
After the dispersion of the capacitance data is determined, a capacitance threshold value determination rule associated with the dispersion is determined as a target capacitance threshold value determination rule. And determining a capacitance threshold value according to the capacitance data and a target capacitance threshold value determination rule, namely determining a capacitance data value which at least needs to be reached when the capacitive earphone is in a wearing state.
The method has the advantages that different capacitance threshold value determination rules can be determined according to the discrete degree of the capacitance data, the determination accuracy of the capacitance threshold value is improved, and the control accuracy of earphone playing is further improved.
In this embodiment, determining the capacitance threshold value of the capacitive earphone in the wearing state based on the target capacitance threshold value determination rule according to the capacitance data includes: sorting the capacitance data in size, and determining the capacitance data sorted at a preset position; and multiplying the capacitance data at the preset position by the preset parameter to obtain the capacitance threshold value of the capacitive earphone in the wearing state.
Specifically, the target capacitance threshold value determination rule may be that one capacitance data is selected from the acquired capacitance data, and the selected capacitance data is multiplied by a preset parameter, so that an obtained result is the capacitance threshold value. For example, the capacitance data may be sorted in size, and the capacitance data at a preset position in the sorting may be selected from the capacitance data. The preset parameter may be a percentage, and the capacitance data at the preset position is multiplied by the preset percentage to obtain the capacitance threshold. For example, the capacitance data may be sorted from large to small, the last capacitance data, i.e., the minimum value, is found, and the minimum value is multiplied by a preset percentage.
A capacitance threshold value determination rule when capacitance data is discrete and a capacitance threshold value determination rule when capacitance data is concentrated may be preset. The capacitance threshold value determining rule when the capacitance data are scattered may be that the capacitance data are arranged from large to small, the arranged capacitance data are divided into 100 parts, an average value of the 95 th part of the capacitance data is determined, and the average value is multiplied by eighty percent to obtain the capacitance threshold value. For example, there are 100 capacitance data, the capacitance data ranked at 95 th is determined from the 100 capacitance data, and the capacitance data is multiplied by eighty percent. The capacitance threshold determination rule in the capacitance data set may be that the capacitance data are arranged from large to small, and the minimum value in the capacitance data is multiplied by eighty percent to obtain the capacitance threshold.
The method has the advantages that one piece of capacitance data is selected from the capacitance data and multiplied by the preset percentage, so that when the capacitance data collected by the capacitance sensor does not reach the selected capacitance data, a user can also be considered to wear the earphone, and the playing control precision is improved.
According to the playing control method of the capacitive earphone, whether the capacitive earphone is in a wearing state or not is determined, and the wearing times of the capacitive earphone in the wearing state are determined. And judging whether the wearing times exceed a preset time threshold value, and if so, acquiring capacitance data under the wearing times. From the capacitance data, a capacitance threshold value is determined that is appropriate for the user's individual. When a user wears the earphone, if the capacitance data exceeds the capacitance threshold value, the sound is automatically played. The problem of among the prior art, some users can't trigger the automatic broadcast function of in-ear after wearing the earphone is solved. The capacitance threshold value suitable for the user is obtained by obtaining the capacitance data of different users, the flexibility of determining the capacitance threshold value is improved, the control precision of playing is improved according to the suitable capacitance threshold value, and the use experience of the user is improved.
Fig. 3 is a schematic flow chart of a playing control method for a capacitive earphone according to an embodiment of the present application, which is an alternative embodiment based on the foregoing embodiment.
In this embodiment, the number of times the capacitive earphone is worn may be determined by: and if the capacitive earphone is determined to be in the wearing state currently according to the preset earphone state determination rule, determining the wearing times of the capacitive earphone in the wearing state.
As shown in fig. 3, the method comprises the steps of:
s301, if the current wearing state of the capacitive earphone is determined according to a preset earphone state determination rule, the wearing times of the capacitive earphone in the wearing state are determined.
For example, a headphone state determination rule for determining a current state of the capacitive headphone is preset, that is, it may be determined that the capacitive headphone is in a wearing state or an idle state. For example, it may be determined whether the user controls the capacitive headset to play sound, that is, whether sound is emitted from the capacitive headset, and if so, it is determined that the capacitive headset is in a wearing state. And if the capacitive earphone is determined to be in the wearing state currently, determining the wearing times of the capacitive earphone in the wearing state. After the capacitive earphone is determined to be in the wearing state, the wearing times of the wearing state are determined, the determining precision of the wearing times is improved, and then the determining precision of the capacitance threshold is improved. Fig. 4 is a schematic view of a wearing state of the embodiment of the present application, in which the capacitive earphone is located in a concha cavity of a human ear.
In this embodiment, determining that the capacitive earphone is currently in a wearing state according to a preset earphone state determination rule includes: receiving a voice playing instruction sent by a mobile terminal, and acquiring the volume of audio data through a microphone arranged on a capacitive earphone; and if the volume of the audio data exceeds a preset volume threshold, determining that the capacitive headset is in a wearing state currently.
Specifically, the preset earphone state determination rule may be that, after the user controls the capacitive earphone to play sound, whether the user wears the capacitive earphone is determined according to the volume transmitted by the capacitive earphone. The headset state determination rule requires an application program connected to the mobile terminal to be applied.
A microphone may be provided in the condenser earphone, and the microphone may be provided above the speaker. The voice playing instruction sent by the mobile terminal is that a section of audio data is played through an application program of the mobile terminal, and the audio data is transmitted out from a loudspeaker of the capacitive earphone. The microphone on the earpiece speaker will pick up the audio data and determine the volume of the audio data. And presetting a volume threshold, comparing the volume of the audio data with the preset volume threshold, and judging whether the volume of the audio data exceeds the preset volume threshold. If the volume of the audio data exceeds a preset volume threshold, determining that the capacitive headset is currently in a wearing state; and if the volume of the audio data does not exceed the preset volume threshold, determining that the capacitive earphone is in an idle state currently.
The method has the advantages that when the capacitive earphone plays voice, if the user does not wear the earphone, the sound of the capacitive earphone is dispersed; if the user wears the earphone, the sound in the earphone is concentrated near the speaker, and therefore, the volume in the wearing state is larger than the volume in the idle state. By acquiring the volume near the loudspeaker, whether the user wears the earphone can be accurately judged, and the judgment precision is improved.
In this embodiment, a preset sensor is installed in the capacitive earphone, and the preset sensor is at least one of a capacitive sensor, a temperature sensor, a humidity sensor and an infrared sensor; determining that the capacitive earphone is currently in a wearing state according to a preset earphone state determination rule, and further comprising: acquiring current sensor data acquired by a preset sensor; and if the current sensor data is within the preset sensor value range, determining that the capacitive earphone is in a wearing state currently.
Specifically, the capacitive earphone may be provided with a preset sensor, and the preset sensor may be a capacitive sensor, a temperature sensor, a humidity sensor, an infrared sensor, or the like. After the capacitive earphone is started, the preset sensor can acquire the current sensor data of the preset sensor in real time. A sensor value range is preset, and if the acquired sensor is located in the sensor value range, the current wearing state of the capacitive earphone is determined.
The preset sensor is a capacitive sensor, and can preset a minimum capacitance value, wherein the minimum capacitance value is the minimum value of capacitance data when a user wears the earphone. If the capacitance data acquired by the capacitance sensor is smaller than the minimum value of the capacitance, the user is considered not to wear the capacitance earphone; and if the capacitance data acquired by the capacitance sensor is equal to or greater than the minimum capacitance value, the user is considered to wear the capacitive earphone. The state is judged through the capacitive sensor, so that the hardware cost can be saved, and other devices are not required to be added. The minimum value of capacitance needs to be defined manually, and can be different for different earphones. Therefore, the artificial ear can be manufactured, each earphone is placed on the artificial ear to be tested, the fixture is used for clamping the earphone to a fixed position, and the minimum value of the capacitance is measured.
The preset sensor is a temperature sensor, a plurality of temperature sensors can be added to the outer ring of the concha back of the earphone, and for the same user and the same earphone, whether the user wears the earphone or not is judged, and the temperatures collected by the temperature sensors are different. And presetting a temperature minimum value, when the temperature value acquired by the temperature sensor is greater than the temperature minimum value, considering that the earphone is worn, and when the temperature value acquired by the temperature sensor is less than the temperature minimum value, considering that the earphone is not worn.
The preset sensor is an infrared sensor, and when the infrared sensor is triggered, the wearing is considered to be good. The preset sensor is a humidity sensor, when the humidity acquired by the humidity sensor reaches a preset range, the earphone is worn, otherwise, the user is considered not to wear the earphone.
The method has the advantages that whether the capacitive earphone is in the judging state or not can be accurately judged, so that the correct judging times are obtained, and the determining precision of the capacitance threshold value is improved.
S302, if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitance sensor is arranged in the capacitance earphone, and the capacitance data is the capacitance data of the capacitance earphone within the wearing times.
For example, this step may refer to step S102 described above, and is not described again.
S303, determining a capacitance threshold value of the capacitive earphone in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold.
For example, this step may refer to step S103 described above, and is not described again.
According to the playing control method of the capacitive earphone, whether the capacitive earphone is in a wearing state or not is determined, and the wearing times of the capacitive earphone in the wearing state are determined. And judging whether the wearing times exceed a preset time threshold value, and if so, acquiring capacitance data under the wearing times. From the capacitance data, a capacitance threshold is determined that is appropriate for the user's individual. When a user wears the earphone, if the capacitance data exceeds the capacitance threshold value, the sound is automatically played. The problem of among the prior art, some users can't trigger the automatic broadcast function of in-ear after wearing the earphone is solved. The capacitance threshold value suitable for the user is obtained by obtaining the capacitance data of different users, the flexibility of determining the capacitance threshold value is improved, the control precision of playing is improved according to the suitable capacitance threshold value, and the use experience of the user is improved.
Fig. 5 is a block diagram of a playing control device of a capacitive earphone according to an embodiment of the present application. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 5, the apparatus includes: a number determination module 501, a capacitance data determination module 502, and a capacitance threshold determination module 503.
A number determining module 501, configured to determine the number of wearing times of the capacitive earphone in a wearing state;
a capacitance data determining module 502, configured to obtain capacitance data acquired by a capacitive sensor if the wearing times exceed a preset time threshold; the capacitive sensor is arranged in the capacitive earphone, and the capacitance data is the capacitance data of the capacitive earphone within the wearing times;
a capacitance threshold determining module 503, configured to determine a capacitance threshold of the capacitive earphone in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold.
Fig. 6 is a block diagram of a structure of a playing control device of a capacitive headset according to an embodiment of the present application, and based on the embodiment shown in fig. 5, as shown in fig. 6, a capacitance threshold value determining module 503 includes a dispersion determining unit 5031 and a threshold value determining unit 5032.
In one example, the dispersion determining unit 5031 is configured to determine the dispersion of the capacitance data;
a threshold determination unit 5032, configured to determine, according to the capacitance data, a capacitance threshold when the capacitive headset is in a wearing state based on the dispersion of the capacitance data.
In one example, the threshold determining unit 5032 includes:
the target rule determining subunit is used for determining a capacitance threshold value determining rule associated with the dispersion of the capacitance data according to an association relation between preset dispersion and the capacitance threshold value determining rule, and determining the rule for the target capacitance threshold value;
and the target rule application subunit is used for determining a capacitance threshold value of the capacitive earphone in a wearing state according to the capacitance data and based on the target capacitance threshold value determination rule.
In one example, the target rule applying subunit is specifically configured to:
sorting the capacitance data in size, and determining the capacitance data sorted at a preset position;
and multiplying the capacitance data at the preset position by the preset parameter to obtain the capacitance threshold value of the capacitive earphone in the wearing state.
In one example, the number determining module 501 is specifically configured to:
and if the current wearing state of the capacitive headset is determined according to a preset headset state determination rule, determining the wearing times of the capacitive headset in the wearing state.
In an example, the number determining module 501 is further specifically configured to:
receiving a voice playing instruction sent by a mobile terminal, and acquiring the volume of audio data through a microphone arranged on the capacitive earphone;
and if the volume of the audio data exceeds a preset volume threshold, determining that the capacitive headset is currently in a wearing state.
In one example, the capacitive earphone is provided with a preset sensor, and the preset sensor is at least one of a capacitive sensor, a temperature sensor, a humidity sensor and an infrared sensor;
the number determining module 501 is further specifically configured to:
acquiring current sensor data acquired by the preset sensor;
and if the current sensor data is within a preset sensor value range, determining that the capacitive headset is in a wearing state currently.
In one example, a number threshold determining function and a number threshold determining parameter are preset, the number threshold determining parameter is applied to the number threshold determining function, and the number threshold determining function is used for calculating a number threshold according to the number threshold determining parameter; the device also includes:
the frequency threshold determining module is used for determining a function and a parameter according to a preset frequency threshold to obtain a frequency threshold;
and the parameter updating module is used for obtaining a new time threshold determining parameter according to a preset parameter updating rule if the wearing times exceed the time threshold, and obtaining a new time threshold according to the new time threshold determining parameter and a time threshold determining function.
In one example, the parameter updating module is specifically configured to:
and adding one to the number threshold determination parameter to obtain a new number threshold determination parameter.
In one example, the apparatus further comprises:
the data acquisition module is used for responding to a starting instruction of the capacitive earphone after determining a capacitance threshold value when the capacitive earphone is in a wearing state, and acquiring current capacitance data acquired by the capacitive sensor;
and the playing function triggering module is used for triggering the playing function of the capacitive earphone if the current capacitance data exceeds the capacitance threshold value.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device includes: a memory 71, a processor 72; a memory 71; a memory for storing instructions executable by processor 72.
Wherein the processor 72 is configured to perform the methods provided in the above embodiments.
The electronic device further comprises a receiver 73 and a transmitter 74. The receiver 73 is used for receiving instructions and data transmitted from other devices, and the transmitter 74 is used for transmitting instructions and data to external devices.
FIG. 8 is a block diagram illustrating an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like, in accordance with an exemplary embodiment.
Device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to the various components of the device 800. Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 816 is configured to facilitate communications between device 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal device, enable the terminal device to execute a play control method of a capacitive earphone of the terminal device.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the embodiments.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic device arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic device may be a cloud electronic device, which is also called a cloud computing electronic device or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or "VPS" for short). The electronic device may also be a distributed system of electronic devices or an electronic device incorporating a blockchain. It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a scope of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A playing control method of a capacitive earphone is characterized by comprising the following steps:
determining the wearing times of the capacitive earphone in a wearing state;
if the wearing times exceed a preset time threshold, acquiring capacitance data acquired by a capacitive sensor; the capacitive sensor is arranged in the capacitive earphone, the capacitance data is the capacitance data of the capacitive earphone within the wearing times, and the preset time threshold is the minimum wearing time allowing the capacitive earphone to adjust the capacitance threshold;
determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold;
determining a capacitance threshold value of the capacitive earphone in a wearing state according to the capacitance data, including:
determining dispersion of the capacitance data;
determining a capacitance threshold value determination rule associated with the dispersion of the capacitance data according to an association relationship between a preset dispersion and a capacitance threshold value determination rule, and determining a rule for a target capacitance threshold value;
and determining a capacitance threshold value when the capacitive headset is in a wearing state based on the target capacitance threshold value determination rule according to the capacitance data.
2. The method of claim 1, wherein determining the capacitance threshold value when the capacitive headset is in the worn state based on the target capacitance threshold determination rule according to the capacitance data comprises:
sorting the capacitance data in size, and determining the capacitance data sorted at a preset position;
and multiplying the capacitance data at the preset position by the preset parameter to obtain the capacitance threshold value of the capacitive earphone in the wearing state.
3. The method of claim 1, wherein determining the number of wearing times that the capacitive headset is in a worn state comprises:
and if the capacitive earphone is determined to be in the wearing state currently according to a preset earphone state determination rule, determining the wearing times of the capacitive earphone in the wearing state.
4. The method of claim 3, wherein determining that the capacitive headset is currently in a wearing state according to a preset headset state determination rule comprises:
receiving a voice playing instruction sent by a mobile terminal, and acquiring the volume of audio data through a microphone arranged on the capacitive earphone;
and if the volume of the audio data exceeds a preset volume threshold, determining that the capacitive headset is currently in a wearing state.
5. The method according to claim 3, wherein a preset sensor is installed in the capacitive earphone, and the preset sensor is at least one of a capacitive sensor, a temperature sensor, a humidity sensor and an infrared sensor;
determining that the capacitive headset is currently in a wearing state according to a preset headset state determination rule, and further comprising:
acquiring current sensor data acquired by the preset sensor;
and if the current sensor data is within a preset sensor value range, determining that the capacitive headset is in a wearing state currently.
6. The method according to any one of claims 1 to 5, characterized in that a number-of-times threshold determination function and a number-of-times threshold determination parameter are preset, the number-of-times threshold determination parameter being applied to the number-of-times threshold determination function, the number-of-times threshold determination function being configured to calculate a number-of-times threshold from the number-of-times threshold determination parameter; the method further comprises the following steps:
determining a function and a parameter according to a preset frequency threshold to obtain a frequency threshold;
if the wearing times exceed the times threshold, obtaining a new times threshold determination parameter according to a preset parameter updating rule, and obtaining a new times threshold according to the new times threshold determination parameter and a times threshold determination function.
7. The method of claim 6, wherein obtaining a new number threshold determination parameter according to a preset parameter update rule comprises:
and adding one to the number threshold determination parameter to obtain a new number threshold determination parameter.
8. The method according to any of claims 1-5, further comprising, after determining the capacitance threshold value when the capacitive headset is worn:
responding to a starting instruction of a capacitive earphone, and acquiring current capacitance data acquired by a capacitive sensor;
and if the current capacitance data exceeds the capacitance threshold value, triggering the playing function of the capacitive earphone.
9. A playback control apparatus for a capacitive earphone, comprising:
the frequency determining module is used for determining the wearing frequency of the capacitive earphone in a wearing state;
the capacitance data determining module is used for acquiring capacitance data acquired by the capacitive sensor if the wearing times exceed a preset time threshold; the capacitive sensor is arranged in the capacitive earphone, the capacitance data is the capacitance data of the capacitive earphone within the wearing times, and the preset time threshold is the minimum wearing time allowing the capacitive earphone to adjust the capacitance threshold;
the capacitance threshold value determining module is used for determining a capacitance threshold value when the capacitive earphone is in a wearing state according to the capacitance data; the capacitance threshold is used for triggering the playing function of the capacitive earphone when the capacitance data exceeds the capacitance threshold;
the capacitance threshold determination module is specifically configured to determine dispersion of the capacitance data;
determining a capacitance threshold value determination rule associated with the dispersion of the capacitance data according to an association relationship between a preset dispersion and a capacitance threshold value determination rule, and determining a rule for a target capacitance threshold value;
and determining a capacitance threshold value when the capacitive earphone is in a wearing state based on the target capacitance threshold value determination rule according to the capacitance data.
10. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of controlling playback of a capacitive headset according to any one of claims 1-8.
11. A computer-readable storage medium having stored thereon computer-executable instructions for implementing the method of controlling playback of a capacitive headset according to any one of claims 1-8 when executed by a processor.
CN202210763174.8A 2022-07-01 2022-07-01 Playing control method, device and equipment of capacitive earphone and storage medium Active CN114845203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210763174.8A CN114845203B (en) 2022-07-01 2022-07-01 Playing control method, device and equipment of capacitive earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210763174.8A CN114845203B (en) 2022-07-01 2022-07-01 Playing control method, device and equipment of capacitive earphone and storage medium

Publications (2)

Publication Number Publication Date
CN114845203A CN114845203A (en) 2022-08-02
CN114845203B true CN114845203B (en) 2022-09-20

Family

ID=82574209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210763174.8A Active CN114845203B (en) 2022-07-01 2022-07-01 Playing control method, device and equipment of capacitive earphone and storage medium

Country Status (1)

Country Link
CN (1) CN114845203B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106291121A (en) * 2016-07-29 2017-01-04 歌尔股份有限公司 The wearing state detection method of a kind of wearable device and wearable device
CN110934588A (en) * 2019-10-23 2020-03-31 青岛精安医疗科技有限责任公司 Respiratory sensor sensitivity calibration method
JP2021144696A (en) * 2020-03-11 2021-09-24 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Method and apparatus for updating model parameter
CN114268872A (en) * 2021-11-29 2022-04-01 歌尔科技有限公司 Wireless earphone wearing detection method, device and storage medium
CN114567849A (en) * 2022-02-28 2022-05-31 恒玄科技(上海)股份有限公司 Detection method and device, wireless earphone and storage medium
CN114630228A (en) * 2022-03-30 2022-06-14 歌尔股份有限公司 Calibration method, device, equipment and medium for TWS earphone capacitive sensor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3361218B2 (en) * 1995-09-18 2003-01-07 シャープ株式会社 A / D conversion circuit
EP1808751A1 (en) * 2005-12-23 2007-07-18 The Swatch Group Research and Development Ltd. Touch-sensitive electronic control device for performing a cursor function
KR102036783B1 (en) * 2013-09-05 2019-10-25 엘지전자 주식회사 Electronic device and method for controlling of the same
CN103795344A (en) * 2014-01-21 2014-05-14 深圳市芯海科技有限公司 Oscillator circuit with temperature compensation function
WO2018085991A1 (en) * 2016-11-08 2018-05-17 深圳市汇顶科技股份有限公司 Method for determining change in initial distance of sensing electrode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106291121A (en) * 2016-07-29 2017-01-04 歌尔股份有限公司 The wearing state detection method of a kind of wearable device and wearable device
CN110934588A (en) * 2019-10-23 2020-03-31 青岛精安医疗科技有限责任公司 Respiratory sensor sensitivity calibration method
JP2021144696A (en) * 2020-03-11 2021-09-24 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Method and apparatus for updating model parameter
CN114268872A (en) * 2021-11-29 2022-04-01 歌尔科技有限公司 Wireless earphone wearing detection method, device and storage medium
CN114567849A (en) * 2022-02-28 2022-05-31 恒玄科技(上海)股份有限公司 Detection method and device, wireless earphone and storage medium
CN114630228A (en) * 2022-03-30 2022-06-14 歌尔股份有限公司 Calibration method, device, equipment and medium for TWS earphone capacitive sensor

Also Published As

Publication number Publication date
CN114845203A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
EP3163748B1 (en) Method, device and terminal for adjusting volume
CN107493500B (en) Multimedia resource playing method and device
CN108886653B (en) Earphone sound channel control method, related equipment and system
CN106095401A (en) Informing message treatment method and device
CN104902059A (en) Call reminding method and device
EP3024211B1 (en) Method and device for announcing voice call
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN106888327B (en) Voice playing method and device
CN107480785B (en) Convolutional neural network training method and device
EP3176984B1 (en) Method and device for processing information
CN109862169B (en) Electronic equipment control method, device and storage medium
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN108600503B (en) Voice call control method and device
CN109040651B (en) Video communication method and device
CN109769191B (en) Audio output detection method and device and electronic equipment
CN114845203B (en) Playing control method, device and equipment of capacitive earphone and storage medium
CN107677363B (en) Noise prompting method and intelligent terminal
CN109922203B (en) Terminal, screen off method and device
CN110392878B (en) Sound control method and mobile terminal
CN114598970A (en) Audio processing method and device, electronic equipment and storage medium
CN108539823B (en) Charging method and device
CN113727248A (en) Method, device and medium for playing audio by loudspeaker
CN112118502B (en) Earphone control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant