CN112087685A - Control method and device of sleep-aiding earphone - Google Patents

Control method and device of sleep-aiding earphone Download PDF

Info

Publication number
CN112087685A
CN112087685A CN201910512375.9A CN201910512375A CN112087685A CN 112087685 A CN112087685 A CN 112087685A CN 201910512375 A CN201910512375 A CN 201910512375A CN 112087685 A CN112087685 A CN 112087685A
Authority
CN
China
Prior art keywords
sleep
state
user
volume
earphone
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.)
Pending
Application number
CN201910512375.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.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun Electronics 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 Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN201910512375.9A priority Critical patent/CN112087685A/en
Publication of CN112087685A publication Critical patent/CN112087685A/en
Pending 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
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6887Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient mounted on external non-worn devices, e.g. non-medical devices
    • A61B5/6898Portable consumer electronic devices, e.g. music players, telephones, tablet computers
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M21/02Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis for inducing sleep or relaxation, e.g. by direct nerve stimulation, hypnosis, analgesia
    • 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
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0027Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus by the hearing sense
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Abstract

The invention provides a control method and a device of a sleep-aiding earphone, wherein the method comprises the following steps: when a sleep mode starting instruction is received, playing a preset audio file; detecting the body state of a user in real time to obtain body state parameters; judging whether the user enters a sleeping state or not according to the body state parameters; and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter. The invention solves the problem that music played by the sleep-aiding earphone cannot automatically track the body activity state of a user for adjustment.

Description

