CN112004172A - Earphone control method, earphone and computer readable storage medium - Google Patents

Earphone control method, earphone and computer readable storage medium Download PDF

Info

Publication number
CN112004172A
CN112004172A CN202010664494.9A CN202010664494A CN112004172A CN 112004172 A CN112004172 A CN 112004172A CN 202010664494 A CN202010664494 A CN 202010664494A CN 112004172 A CN112004172 A CN 112004172A
Authority
CN
China
Prior art keywords
earphone
sleep state
wearer
environment
sleep
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.)
Withdrawn
Application number
CN202010664494.9A
Other languages
Chinese (zh)
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN202010664494.9A priority Critical patent/CN112004172A/en
Publication of CN112004172A publication Critical patent/CN112004172A/en
Withdrawn legal-status Critical Current

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
    • 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/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • H04R2201/103Combination of monophonic or stereophonic headphones with audio players, e.g. integrated in the headphone

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The application discloses a control method of a headset, the headset and a computer readable storage medium. The method comprises the following steps: acquiring ambient light brightness data acquired by a light sensor; wherein, the optical sensor is arranged on the earphone; judging whether the current environment accords with the sleep environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone. Through the mode, the sleep quality of the user can be improved.

Description

Earphone control method, earphone and computer readable storage medium
Technical Field
The present application relates to the field of intelligent terminal technologies, and in particular, to a control method for an earphone, and a computer-readable storage medium.
Background
With the development of consumer electronics, various types of electronic devices are coming out endlessly. For example, more and more people like to listen to music with earphones, especially wireless earphones, and under extreme comfort conditions, the wearer of the earphones gradually goes to sleep.
On one hand, the user does not need to continue using the earphone after falling asleep, but the earphone works all the time, so that the resource waste is caused, especially for the wireless earphone, the common wireless earphone carries out signal transmission through Bluetooth, and the earphone needs to be charged, so that the consumption of electric quantity is caused; on the other hand, after falling asleep, the user is likely to be woken up by the sound of the earphone, which affects the user experience.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a control method of an earphone, the earphone and a computer readable storage medium, which can improve the sleep quality of a user.
The technical scheme adopted by the application is to provide a control method of an earphone, and the method comprises the following steps: acquiring ambient light brightness data acquired by a light sensor; wherein, the optical sensor is arranged on the earphone; judging whether the current environment accords with the sleep environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone.
Wherein, judge whether the person of wearing of earphone is in sleep state, include: acquiring physiological data of a wearer of the headset; inputting the physiological data into a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the physiological data; the neural network model is obtained after training based on sample physiological data and corresponding sleep state labels.
Wherein, the earphone is provided with a microphone for collecting environmental sounds; acquiring physiological data of a wearer of a headset, comprising: acquiring environmental sounds collected by a microphone for a preset time length;
inputting the physiological data into a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the physiological data, comprising: inputting the environmental sound into a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the environmental sound; the neural network model is obtained after training based on the environmental sound sample data and a predetermined sleep state label.
Wherein, judge whether the person of wearing of earphone is in sleep state, include: sending a sleep state acquisition instruction to the wearable device so that the wearable device acquires physiological data of a wearer of the earphone, and judging whether the wearer of the earphone is in a sleep state according to the physiological data to obtain a judgment result; and acquiring a judgment result sent by the wearable device.
Wherein, adjust the volume of earphone based on the sleep state of the person of wearing of earphone includes: if the sleep state of the wearer of the earphone is a light sleep state, correspondingly adjusting the volume of the earphone according to the degree of the light sleep state; and if the sleep state of the wearer of the earphone is a severe sleep state, controlling the earphone to enter a dormant state.
Wherein, after controlling the earphone to enter the sleep state, include: and if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the mild sleep state.
Wherein, if the sleep state that detects the person of wearing of earphone changes from the heavy sleep state to the light sleep state, then activate the earphone to the volume of earphone is adjusted to the degree correspondence according to the light sleep state, include: if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, acquiring the current time; judging whether the difference value between the current time and the preset time is greater than a preset difference value or not; if yes, activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the light sleep state.
Wherein, the method also comprises: if the current environment does not accord with the sleep environment based on the environment light brightness data, acquiring the current time, and judging whether the current time accords with the sleep time period; and if so, adjusting the ambient light brightness of the current environment to enable the current environment to accord with the sleep environment.
Another technical solution adopted by the present application is to provide an earphone, including a processor and a memory connected to the processor; the memory is used for storing program data, and the processor is used for executing the program data to realize any method provided by the technical scheme.
Another technical solution adopted by the present application is to provide a computer-readable storage medium, which is used for storing program data, and when the program data is executed by a processor, the program data is used for implementing any one of the methods provided by the technical solutions.
The beneficial effect of this application is: different from the situation of the prior art, the control method of the earphone obtains the ambient light brightness data collected by the light sensor; judging whether the current environment accords with the sleeping environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone. Make the user be in the sleep environment on the one hand, promote user's sleep comfort level, on the other hand earphone broadcast can be more quick with the corresponding volume of sleep state messenger user entering deeper sleep state, promotes user's sleep quality to through adjusting the consumption that the volume can reduce the earphone, increase of service time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart of a first embodiment of a control method of an earphone provided by the present application;
FIG. 2 is a schematic diagram of an embodiment of a headset provided herein;
fig. 3 is a schematic diagram of the interaction of the headset and the wearable device provided by the present application;
FIG. 4 is a schematic diagram of a volume curve of the earphone for adjusting the volume provided by the present application;
fig. 5 is a flowchart illustrating a second embodiment of a method for controlling a headset according to the present application;
fig. 6 is a schematic flowchart of a third embodiment of a control method for an earphone provided by the present application;
fig. 7 is a schematic flowchart of a fourth embodiment of a method for controlling an earphone provided by the present application;
fig. 8 is a schematic diagram of the interaction between the headset, the wearable device and the server provided by the present application;
fig. 9 is a schematic flowchart of a fifth embodiment of a control method of an earphone provided by the present application;
fig. 10 is a schematic flowchart of an embodiment of a method for controlling an earphone provided in the present application;
FIG. 11 is a schematic diagram of an embodiment of a headset provided herein;
FIG. 12 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart of a first embodiment of a method for controlling an earphone provided by the present application. The method comprises the following steps:
step 11: and acquiring the ambient light brightness data collected by the light sensor.
Wherein, the optical sensor is arranged on the earphone. In some embodiments, the light sensor includes a photoresistor whose conductivity varies as a function of the brightness of the ambient light.
Specifically, referring to fig. 2, the structure of the earphone will be described.
The headphone 20 includes a main body portion 21 and a light sensor 22. The optical sensor is arranged outside the main body part. Wherein, the outer side refers to the side of the earphone which is far away from the ear of the wearer when the earphone is used. The light sensor 22 receives ambient light at an angle of incidence α.
In some embodiments, since the ambient light brightness data collected instantaneously has uncertainty, the ambient light brightness data collected by the light sensor within a preset time needs to be acquired. The preset time may be 5 seconds, 10 seconds, 15 seconds, and the like, and the light sensor is an ambient light sensor.
Step 12: and judging whether the current environment accords with the sleep environment or not based on the environment light brightness data.
In some embodiments, the determining whether the current environment is in accordance with the sleep environment based on the ambient light brightness data may be determining whether the ambient light brightness data corresponds to preset brightness data, and if so, determining that the current environment is in accordance with the sleep environment.
In some embodiments, the headset includes a first headset and a second headset. Respectively to the left and right ears of the wearer. All be provided with light sensor on first earphone and the second earphone for gather environment light brightness data. In an application scene, the first earphone or the second earphone is shielded, and then the current environment is judged to be in accordance with the sleep environment based on the ambient light brightness data collected by the first earphone or the second earphone. However, in practice, the current environment may not be consistent with the sleep environment. Therefore, when the first earphone and the second earphone are in working states, if the current environment is judged to accord with the sleep environment based on the ambient light brightness data collected by the optical sensor on the first earphone, the ambient light brightness data collected by the optical sensor on the second earphone needs to be obtained for further judgment, so as to determine whether the current environment accords with the sleep environment. If the difference value between the ambient light brightness data collected by the light sensor on the second earphone and the ambient light brightness data collected by the light sensor on the first earphone is greater than the preset difference value, it is determined that the current environment does not conform to the sleep environment, and if the difference value between the ambient light brightness data collected by the light sensor on the second earphone and the ambient light brightness data collected by the light sensor on the first earphone is less than the preset difference value, it is determined that the current environment conforms to the sleep environment.
In another application scenario, when the first earphone and the second earphone are in a working state, the ambient light brightness data collected by the optical sensors on the first earphone and the second earphone are respectively obtained, the average value of the two kinds of ambient light brightness data is calculated, and if the average value is smaller than a preset average value, the current environment is determined to be in accordance with the sleep environment. And if the average value is larger than the preset average value, determining that the current environment does not accord with the sleep environment.
Step 13: and judging whether the wearer of the earphone is in a sleep state.
In some embodiments, the earphone is provided with a sensing element, and the sensing element is arranged on one side of the earphone close to the ear of the wearer and used for collecting physiological data of the wearer of the earphone. Such as body temperature information, blood pressure information, blood oxygen information, electrocardiogram information and pulse information.
In some embodiments, the headset interacts with the wearable device for sending physiological data to the wearable device for processing. In particular, referring to fig. 3, the headset interacts with the wearable device as follows: the earphone sends the physiological data to the wearable device after acquiring the physiological data. The wearable device judges whether the earphone wearer is in a sleep state or not based on the physiological data, and sends the judgment result to the earphone. After receiving the determination result, if the determination result is in the sleep state, step 14 is executed, and if the determination result is not in the sleep state, the current volume is maintained.
In some embodiments, the headset interacts with the mobile terminal for sending the physiological data to the mobile terminal for processing. After the earphone receives the judgment result sent by the mobile terminal, if the judgment result is in the sleep state, step 14 is executed, and if the judgment result is not in the sleep state, the current volume is maintained.
In some embodiments, when determining that the wearer of the headset is in a sleep state, a particular level of the sleep state is further determined. Such as dividing the sleep state into A, B and C levels. Wherein, the A grade represents the falling asleep stage, the B grade represents the light sleeping stage, and the C grade represents the deep sleeping stage.
Step 14: the volume of the headset is adjusted based on the sleep state of the wearer of the headset.
In some embodiments, the manner of adjusting the volume of the headset based on the sleep state of the wearer of the headset may be to obtain a preset volume adjustment curve of the wearer of the headset, obtain a preset volume corresponding to the sleep state from the preset volume adjustment curve, and adjust the volume of the headset to the preset volume. The description is made with reference to fig. 4:
the sleep states are divided into 10 states, 1-10 from low to high representing different stages from falling asleep to deep sleep. Each state corresponds to a volume. If the sleep state is 3, the corresponding volume is 3.5. The sound production decibel of the earphone is correspondingly adjusted according to the volume of 3.5.
In some embodiments, a preset time interval is set between sleep states based on big data analysis. After the current sleep state passes a preset time interval, the earphone defaults to enter the next sleep state, and then the corresponding volume is obtained according to the next sleep state.
Specifically, when the earphone defaults to enter the next sleep state, the physiological data is acquired again to judge the current sleep state so as to determine whether the current sleep state corresponds to the earphone defaulted to enter the next sleep state, and if not, the corresponding volume is acquired from the preset volume adjustment curve according to the current sleep state.
In some embodiments, when the sleep state enters 8, or 9 or 10, indicating that the wearer has entered a deep sleep stage, the volume of the headset is adjusted to 1. And controlling the earphone to stop playing music, wherein the sound production decibel corresponding to the volume 1 is 0.
It can be understood that the preset volume adjustment curve is set according to the wearer, and different wearers have the preset volume adjustment curve of themselves.
The control method of the earphone of the embodiment acquires the ambient light brightness data collected by the optical sensor; judging whether the current environment accords with the sleeping environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone. Make the user be in the sleep environment on the one hand, promote user's sleep comfort level, on the other hand earphone broadcast can be more quick with the corresponding volume of sleep state messenger user entering deeper sleep state, promotes user's sleep quality to through adjusting the consumption that the volume can reduce the earphone, increase of service time.
Referring to fig. 5, fig. 5 is a schematic flowchart of a second embodiment of a control method of an earphone provided by the present application. The method comprises the following steps:
step 51: and acquiring the ambient light brightness data collected by the light sensor.
Step 52: and judging whether the current environment accords with the sleep environment or not based on the environment light brightness data.
Steps 51 to 52 are the same as or similar to the technical solutions of the above embodiments, and are not described herein.
In some embodiments, if the current environment is determined not to be in accordance with the sleep environment based on the ambient light brightness data, obtaining the current time, and determining whether the current time is in accordance with the sleep time period; and if so, adjusting the ambient light brightness of the current environment to enable the current environment to accord with the sleep environment. And if the current time is 11 pm, determining that the current time accords with the sleep time period, and adjusting the ambient light brightness of the current environment so as to make the current environment accord with the sleep environment. It will be appreciated that the sleep period is determined in accordance with the actual time situation of the wearer. If the wearer belongs to a nighttime worker, the sleep time period of the wearer is during the daytime.
In an application scene, a wearer is in an intelligent home environment, and an intelligent home can be provided with an intelligent bulb, an intelligent curtain, an intelligent air conditioner and the like. The earphone can become a control center in an intelligent home, and if the current environment is judged to be not in accordance with the sleep environment based on the environment light brightness data, the current time is obtained, and whether the current time is in accordance with the sleep time period or not is judged; if yes, the brightness of the intelligent bulb is detected, the brightness is adjusted to be preset brightness or the intelligent bulb is closed, whether the intelligent curtain is closed or not is detected, and if not, the intelligent curtain is closed, and external light is isolated. Furthermore, the current environment temperature can be obtained, and if the current environment temperature is not matched with the preset environment temperature, the intelligent air conditioner is controlled to adjust the temperature.
Step 53: physiological data of a wearer of the headset is acquired.
In some embodiments, the headset is communicatively coupled to the wearable device. The wearable device can be an intelligent bracelet, an intelligent watch and an intelligent ring. The wearable device is used to collect physiological data of the wearer.
When the current environment accords with the sleep environment, a physiological data acquisition instruction is sent to the wearable device, so that the wearable device responds to the physiological data acquisition instruction and feeds back the physiological data of the wearer.
In some embodiments, the headset collects physiological data of the wearer.
Step 54: and inputting the physiological data into the preset neural network model so that the preset neural network model outputs a sleep state corresponding to the physiological data.
The preset neural network model is obtained after training based on sample physiological data and corresponding sleep state labels.
In some embodiments, the physiological data is input to a preset neural network model, and the feature extraction is performed on the physiological data, which may be performed by time-frequency analysis processing to extract feature parameters of signal processing. And identifying the extracted characteristic information to identify a sleep state corresponding to the physiological data.
In some embodiments, the preset neural network model may be constructed by machine learning. By utilizing a supervised learning method, different sample physiological data are artificially input, the sample physiological data are labeled according to the sleep state corresponding to the sample physiological data, and the sample physiological data are input to a neural network model to be trained so as to train the neural network model to be trained to form a preset neural network model.
In some embodiments, a gaussian mixture model, a hidden markov model, K-nearest neighbor, a neural network, a support vector machine, etc. may be used for model training to train a preset neural network model, and after training is completed, the model may be used for identification of physiological data.
In some embodiments, the physiological data is input into a preset neural network model, pre-processed in the preset neural network model, the pre-processed physiological data is identified, a sleep state corresponding to the pre-processed physiological data is identified, and the sleep state is output.
Step 55: the volume of the headset is adjusted based on the sleep state of the wearer of the headset.
It is understood that the sleep state output by the preset neural network model may be one of a plurality of sleep states and an sleepless state. When the output sleep state is the non-sleep state, step 55 may not adjust the volume of the earphone.
Step 55 has the same or similar technical solutions as those in the above embodiments, and is not described herein.
The control method of the earphone of the embodiment combines the preset neural network model to judge the sleep state, so that the earphone is more intelligent. Make the user be in the sleep environment on the one hand, promote user's sleep comfort level, on the other hand earphone broadcast can be more quick with the corresponding volume of sleep state messenger user entering deeper sleep state, promotes user's sleep quality to through adjusting the consumption that the volume can reduce the earphone, increase of service time.
Referring to fig. 6, fig. 6 is a schematic flowchart of a third embodiment of a method for controlling an earphone provided by the present application. The earphone of the present embodiment is provided with a microphone. The method comprises the following steps:
step 61: and acquiring the ambient light brightness data collected by the light sensor.
Step 62: and judging whether the current environment accords with the sleep environment or not based on the environment light brightness data.
And step 63: and acquiring the environmental sound collected by the microphone for a preset time length.
It is understood that the breathing sound of the wearer is regular when the wearer is in a sleep state. The sleep state of the wearer can be determined by the regular breathing sounds.
Step 64: and inputting the environmental sound into the preset neural network model so that the preset neural network model outputs a sleep state corresponding to the environmental sound.
The preset neural network model is obtained after training based on the environmental sound sample data and a predetermined sleep state label.
In some embodiments, the environmental sound is input to the preset neural network model, and the characteristic extraction is performed on the environmental sound, and the time-frequency analysis processing may be adopted to extract the characteristic parameters of the signal processing. And identifying the extracted characteristic information to identify the sleep state corresponding to the environmental sound.
In some embodiments, the preset neural network model may be constructed by machine learning. And inputting the environmental sound sample data to the neural network model to be trained by utilizing a supervised learning method through artificially inputting different environmental sound sample data and marking the environmental sound sample data according to the sleep state corresponding to the environmental sound sample data so as to train the neural network model to be trained and form a preset neural network model.
In some embodiments, the sleep state is output by inputting the environmental sound into the preset neural network model, preprocessing the environmental sound in the preset neural network model, recognizing the preprocessed environmental sound, and recognizing the sleep state corresponding to the preprocessed environmental sound.
Step 65: the volume of the headset is adjusted based on the sleep state of the wearer of the headset.
In some embodiments, after determining that the current environment conforms to the sleep environment based on the ambient light brightness data, an ambient sound collected by the microphone for a preset time period is acquired, and whether the current environment conforms to the sleep environment is further determined based on the ambient sound. If not, the earphone is prompted to the wearer.
The control method of the earphone of the embodiment combines the preset neural network model to judge the sleep state corresponding to the environmental sound, so that the earphone is more intelligent. Make the user be in the sleep environment on the one hand, promote user's sleep comfort level, on the other hand earphone broadcast can be more quick with the corresponding volume of sleep state messenger user entering deeper sleep state, promotes user's sleep quality to through adjusting the consumption that the volume can reduce the earphone, increase of service time.
Referring to fig. 7, fig. 7 is a schematic flowchart of a fourth embodiment of a method for controlling an earphone according to the present application. In this embodiment, the headset is connected to the wearable device. The method comprises the following steps:
step 71: and acquiring the ambient light brightness data collected by the light sensor.
Step 72: and judging whether the current environment accords with the sleep environment or not based on the environment light brightness data.
Step 73: sending a sleep state acquisition instruction to the wearable device so that the wearable device acquires physiological data of a wearer of the earphone, and judging whether the wearer of the earphone is in a sleep state according to the physiological data to obtain a judgment result.
In some embodiments, after acquiring physiological data of a wearer of the headset, the wearable device sends the physiological data to the server, so that the server judges the physiological data and feeds back the judgment result to the wearable device, and the wearable device sends the judgment result to the headset.
Step 74: and acquiring a judgment result sent by the wearable device.
Referring to FIG. 8, steps 73-74 are illustrated: the earphone sends a sleep state acquisition instruction to the wearable device after judging that the current environment accords with the sleep environment, the wearable device carries out physiological data acquisition on a wearer of the earphone after receiving the sleep state acquisition instruction, and the physiological data is sent to the server after acquiring the physiological data of preset time. And after receiving the physiological data, the server judges whether the wearer of the earphone is in a sleep state based on the physiological data to obtain a judgment result. And sending the judgment result to the wearable equipment. And after receiving the judgment result, the wearable device sends the judgment result to the earphone.
Step 75: the volume of the headset is adjusted based on the sleep state of the wearer of the headset.
Step 75 has the same or similar technical solutions as those in the above embodiments, and is not described herein.
Referring to fig. 9, fig. 9 is a schematic flowchart of a fifth embodiment of a method for controlling an earphone provided by the present application. The method comprises the following steps:
step 91: and acquiring the ambient light brightness data collected by the light sensor.
And step 92: and judging whether the current environment accords with the sleep environment or not based on the environment light brightness data.
Step 93: and judging whether the wearer of the earphone is in a sleep state.
In some embodiments, the volume of the headset is not adjusted if the headset wearer is not asleep.
If the wearer of the headset is in the sleep state, step 94 or step 95 is executed according to the actual sleep state.
Step 94: and if the sleeping state of the wearer of the earphone is a light sleeping state, correspondingly adjusting the volume of the earphone according to the degree of the light sleeping state.
In some embodiments, the light sleep state is divided into different degrees, and the volume of the earphone is adjusted according to the different degrees. Referring specifically to fig. 4, the different degrees of light sleep are associated with the abscissa and the corresponding volume is set as the ordinate. And acquiring the corresponding volume according to the actual degree, and adjusting based on the volume.
Step 95: and if the sleep state of the wearer of the earphone is a severe sleep state, controlling the earphone to enter a dormant state.
It can be understood that when the wearer enters into a heavy sleep state, the volume of the earphone will cause interference to the wearer, and then the earphone is controlled to enter into a sleep state, and the volume output is stopped.
And after the earphone enters the dormant state, the function of interaction with the wearable equipment and the basic logic processing function are reserved.
In some embodiments, the headset is connected to the wearable device, and when the headset enters the sleep state, the wearable device still acquires physiological data of the wearer and judges the physiological data to obtain a judgment result. And sending the judgment result to the earphone, and activating the earphone when the earphone detects that the sleep state of the wearer is changed from the severe sleep state to the mild sleep state, and correspondingly adjusting the volume of the earphone according to the degree of the mild sleep state.
Specifically, the description is made with reference to fig. 10:
step 101: and if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, acquiring the current time.
Step 102: and judging whether the difference value between the current time and the preset time is greater than the preset difference value.
In some embodiments, the preset time may be an alarm time of the headset wearer, or may be a time obtained according to a daily sleep cycle of the headset wearer. If the wearer gets up around seven o 'clock in the morning everyday, the seven o' clock in the morning is set as the preset time.
In some embodiments, if the difference between the current time and the preset time is greater than the preset difference, step 103 is executed. And if the difference is smaller than or equal to the preset difference, no response is carried out. If the preset time is eight am, the current time is one morning, the difference between the current time and the preset time is seven hours, and the preset difference is half an hour, the difference between the current time and the preset time is greater than the preset difference, and step 103 is executed. If the current time is seventy-tenths at a morning, the difference between the current time and the preset time is ten minutes, and the difference is the conventional awakening time of the wearer. No response is made.
Step 103: and activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the light sleep state.
Specifically, music played by the earphone before the sleep can be acquired and played according to the corresponding volume.
In some embodiments, after step 103 is performed, the physiological data of the wearer is still detected, and when the sleep state of the wearer of the headset is detected to change from a light sleep state to a heavy sleep state, the headset is controlled to enter the sleep state.
Through the mode, when the user changes from the severe sleep state to the mild sleep state, the music is played again, so that the user can rapidly enter the severe sleep state again, and the sleep quality of the user is improved.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an embodiment of the earphone provided in the present application, in which the earphone 110 includes a processor 111 and a memory 112 connected to the processor 111; wherein the memory 112 is used for storing program data, and the processor 111 is used for executing the program data, and is used for implementing the following methods:
acquiring ambient light brightness data acquired by a light sensor; wherein, the optical sensor is arranged on the earphone; judging whether the current environment accords with the sleep environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone.
It can be understood that, when the processor 111 is used for executing the program data, it is also used for implementing any method of the foregoing embodiments, and specific implementation steps thereof may refer to the foregoing embodiments, which are not described herein again.
In some embodiments, the headset 110 is a wireless headset.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of a computer-readable storage medium 120 provided in the present application, the computer-readable storage medium 120 is used for storing program data 121, and the program data 121, when executed by a processor, is used for implementing the following method steps:
acquiring ambient light brightness data acquired by a light sensor; wherein, the optical sensor is arranged on the earphone; judging whether the current environment accords with the sleep environment or not based on the environment light brightness data; if yes, judging whether the wearer of the earphone is in a sleep state; and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone.
It is understood that program data 121, when executed by a processor, may be used to implement any method of the foregoing embodiments, and specific implementation steps thereof may refer to the foregoing embodiments, which are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units in the other embodiments described above may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method of controlling a headset, the method comprising:
acquiring ambient light brightness data acquired by a light sensor; wherein the light sensor is arranged on the earphone;
judging whether the current environment accords with the sleeping environment or not based on the environment light brightness data;
if so, judging whether the wearer of the earphone is in a sleep state;
and if so, adjusting the volume of the earphone based on the sleep state of the wearer of the earphone.
2. The method of claim 1,
the determining whether the wearer of the headset is in a sleep state includes:
acquiring physiological data of a wearer of the headset;
inputting the physiological data into a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the physiological data; the preset neural network model is obtained after training based on sample physiological data and corresponding sleep state labels.
3. The method of claim 2,
the earphone is provided with a microphone for collecting environmental sounds;
the acquiring physiological data of the wearer of the headset comprises:
acquiring environmental sounds collected by the microphone for a preset time length;
the inputting the physiological data into a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the physiological data includes:
inputting the environment sound to a preset neural network model so that the preset neural network model outputs a sleep state corresponding to the environment sound; the preset neural network model is obtained after training based on environmental sound sample data and a predetermined sleep state label.
4. The method of claim 1,
the determining whether the wearer of the headset is in a sleep state includes:
sending a sleep state acquisition instruction to wearable equipment so that the wearable equipment acquires physiological data of a wearer of the earphone, and judging whether the wearer of the earphone is in a sleep state according to the physiological data to obtain a judgment result;
and acquiring the judgment result sent by the wearable device.
5. The method of claim 1,
the adjusting the volume of the headset based on the sleep state of the wearer of the headset comprises:
if the sleep state of the wearer of the earphone is a light sleep state, correspondingly adjusting the volume of the earphone according to the degree of the light sleep state;
and if the sleep state of the wearer of the earphone is a severe sleep state, controlling the earphone to enter a sleep state.
6. The method of claim 5,
after the controlling the earphone to enter the sleep state, the method includes:
and if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the mild sleep state.
7. The method of claim 6,
if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the mild sleep state, including:
if the sleep state of the wearer of the earphone is detected to be changed from the severe sleep state to the mild sleep state, acquiring the current time;
judging whether the difference value between the current time and a preset time is greater than a preset difference value or not;
if so, activating the earphone, and correspondingly adjusting the volume of the earphone according to the degree of the light sleep state.
8. The method of claim 1,
the method further comprises the following steps:
if the current environment does not accord with the sleep environment is judged based on the environment light brightness data, the current time is obtained, and whether the current time accords with the sleep time period is judged;
and if so, adjusting the ambient light brightness of the current environment to enable the current environment to accord with the sleep environment.
9. An earphone, comprising a processor and a memory connected to the processor; the memory is for storing program data and the processor is for executing the program data to implement the method of any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is used for storing program data, which, when being executed by a processor, is used for carrying out the method according to any one of claims 1-8.
CN202010664494.9A 2020-07-10 2020-07-10 Earphone control method, earphone and computer readable storage medium Withdrawn CN112004172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010664494.9A CN112004172A (en) 2020-07-10 2020-07-10 Earphone control method, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010664494.9A CN112004172A (en) 2020-07-10 2020-07-10 Earphone control method, earphone and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112004172A true CN112004172A (en) 2020-11-27

