CN109727611A - It is a kind of to automatically control the method and device played - Google Patents

It is a kind of to automatically control the method and device played Download PDF

Info

Publication number
CN109727611A
CN109727611A CN201811620837.0A CN201811620837A CN109727611A CN 109727611 A CN109727611 A CN 109727611A CN 201811620837 A CN201811620837 A CN 201811620837A CN 109727611 A CN109727611 A CN 109727611A
Authority
CN
China
Prior art keywords
timing
module
playing
preset duration
duration
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
CN201811620837.0A
Other languages
Chinese (zh)
Other versions
CN109727611B (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201811620837.0A priority Critical patent/CN109727611B/en
Publication of CN109727611A publication Critical patent/CN109727611A/en
Application granted granted Critical
Publication of CN109727611B publication Critical patent/CN109727611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The present invention provides a kind of method and device for automatically controlling and playing, method includes: to play audio file and/or Streaming Media;Receive the enabled instruction for being used to start automatic control playing function of user's input;When receiving enabled instruction, starts the timing of the first preset duration, monitored body movement signal before the timing of the first preset duration terminates, then restarted the timing of the first preset duration;At the end of the timing of the first preset duration, and body movement signal is not monitored in this timing duration, then the broadcasting of audio file and/or Streaming Media is controlled according to predetermined manner, predetermined manner includes stopping playing or turning down broadcast sound volume, the case where being fallen asleep according to monitoring user, music automatic stop plays, and improves practicability of the player in terms of assisting sleep.

Description

It is a kind of to automatically control the method and device played
Technical field
The present invention relates to automatic control technology fields, in particular to a kind of to automatically control the method and device played.
Background technique
It is well known that specific white noises such as music or the thunderous patter of rain of audio, sound of sea wave etc., have promotion to make human body sleep It wakes up with, difficulty falling asleep or on the way and can play such music help when can't fall asleep and fall asleep.Although having on mobile terminal such as mobile phone The application of sleeping music can be much played, and these applications all have timing shutdown function, user can pass through multimedia Player such as Baffle Box of Bluetooth plays such music, but selects the sequence of operations such as broadcasting content and setting timing shutdown that will move It is completed in dynamic terminal, allows the people that suffers from and can not fall asleep to contact mobile terminal at this time and be tantamount to make the matter worse.In order to avoid contact moves Dynamic terminal, it is also contemplated that sleeping music is pre-reserved in the memory of player, wherein some players support TF Card, but regrettably, the overwhelming majority supports the player of memory not have timing shutdown function.Even if having timing shutdown function Can, for difficulty falling asleep person, it is not aware that the setting timing shutdown time how long is just suitable in fact, being arranged short may be also Do not fall asleep just stopped broadcasting, setting has been grown after sleep again may be by music to waking up.
In addition, the effect of music aid-sleeping varies with each individual, there is presently no the use habits for a certain user to recommend automatically The player or scheme of sleeping music.
So currently there are most multimedia players, practicability is lower in terms of assisting sleep.
Summary of the invention
The case where present invention provides a kind of method and device for automatically controlling and playing, and is fallen asleep according to monitoring user, stops automatically Only music improves practicability of the player in terms of assisting sleep.
To achieve the above object, a kind of method automatically controlling broadcasting provided in an embodiment of the present invention, comprising:
Play audio file and/or Streaming Media;
Receive the enabled instruction for being used to start automatic control playing function of user's input;
When receiving the enabled instruction, start the timing of the first preset duration, when the meter of first preset duration When terminate before monitored the body movement signal of user, then restart the timing of the first preset duration;When described first is default At the end of long timing, and the body movement signal of user is not monitored in this timing duration, then according to predetermined manner to described The broadcasting of audio file and/or Streaming Media is controlled, and the predetermined manner includes stopping playing or turning down broadcast sound volume.
In a kind of mode in the cards, first preset duration is more than or equal to 1 minute and is less than or equal to 30 minutes.
In a kind of mode in the cards, further includes:
At the end of the timing of first preset duration, and body movement signal is not monitored in this timing duration, then open The timing for second preset duration that begins;
Wherein, before the timing of first preset duration terminates, broadcast sound volume V1;In second preset duration Timing starts or later, broadcast sound volume reduces Δ V1 on the basis of V1, and Δ V1 is greater than zero;
Before the timing of second preset duration terminates, if having monitored the body movement signal of user, described in stopping The timing of second preset duration and the timing for restarting the first preset duration, while broadcast sound volume is on the basis of V1- Δ V1 Δ V2 is improved, Δ V2 is greater than zero, wherein V1- Δ V1+ Δ V2 is equal to the difference between V1 or V1- Δ V1+ Δ V2 and V1 Absolute value is equal to or less than preset difference value;
At the end of the timing of second preset duration, if not monitoring that the body of user is dynamic in this timing duration Signal then stops playing;
Wherein, second preset duration be more than or equal to 30 seconds, and first preset duration with described second it is default when It is the sum of long to be less than or equal to 30 minutes.
In a kind of mode in the cards, while the playing stream media, the audio content played is recorded System, and store recording result.
In a kind of mode in the cards, when stopping playing, mark to the audio content stopped before playing.
Based on same inventive concept, the embodiment of the present invention provides a kind of device for automatically controlling and playing, comprising:
Playing module, for playing audio file and/or Streaming Media;
Receiving module, for receiving the enabled instruction for being used to start automatic control playing function of user's input;
Induction module, for monitoring whether user issues body movement signal;
Control module, for when the receiving module receives the enabled instruction, the first timing module of starting to start Timing, timing duration are set as the first preset duration;Before described this timing of first timing module terminates, the induction module Monitor body movement signal, then the control module control first timing module restarts timing;When first timing At the end of this timing of module, the induction module does not monitor body movement signal in this timing duration, then the control mould Block controls the playing module and works according to predetermined manner, and the predetermined manner includes stopping playing or turning down broadcasting sound Amount.
In a kind of mode in the cards, further includes:
The control module is also used at the end of when described this timing of first timing module, and the induction module exists Body movement signal is not monitored in this timing duration of first timing module, then the control module starts the second timing mould BOB(beginning of block) timing, timing duration are set as the second preset duration;
Wherein, before described this timing of first timing module terminates, the control module controls the playing module and broadcasts The volume put is V1;The control module starts while the second timing module starts timing or later, the control module control Make the volume that the playing module plays reduces Δ V1 on the basis of V1, and Δ V1 is greater than zero;
Before described this timing of second timing module terminates, if the induction module monitors body movement signal, institute It states control module and controls the second timing module stopping timing and control first timing module and restart timing, together When control the volume that the playing module plays and improve Δ V2 on the basis of V1- Δ V1, Δ V2 is greater than zero, wherein V1- Δ V1 The absolute value that+Δ V2 is equal to the difference between V1 V1- Δ V1+ Δ V2 and V1 is equal to or less than preset difference value;
At the end of described this timing of second timing module, if the induction module is in second timing module Body movement signal is not detected in this timing duration, then the control module controls the playing module and stops playing;
Wherein, the first timing module and the second timing module are independent timing module or are the same timing module;
Wherein, the second preset duration is more than or equal to 30 seconds, and first preset duration and second preset duration it Be less than or equal to 30 minutes.
In a kind of mode in the cards, further includes:
Module is recorded, is used for while the playing module plays the playing stream media, in the audio played Appearance is recorded;
Memory module, for storing the recording result for recording module.
In a kind of mode in the cards, the enabled instruction, the switching command including switching sound source.
In a kind of mode in the cards, the induction module includes at least one infrared sensor, the infrared biography The induction region formed in front of sensor at least covers the head of the user in lying posture or sitting posture on bed, the induction region projection The fan-shaped central angle formed on to horizontal plane is not less than 60 °.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart for automatically controlling the method played in the embodiment of the present invention;
Fig. 2 is the timing diagram that user's hypnagogic state is judged in the embodiment of the present invention;
Fig. 3 is the flow chart that the method for the first preset duration is set in the embodiment of the present invention;
Fig. 4 is in the embodiment of the present invention to the timing diagram of the first preset duration judgement;
Fig. 5 is a kind of structure chart for automatically controlling the device played in the embodiment of the present invention;
Fig. 6 is a kind of induction region schematic diagram for automatically controlling the device played in the embodiment of the present invention;
Fig. 7 is the relationship that a kind of pair of music is marked with broadcasting priority in the embodiment of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
The embodiment of the present invention provides a kind of method for automatically controlling and playing, as shown in Figure 1, including step 101-103:
Step 101: receiving the enabled instruction for being used to start automatic control playing function of user's input;
Wherein, it includes but is not limited to that user passes through the mechanical switch on device, touch that starting, which automatically controls the method played, Switch, touch screen, the starting of non-contact switch equal controller, user are started by voice input module control device, user Customized timer starting, user pass through remotely connection control device starting etc..
Step 102: playing audio file and/or Streaming Media;
Wherein, the acquiring way of audio file includes but is not limited to pass through wireless communication module transfer audio files, user Or the audio file etc. that businessman is pre-set, wherein the format of Streaming Media includes but is not limited to sound stream, video flowing, text Stream, image stream, animation streams etc., such as the present invention carry out voice transmission using sound stream emphatically.
Step 103: when receiving the enabled instruction, starting the timing of the first preset duration, when described first default The timing of duration has monitored body movement signal before terminating, then restarts the timing of the first preset duration;When described first default At the end of the timing of duration, and do not monitor body movement signal in this timing duration, then according to predetermined manner to the audio The broadcasting of file and/or Streaming Media is controlled, and the predetermined manner includes stopping playing or turning down broadcast sound volume.
In a step 102, the music source of broadcasting includes but is not limited to pass through the mobile terminal of wireless connection such as to pass through indigo plant There is the memory of audio file on the mobile phone and player of tooth connection.The mode that music is saved in memory can be, It records during playing the Streaming Media music from mobile terminal, is stored in player as audio file after recording In memory, benefit is user without the use of memory such as TF card is dumped to again after computer down-load music, and use is easier.
In step 103, as shown in fig. 7, because the timing of first preset duration terminates or the meter of the second preset duration When terminate and stop play when, to stop play before audio content mark.It is single using the relatively good way of music aid-sleeping Bent loop play has the music of sleeping effect, but when user starts does not know which music is effective to oneself, so can prepare More tentative broadcastings of song, sensory effect is bad to switch to next, if wherein a head can be played to be automatically stopped and broadcast It puts, i.e., user is sleeping, illustrates that the music has certain sleeping effect.These can be broadcast with single loop play to being automatically stopped The music put plays one label of addition when stopping every time, and accumulation label is more, illustrates that the sleeping effect of the music is better.Its Benefit is to provide a kind of simple and effective sleeping effect assessment mechanism for music.
Further, according to accumulation label number for the setting of these music play priority, mark more priority Higher, when user starts broadcasting, becoming for highest priority plays first choice, if user is switched to next, then plays priority Secondary high music, so analogizes.Its benefit is that starting always plays the music for most having sleeping effect to user when playing, and is saved The trouble of selection.
Further, it is not highest music for priority, is reached if played to the read-around ratio for being automatically stopped broadcasting To m times, then from the m+1 times, the marker number being endowed every time is usually q times, and q is greater than 1, until the accumulation mark of the music Until numeration amount becomes highest in all music.Its benefit is that lower for original priority ratio but later user becomes The music preferred promotes it at faster speed and plays priority.
Further, newly added music, which is endowed highest priority, becomes broadcasting first choice, but if in playing process It is more than the broadcasting first choice status disappearance of the music after n times by the continuous operation number that user is switched to next, broadcasting is preferential Grade is acquired by the marker number calculating accumulated.Its benefit, which is that newly added music can become at once, plays preferred, omission The process of broadcasting priority is stepped up by accumulating label.
The benefit of above-mentioned processing is that (switching is next according to the sleeping effect (accumulation marker number) and user behavior of music The first or new music of addition) it determines to play priority, the sound for being best suitable for user's needs is preferably played when user needs music aid-sleeping It is happy, simplify user's operation.
Music can be the music in player memory, be also possible to the Streaming Media music in cloud, and with playlist Mode is stored in player, mobile terminal or cloud.
In step 103, the acquisition of body movement signal, such as can be and receive what human body radiation generated by infrared sensor What infrared ray obtained, the variable quantity for the infra-red radiation that infrared sensor generates when can be by physical activity is converted to corresponding body and moves Signal, the induction region formed at this time by infrared ray at least cover the head of the user in lying posture or sitting posture on bed, induction zone Domain projects the fan-shaped central angle formed on horizontal plane and is not less than 60 °, more quasi- will pass through more comprehensive covering acquisition True measurement result;
Above-mentioned infrared sensor includes but is not limited to pyroelectric infrared sensor, thermoelectric pile, quantum type infrared sensor etc.. Wherein, the variable quantity of incident infrared can only be converted to electric signal by pyroelectric infrared sensor, and thermoelectric pile and quantum type are infrared The absolute value of incident infrared can be converted to electric signal by sensor, and body movement signal is by seeking above-mentioned two electric signal Difference obtain the numerical value of physical activity variable quantity and obtain.
The induction region that infrared ray is formed at least covers the head of the user in lying posture or sitting posture on bed, is due to infrared Line does not have penetrability, if the people on bed covers thick and solid quilt, infrared sensor is difficult to collect trunk with lower portion Body movement information, so the induction region formed in front of infrared sensor will at least cover the human body in lying posture or sitting posture on bed Head.Meanwhile the player for being provided with infrared sensor is typically placed in beside the bedside especially head of a bed or on nightstand, but is examined Consider sensor direction allow to have it is certain put deviation, it requires that induction region projects the sector formed on horizontal plane Central angle be more than or equal to 60 °, benefit is can to guarantee that the head of user is within induction region.
The acquisition of body movement signal, such as can also be realized by doppler sensor, doppler sensor is sent out to human body Microwave signal is sent, and the variation of the frequency of the reflected signal of human body is analyzed, judge tranmitting frequency and receives frequency Difference, therefore, it is determined that whether human body issues body movement signal.
The beneficial effect of the technical solution is: judge whether user falls asleep by body movement signal, it is automatic according to sleep situation Player plays are controlled, user is made no longer to need to set play time, avoids time for falling asleep uncertain and causes too early or too late Stop the situation playing to occur, improves practicability of the player in terms of assisting sleep.
The embodiment of the present invention provides a kind of method for automatically controlling and playing,
It at the end of the timing of first preset duration, and does not monitor body movement signal in this timing duration, then starts The timing of two preset durations;
Wherein, before the timing of the first preset duration terminates, broadcast sound volume V1;Start in the timing of the second preset duration Or later, broadcast sound volume reduces Δ V1 on the basis of V1, and Δ V1 is greater than zero;
Before the timing of the second preset duration terminates, if having monitored body movement signal, stop the second preset duration Timing and the timing for restarting the first preset duration, while broadcast sound volume improves Δ V2, Δ V2 on the basis of V1- Δ V1 Greater than zero, wherein the absolute value that V1- Δ V1+ Δ V2 is equal to difference between V1 V1- Δ V1+ Δ V2 and V1 is equal to or small In preset difference value;
At the end of the timing of the second preset duration, if not monitoring body movement signal in this timing duration, stop Only play;
If if the first preset duration is T1, the second preset duration is T2, as shown in Fig. 2, illustrating the sleep of user State, before the first preset duration T1 timing terminates, and when receiving body movement signal, the first preset duration T1 of control is counted again When, show that user does not fall asleep;Body is not received after the first preset duration T1 timing terminates with the second preset duration T2 and When dynamic signal, show that user may fall asleep.
Present invention employs the sleep state for judging user based on this single means of the being and not being of body movement signal, benefit is Signal processing flow is simple, and cheap processor or the processor ready-made using player can be used, and reduces product cost, but It inevitably will cause erroneous judgement in some cases, to user's bring unplessantness displeasure when in order to mitigate erroneous judgement, stopping playing The preceding of short duration reduction volume of elder generation is reminded.Specifically, even if the first preset duration T1 timing does not all monitor that body is dynamic before terminating Signal can not determine that completely user has fallen asleep, and move that amplitude is too small to be not enough to allow sense as user deviates from induction region or body Module monitors are answered to arrive, to be likely to result in user unhappy if stopping playing at this time, because user needs to reopen and could continue It plays, for this purpose, increasing the second preset duration T2 after the first preset duration T1, while reducing volume, prompting is not yet fallen asleep User will stop playing.It is too small to be not enough to arouse attention for the range of decrease of volume, it is too big to will affect usage experience again, it passes through It was verified that suitable volume range of decrease Δ V1 depends on the size of initial volume V1, and such as: when volume V1 is larger, volume decrease Being at half can arouse attention, and when volume V1 is smaller, it can not arouse attention even if reducing half, in order to allow user to be aware of Volume change can set different volume range of decrease Δ V1 with the size of volume V1, need to illustrate without regard to too lofty , volume V1 is usually to be set by user oneself.It can be by generating body movement signal when user perceives volume decline Body or lift hand movement are such as shaken, allows player to be restored to original or close to original volume, volume increasing degree Δ at this time V2 can be identical or close with range of decrease Δ V1.Its benefit is no matter the initial volume of user setting is how many, is ok Allowing user to perceive by the suitable volume range of decrease will stop playing, and achieve the purpose that remind user.
The beneficial effect of the technical solution is: while satisfaction low cost is implemented to be automatically stopped broadcasting, alleviator erroneous judgement Bring the unplessantness displeasure of user.In automatically controlling playing process by way of reducing volume, in addition to reminding still unsleeping use Family audio plays outside soon stopping, also reducing influence of the excessive volume to the user in process of falling asleep, enhances certainly The practicability of dynamic control device.
The embodiment of the present invention provides a kind of method for automatically controlling and playing, and the first preset duration is more than or equal to 1 minute and small In equal to 30 minutes.
The setting method of first preset duration, as shown in figure 3, including step 301-304:
Step 301: the 1st group of data of record, the 1st group of data are the dynamic letter of adjacent body twice for recording user and being in waking state Number time interval, each sleep procedure can obtain multiple data and form the 1st group of data, can also will be from multiple sleep procedure The data of record are merged into the 1st group of data;
Step 302: determining the maximum time interval value recorded in the 1st group of data, and using maximum time interval value as The lower limit value of one preset duration,
The lower limit value of first preset duration can also be by calculating the 1st group of average value of data and the standard deviation of normal distribution Difference further acquires;
Step 303: the 2nd group of data of record, the 2nd group of data are the last time body movement signal and asleep state of waking state Body movement signal for the first time between time interval, i.e., from regaining consciousness to during sleep, occur for the first time to be greater than first pre- If the time interval of the lower limit value of duration, only one data in each sleep procedure record to be formed by multiple sleep procedure 2nd group of data;
Step 304: determining the minimum interval value in the 2nd group of data, and as the upper limit of the first preset duration Value.
Above content is described further:
In step 301, when being in waking state, people will not remain stationary for a long time, also with reading before general sleep See the mobile phone equal behaviors, by these collected body movement signals of infrared sensor than comparatively dense, i.e., two neighboring body movement signal Being spaced duration T4 will not be too long, through experiments, it was found that, interval duration T4 is influenced by following factor: human factor such as reposes, read a book or Mobile phone is gone to toilet, the density or resolution ratio etc. of infrared sensor factor such as sensitivity, induction region, and environmental factor is as sensed Distance, height and direction, room temperature height, quilt thickness etc. are put between device and human body.Interval duration T4 is for example set are as follows: T4 (1), (2) T4 ... T4 (n), these data form the 1st group of data.
In step 302, theoretically, as long as the first preset duration T1 is greater than the 1st group of data T4 (1), T4 (2) ... T4 (n) In maximum value, the problem of being automatically controlled broadcasting when would not occur not yet falling asleep, so, can will be between when waking state Every lower limit value T1l of the maximum value as the first preset duration T1 of duration T4, it may be assumed that
T1l=Max { T4 (1), T4 (2) ... T4 (n) }
Wherein: Max { T4 (1), T4 (2) ... T4 (n) } is the maximum value of T4
In practice, it is contemplated that the finiteness of experimental data, lower limit value T1l can also further be asked by following formula :
T1l=Average { T4 (1), T4 (2) ... T4 (n) }+n* σ 1
Wherein: Average { T4 (1), T4 (2) ... T4 (n) } is the average value of T4
σ 1 is the standard deviation of T4 normal distribution
N is the integer greater than zero.
Its benefit is that lower limit value T1l has enough surpluses, reduces going out for the problem of being automatically controlled broadcasting when not yet falling asleep Existing probability.
In step 303, it when people gradually falls asleep, can be completely disappeared along with loosening all muscles body movement signal, and when sleep After continuing for some time, there is the dynamic letter of body for resurveying human body appearance because people turns over or tickle etc. sound again in infrared sensor Number, the duration of the turn for the first time T5 mono- first body movement signal occurred after the last one body movement signal to sleep before falling asleep As be dozens of minutes.
The method that duration T5 is turned in judgement for the first time is: during the entire process of from waking state to asleep state, recording adjacent The interval duration T4 of body movement signal twice;Such as it sets are as follows: T4 (1), T4 (2) ... T4 (n), T4 (n+1), T4 (n+2) ..., from In successively find out the value T4 (n+1) greater than lower limit value T1l first appeared, in this, as the first time turn over duration T5;Repeatedly Sleep procedure, finds out the duration T5 of turn for the first time of each secondary sleep procedure, such as sets are as follows: T5 (1), T5 (2) ... T5 (n), these Data form the 2nd group of data.
In step 304, theoretically, as long as the first preset duration T1 is less than turns over duration T5 for the first time, people would not occur The problem of playing can not but be stopped by having fallen asleep.So the minimum value of duration T5 will can be turned over for the first time as the first preset duration The upper limit value T1h of T1, it may be assumed that
T1h=Min { T5 (1), T5 (2) ... T5 (n) }
Wherein: Min { T5 (1), T5 (2) ... T5 (n) } is the minimum value of T5
In practice, it is contemplated that the finiteness of experimental data, upper limit value T1h can also further be asked by following formula :
T1h=Average { T5 (1), T5 (2) ... T5 (n) }-n* σ 2
Wherein: Average { T5 (1), T5 (2) ... T5 (n) } is the average value of T5
σ 2 is the standard deviation of T5 normal distribution
N is the integer greater than zero.
Its benefit is that upper limit value T1h has enough surpluses, and the appearance for the problem of playing can not but be stopped by reducing people and having fallen asleep Probability.
The experimental results showed that lower limit value T1l is 1 minute, upper limit value T1h is 30 minutes proper, the first preset durations T1 can require to choose between lower limit value T1l and upper limit value T1h according to the characteristic of infrared sensor, the different of use environment.
Timing diagram corresponding for above-mentioned steps 301-304, as shown in Figure 4.
The beneficial effect of the technical solution is: by carrying out a large amount of reasonable value for testing determining first preset duration, The probability that unanticipated action occurs is reduced, usage experience is improved.
The embodiment of the present invention provides a kind of method for automatically controlling and playing, and the second preset duration is more than or equal to 30 seconds, and the The sum of one preset duration and the second preset duration are less than or equal to 30 minutes.
The setting method of second preset duration is: on the one hand, still unsleeping people being allowed to have the enough reaction time to generate Body is dynamic to restore volume V1, in practice it has proved that, by the second preset duration T2 setting at 30 seconds or more, have little time to react and cause to shut down A possibility that can significantly reduce;On the other hand, the sum of timing duration of the first preset duration T1 and the second preset duration T2 is at least It is less than the minimum value for turning over duration T5 for the first time, it otherwise can be real because that can not stop playing caused by the body movement signal that occurs after falling asleep Proof is trampled, the sum of the first preset duration T1 and the timing duration of the second preset duration T2 are proper no more than 30 minutes.
The beneficial effect of the technical solution is: being set by the practice to the second preset duration, improves the essence of the device Exactness improves usage experience.
A kind of process for automatically controlling the method played in the embodiment of the present invention is described in detail above, and this method can also be with It is realized by corresponding device, the structure and function of the device is described in detail below.
Based on same design, a kind of device automatically controlling broadcasting provided in an embodiment of the present invention, as shown in figure 5, packet It includes:
Playing module 1, for playing audio file and/or Streaming Media;
Receiving module 2, for receiving the enabled instruction for being used to start automatic control playing function of user's input;
Induction module 3, for monitoring whether user issues body movement signal;
Control module 4 starts timing for when receiving module 2 receives enabled instruction, starting the first timing module 5, Timing duration is set as the first preset duration;Before first timing module 5 this timing terminates, induction module 3 monitors that body is dynamic Signal, then first timing module of the control of control module 4 restarts timing;At the end of this timing of the first timing module, sense Module 3 is answered not monitor body movement signal in this timing duration, then control module 4 controls playing module 1 according to predetermined manner It works, predetermined manner includes stopping playing or turning down broadcast sound volume.
Above-mentioned control module can be independent single-chip microcontroller, MCU, microprocessor etc., also can use the interior of playing module Set processor.
Above-mentioned playing module includes but is not limited to the number or analog music for including the sounding components such as piezoelectric ceramic piece, loudspeaker Player module.
A kind of device automatically controlling broadcasting provided in an embodiment of the present invention, further includes:
Control module is also used at the end of when this timing of the first timing module, and induction module is in the first timing module This timing duration in do not monitor body movement signal, then control module start the second timing module start timing, timing duration It is set as the second preset duration;
Wherein, before the first timing module this timing terminates, it is V1 that control module, which controls the volume that playing module plays,; Control module starts while the second timing module starts timing or later, the volume that control module control playing module plays exists Δ V1 is reduced on the basis of V1, Δ V1 is greater than zero;
Before the second timing module this timing terminates, if induction module monitors body movement signal, control module control It makes the stopping timing of the second timing module and controls the first timing module and restart timing, while controlling playing module broadcasting Volume improves Δ V2 on the basis of V1- Δ V1, and Δ V2 is greater than zero, wherein V1- Δ V1+ Δ V2 is equal to V1 V1- Δ V1+ The absolute value of difference between Δ V2 and V1 is equal to or less than preset difference value;
At the end of this timing of the second timing module, if induction module is in this timing duration of the second timing module Body movement signal is inside not detected, then control module control playing module stops playing;
Wherein, the first timing module and the second timing module are independent timing module or are the same timing module;
Wherein, the second preset duration be more than or equal to 30 seconds, and the sum of the first preset duration and the second preset duration less than etc. In 30 minutes.
A kind of device automatically controlling broadcasting provided in an embodiment of the present invention, further includes:
Module is recorded, for being recorded while playing module plays playing stream media to the audio content played System;
Memory module, for storing the recording result for recording module.
A kind of device automatically controlling broadcasting provided in an embodiment of the present invention, enabled instruction for example can be, and control source of sound The instruction of switching opens for example, being switched on when by first time and automatically controls playing function, while playing in the audio on storage card Hold;When by second, the audio content on mobile terminal is played by bluetooth, playing function is automatically controlled and continues;By third time When, shutdown returns to by the state before first time, completes a cycle, benefit is, by the finger of enabled instruction and switching sound source Order is integrated on the same switch, and only all behaviour such as booting broadcasting, switching sound source, shutdown need to can be completed by a switch in user Make, improve the operation ease under dim environment, especially wakes up on the late into the night and be not desired to come because of the people for influencing to fall asleep again that turns on light It says, is even more important.
A kind of device automatically controlling broadcasting provided in an embodiment of the present invention, as shown in fig. 6,601 be the sense of induction module Region is answered, 602 be nightstand, and 603 be playing device, and 604 be human body, and 605 be bed.Induction module includes at least one infrared biography Sensor, its working principle is that: infrared sensor receives the infrared ray that human body radiation generates, the infrared spoke generated when by physical activity The variable quantity penetrated is converted to corresponding body movement signal.At this time infrared ray formed induction region at least cover on bed be in lying posture or The head of the user of sitting posture, induction region project the fan-shaped central angle formed on horizontal plane not less than 60 °, avoid player The deviation of putting of direction causes induction region not cover user's head.
The present invention mainly passes through the first timing module of starting and starts timing, and timing duration is set as the first preset duration; Before the first timing module this timing terminates, and induction module monitors body movement signal in this first preset duration, then Control module controls the first timing module and restarts timing;At the end of this timing of the first timing module, induction module exists Body movement signal is not monitored in this timing duration, then control module control playing module works according to predetermined manner, in advance If mode includes stopping playing or turning down broadcast sound volume.Judge whether user enters by the body movement signal that induction module monitors It sleeps, multimedia player is automatically controlled according to sleep situation and is played, user is made no longer to need to set play time, when avoiding falling asleep Between do not know and cause to stop too early or too late the situation played and occur, improve practicability of the player in terms of assisting sleep.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of automatically control the method played characterized by comprising
Play audio file and/or Streaming Media;
Receive the enabled instruction for being used to start automatic control playing function of user's input;
When receiving the enabled instruction, start the timing of the first preset duration, when the timing knot of first preset duration The body movement signal of user has been monitored before beam, then restarts the timing of the first preset duration;When first preset duration At the end of timing, and the body movement signal of user is not monitored in this timing duration, then according to predetermined manner to the audio The broadcasting of file and/or Streaming Media is controlled, and the predetermined manner includes stopping playing or turning down broadcast sound volume.
2. the method as described in claim 1, which is characterized in that first preset duration be more than or equal to 1 minute and be less than etc. In 30 minutes.
3. the method as described in claim 1, which is characterized in that further include:
It at the end of the timing of first preset duration, and does not monitor body movement signal in this timing duration, then starts The timing of two preset durations;
Wherein, before the timing of first preset duration terminates, broadcast sound volume V1;In the timing of second preset duration Start or later, broadcast sound volume reduces Δ V1 on the basis of V1, Δ V1 is greater than zero;
Before the timing of second preset duration terminates, if having monitored the body movement signal of user, stop described second The timing of preset duration and the timing for restarting the first preset duration, while broadcast sound volume improves on the basis of V1- Δ V1 Δ V2, Δ V2 are greater than zero, wherein V1- Δ V1+ Δ V2 is equal to the absolute of the difference between V1 or V1- Δ V1+ Δ V2 and V1 Value is equal to or less than preset difference value;
At the end of the timing of second preset duration, if not monitoring the dynamic letter of the body of user in this timing duration Number, then stop playing.
4. the method as described in claim 1, which is characterized in that
While the playing stream media, the audio content played is recorded, and stores recording result.
5. method as claimed in claim 1 or 3, which is characterized in that
When stopping playing, mark to the audio content stopped before playing.
6. a kind of automatically control the device played characterized by comprising
Playing module, for playing audio file and/or Streaming Media;
Receiving module, for receiving the enabled instruction for being used to start automatic control playing function of user's input;
Induction module, for monitoring whether user issues body movement signal;
Control module starts timing for when the receiving module receives the enabled instruction, starting the first timing module, Timing duration is set as the first preset duration;Before described this timing of first timing module terminates, the induction module monitoring To body movement signal, then the control module control first timing module restarts timing;When first timing module At the end of this timing, the induction module does not monitor body movement signal in this timing duration, then the control module control It makes the playing module to work according to predetermined manner, the predetermined manner includes stopping playing or turning down broadcast sound volume.
7. device as claimed in claim 6, which is characterized in that further include:
The control module is also used at the end of when described this timing of first timing module, and the induction module is described Body movement signal is not monitored in this timing duration of first timing module, then the control module starts the second timing module and opens Beginning timing, timing duration are set as the second preset duration;
Wherein, before described this timing of first timing module terminates, the control module controls what the playing module played Volume is V1;The control module starts while the second timing module starts timing or later, the control module controls institute The volume for stating playing module broadcasting reduces Δ V1 on the basis of V1, and Δ V1 is greater than zero;
Before described this timing of second timing module terminates, if the induction module monitors body movement signal, the control Molding block, which controls the second timing module stopping timing and controls first timing module, restarts timing, same to time control It makes the volume that the playing module plays and improves Δ V2 on the basis of V1- Δ V1, Δ V2 is greater than zero, wherein V1- Δ V1+ Δ The absolute value that V2 is equal to the difference between V1 V1- Δ V1+ Δ V2 and V1 is equal to or less than preset difference value;
At the end of described this timing of second timing module, if the induction module second timing module this Body movement signal is not detected in timing duration, then the control module controls the playing module and stops playing;
Wherein, the first timing module and the second timing module are independent timing module or are the same timing module.
8. device as claimed in claim 6, which is characterized in that further include:
Record module, for the playing module play the playing stream media while, to the audio content played into Row is recorded;
Memory module, for storing the recording result for recording module.
9. device as claimed in claim 6, which is characterized in that
The enabled instruction, the switching command including switching sound source.
10. device as claimed in claim 6, which is characterized in that
The induction module includes at least one infrared sensor, and the induction region formed in front of the infrared sensor at least covers The head of user in lying posture or sitting posture on lid bed, the induction region project the fan-shaped central angle formed on horizontal plane Not less than 60 °.
CN201811620837.0A 2018-12-28 2018-12-28 Method and device for automatically controlling playing Active CN109727611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811620837.0A CN109727611B (en) 2018-12-28 2018-12-28 Method and device for automatically controlling playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811620837.0A CN109727611B (en) 2018-12-28 2018-12-28 Method and device for automatically controlling playing

Publications (2)

Publication Number Publication Date
CN109727611A true CN109727611A (en) 2019-05-07
CN109727611B CN109727611B (en) 2021-05-25

Family

ID=66297416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811620837.0A Active CN109727611B (en) 2018-12-28 2018-12-28 Method and device for automatically controlling playing

Country Status (1)

Country Link
CN (1) CN109727611B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825449A (en) * 2019-09-19 2020-02-21 咪咕音乐有限公司 Music playing method, electronic equipment and storage medium
CN114327714A (en) * 2021-12-24 2022-04-12 维沃移动通信有限公司 Application program control method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339619A (en) * 2011-09-26 2012-02-01 华为终端有限公司 Audio/video output control method and equipment
CN102857824A (en) * 2012-09-18 2013-01-02 深圳Tcl新技术有限公司 Method and device for enabling playing device to enter into standby state
CN104764152A (en) * 2015-03-27 2015-07-08 武汉海尔电器股份有限公司 Air conditioner sleeping and running control method
CN105708421A (en) * 2016-04-05 2016-06-29 福州市马尾区小微发明信息科技有限公司 Method for detecting whether user falls asleep or not
CN105847574A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Method for controlling loudspeaker volume and terminal device
CN107463646A (en) * 2017-07-24 2017-12-12 上海斐讯数据通信技术有限公司 A kind of sleeping music intelligent recommendation method and device
CN107496072A (en) * 2017-07-28 2017-12-22 惠州市格农科技有限公司 Improve the householder method and auxiliary equipment of sleep quality
CN107659710A (en) * 2017-08-15 2018-02-02 捷开通讯(深圳)有限公司 Intelligent terminal and its control method for playing back, the device with store function

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339619A (en) * 2011-09-26 2012-02-01 华为终端有限公司 Audio/video output control method and equipment
CN102857824A (en) * 2012-09-18 2013-01-02 深圳Tcl新技术有限公司 Method and device for enabling playing device to enter into standby state
CN104764152A (en) * 2015-03-27 2015-07-08 武汉海尔电器股份有限公司 Air conditioner sleeping and running control method
CN105708421A (en) * 2016-04-05 2016-06-29 福州市马尾区小微发明信息科技有限公司 Method for detecting whether user falls asleep or not
CN105847574A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Method for controlling loudspeaker volume and terminal device
CN107463646A (en) * 2017-07-24 2017-12-12 上海斐讯数据通信技术有限公司 A kind of sleeping music intelligent recommendation method and device
CN107496072A (en) * 2017-07-28 2017-12-22 惠州市格农科技有限公司 Improve the householder method and auxiliary equipment of sleep quality
CN107659710A (en) * 2017-08-15 2018-02-02 捷开通讯(深圳)有限公司 Intelligent terminal and its control method for playing back, the device with store function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825449A (en) * 2019-09-19 2020-02-21 咪咕音乐有限公司 Music playing method, electronic equipment and storage medium
CN114327714A (en) * 2021-12-24 2022-04-12 维沃移动通信有限公司 Application program control method, device, equipment and medium

Also Published As

Publication number Publication date
CN109727611B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US11420011B2 (en) Sleep assistance device
US20200230348A1 (en) Sleep system
US10478590B2 (en) Sleep assistance device for multiple users
CN105282343B (en) A kind of method and apparatus for intelligent reminding of sleeping
CN101060879B (en) System for and method of controlling playback of audio signals
US10963146B2 (en) User interface for a sleep system
CN108650418A (en) Tired based reminding method, device, intelligent terminal and storage medium
CN109727611A (en) It is a kind of to automatically control the method and device played
US20140275741A1 (en) System and method providing all-night sleep management
JP2016066389A (en) Reproduction control device and program
CN112932225A (en) Intelligent awakening pillow and awakening method based on intelligent awakening pillow
US6940432B1 (en) Subliminal recording device
JP7438978B2 (en) Information processing device, information processing method, information processing program, and information processing system
CN106648540A (en) Music switching method and device
CN109393842A (en) A kind of children mattress and its application method
CN106060255B (en) A kind of volume adjusting method and smart machine
CN209103112U (en) A kind of alarm clock
CN209103819U (en) A kind of player
CN105708421B (en) A kind of sleep detection method
KR20050108258A (en) Apparatus for sensing sleep and control method of the same
CN109730634A (en) Monitoring method and equipment and system, long-distance monitoring method, mobile terminal
CN209373580U (en) A kind of multimedia play system
CN112991648A (en) Household appliance
US20230085095A1 (en) Information processing apparatus, system, non-transitory computer-readable storage medium with executable program stored thereon, and method
CN108206976A (en) Selectivity plays the method and user terminal of voice signal

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