Control method and device of sleep-aiding earphone
Technical Field
The invention relates to the technical field of sound equipment control, in particular to a control method and device of a sleep-aiding earphone.
Background
Headsets have also taken on an important position in the consumer electronics market. The earphone on the current market mainly takes sound effect quality as a focus point, pays attention to the sound effect and sound leakage problem of music playing of a user in the using process, and ignores the design close to life and humanization except the sound effect.
In a city fast-paced life, many young office workers or middle-aged people suffer from insomnia symptoms of different degrees. These people usually use the help-sleep mode of listening to the relaxed help-sleep music with the earphone before falling asleep to solve the insomnia problem. However, the general sleeping state of people suffering from insomnia is extremely unstable and is easily awakened by noise in the external environment, so that people cannot fall asleep again, and the sleeping quality of the people is seriously affected. When a user wears the earphone to listen to the relaxed sleep-aiding music for sleeping, the user is very easy to be awakened by the sound of the sleep-aiding music which can be received before falling asleep.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling a sleep-aiding earphone, so as to solve the problem that music played by the sleep-aiding earphone cannot automatically track the body activity of a user for adjustment.
A first aspect of an embodiment of the present invention provides a method for controlling a sleep-aid earphone, including:
when a sleep mode starting instruction is received, playing a preset audio file;
detecting the body state of a user in real time to obtain body state parameters;
judging whether the user enters a sleeping state or not according to the body state parameters;
and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter.
In an implementation example, after adjusting the playing volume of the preset audio file according to the volume level corresponding to the physical state parameter if the user enters the sleep state, the method further includes:
judging whether the user enters a sleep state or not according to the body state parameters;
if the user enters the sleep state, recording the duration of the sleep state of the user;
and when the maintaining time length exceeds a preset threshold value, stopping playing the preset audio file.
In an implementation example, after adjusting the playing volume of the preset audio file according to a volume level corresponding to the physical state parameter if the user enters a sleep state, the method further includes:
and when the user is judged to exit the sleeping state according to the body state parameters, restoring the playing volume of the preset audio file to the initial volume.
In one embodiment, after playing the preset audio file when receiving the sleep mode start instruction, the method further includes:
starting a noise reduction function, and collecting sound signals in an external environment;
and performing phase inversion processing on the sound signal and outputting the sound signal.
In one implementation example, the detecting the physical state of the user in real time and obtaining the physical state parameters includes:
the heart rate of the user is detected in real time through the heart rate sensor, and heart rate data are obtained.
In one example of implementation, the heart rate sensor is provided within an ear-muff of an earphone.
In an implementation example, if the user enters a sleep state, before adjusting the playing volume of the preset audio file according to the volume level corresponding to the physical state parameter, the method includes:
dividing the playing volume of a preset audio file into five volume gears which are gradually decreased step by step, wherein each body state parameter corresponds to one volume gear.
A second aspect of an embodiment of the present invention provides a control device for a sleep-aid earphone, including:
the music playing module is used for playing a preset audio file when a sleep mode starting instruction is received;
the parameter acquisition module is used for detecting the body state of the user in real time to obtain body state parameters;
the first judgment module is used for judging whether the user enters a sleeping state according to the body state parameters;
and the volume adjusting module is used for adjusting the playing volume of the preset audio file according to a volume gear corresponding to the body state parameter if the user enters a sleeping state.
In one embodiment, the control device of the sleep-aiding earphone further comprises:
the second judging module is used for judging whether the user enters a sleep state or not according to the body state parameters;
the recording module is used for recording the maintaining time length when the user enters the sleep state if the user enters the sleep state;
and the playing stopping module is used for stopping the playing of the preset audio file when the maintaining time length exceeds a preset threshold value.
A third aspect of an embodiment of the present invention provides a sleep-aid earphone, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of the first aspect when executing the computer program.
According to the control method and device for the sleep-aiding earphone, provided by the embodiment of the invention, when a sleep mode starting instruction is received, a preset audio file is played; detecting the body state of a user in real time to obtain body state parameters; judging whether the user enters a sleeping state or not according to the body state parameters; and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter. The sleep-aiding earphone can obtain the body state parameters of the user by detecting the body state of the user in real time, so that the controller can control the sleep-aiding earphone according to the numerical value change of the body state parameters. Judging whether the user enters a sleeping state or not according to the body state parameters, so that the sleep-assisting earphone can monitor the body activity degree of the user in real time; when the user gradually enters the sleep state, the sleep-assisting earphone can automatically adjust the music playing volume along with the reduction of the body state parameter value of the user detected by the sleep-assisting earphone.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a control method of a sleep-aiding earphone according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a control method of a sleep-aiding earphone according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a control device of a sleep-aiding earphone according to a third embodiment of the present invention;
fig. 4 is a schematic view of an internal structure of a sleep-aiding earphone according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but 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 invention.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
Fig. 1 is a schematic flow chart of a control method of a sleep-aiding earphone according to an embodiment of the present invention. The embodiment of the present invention is applicable to a scenario where a sleep-aiding earphone worn by a user assists the sleep of the user, the method may be executed by a controller in the sleep-aiding earphone, where the controller may be a microprocessor or a single chip, and the like, and in the embodiment of the present invention, the controller configured in the sleep-aiding earphone is used as an execution main body for description, and the method specifically includes the following steps:
and S110, playing a preset audio file when a sleep mode starting instruction is received.
The sleep-aiding earphone can be used for playing soothing music to help a user to sleep when the user falls asleep, and can also be used for daily music listened by the user at ordinary times. In order to distinguish the functions of the sleep-aid earphone in different periods, a function selection button (such as a touch button or a key button) is usually arranged outside the sleep-aid earphone, and a user can select a desired earphone function through the button. When a user enters the music sleep-aiding function through a function selection key on the sleep-aiding earphone, a controller in the sleep-aiding earphone receives a sleep mode starting instruction. At the moment, the controller controls the sleep-aiding earphone to play a preset audio file; the preset audio file played by the sleep-aiding earphone can be sleep music preset by a user or sleep music set by default by a system. The sleep-aiding earphone comprises a controller and a storage unit and a music playing unit, and a preset audio file can be stored in the storage unit of the sleep-aiding earphone; when the controller receives a sleep mode starting instruction, the controller controls a music playing unit in the sleep-aiding earphone to play a preset audio file stored in the storage unit, so that the sleep-aiding earphone plays the preset audio file to a user, and the volume is the preset volume corresponding to the sleep mode. When the sleep-aiding earphone is used for daily music listening in the non-sleep mode, the sleep-aiding earphone can also be used as a common earphone to be connected with an external playing device.
In one implementation example, when the controller receives the sleep mode starting instruction, the controller also starts a noise reduction function of the sleep-aiding earphone to collect a sound signal in the external environment. After the noise reduction function is started, the controller controls a microphone arranged in the sleep-aiding earphone to pick up noise of the external environment where the earphone is located, and then transmits the collected sound signals to a signal phase inversion module arranged in the sleep-aiding earphone or a signal phase inversion module in an external playing device connected with the sleep-aiding earphone to perform phase inversion processing on the sound signals and output the sound signals, so that sound signals in phase inversion with the external noise are generated. The controller controls the music playing unit to play the generated reversed-phase sound signal, so that the user can listen to the sound signal reversed-phase with the noise through the sleep-aiding earphone, and the noise of the external environment is counteracted.
In addition, help dormancy earphone still has the passive function of making an uproar of falling, makes the earplug through designing the earphone shape and chooseing for use the material that the sound insulation effect is showing to isolated external noise.
And S120, detecting the body state of the user in real time to obtain body state parameters.
When the user enters the sleep state, the physical state parameters of the user can change along with the physical activity degree of the user. After the sleep mode is entered, the sleep-aiding earphone can obtain the body state parameters of the user by detecting the body state of the user in real time, so that the controller can control the sleep-aiding earphone according to the numerical value change of the body state parameters. The physical state parameters changed along with the physical activity state of the user comprise heart rate data or respiratory rate of the user and the like, a sensor for collecting the heart rate data or the respiratory rate data can be arranged outside the sleep-aiding earphone, the physical state parameters are collected at regular time intervals, and the collected physical state parameters are sent to the controller.
And S130, judging whether the user enters a sleep state or not according to the body state parameters.
According to the human physiology statistics, when the data of the body state parameters of the human body in the waking and resting state is higher than the data of the human body in the sleeping state, the current body activity degree of the human body can be judged according to the numerical value of the body state parameters of the human body changing in real time. And presetting a numerical range corresponding to the obtained body state parameters when the human body enters the sleep state by referring to the existing human body physiological statistical data. The controller receives body state parameters obtained by detecting the body state of the user through the sleep-aiding earphone in real time, and judges whether the user enters the sleep state currently or not according to whether the numerical value of the current body state parameter is within the preset numerical range when the human body falls into the sleep state or not; if the value of the body state parameter is within a preset value range when the human body falls asleep, the controller judges that the user enters the asleep state; if the value of the body state parameter is out of the preset value range when the human body falls asleep, the controller judges that the user does not enter the asleep state, and then the body state parameter of the user is continuously monitored. Therefore, the sleep-aiding earphone can monitor the body activity of the user in real time.
And S140, if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter.
When the user starts to enter the sleep state, a transition state exists before the user completely enters the sleep state, and the transition state is very easy to be disturbed by sound to cause the user to wake up, so that the playing volume of the preset audio file originally played for helping the user fall asleep is not suitable for the transition stage when the user enters the sleep state from the sleep state. The controller needs to automatically adjust the playing volume of music according to the change of the body state parameters of the user after the user enters the sleep state.
Specifically, after the controller judges that the user enters the sleep state according to the value of the currently detected body state parameter, the volume of a preset audio file played in the sleep-aid earphone is adjusted according to a volume gear corresponding to the value of the body state parameter. Because the value of the body state parameter of the human body is further reduced when the human body gradually enters the sleep state from the sleep state, the value of the body state parameter of the human body is not maintained in a relatively stable range until the human body enters the sleep mode. Dividing a numerical range between a human body parameter value corresponding to the human body entering a sleeping state and a human body parameter value corresponding to the human body entering the sleeping state into a plurality of numerical intervals in which the personal body parameter values are continuously decreased according to requirements in advance; and the music playing volume of the sleep-aiding earphone is divided into a plurality of volume gears with the volume decreasing in quantity corresponding to the numerical value interval from the initial playing volume of a preset audio file, so that the numerical value interval of the human body parameters corresponds to the volume gears one by one, and each body state parameter corresponds to one volume gear. When the user gradually enters the sleep state, the sleep-assisting earphone automatically adjusts the music playing volume along with the reduction of the body state parameter value of the user detected by the sleep-assisting earphone. The controller can reduce the volume of the sleep-aiding earphone playing preset audio files to the volume value corresponding to the volume gear according to the volume gear corresponding to the value of the current body state parameter.
In an implementation example, the controller determines that the user enters a sleep state, and after the playing volume of the preset audio file is adjusted according to a volume gear corresponding to the currently detected body state parameter, if the user wakes up suddenly, the controller receives the numerical value rise of the body state parameter detected by the sleep-assisting earphone, and when the received numerical value of the body state parameter is out of a numerical value range of the preset human body sleep state, the controller determines that the user exits the sleep state, so that the playing volume of the preset audio file played by the sleep-assisting earphone is restored to the initial volume.
According to the control method of the sleep-aiding earphone, provided by the embodiment of the invention, when a sleep mode starting instruction is received, a preset audio file is played; detecting the body state of a user in real time to obtain body state parameters; judging whether the user enters a sleeping state or not according to the body state parameters; and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter. The sleep-aiding earphone can obtain the body state parameters of the user by detecting the body state of the user in real time, so that the controller can control the sleep-aiding earphone according to the numerical value change of the body state parameters. Judging whether the user enters a sleeping state or not according to the body state parameters, so that the sleep-assisting earphone can monitor the body activity degree of the user in real time; when the user gradually enters the sleep state, the sleep-assisting earphone automatically adjusts the music playing volume along with the reduction of the body state parameter value of the user detected by the sleep-assisting earphone.
Example two
Fig. 2 is a schematic flow chart of a control method of a sleep-aid earphone according to a second embodiment of the present invention. On the basis of the first embodiment, the present embodiment further provides a process of controlling the playing volume of the preset audio file of the sleep-aiding earphone according to the detected body state parameter, so as to improve the user experience. The method specifically comprises the following steps:
and S210, when a sleep mode starting instruction is received, playing a preset audio file.
And S220, detecting the heart rate of the user in real time through a heart rate sensor to obtain heart rate data.
When the user enters the sleep state, the physical state parameters of the user can change along with the physical activity degree of the user. The physical state parameter that the state changes is active along with user's health includes user's rhythm of the heart data or respiratory frequency etc, specifically, can set up miniature heart rate sensor collection user's rhythm of the heart in the earmuff of helping the sleep earphone, the earmuff contacts with people's ear when wearing the earphone of helping the sleep through the user, make the heart rate sensor gather user's rhythm of the heart data regularly with certain time interval, and send the rhythm of the heart data of gathering to the controller, so that the controller can help the sleep earphone according to the change control of rhythm of the heart data.
And S230, judging whether the user enters a sleep state or not according to the heart rate data.
According to human physiology statistics, when the human rhythm of heart when waking up quiet is higher than the rhythm of heart when the human body is in the state of falling asleep, can judge present human body activity degree according to the human rhythm of heart. Referring to the existing human body physiological data statistics, the heart rate of a human body is generally higher by about 10 times/min when the human body is in a wake-up and quiet state than when the human body is in a sleep state (about 60-80 times/min for adult men and about 70-90 times/min for women; the heart rate is reduced when the human body is in the sleep state, 50-70 times for men and 60-70 times for women). Therefore, the numerical range of the human body entering the sleep state is preset to be that the heart rate is less than or equal to 75 times/min.
The controller receives heart rate data obtained by detecting the heart rate of the user by the sleep-assisting earphone in real time, and judges whether the user is in a sleep state currently or not according to whether the current heart rate data is in a preset numerical range when the human body is in the sleep state or not; if the heart rate data is within a preset numerical range when the human body falls asleep, the controller judges that the user enters the asleep state; if the heart rate data is out of the numerical range of the preset sleep state of the human body, the controller judges that the user does not enter the sleep state, and then the heart rate of the user is continuously monitored. Therefore, the sleep-aiding earphone can monitor the body activity of the user in real time.
S240, if the user falls asleep, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the heart rate data.
And after the controller judges that the user enters a sleep state according to the currently detected heart rate data, the volume of a preset audio file played in the sleep-aiding earphone is adjusted according to the volume gear corresponding to the heart rate data. Because the heart rate of the human body is further reduced when the human body gradually enters the sleep state from the sleep state, the heart rate is not maintained in a relatively stable range until the human body enters the sleep state. Presetting the numerical range when the human body enters the sleep state as that the heart rate is less than or equal to 65 times/min, and dividing the numerical range between 75 times/min of the heart rate corresponding to the human body entering the sleep state and 65 times/min of the heart rate corresponding to the human body entering the sleep state into 5 numerical intervals with the heart rate continuously decreasing in each phase of 2 reduction of the heart rate; and the music playing volume of the sleep-aiding earphone is divided into 5 volume gears with descending volume from the initial playing volume of the preset audio file, wherein the volume gears corresponding to the 5 volume gears are respectively 100%, 80%, 60%, 40% and 20% of the initial volume of the preset audio file. In the heart rate numerical range between 75 heart rates/min corresponding to the human body entering the sleep state and 65 heart rates/min corresponding to the human body entering the sleep state, the corresponding relationship between the heart rate data and the volume gear can be as follows: with the time/min as a unit, the heart rate [75,73] corresponds to 100% of the initial playing volume of the preset audio file; the heart rate [73,71] corresponds to 80% of the initial playing volume of the preset audio file; the heart rate [71,69] corresponds to 60% of the initial playing volume of the preset audio file; the heart rate [69,67] corresponds to 40% of the initial playing volume of the preset audio file; the heart rate [67,65] corresponds to 20% of the initial playback volume of the preset audio file.
The heart rate numerical intervals correspond to the volume gears one by one, and each heart rate datum corresponds to one volume gear. When the user gradually enters the sleep state, the sleep-assisting earphone automatically adjusts the music playing volume along with the reduction of the heart rate of the user detected by the sleep-assisting earphone. The controller can reduce the volume of the sleep-aiding earphone playing preset audio files to the volume value corresponding to the volume gear according to the volume gear corresponding to the current heart rate data.
And S250, judging whether the user enters a sleep state or not according to the heart rate data.
When the heart rate of the human body falls to a certain value and is maintained in a relatively stable range after the human body enters the sleep state, the human body enters the sleep state. The numerical range when the human body enters the sleep state is preset to be that the heart rate is less than or equal to 65 times/min. After the controller judges that the user enters the sleep state according to the current heart rate data collected by the sleep-aiding earphone, whether the user enters the sleep state is judged again according to the heart rate data. If the heart rate data is within a preset numerical range of the human body sleep state, the controller judges that the user enters the sleep state; if the heart rate data is located outside the numerical range of the preset human body sleep state, the controller judges that the user does not enter the sleep state, and then the heart rate of the user is monitored. Therefore, the sleep-aiding earphone can monitor the body activity of the user in real time.
And S260, if the user enters the sleep state, recording the duration of the sleep state of the user.
And S270, stopping playing the preset audio file when the maintaining time length exceeds a preset threshold value.
After the human body enters the sleep state, the sleep-aiding earphone is still required to play the sleep-aiding music in a short time to assist the user to enter the sleep. In order to better improve the user experience, the controller judges the duration of the sleep state of the user according to the heart rate data and then records the duration of the sleep state of the user, and the duration of the sleep state of the user can be obtained through the duration. According to the statistics of the physiological data of the human body, the human body can be judged to enter a deep sleep state at the moment by a large probability after the sleep state, namely the heart rate or the respiratory rate of the user reaches the sleep standard and continuously maintains for 10 minutes, so that the human body is not easily interfered by the external environment, and the playing of the sleep-aiding music can be stopped for saving energy. Specifically, the preset threshold may be set to 10 minutes, the controller determines whether the duration of the user in the sleep state exceeds the preset threshold, and when the controller determines that the duration of the user in the sleep state exceeds the preset threshold, the controller continues to record the duration of the user in the sleep state; when the controller judges that the duration of the user in the sleep state exceeds the preset threshold, the controller can know that the user enters deep sleep at the moment, and the controller stops recording the duration of the user in the sleep state and controls the music playing unit in the sleep-aid earphone to stop playing the preset audio file.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a control device of a sleep-aiding earphone according to a third embodiment of the present invention. On the basis of the first embodiment or the second embodiment, the embodiment of the invention further provides a control device of the sleep-aiding earphone, which comprises:
the music playing module 301 is configured to play a preset audio file when receiving a sleep mode start instruction;
in an implementation example, after the music playing module 301 plays the preset audio file when receiving the sleep mode start instruction, the music playing module 301 further includes:
the signal acquisition unit is used for starting a noise reduction function and acquiring a sound signal in an external environment;
and the signal inverting unit is used for performing inverting processing on the sound signal and outputting the sound signal.
A parameter obtaining module 302, configured to detect a body state of a user in real time, and obtain a body state parameter;
in an implementation example, when the parameter obtaining module 302 detects the physical state of the user in real time and obtains the physical state parameter, the parameter obtaining module 302 further includes:
and the heart rate detection unit is used for detecting the heart rate of the user in real time through the heart rate sensor to obtain heart rate data.
The first judging module 303 is configured to judge whether the user enters a sleep state according to the body state parameter;
and the volume adjusting module 304 is configured to adjust the playing volume of the preset audio file according to a volume gear corresponding to the body state parameter if the user enters a sleep state.
In an implementation example, after the volume adjustment module 304 adjusts the playing volume of the preset audio file according to the volume level corresponding to the body state parameter when the user enters the sleep state, the volume adjustment module 304 further includes:
and the volume recovery unit is used for recovering the playing volume of the preset audio file to the initial volume when judging that the user exits from the sleeping state according to the body state parameters.
In one embodiment, the control device of the sleep-aiding earphone further comprises:
the second judging module is used for judging whether the user enters a sleep state or not according to the body state parameters;
the recording module is used for recording the duration of the sleep state of the user if the user enters the sleep state;
and the playing stopping module is used for stopping the playing of the preset audio file when the maintaining time length exceeds a preset threshold value.
According to the control device of the sleep-aiding earphone provided by the embodiment of the invention, when a sleep mode starting instruction is received, a preset audio file is played; detecting the body state of a user in real time to obtain body state parameters; judging whether the user enters a sleeping state or not according to the body state parameters; and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter. The sleep-aiding earphone can obtain the body state parameters of the user by detecting the body state of the user in real time, so that the controller can control the sleep-aiding earphone according to the numerical value change of the body state parameters. Judging whether the user enters a sleeping state or not according to the body state parameters, so that the sleep-assisting earphone can monitor the body activity degree of the user in real time; when the user gradually enters the sleep state, the sleep-assisting earphone automatically adjusts the music playing volume along with the reduction of the body state parameter value of the user detected by the sleep-assisting earphone.
Example four
Fig. 4 is a schematic view of an internal structure of a sleep-aiding earphone according to a fourth embodiment of the present invention. The sleep-aiding headphones 4 of this embodiment include: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40, such as a program of a control method of a sleep aid headset. When the processor 40 executes the computer program 42, the steps in the above-mentioned embodiment of the method for switching the operating mode, such as steps S110 to S140 shown in fig. 1 or steps S210 to S270 shown in fig. 2, are implemented.
Illustratively, the computer program 42 may be partitioned into one or more modules that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the control device 4. For example, the computer program 42 may be divided into a music playing module, a parameter acquiring module, a first judging module and a volume adjusting module, and the specific functions of each module are as follows:
the music playing module is used for playing a preset audio file when a sleep mode starting instruction is received;
the parameter acquisition module is used for detecting the body state of the user in real time to obtain body state parameters;
the first judgment module is used for judging whether the user enters a sleeping state according to the body state parameters;
and the volume adjusting module is used for adjusting the playing volume of the preset audio file according to a volume gear corresponding to the body state parameter if the user enters a sleeping state.
The sleep aid earphones may include, but are not limited to, a processor 40, a memory 41, and storage in the memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the sleep-aid earphone 4 and does not constitute a limitation of the sleep-aid earphone 4, and that it may comprise more or less components than those shown, or some components may be combined, or different components, for example, the control means may further comprise input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the sleep-aid earphone, such as a hard disk or a memory of the sleep-aid earphone 4. The memory 41 may also be an external storage device of the sleep-aid earphone 4, such as a plug-in hard disk provided on the sleep-aid earphone 4, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 41 may also include both an internal storage unit of the sleep-aid earphone 4 and an external storage device. The memory 41 is used to store the computer program and other programs and data required for the control method of the sleep aid earphone. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, 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. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are 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 modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A control method of a sleep-aiding earphone is characterized by comprising the following steps:
when a sleep mode starting instruction is received, playing a preset audio file;
detecting the body state of a user in real time to obtain body state parameters;
judging whether the user enters a sleeping state or not according to the body state parameters;
and if the user enters a sleep state, adjusting the playing volume of the preset audio file according to the volume gear corresponding to the body state parameter.
2. The method as claimed in claim 1, wherein after adjusting the playing volume of the preset audio file according to the volume level corresponding to the physical state parameter if the user enters a sleep state, the method further comprises:
judging whether the user enters a sleep state or not according to the body state parameters;
if the user enters the sleep state, recording the duration of the sleep state of the user;
and when the maintaining time length exceeds a preset threshold value, stopping playing the preset audio file.
3. The method as claimed in claim 1 or 2, wherein after adjusting the playing volume of the preset audio file according to the volume level corresponding to the physical state parameter if the user enters a sleep state, the method further comprises:
and when the user is judged to exit the sleeping state according to the body state parameters, restoring the playing volume of the preset audio file to the initial volume.
4. The method for controlling a sleep-aid earphone according to claim 1 or 2, further comprising, after playing a preset audio file when receiving a sleep mode start instruction:
starting a noise reduction function, and collecting sound signals in an external environment;
and performing phase inversion processing on the sound signal and outputting the sound signal.
5. The method for controlling a sleep-aid earphone according to claim 1, wherein the detecting the physical state of the user in real time to obtain the physical state parameters comprises:
the heart rate of the user is detected in real time through the heart rate sensor, and heart rate data are obtained.
6. A method for controlling a sleep-aid earphone as claimed in claim 5, wherein the heart rate sensor is disposed in an ear-shell of the earphone.
7. The method as claimed in claim 1, wherein if the user enters a sleep state, the method comprises, before adjusting the playing volume of the preset audio file according to the volume level corresponding to the body state parameter:
dividing the playing volume of a preset audio file into five volume gears which are gradually decreased step by step, wherein each body state parameter corresponds to one volume gear.
8. A control device for a sleep-aid earphone, comprising:
the music playing module is used for playing a preset audio file when a sleep mode starting instruction is received;
the parameter acquisition module is used for detecting the body state of the user in real time to obtain body state parameters;
the first judgment module is used for judging whether the user enters a sleeping state according to the body state parameters;
and the volume adjusting module is used for adjusting the playing volume of the preset audio file according to a volume gear corresponding to the body state parameter if the user enters a sleeping state.
9. The control device for sleep-aid headphones as recited in claim 8, further comprising:
the second judging module is used for judging whether the user enters a sleep state or not according to the body state parameters;
the recording module is used for recording the duration of the sleep state of the user if the user enters the sleep state;
and the playing stopping module is used for stopping the playing of the preset audio file when the maintaining time length exceeds a preset threshold value.
10. A sleep aid earpiece comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
CN201910512375.9A 2019-06-13 2019-06-13 Control method and device of sleep-aiding earphone Pending CN112087685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910512375.9A CN112087685A (en) 2019-06-13 2019-06-13 Control method and device of sleep-aiding earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910512375.9A CN112087685A (en) 2019-06-13 2019-06-13 Control method and device of sleep-aiding earphone

