CN109669546A - Music control method, device and computer readable storage medium - Google Patents

Music control method, device and computer readable storage medium Download PDF

Info

Publication number
CN109669546A
CN109669546A CN201910094505.1A CN201910094505A CN109669546A CN 109669546 A CN109669546 A CN 109669546A CN 201910094505 A CN201910094505 A CN 201910094505A CN 109669546 A CN109669546 A CN 109669546A
Authority
CN
China
Prior art keywords
music
user
sleep state
sleep
eeg signals
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.)
Granted
Application number
CN201910094505.1A
Other languages
Chinese (zh)
Other versions
CN109669546B (en
Inventor
韩璧丞
阿迪斯
程交
梁茂星
郜小建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Qiangnao Technology Co Ltd
Original Assignee
Zhejiang Qiangnao Technology 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 Zhejiang Qiangnao Technology Co Ltd filed Critical Zhejiang Qiangnao Technology Co Ltd
Priority to CN201910094505.1A priority Critical patent/CN109669546B/en
Publication of CN109669546A publication Critical patent/CN109669546A/en
Application granted granted Critical
Publication of CN109669546B publication Critical patent/CN109669546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/015Input arrangements based on nervous system activity detection, e.g. brain waves [EEG] detection, electromyograms [EMG] detection, electrodermal response detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a kind of music control methods, comprising: in the music player devices playing music, it is determined whether detects the brain wave acquisition request of the key triggering based on the earphone;When detecting the brain wave acquisition request, the first EEG signals of the user of the eeg sensor current detection are obtained in real time;The first sleep state of the user is determined based on first EEG signals;When first sleep state is deep sleep, stop playing the music file, and enter standby mode.The invention also discloses a kind of music play control apparatus and computer readable storage mediums.The present invention can be avoided the music player devices still continuous music play file after user enters deep sleep, and influence user sleep quality, even with family impaired hearing the case where, meanwhile the music player devices enter standby mode can be improved service life.

Description

Music control method, device and computer readable storage medium
Technical field
The present invention relates to brain wave technical fields more particularly to a kind of music control method, device and computer can Read storage medium.
Background technique
As scientific and technological level constantly develops, it can support that the terminal of music is liked by people deeply.Many people's habits Listen song in putting on earphone before sleep, but during listening song, usually can unconsciously in enter sleep, to forget to close The music player of terminal brings greatly inconvenient and impaired hearing to user, in addition, playing music for a long time makes terminal It will also result in certain influence with quality.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of music control method, device and computer-readable storage mediums Matter, it is intended to when solution puts on earphone before sleep and listens song, forget the technical issues of closing music into sleep.
To achieve the above object, the present invention provides a kind of music control method, broadcasts applied to the music for being equipped with earphone Put equipment, the earphone is equipped with eeg sensor, the music control method the following steps are included:
In the music player devices playing music, it is determined whether detect the key triggering based on the earphone Brain wave acquisition request;
When detecting the brain wave acquisition request, the of the user of the eeg sensor current detection is obtained in real time One EEG signals;
The first sleep state of the user is determined based on first EEG signals;
When first sleep state is deep sleep, stop playing the music file, and enter standby mode.
Further, described the step of determining the first sleep state of the user based on first EEG signals it Afterwards, the music control method further include:
When first sleep state is shallow sleep, the current broadcast sound volume of the music player devices is obtained;
When the broadcast sound volume is greater than the first default volume, current broadcast sound volume is reduced.
Further, after described the step of reducing current broadcast sound volume, the music control method further include:
The second EEG signals of the user of the eeg sensor current detection are obtained in real time;
The second sleep state of the user is determined based on second EEG signals;
When second sleep state is deep sleep, controls the music player devices and stop playing music, and Into standby mode.
Further, described the step of determining the first sleep state of the user based on first EEG signals it Afterwards, the music control method further include:
When first sleep state is the rapid eye movement phase, the user of the eeg sensor current detection is obtained in real time Third EEG signals;
The third sleep state of the user is determined based on the third EEG signals;
When the third sleep state is shallow sleep, continues to execute and obtain the current broadcasting sound of the music player devices The step of amount.
Further, the step of third sleep state that the user is determined based on the third EEG signals it Afterwards, the music control method further include:
When the third sleep state is the rapid eye movement phase, determine at the time of obtaining first EEG signals and current Time interval between moment;
When the time interval is greater than preset duration, the α wave frequency rate with brain wave is searched in preset musical library Identical first music file, and play the first music file.
Further, after the step of broadcasting first music file, the music control method is also wrapped It includes:
The 4th EEG signals that the brain wave acquisition device currently acquires are obtained in real time, based on the 4th brain got Electric signal determines the 4th sleep state of the user;
When the 4th sleep state is shallow sleep, the δ wave frequency rate with brain wave is searched in preset musical library Identical second music file;
Second music file is played, and continues to execute the user's for obtaining the eeg sensor current detection in real time The step of first EEG signals.
Further, described when first sleep state is deep sleep, stop playing the music file, and enter After the step of standby mode, the music control method further include:
The environmental volume of user's local environment described in real-time detection;
When the environmental volume is greater than the second default volume, the of the user of the eeg sensor current detection is obtained Five EEG signals;
The 5th sleep state of the user is determined based on the 5th EEG signals;
When the 5th sleep state is shallow sleep, the second music file is played, and is continued to execute described in real-time obtain The step of the first EEG signals of the user of eeg sensor current detection.
Further, described the step of determining five sleep state of the user based on the 5th EEG signals it Afterwards, the music control method further include:
When the third sleep state is the rapid eye movement phase, first music file is played.
In addition, to achieve the above object, the present invention also provides a kind of music play control apparatus, the music control Device includes: memory, processor and is stored in the music control that can be run on the memory and on the processor Processing procedure sequence, the music control program realize that music described in any of the above embodiments controls when being executed by the processor The step of method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Music control program is stored on storage medium, the music control program is realized among the above when being executed by processor The step of described in any item music control methods.
The present invention passes through in the music player devices playing music, it is determined whether detects based on the earphone The brain wave acquisition request of key triggering obtain brain electricity in real time then when detecting the brain wave acquisition request The first EEG signals of the user of sensor current detection then determine the first of the user based on first EEG signals Sleep state stops playing the music file, and enter standby shape then when first sleep state is deep sleep State can be avoided the music player devices still continuous music play file after user enters deep sleep, and influence user's Sleep quality, even with family impaired hearing the case where, meanwhile, which enters standby mode and can be improved and make Use the service life.
Detailed description of the invention
Fig. 1 is the structural representation of music play control apparatus in hardware running environment that the embodiment of the present invention is related to Figure;
Fig. 2 is the flow diagram of music control method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is music play control apparatus in hardware running environment that the embodiment of the present invention is related to Structural schematic diagram.
Music play control apparatus of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, e-book Reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard Audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert Compression standard audio level 4) the packaged type terminal device having a display function such as player, portable computer.
As shown in Figure 1, the music play control apparatus may include: processor 1001, such as CPU, network interface 1004, User interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional User interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable Memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned The storage device of processor 1001.
Optionally, music play control apparatus can also include camera, RF (Radio Frequency, radio frequency) circuit, Sensor, voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display screen, and proximity sensor can close when music play control apparatus is moved in one's ear Display screen and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify music play control apparatus appearance The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer, Tap) etc.;Certainly, music play control apparatus can also configure gyroscope, barometer, hygrometer, thermometer, infrared sensor Etc. other sensors, details are not described herein.
It will be understood by those skilled in the art that music play control apparatus structure shown in Fig. 1 is not constituted to music The restriction of broadcast control device may include perhaps combining certain components or different than illustrating more or fewer components Component layout.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe that module, Subscriber Interface Module SIM and music control program.
In music play control apparatus shown in Fig. 1, network interface 1004 is mainly used for connecting background server, and rear Platform server carries out data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data with client Communication;And processor 1001 can be used for that the music stored in memory 1005 is called to control program.
In the present embodiment, music play control apparatus includes: memory 1005, processor 1001 and is stored in described deposit On reservoir 1005 and can be run on the processor 1001 music control program, wherein processor 1001 calling deposit When the music control program stored in reservoir 1005, and execute following operation:
In the music player devices playing music, it is determined whether detect the key triggering based on the earphone Brain wave acquisition request;
When detecting the brain wave acquisition request, the of the user of the eeg sensor current detection is obtained in real time One EEG signals;
The first sleep state of the user is determined based on first EEG signals;
When first sleep state is deep sleep, stop playing the music file, and enter standby mode.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
When first sleep state is shallow sleep, the current broadcast sound volume of the music player devices is obtained;
When the broadcast sound volume is greater than the first default volume, current broadcast sound volume is reduced.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
The second EEG signals of the user of the eeg sensor current detection are obtained in real time;
The second sleep state of the user is determined based on second EEG signals;
When second sleep state is deep sleep, controls the music player devices and stop playing music, and Into standby mode.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
When first sleep state is the rapid eye movement phase, the user of the eeg sensor current detection is obtained in real time Third EEG signals;
The third sleep state of the user is determined based on the third EEG signals;
When the third sleep state is shallow sleep, continues to execute and obtain the current broadcasting sound of the music player devices The step of amount.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
When the third sleep state is the rapid eye movement phase, determine at the time of obtaining first EEG signals and current Time interval between moment;
When the time interval is greater than preset duration, the α wave frequency rate with brain wave is searched in preset musical library Identical first music file, and play the first music file.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
The 4th EEG signals that the brain wave acquisition device currently acquires are obtained in real time, based on the 4th brain got Electric signal determines the 4th sleep state of the user;
When the 4th sleep state is shallow sleep, the δ wave frequency rate with brain wave is searched in preset musical library Identical second music file;
Second music file is played, and continues to execute the user's for obtaining the eeg sensor current detection in real time The step of first EEG signals.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
The environmental volume of user's local environment described in real-time detection;
When the environmental volume is greater than the second default volume, the of the user of the eeg sensor current detection is obtained Five EEG signals;
The 5th sleep state of the user is determined based on the 5th EEG signals;
When the 5th sleep state is shallow sleep, the second music file is played, and is continued to execute described in real-time obtain The step of the first EEG signals of the user of eeg sensor current detection.
Further, processor 1001 can call the music stored in memory 1005 to control program, also execute It operates below:
When the third sleep state is the rapid eye movement phase, first music file is played.
The present invention also provides a kind of music control methods, are music control method of the present invention referring to Fig. 2, Fig. 2 The flow diagram of first embodiment.
In the present embodiment, which is applied to the music player devices equipped with earphone, the earphone Equipped with eeg sensor, when user wears the earphone, the electrode contact of the brain wave sensor will be with user's ear endothelium Skin is in contact, and then the EEG signals of user are detected by the electrode contact.
The music control method includes:
Step S110, in the music player devices playing music, it is determined whether detect based on the earphone Key triggering brain wave acquisition request;
Under normal circumstances, sleep be divided into the awakening phase, NREM (Non-rapideyemovement, non-rapid eye movement phase) and REM (Rapideyemovement, rapid eye movement phase), wherein NREM is divided into four periods again, and the NREM-1 phase is the drowsy state, The NREM-2 phase is shallowly to sleep the phase, and the NREM-3 phase is moderate sleep period, and the NREM-4 phase is the deep sleep phase, and rapid eye movement is that eyeball is quick Movement.In the application, be referred to as NREM interim drowsy state and the shallow phase of sleeping shallowly to sleep the phase, by the moderate sleep period in NREM with And the deep sleep phase is referred to as the sound sleep phase.
The earphone is equipped with the key of triggering brain wave acquisition request, and user can be triggered brain wave acquisition by the key and be asked It asks, in other embodiments, can also control eeg sensor when receiving the brain wave acquisition request and power on, so that brain Electric transducer starts to detect the EEG signals of user, avoids in the EEG signals without detecting user when detecting brain wave, in turn The service life of eeg sensor can be improved.For example, user listens song when listening to music rest, if earphone is put on before sleep, then Brain wave acquisition request can be triggered by the key of the earphone.
Step S120 obtains the eeg sensor current detection when detecting the brain wave acquisition request in real time User the first EEG signals;
In the present embodiment, in music player devices playing music, it is determined whether detect based on the earphone Key triggering brain wave acquisition request obtain the eeg sensor in real time if detecting the brain wave acquisition request The first EEG signals of the user of current detection, in order to determine the sleep state of user according to first EEG signals.
Step S130 determines the first sleep state of the user based on first EEG signals;
Step S140 stops playing the music file, and enter standby when first sleep state is deep sleep State.
In the present embodiment, when getting the first EEG signals, the first of user is determined according to first EEG signals Sleep state can specifically sample first EEG signals according to preset time window and predetermined period, to be adopted Sample signal calculates the Wavelet Entropy in preset time window according to the sampled signal, and by the Wavelet Entropy and default Wavelet Entropy into Row compares, and determines first sleep state, wherein when the Wavelet Entropy is greater than or equal to default Wavelet Entropy, determine described in First sleep state is shallow sleep;When the Wavelet Entropy is less than default Wavelet Entropy, determine that first sleep state is sound sleep It sleeps
The shallow of lucid interval, rapid eye movement phase and non-rapid eye movement phase in sleep procedure is slept phase and sound sleep phase, brain electricity The Wavelet Entropy of signal is gradually reduced, i.e., the Wavelet Entropy of the EEG signals of lucid interval is maximum, and sound sleep phase wave entropy is minimum, and rapid eye movement is slept Wavelet Entropy during dormancy is between lucid interval and NREM sleep phase, therefore, according to this rule, can first acquire multiple The EEG signals in each period in sleep procedure, and Wavelet Entropy is obtained, using the corresponding Wavelet Entropy of each sleep procedure as pre- If Wavelet Entropy.In the present embodiment, it is compared according to Wavelet Entropy with default Wavelet Entropy, it is accurate to determine the first sleep state.It needs It is noted that since the non-rapid eye movement phase of the application only includes shallowly sleeping phase and sound sleep phase, it is settable shallowly sleep the phase with The corresponding default Wavelet Entropy of boundary between the sound sleep phase, wherein when the Wavelet Entropy is greater than or equal to default Wavelet Entropy, determine First sleep state is shallow sleep;When the Wavelet Entropy is less than default Wavelet Entropy, determine that first sleep state is Deep sleep.
In the present embodiment, when the first sleep state is deep sleep, stop playing music, and enter standby shape State, to avoid after user enters deep sleep, the music player devices still continuous music play file, and influence sleeping for user Dormancy quality, even with family impaired hearing the case where, meanwhile, which, which enters standby mode, can be improved use Service life.
The music control method that the present embodiment proposes, by the music player devices playing music, The brain wave acquisition request for determining whether to detect the key triggering based on the earphone, is then detecting that the brain wave obtains When taking request, the first EEG signals of the user of the eeg sensor current detection are obtained in real time, are then based on described first EEG signals determine the first sleep state of the user, then when first sleep state is deep sleep, stop playing The music file, and enter standby mode, it is still lasting to can be avoided the music player devices after user enters deep sleep Playing music, and influence user sleep quality, even with family impaired hearing the case where, meanwhile, the music Equipment, which enters standby mode, can be improved service life.
Based on first embodiment, the second embodiment of music control method of the present invention is proposed, in the present embodiment, After step S130, the music control method further include:
Step S150 obtains the current broadcasting of the music player devices when first sleep state is shallow sleep Volume;
Step S160 reduces current broadcast sound volume when the broadcast sound volume is greater than the first default volume.
In the present embodiment, when getting the first EEG signals, the first of user is determined according to first EEG signals Sleep state obtains the current broadcast sound volume of the music player devices if the first sleep state is shallow sleep, and broadcasts at this When playback amount is greater than the first default volume, current broadcast sound volume is reduced, so that the broadcast sound volume of the music player devices is less than The first default volume, and then avoid waking user up.
Wherein, the first default volume can be rationally arranged, for example, the lighter user of sleep, settable lower the One default volume, and for the heavier user of sleeping, then settable the first slightly bigger default volume.
The music control method that the present embodiment proposes, by obtaining when first sleep state is shallow sleep The current broadcast sound volume of the music player devices reduces current then when the broadcast sound volume is greater than the first default volume Broadcast sound volume, and then being in user makes the broadcast sound volume of the music player devices be less than the first default sound when shallow sleep Amount, and then avoid waking user up, and then can be improved the sleep quality of user, promote user experience.
Based on second embodiment, the 3rd embodiment of music control method of the present invention is proposed, in the present embodiment, After step S160, the music control method further include:
Step S170 obtains the second EEG signals of the user of the eeg sensor current detection in real time;
Step S180 determines the second sleep state of the user based on second EEG signals;
Step S190 controls the music player devices and stops playing sound when second sleep state is deep sleep Music file, and enter standby mode.
In the present embodiment, after the broadcast sound volume for reducing music player devices, the eeg sensor is obtained in real time The second EEG signals of the user of current detection, and determine according to second EEG signals the second sleep state of the user, If the second sleep state is deep sleep, controls the music player devices and stops playing music, and enter standby mode, And then the music player devices still continuous music play file after user enters deep sleep is avoided, and influence the sleep of user Quality, even with family impaired hearing the case where, meanwhile, which, which enters standby mode, can be improved using the longevity Life, improves user experience.
In other embodiments, it can add up the current music after the broadcast sound volume for reducing music player devices and broadcast The playing duration of equipment is put, if the playing duration reaches prefixed time interval, it is current to obtain the eeg sensor in real time The second EEG signals of the user of detection.Since user needs the regular hour into deep sleep by shallowly sleeping, setting exists When playing duration reaches prefixed time interval, then in real time obtain the second EEG signals, and then can ensure user enter or i.e. By deep sleep.Wherein, which can be rationally arranged according to demand, for example, the sleep quality of user is poor When, settable longer prefixed time interval, when the sleep of user is preferable, settable shorter prefixed time interval.Specifically Ground, the prefixed time interval may be configured as 3 minutes, 5 minutes etc..
It should be noted that if the second sleep state is shallow sleep, then the music player devices continue to play music.
The music control method that the present embodiment proposes, by the use for obtaining the eeg sensor current detection in real time Second EEG signals at family then determine the second sleep state of the user, then in institute based on second EEG signals When to state the second sleep state be deep sleep, control the music player devices and stops playing music, and enter standby mode, And then the music player devices still continuous music play file after user enters deep sleep is avoided, and influence the sleep of user Quality, even with family impaired hearing the case where, meanwhile, which, which enters standby mode, can be improved using the longevity Life, improves user experience.
Based on second embodiment, the fourth embodiment of music control method of the present invention is proposed, in the present embodiment, After step S130, the music control method further include:
It is current to obtain the eeg sensor when first sleep state is the rapid eye movement phase in real time by step S200 The third EEG signals of the user of detection;
Step S210 determines the third sleep state of the user based on the third EEG signals;
Step S220 continues to execute the acquisition music player devices and works as when the third sleep state is shallow sleep The step of preceding broadcast sound volume.
In the present embodiment, if the first sleep state is the rapid eye movement phase, the use of eeg sensor current detection is obtained The third EEG signals at family, and determine based on third EEG signals the third sleep state of the user, if third sleep state Shallowly to sleep, then the step of obtaining the music player devices current broadcast sound volume is continued to execute, so that the music is set Standby broadcast sound volume is less than the first default volume, and then avoids waking user up.
The present embodiment propose music control method, by first sleep state be the rapid eye movement phase when, The third EEG signals of the user of the eeg sensor current detection are obtained in real time, it is then true based on the third EEG signals The third sleep state of the fixed user continues to execute then when the third sleep state is shallow sleep and obtains the sound The step of happy playback equipment current broadcast sound volume, realizes when user enters shallow sleep by the rapid eye movement phase, makes the music The broadcast sound volume of playback equipment is less than the first default volume, and then avoids waking user up, and then can be improved the sleep of user Quality further promotes user experience.
Based on fourth embodiment, the 5th embodiment of music control method of the present invention is proposed, in the present embodiment, After step S220, the music control method further include:
Step S230 is determined when the third sleep state is the rapid eye movement phase and is obtained first EEG signals Time interval between moment and current time;
Step S240, when the time interval is greater than preset duration, lookup and brain wave in preset musical library The identical first music file of α wave frequency rate, and play the first music file.
In the present embodiment, if third sleep state remains as the rapid eye movement phase, the acquisition of the first EEG signals is obtained Moment calculates the time interval of the first EEG signals obtained between moment and current time, if the time interval is greater than in advance If duration, then it can not fall asleep in the current user's long-time in surface, the α wave frequency with brain wave is searched in preset musical library The identical first music file of rate, and the first music file is played, with identical with the α wave frequency rate of brain wave by playing First music file to induce user to generate the brain wave of α wave frequency rate, and then induces user to loosen, so that user rapidly enters Sleep state.
It should be noted that preset musical library and music player devices communication connection or music player devices It, can be in advance in music file of the preset musical library storage with abundant α wave frequency spectrum equipped with preset musical library;Have abundant The music file of α wave frequency spectrum can be introduced directly into when leaving the factory, can also be by user by the Internet download, or from special Provider's purchase, then imported into the corresponding audio playing apparatus of the application by data line.
The present embodiment propose music control method, by the third sleep state be the rapid eye movement phase when, It determines time interval at the time of obtaining first EEG signals between current time, is then greater than in the time interval When preset duration, first music file identical with the α wave frequency rate of brain wave is searched in preset musical library, and play institute First music file is stated, is realized when can not fall asleep in user's long-time, it is identical with the α wave frequency rate of brain wave by playing First music file to induce user to generate the brain wave of α wave frequency rate, and then induces user to loosen, so that user rapidly enters Sleep state, and then improve the sleep state of user.
Based on the 5th embodiment, the sixth embodiment of music control method of the present invention is proposed, in the present embodiment, After step S240, the music control method further include:
Step S250 obtains the 4th EEG signals that the brain wave acquisition device currently acquires, based on what is got in real time 4th EEG signals determine the 4th sleep state of the user;
Step S260, when the 4th sleep state is shallow sleep, lookup and brain wave in preset musical library Identical second music file of δ wave frequency rate;
Step S270 plays second music file, and continues to execute and obtain the eeg sensor in real time and currently examine The step of the first EEG signals of the user of survey.
In the present embodiment, after playing the second music file, the brain wave acquisition device is obtained in real time and is currently acquired The 4th EEG signals, the 4th sleep state of user is determined based on the 4th EEG signals, if the 4th sleep state is shallow When sleep, then the second music file identical with the δ wave frequency rate of brain wave is searched in preset musical library, and described in broadcasting Second music file is lured when user enters and shallowly sleeps the phase by playing first music file identical with the δ wave frequency rate of brain wave Leading user makes user rapidly enter the sound sleep phase, to improve the sleep quality of user.Meanwhile by continuing to execute described in acquisition in real time The step of the first EEG signals of the user of eeg sensor current detection, can be avoided the music after user enters deep sleep Playback equipment still continuous music play file, and influence user sleep quality, even with family impaired hearing the case where, Meanwhile the music player devices enter standby mode can be improved service life.
In other embodiments, first music file can be added up after music player devices play first music file Playing duration obtain brain wave acquisition dress in real time if the playing duration of the first music file reaches preset time period Set the 4th EEG signals currently acquired.The regular hour is needed since user enters shallow sleep by the rapid eye movement phase, if It sets when the playing duration of first music file reaches preset time period, then obtains the 4th EEG signals in real time, and then can be true Warranty family enters or will shallowly sleep.Wherein, which can be rationally arranged according to demand, for example, user Sleep quality it is poor when, settable longer preset time period, when the sleep of user is preferable, when settable shorter default Between section.Specifically, which may be configured as 3 minutes, 5 minutes etc..
The music control method that the present embodiment proposes currently is acquired by obtaining the brain wave acquisition device in real time 4th EEG signals determine the 4th sleep state of the user based on the 4th EEG signals got, and described When 4th sleep state is shallow sleep, the second music identical with the δ wave frequency rate of brain wave is searched in preset musical library File then plays second music file, and continues to execute the user for obtaining the eeg sensor current detection in real time The first EEG signals the step of, realize when user is entered by the rapid eye movement phase and shallowly sleeps the phase by playing and the δ of brain wave The identical first music file of wave frequency rate, induction user makes user rapidly enter the sound sleep phase, to improve the sleep quality of user.Together When, it, can by the step of continuing to execute the first EEG signals for obtaining the user of the eeg sensor current detection in real time The music player devices still continuous music play file after user enters deep sleep is avoided, and influences the sleep matter of user Amount, even with family impaired hearing the case where.
Based on the above embodiment, the 7th embodiment of music control method of the present invention is proposed, in the present embodiment, After step S140, the music control method further include:
Step S280, the environmental volume of user's local environment described in real-time detection;
Step S290 obtains the eeg sensor current detection when the environmental volume is greater than the second default volume User the 5th EEG signals;
Step S300 determines the 5th sleep state of the user based on the 5th EEG signals;
Step S310 plays the second music file when the 5th sleep state is shallow sleep, and continues to execute in real time The step of obtaining the first EEG signals of the user of the eeg sensor current detection.
In the present embodiment, when music player devices enter standby mode, user's local environment described in real-time detection Environmental volume obtains the 5th of the user of the eeg sensor current detection if environmental volume is greater than the second default volume EEG signals determine the 5th sleep state of the user based on the 5th EEG signals, to determine whether user is waken up Or the sleep state of user has deep sleep to enter shallow sleep, if the 5th sleep state is shallow sleep, plays the second music file, And the step of continuing to execute the first EEG signals for obtaining the user of the eeg sensor current detection in real time, in user by depth Sleep enters by playing first music file identical with the δ wave frequency rate of brain wave when shallowly sleeping the phase, and induction user keeps user fast Speed enters the sound sleep phase, to improve the sleep quality of user.Meanwhile to obtain the eeg sensor in real time current by continuing to execute The step of the first EEG signals of the user of detection, can be avoided the music player devices after user enters deep sleep and still hold Continuous playing music, and influence user sleep quality, even with family impaired hearing the case where, meanwhile, which broadcasts It puts equipment and enters standby mode and can be improved service life.
Wherein, the second default volume can be rationally arranged, and set-up mode is similar with the first default volume, not exist again It repeats.
Further, in other embodiments, music control method further include: be in the third sleep state When the rapid eye movement phase, first music file is played.First music file identical with the α wave frequency rate of brain wave is played to pass through, To induce user to generate the brain wave of α wave frequency rate, and then user is induced to loosen, so that user rapidly enters sleep state.
The music control method that the present embodiment proposes, passes through the ambient sound of user's local environment described in real-time detection Amount obtains the of the user of the eeg sensor current detection then when the environmental volume is greater than the second default volume Five EEG signals then determine the 5th sleep state of the user, then the described 5th based on the 5th EEG signals When sleep state is shallow sleep, the second music file is played, and continue to execute and obtain the eeg sensor current detection in real time User the first EEG signals the step of, realize when user is entered by the sound sleep phase and shallowly sleeps the phase by playing with brain wave The identical first music file of δ wave frequency rate, induction user makes user rapidly enter the sound sleep phase, to improve the sleep quality of user. Meanwhile the step of by continuing to execute the first EEG signals for obtaining the user of the eeg sensor current detection in real time, energy The music player devices still continuous music play file after user enters deep sleep is enough avoided, and influences the sleep matter of user Amount, even with family impaired hearing the case where.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with music control program, music control program realizes following operation when being executed by processor:
In the music player devices playing music, it is determined whether detect the key triggering based on the earphone Brain wave acquisition request;
When detecting the brain wave acquisition request, the of the user of the eeg sensor current detection is obtained in real time One EEG signals;
The first sleep state of the user is determined based on first EEG signals;
When first sleep state is deep sleep, stop playing the music file, and enter standby mode.
Further, following operation is also realized when the music control program is executed by processor:
When first sleep state is shallow sleep, the current broadcast sound volume of the music player devices is obtained;
When the broadcast sound volume is greater than the first default volume, current broadcast sound volume is reduced.
Further, following operation is also realized when the music control program is executed by processor:
The second EEG signals of the user of the eeg sensor current detection are obtained in real time;
The second sleep state of the user is determined based on second EEG signals;
When second sleep state is deep sleep, controls the music player devices and stop playing music, and Into standby mode.
Further, following operation is also realized when the music control program is executed by processor:
When first sleep state is the rapid eye movement phase, the user of the eeg sensor current detection is obtained in real time Third EEG signals;
The third sleep state of the user is determined based on the third EEG signals;
When the third sleep state is shallow sleep, continues to execute and obtain the current broadcasting sound of the music player devices The step of amount.
Further, following operation is also realized when the music control program is executed by processor:
When the third sleep state is the rapid eye movement phase, determine at the time of obtaining first EEG signals and current Time interval between moment;
When the time interval is greater than preset duration, the α wave frequency rate with brain wave is searched in preset musical library Identical first music file, and play the first music file.
Further, following operation is also realized when the music control program is executed by processor:
The 4th EEG signals that the brain wave acquisition device currently acquires are obtained in real time, based on the 4th brain got Electric signal determines the 4th sleep state of the user;
When the 4th sleep state is shallow sleep, the δ wave frequency rate with brain wave is searched in preset musical library Identical second music file;
Second music file is played, and continues to execute the user's for obtaining the eeg sensor current detection in real time The step of first EEG signals.
Further, following operation is also realized when the music control program is executed by processor:
The environmental volume of user's local environment described in real-time detection;
When the environmental volume is greater than the second default volume, the of the user of the eeg sensor current detection is obtained Five EEG signals;
The 5th sleep state of the user is determined based on the 5th EEG signals;
When the 5th sleep state is shallow sleep, the second music file is played, and is continued to execute described in real-time obtain The step of the first EEG signals of the user of eeg sensor current detection.
Further, following operation is also realized when the music control program is executed by processor:
When the third sleep state is the rapid eye movement phase, first music file is played.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of music control method, which is characterized in that applied to the music player devices for being equipped with earphone, the earphone is set Have eeg sensor, the music control method the following steps are included:
In the music player devices playing music, it is determined whether detect the brain of the key triggering based on the earphone Electric wave acquisition request;
When detecting the brain wave acquisition request, the first brain of the user of the eeg sensor current detection is obtained in real time Electric signal;
The first sleep state of the user is determined based on first EEG signals;
When first sleep state is deep sleep, stop playing the music file, and enter standby mode.
2. music control method as described in claim 1, which is characterized in that described true based on first EEG signals After the step of the first sleep state of the fixed user, the music control method further include:
When first sleep state is shallow sleep, the current broadcast sound volume of the music player devices is obtained;
When the broadcast sound volume is greater than the first default volume, current broadcast sound volume is reduced.
3. music control method as claimed in claim 2, which is characterized in that the step for reducing current broadcast sound volume After rapid, the music control method further include:
The second EEG signals of the user of the eeg sensor current detection are obtained in real time;
The second sleep state of the user is determined based on second EEG signals;
When second sleep state is deep sleep, controls the music player devices and stop playing music, and enter Standby mode.
4. music control method as claimed in claim 2, which is characterized in that described true based on first EEG signals After the step of the first sleep state of the fixed user, the music control method further include:
When first sleep state is the rapid eye movement phase, the of the user of the eeg sensor current detection is obtained in real time Three EEG signals;
The third sleep state of the user is determined based on the third EEG signals;
When the third sleep state is shallow sleep, continues to execute and obtain the current broadcast sound volume of the music player devices Step.
5. music control method as claimed in claim 4, which is characterized in that described true based on the third EEG signals After the step of third sleep state of the fixed user, the music control method further include:
The third sleep state be the rapid eye movement phase when, determine obtain first EEG signals at the time of and current time Between time interval;
When the time interval is greater than preset duration, searched in preset musical library identical as the α wave frequency rate of brain wave First music file, and play the first music file.
6. music control method as claimed in claim 5, which is characterized in that the broadcasting first music file After step, the music control method further include:
The 4th EEG signals that the brain wave acquisition device currently acquires are obtained in real time, based on the 4th brain telecommunications got Number determine the 4th sleep state of the user;
When the 4th sleep state is shallow sleep, searched in preset musical library identical as the δ wave frequency rate of brain wave The second music file;
Second music file is played, and continues to execute the first of the user for obtaining the eeg sensor current detection in real time The step of EEG signals.
7. such as music control method described in any one of claims 1 to 6, which is characterized in that described described first When sleep state is deep sleep, stop playing the music file, and after the step of entering standby mode, the music Control method further include:
The environmental volume of user's local environment described in real-time detection;
When the environmental volume is greater than the second default volume, the 5th brain of the user of the eeg sensor current detection is obtained Electric signal;
The 5th sleep state of the user is determined based on the 5th EEG signals;
When the 5th sleep state is shallow sleep, the second music file is played, and continues to execute and obtains the brain electricity in real time The step of the first EEG signals of the user of sensor current detection.
8. music control method as claimed in claim 7, which is characterized in that described true based on the 5th EEG signals After the step of five sleep state of the fixed user, the music control method further include:
When the third sleep state is the rapid eye movement phase, first music file is played.
9. a kind of music play control apparatus, which is characterized in that the music play control apparatus includes: memory, processor And it is stored in the music control program that can be run on the memory and on the processor, the music control It realizes when program is executed by the processor such as the step of music control method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with music on the computer readable storage medium and broadcast Control program is put, the music control program is realized when being executed by processor as described in any item of the claim 1 to 8 The step of music control method.
CN201910094505.1A 2019-01-30 2019-01-30 Music playing control method and device and computer readable storage medium Active CN109669546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910094505.1A CN109669546B (en) 2019-01-30 2019-01-30 Music playing control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910094505.1A CN109669546B (en) 2019-01-30 2019-01-30 Music playing control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109669546A true CN109669546A (en) 2019-04-23
CN109669546B CN109669546B (en) 2022-06-07