Family

ID=73466794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010664494.9A Withdrawn CN112004172A (en) 2020-07-10 2020-07-10 Earphone control method, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112004172A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689219A (en) * 2021-01-15 2021-04-20 上海闻泰信息技术有限公司 Method, apparatus, wireless headset and computer readable storage medium for managing sleep
CN113490090A (en) * 2021-06-16 2021-10-08 北京小米移动软件有限公司 Earphone control method and device, electronic equipment and storage medium
CN114543313A (en) * 2022-02-22 2022-05-27 海信集团控股股份有限公司 Air conditioner control method, server, air conditioner and user terminal
CN114827810A (en) * 2022-04-25 2022-07-29 歌尔股份有限公司 Earphone volume adjusting method and device, electronic equipment and readable storage medium
CN114979360A (en) * 2021-02-20 2022-08-30 深圳市万普拉斯科技有限公司 Volume adjusting method, device, terminal and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689219A (en) * 2021-01-15 2021-04-20 上海闻泰信息技术有限公司 Method, apparatus, wireless headset and computer readable storage medium for managing sleep
CN114979360A (en) * 2021-02-20 2022-08-30 深圳市万普拉斯科技有限公司 Volume adjusting method, device, terminal and storage medium
CN113490090A (en) * 2021-06-16 2021-10-08 北京小米移动软件有限公司 Earphone control method and device, electronic equipment and storage medium
CN113490090B (en) * 2021-06-16 2024-02-06 北京小米移动软件有限公司 Earphone control method and device, electronic equipment and storage medium
CN114543313A (en) * 2022-02-22 2022-05-27 海信集团控股股份有限公司 Air conditioner control method, server, air conditioner and user terminal
CN114543313B (en) * 2022-02-22 2023-10-27 海信集团控股股份有限公司 Air conditioner control method, server, air conditioner and user terminal
CN114827810A (en) * 2022-04-25 2022-07-29 歌尔股份有限公司 Earphone volume adjusting method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN112004172A (en) Earphone control method, earphone and computer readable storage medium
CN109938711A (en) Health monitor method, system and computer readable storage medium
CN103823562B (en) Method, system and wearable device that automatically prompting user is slept
CN105872228A (en) Alarm clock reminding processing method and device, and terminal
CN104410747A (en) A method and system for controlling automatically an audio and video application by a wearable intelligent device
CN105427536A (en) Critical condition prompting method, intelligent wearable equipment, and intelligent terminal
CN112069949A (en) Artificial intelligence-based infant sleep monitoring system and monitoring method
CN103019107A (en) Terminal and method for automatically pausing music play function during sleep time of user
CN106658256A (en) Earphone, terminal and terminal control method
CN112667065A (en) Method and device for controlling intelligent playing terminal, storage medium and intelligent wearable device
CN113432286B (en) Control method and control device for air conditioner and air conditioner
CN106339199A (en) Earphone control method and device, earphone and wearable equipment
CN106730232B (en) A kind of intelligence awakening method and system
CN111524513A (en) Wearable device and voice transmission control method, device and medium thereof
CN112689219A (en) Method, apparatus, wireless headset and computer readable storage medium for managing sleep
CN112932225A (en) Intelligent awakening pillow and awakening method based on intelligent awakening pillow
CN118092668A (en) Multi-mode input man-machine interaction method and device and electronic equipment
CN118315071A (en) Monitoring method and system for intelligent finger ring based on PPG physiological index monitoring
CN106030442B (en) Interactive equipment selection method and device
CN204537237U (en) Multifunctional multi-parameter monitoring and health management system based on intelligent wearable equipment
CN116269266B (en) AI-based old people health monitoring method and system
CA3039538A1 (en) Alert system
CN106255995A (en) The monitoring method of intelligent monitor system and relevant device thereof
CN116048250A (en) Sleep management method and device based on wearable equipment
WO2023070890A1 (en) Working mode control method for wearable device, wearable device, and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201127