Publications (1)

Publication Number Publication Date
CN112087685A true CN112087685A (en) 2020-12-15

Family

ID=73733704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910512375.9A Pending CN112087685A (en) 2019-06-13 2019-06-13 Control method and device of sleep-aiding earphone

Country Status (1)

Country Link
CN (1) CN112087685A (en)

Cited By (10)

* 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
CN112717255A (en) * 2020-12-25 2021-04-30 平行脑界信息科技(苏州)有限公司 Improve head-mounted apparatus of sleep quality
CN113521485A (en) * 2021-06-25 2021-10-22 荣耀终端有限公司 Sleep assisting method, electronic equipment and true wireless stereo earphone
CN113616898A (en) * 2021-08-09 2021-11-09 深圳分贝声学科技有限公司 Noise pollution prevention and control method and system
CN113891209A (en) * 2021-09-27 2022-01-04 深圳艾创力科技有限公司 Earphone noise reduction method, system, device and storage medium
CN113883669A (en) * 2021-09-13 2022-01-04 Tcl空调器(中山)有限公司 Sleep-assisting control method and device for air conditioner, electronic equipment and storage medium
CN114449411A (en) * 2021-12-21 2022-05-06 歌尔科技有限公司 Dynamic adjustment method and device for volume of intelligent wearable device and intelligent wearable device
CN114765643A (en) * 2021-01-15 2022-07-19 北京小米移动软件有限公司 Terminal control method, device and medium
CN115068771A (en) * 2021-03-15 2022-09-20 青岛国创智能家电研究院有限公司 Method, device and equipment for playing audio
CN116020037A (en) * 2023-03-30 2023-04-28 森思泰克河北科技有限公司 Sleep-aiding music control method based on radar, radar and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225679A (en) * 2015-09-23 2016-01-06 广东小天才科技有限公司 A kind of method and device adjusting music
CN105249948A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Electric appliance control system and method based on sleep monitoring
CN105472496A (en) * 2015-11-21 2016-04-06 惠州Tcl移动通信有限公司 Bluetooth earphone and automatic on-off method thereof
CN205265888U (en) * 2015-12-28 2016-05-25 四川大学 Adjust earphone of volume through detecting human sleep state
CN105933814A (en) * 2016-06-23 2016-09-07 佛山市联智新创科技有限公司 Sports Bluetooth headset
CN106328170A (en) * 2016-08-24 2017-01-11 深圳第蓝筹科技有限公司 Device and method for adjusting music according to motion requirement
CN109408663A (en) * 2018-10-15 2019-03-01 珠海格力电器股份有限公司 The playback method and device for music of sleeping
CN109688505A (en) * 2019-01-23 2019-04-26 陕西理工大学 A kind of earphone broadcast control device and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105249948A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Electric appliance control system and method based on sleep monitoring
CN105225679A (en) * 2015-09-23 2016-01-06 广东小天才科技有限公司 A kind of method and device adjusting music
CN105472496A (en) * 2015-11-21 2016-04-06 惠州Tcl移动通信有限公司 Bluetooth earphone and automatic on-off method thereof
CN205265888U (en) * 2015-12-28 2016-05-25 四川大学 Adjust earphone of volume through detecting human sleep state
CN105933814A (en) * 2016-06-23 2016-09-07 佛山市联智新创科技有限公司 Sports Bluetooth headset
CN106328170A (en) * 2016-08-24 2017-01-11 深圳第蓝筹科技有限公司 Device and method for adjusting music according to motion requirement
CN109408663A (en) * 2018-10-15 2019-03-01 珠海格力电器股份有限公司 The playback method and device for music of sleeping
CN109688505A (en) * 2019-01-23 2019-04-26 陕西理工大学 A kind of earphone broadcast control device and method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112717255A (en) * 2020-12-25 2021-04-30 平行脑界信息科技(苏州)有限公司 Improve head-mounted apparatus of sleep quality
CN112689219A (en) * 2021-01-15 2021-04-20 上海闻泰信息技术有限公司 Method, apparatus, wireless headset and computer readable storage medium for managing sleep
CN114765643A (en) * 2021-01-15 2022-07-19 北京小米移动软件有限公司 Terminal control method, device and medium
CN115068771A (en) * 2021-03-15 2022-09-20 青岛国创智能家电研究院有限公司 Method, device and equipment for playing audio
CN113521485A (en) * 2021-06-25 2021-10-22 荣耀终端有限公司 Sleep assisting method, electronic equipment and true wireless stereo earphone
CN113616898A (en) * 2021-08-09 2021-11-09 深圳分贝声学科技有限公司 Noise pollution prevention and control method and system
CN113616898B (en) * 2021-08-09 2023-08-04 深圳分贝声学科技有限公司 Noise pollution control method and system
CN113883669A (en) * 2021-09-13 2022-01-04 Tcl空调器(中山)有限公司 Sleep-assisting control method and device for air conditioner, electronic equipment and storage medium
CN113891209A (en) * 2021-09-27 2022-01-04 深圳艾创力科技有限公司 Earphone noise reduction method, system, device and storage medium
CN114449411A (en) * 2021-12-21 2022-05-06 歌尔科技有限公司 Dynamic adjustment method and device for volume of intelligent wearable device and intelligent wearable device
WO2023115600A1 (en) * 2021-12-21 2023-06-29 歌尔股份有限公司 Method and apparatus for dynamically adjusting volume of intelligent wearable device and intelligent wearable device
CN116020037A (en) * 2023-03-30 2023-04-28 森思泰克河北科技有限公司 Sleep-aiding music control method based on radar, radar and storage medium