Family

ID=66150134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910094505.1A Active CN109669546B (en) 2019-01-30 2019-01-30 Music playing control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109669546B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113995939A (en) * 2021-12-31 2022-02-01 深圳市心流科技有限公司 Sleep music playing method and device based on electroencephalogram signals and terminal
CN115644825A (en) * 2022-12-26 2023-01-31 深圳市心流科技有限公司 Sleep stimulation adjusting method based on external environment and related equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070270706A1 (en) * 2006-05-22 2007-11-22 Pekka Merilainen Determination of sleep depth
CN101584903A (en) * 2009-07-06 2009-11-25 李隆 Music sleeping apparatus and method for controlling sleeping to prevent sudden death in dream
CN102999701A (en) * 2012-11-28 2013-03-27 电子科技大学 Brain wave music generation method
CN103475971A (en) * 2013-09-18 2013-12-25 青岛歌尔声学科技有限公司 Headset
CN203706669U (en) * 2014-03-04 2014-07-09 江西科技学院 Brain wave self-adapting audio player
WO2014172775A1 (en) * 2013-04-22 2014-10-30 Personal Neuro Devices Inc. Methods and devices for brain activity monitoring supporting mental state development and training
US20150092050A1 (en) * 2013-09-30 2015-04-02 Lg Electronics Inc. Wearable computing device and user interface method
CN104799643A (en) * 2015-05-14 2015-07-29 奉化科创科技服务有限公司 Sleep-aiding pillow and sleep-aiding method
CN105231998A (en) * 2015-10-23 2016-01-13 深圳市冠旭电子有限公司 Method and device for monitoring sleep
CN205051851U (en) * 2015-10-30 2016-02-24 深圳创达云睿智能科技有限公司 Intelligent earphone of brain electricity
CN105929926A (en) * 2016-04-08 2016-09-07 惠州Tcl移动通信有限公司 VR (Virtual Reality) glasses and power saving method thereof
CN106028186A (en) * 2016-05-17 2016-10-12 李华敏 Method for intelligently adjusting operation state of earphone by perceiving human-body state
CN106730239A (en) * 2017-02-07 2017-05-31 陈大庆 A kind of closed loop hypnosis head-shield based on brain wave monitoring
CN107126615A (en) * 2017-04-20 2017-09-05 重庆邮电大学 Music induced hypnotic method and system based on EEG signals
CN107281609A (en) * 2016-04-01 2017-10-24 深圳市新元素健康管理有限公司 The system and method that a kind of sleep quality improves
CN109274757A (en) * 2018-10-15 2019-01-25 珠海格力电器股份有限公司 A kind of music method for pushing, household appliance and computer storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070270706A1 (en) * 2006-05-22 2007-11-22 Pekka Merilainen Determination of sleep depth
CN101584903A (en) * 2009-07-06 2009-11-25 李隆 Music sleeping apparatus and method for controlling sleeping to prevent sudden death in dream
CN102999701A (en) * 2012-11-28 2013-03-27 电子科技大学 Brain wave music generation method
WO2014172775A1 (en) * 2013-04-22 2014-10-30 Personal Neuro Devices Inc. Methods and devices for brain activity monitoring supporting mental state development and training
CN103475971A (en) * 2013-09-18 2013-12-25 青岛歌尔声学科技有限公司 Headset
US20150092050A1 (en) * 2013-09-30 2015-04-02 Lg Electronics Inc. Wearable computing device and user interface method
CN203706669U (en) * 2014-03-04 2014-07-09 江西科技学院 Brain wave self-adapting audio player
CN104799643A (en) * 2015-05-14 2015-07-29 奉化科创科技服务有限公司 Sleep-aiding pillow and sleep-aiding method
CN105231998A (en) * 2015-10-23 2016-01-13 深圳市冠旭电子有限公司 Method and device for monitoring sleep
CN205051851U (en) * 2015-10-30 2016-02-24 深圳创达云睿智能科技有限公司 Intelligent earphone of brain electricity
CN107281609A (en) * 2016-04-01 2017-10-24 深圳市新元素健康管理有限公司 The system and method that a kind of sleep quality improves
CN105929926A (en) * 2016-04-08 2016-09-07 惠州Tcl移动通信有限公司 VR (Virtual Reality) glasses and power saving method thereof
CN106028186A (en) * 2016-05-17 2016-10-12 李华敏 Method for intelligently adjusting operation state of earphone by perceiving human-body state
CN106730239A (en) * 2017-02-07 2017-05-31 陈大庆 A kind of closed loop hypnosis head-shield based on brain wave monitoring
CN107126615A (en) * 2017-04-20 2017-09-05 重庆邮电大学 Music induced hypnotic method and system based on EEG signals
CN109274757A (en) * 2018-10-15 2019-01-25 珠海格力电器股份有限公司 A kind of music method for pushing, household appliance and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李昕等: "小波变换结合经验模态分解在音乐干预脑电分析中的应用", 《生物医学工程学杂志》 *
肖余粮,和卫星,陈晓平,吉奕,吴秋明: "《小波变换和小波熵在睡眠脑电信号变化特性研究中的应用价值》", 《中国临床康复》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113995939A (en) * 2021-12-31 2022-02-01 深圳市心流科技有限公司 Sleep music playing method and device based on electroencephalogram signals and terminal
CN115644825A (en) * 2022-12-26 2023-01-31 深圳市心流科技有限公司 Sleep stimulation adjusting method based on external environment and related equipment