Similar Documents

Publication Publication Date Title
CN112087685A (en) Control method and device of sleep-aiding earphone
JP6857726B2 (en) Hearing protection methods, devices and systems
US11705100B2 (en) Dynamic sound masking based on monitoring biosignals and environmental noises
TWI551267B (en) Sleep aid system and operation method thereof
US20100172522A1 (en) Programmable earphone device with customizable controls and heartbeat monitoring
CN109408663A (en) The playback method and device for music of sleeping
CN103137157A (en) Terminal media play control method, terminal media play control device and terminal
CN106792166B (en) The control method and system of playback equipment
CN109413537A (en) Audio signal playback method, device and earphone
CN103750842A (en) Humanized sleep monitoring alarm clock and control method thereof
CN106658256A (en) Earphone, terminal and terminal control method
CN112689219A (en) Method, apparatus, wireless headset and computer readable storage medium for managing sleep
CN112667065A (en) Method and device for controlling intelligent playing terminal, storage medium and intelligent wearable device
CN108241957A (en) A kind of intelligent prompt method, the first wearable device and intelligent reminding system
CN106686496B (en) Play mode control method of wearable device and wearable device
CN113676595B (en) Volume adjustment method, terminal device, and computer-readable storage medium
CN105725969A (en) Alarm control method and alarm control device for wearable device
CN107426437A (en) A kind of alarm clock prompting method and device
CN109511036B (en) Automatic earphone muting method and earphone capable of automatically muting
CN105232038A (en) Brain wave analysis method and apparatus based on intelligent headset
CN209769901U (en) music pillow
KR101625610B1 (en) Bone conduction headphone hanging on the cap
CN114979360A (en) Volume adjusting method, device, terminal and storage medium
CN112130664A (en) Intelligent noise reduction method, intelligent awakening method and device using same
CN218634246U (en) Volume intelligent auxiliary adjusting module and terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201215

RJ01 Rejection of invention patent application after publication