Also Published As

Publication number Publication date
CN109669546B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
US9310779B2 (en) Mobile terminal and controlling method thereof
CN111294638B (en) Method, device, terminal and storage medium for realizing video interaction
CN110868626B (en) Method and device for preloading content data
CN107659637B (en) Sound effect setting method and device, storage medium and terminal
CN109568766A (en) Audio frequency playing method, device and computer readable storage medium
KR20160015727A (en) Method and apparatus for visualizing music information
CN107256139A (en) Method of adjustment, terminal and the computer-readable recording medium of audio volume
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN108650418B (en) Fatigue reminding method and device, intelligent terminal and storage medium
KR20180005695A (en) Information acquisition method and device
CN109857899A (en) Song recommendations method, playback equipment and computer readable storage medium
CN107633853B (en) Control method for playing audio and video files and user terminal
CN106201816B (en) Reminding method and device
CN106020510A (en) Control method and device of terminal
CN108322614B (en) Event reminding method and device, storage medium and electronic equipment
CN109035180A (en) Video broadcasting method, device, equipment and storage medium
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
CN108924452A (en) Part record screen method, apparatus and computer readable storage medium
CN109669546A (en) Music control method, device and computer readable storage medium
CN107741812B (en) A kind of method and terminal handling media file
CN109144352B (en) Automatic reading method, device, terminal and storage medium
CN109547633A (en) A kind of based reminding method, terminal and computer readable storage medium
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN111343497A (en) Sound effect adjusting method of playing equipment, playing equipment and storage medium
CN110083331A (en) Wearable device play mode control method, device, wearable device and medium

Legal Events

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