CN109727611B - Method and device for automatically controlling playing - Google Patents

Method and device for automatically controlling playing Download PDF

Info

Publication number
CN109727611B
CN109727611B CN201811620837.0A CN201811620837A CN109727611B CN 109727611 B CN109727611 B CN 109727611B CN 201811620837 A CN201811620837 A CN 201811620837A CN 109727611 B CN109727611 B CN 109727611B
Authority
CN
China
Prior art keywords
timing
playing
module
data
time length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811620837.0A
Other languages
Chinese (zh)
Other versions
CN109727611A (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

Images

Abstract

The invention provides a method and a device for automatically controlling playing, wherein the method comprises the following steps: playing an audio file and/or streaming media; receiving a starting instruction which is input by a user and used for starting an automatic control playing function; when a starting instruction is received, timing of a first preset time length is started, and when a body movement signal is monitored before the timing of the first preset time length is ended, the timing of the first preset time length is restarted; when the timing of the first preset time length is finished and the body movement signal is not monitored in the time length of the timing, the playing of the audio file and/or the streaming media is controlled according to a preset mode, the preset mode comprises the step of stopping playing or reducing the playing volume, the music playing is automatically stopped according to the condition of monitoring the user falling asleep, and the practicability of the player in the aspect of assisting sleep is improved.

Description

Method and device for automatically controlling playing
Technical Field
The present invention relates to the field of automatic control technologies, and in particular, to a method and an apparatus for automatically controlling playback.
Background
It is known that specific music or sound effects such as white noise like thunder, rain, sea wave, etc. can promote the sleep of human body, and such music can be played to help sleep when the human body is difficult to fall asleep or can not wake up and sleep on the way. Although a mobile terminal such as a mobile phone has a plurality of applications capable of playing sleep-aiding music, and the applications all have a timing shutdown function, a user can play the music through a multimedia player such as a bluetooth sound box, but a series of operations such as selecting playing contents and setting timing shutdown are completed on the mobile terminal, and at the moment, people who suffer from being unable to fall asleep are enabled to contact the mobile terminal without frosting on snow. To avoid touching the mobile terminal, it is also contemplated to pre-store the sleep-aid music in the memory of the players, some of which support TF cards, but unfortunately most memory-supported players do not have a timed-off function. Even if the timing shutdown function is provided, for a person who is difficult to fall asleep, the person does not know how long the timing shutdown time is set to be appropriate, the person is set to be short, the person possibly stops playing without falling asleep, and the person is set to be long and then is possibly awakened by music.
In addition, the effect of music sleep aid varies from person to person, and at present, no player or scheme for automatically recommending sleep aid music according to the use habit of a certain user exists.
Therefore, most multimedia players in the market at present have low practicability in the aspect of assisting sleep.
Disclosure of Invention
The invention provides a method and a device for automatically controlling playing, which can automatically stop music playing according to the condition of monitoring a user falling asleep and improve the practicability of a player in the aspect of assisting sleep.
In order to achieve the above object, an embodiment of the present invention provides a method for automatically controlling playback, including:
playing an audio file and/or streaming media;
receiving a starting instruction which is input by a user and used for starting an automatic control playing function;
when the starting instruction is received, timing of a first preset time length is started, and when the body movement signal of the user is monitored before the timing of the first preset time length is ended, the timing of the first preset time length is restarted; and when the timing of the first preset time length is finished and the body movement signal of the user is not monitored in the timing time length, controlling the playing of the audio file and/or the streaming media according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume.
In a possible implementation manner, the first preset time period is greater than or equal to 1 minute and less than or equal to 30 minutes.
In one possible implementation manner, the method further includes:
when the timing of the first preset time length is finished and no body movement signal is monitored in the timing time length of the time, starting the timing of a second preset time length;
before the timing of the first preset time length is ended, the playing volume is V1; at the beginning or after the timing of the second preset time length, the playing volume is reduced by delta V1 on the basis of V1, and the delta V1 is larger than zero;
before the timing of the second preset time length is finished, if a body movement signal of the user is monitored, stopping the timing of the second preset time length and restarting the timing of the first preset time length, and meanwhile, the playing volume is increased by delta V2 on the basis of V1-delta V1, wherein the delta V2 is larger than zero, wherein V1-delta V1+ delta V2 is equal to V1, or the absolute value of the difference between V1-delta V1+ delta V2 and V1 is equal to or smaller than a preset difference;
when the timing of the second preset time length is finished, if the body movement signal of the user is not monitored in the timing time length of the time, the playing is stopped;
the second preset time is more than or equal to 30 seconds, and the sum of the first preset time and the second preset time is less than or equal to 30 minutes.
In one possible implementation manner, the streaming media is played while the played audio content is recorded, and the recording result is stored.
In one possible implementation, the audio content before the stop of playback is marked when playback is stopped.
Based on the same inventive concept, an embodiment of the present invention provides an apparatus for automatically controlling playback, including:
the playing module is used for playing the audio file and/or the streaming media;
the receiving module is used for receiving a starting instruction which is input by a user and used for starting the automatic control playing function;
the sensing module is used for monitoring whether a user sends a body movement signal;
the control module is used for starting the first timing module to start timing when the receiving module receives the starting instruction, and the timing duration is set as a first preset duration; when the body movement signal is monitored by the sensing module before the first timing module finishes the current timing, the control module controls the first timing module to restart the timing; when the first timing module finishes the current timing, the sensing module does not monitor the body movement signal within the current timing duration, and the control module controls the playing module to work according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume.
In one possible implementation manner, the method further includes:
the control module is further configured to, when the current timing of the first timing module is finished, the sensing module does not monitor a body movement signal within the current timing duration of the first timing module, and then the control module starts a second timing module to start timing, and the timing duration is set to be a second preset duration;
before the first timing module finishes timing at this time, the control module controls the volume played by the playing module to be V1; at the same time or after the control module starts a second timing module to start timing, the control module controls the volume played by the playing module to be reduced by Δ V1 on the basis of V1, and Δ V1 is greater than zero;
before the second timing module finishes the current timing, if the sensing module monitors a body movement signal, the control module controls the second timing module to stop timing, controls the first timing module to restart timing, and simultaneously controls the volume played by the playing module to be increased by Δ V2 on the basis of V1- Δ V1, wherein Δ V2 is greater than zero, V1- Δ V1+ Δ V2 is equal to V1, or the absolute value of the difference between V1- Δ V1+ Δ V2 and V1 is equal to or less than a preset difference;
when the second timing module finishes the current timing, if the sensing module does not detect the body movement signal within the current timing duration of the second timing module, the control module controls the playing module to stop playing;
the first timing module and the second timing module are independent timing modules or the same timing module;
the second preset time is more than or equal to 30 seconds, and the sum of the first preset time and the second preset time is less than or equal to 30 minutes.
In one possible implementation manner, the method further includes:
the recording module is used for recording the played audio content while the playing module plays the played streaming media;
and the storage module is used for storing the recording result of the recording module.
In a possible implementation manner, the starting instruction includes a switching instruction for switching an audio source.
In a possible implementation manner, the sensing module comprises at least one infrared sensor, a sensing area formed in front of the infrared sensor at least covers the head of a user in a lying or sitting posture on a bed, and the central angle of the sector formed by the sensing area projected on a horizontal plane is not less than 60 degrees.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for automatically controlling playback according to an embodiment of the present invention;
FIG. 2 is a timing diagram illustrating the determination of a sleep status of a user according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for setting a first predetermined duration according to an embodiment of the present invention;
FIG. 4 is a timing diagram illustrating the determination of a first predetermined duration according to an embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for automatically controlling playback according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a sensing area of an apparatus for automatically controlling playback according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a relationship between marking music and playing priority according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
The embodiment of the present invention provides a method for automatically controlling playback, as shown in fig. 1, including steps 101-103:
step 101: receiving a starting instruction which is input by a user and used for starting an automatic control playing function;
the method for starting the automatic control playing includes, but is not limited to, starting by a user through a mechanical switch, a touch screen, a non-contact switch and other control devices on the device, starting by the user through a voice input module, starting by a user-defined timer, starting by the user through a remote connection control device and the like.
Step 102: playing an audio file and/or streaming media;
the audio file may be obtained through a wireless communication module, or may be transmitted through a user or a merchant, where the streaming media may be in a format including, but not limited to, a sound stream, a video stream, a text stream, an image stream, and an animation stream.
Step 103: when the starting instruction is received, timing of a first preset time length is started, and when the body movement signal is monitored before the timing of the first preset time length is ended, the timing of the first preset time length is restarted; and when the timing of the first preset time length is finished and no body movement signal is monitored in the timing time length, controlling the playing of the audio file and/or the streaming media according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume.
In step 102, the music source to be played includes, but is not limited to, a mobile terminal connected via wireless, such as a mobile phone connected via bluetooth, and a memory storing audio files on a player. The mode of saving the music in the memory can be that recording is carried out in the process of playing the streaming media music from the mobile terminal, and the recorded music is saved in the memory of the player as an audio file.
In step 103, as shown in fig. 7, when the playback is stopped due to the timing of the first preset time period or the timing of the second preset time period ending, the audio content before the playback is stopped is marked. The better way of using music to help sleep is to play music with a sleep-helping effect in a single-song circulation mode, but a user does not know which music is effective for the user at the beginning, so that a plurality of pieces of music can be prepared to play in an attempt, the next piece of music is switched to when the feeling effect is not good, if one piece of music can be played to stop playing automatically, namely the user falls asleep, the music has a certain sleep-helping effect. For the music which can be played to automatically stop playing in a single-song circulation manner, a mark is added when the playing stops each time, and the more the accumulated marks are, the better the sleep-assisting effect of the music is. The method has the advantage of providing a simple and effective sleep-aiding effect evaluation mechanism for music.
Further, the playing priority is set for the music according to the accumulated marks, the more the marks are, the higher the priority is, when the user starts playing, the highest priority becomes the playing preference, if the user switches to the next one, the music with the highest priority is played, and so on. The method has the advantages that music which is most helpful to the user is always played when the playing is started, and the trouble of selection is saved.
Further, for music whose priority is not the highest, if the number of consecutive times of playing to automatically stop playing reaches m times, from the m +1 th time, the number of tokens assigned at each time is q times that at ordinary times, q being greater than 1, until the cumulative number of tokens for that music becomes the highest among all music. The advantage is that the playing priority of the music which is lower in priority but is more popular with the user later is increased at a faster speed.
Further, the newly added music is given the highest priority as the playing preference, but if the number of continuous operations switched to the next by the user during the playing process exceeds n times, the playing preference of the music disappears, and the playing priority is calculated according to the accumulated number of the marks. The advantage is that the newly added music can be immediately the first choice for playing, and the process of gradually raising the playing priority by accumulating marks is omitted.
The processing has the advantages that the playing priority is determined according to the music sleep-aiding effect (accumulated mark number) and the user behavior (switching to the next music or adding new music), the music which best meets the requirements of the user is preferably played when the user needs the music sleep-aiding, and the user operation is simplified.
The music may be music in a memory of the player or streaming media music in the cloud, and is stored in the player, the mobile terminal or the cloud in a playlist manner.
In step 103, the body movement signal is obtained, for example, by receiving infrared rays generated by human body radiation through an infrared sensor, the infrared sensor can convert the variation of the infrared radiation generated by human body activity into a corresponding body movement signal, at this time, a sensing area formed by the infrared rays at least covers the head of a user in a lying posture or a sitting posture on a bed, and a central angle of a sector formed by the sensing area projected onto a horizontal plane is not less than 60 ° so as to obtain a more accurate measurement result through more comprehensive coverage;
the infrared sensor includes, but is not limited to, a pyroelectric infrared sensor, a thermopile, a quantum type infrared sensor, and the like. The pyroelectric infrared sensor can only convert the variation of incident infrared rays into an electric signal, the thermopile and the quantum type infrared sensor can convert the absolute value of the incident infrared rays into the electric signal, and the body movement signal is obtained by obtaining the value of the variation of human body activity by solving the difference value of the two electric signals.
The sensing area formed by the infrared ray at least covers the head of a user in a lying posture or a sitting posture on a bed, because the infrared ray has no penetrability, if a thick quilt is covered on a person in the bed, the body movement information of the part below the trunk is difficult to acquire by the infrared sensor, and therefore the sensing area formed in front of the infrared sensor at least covers the head of the human body in the lying posture or the sitting posture on the bed. Meanwhile, players provided with infrared sensors are generally placed beside a bedside, particularly a bedside or a bedside cabinet, but considering that the orientation of the sensors allows certain placement deviation, the central angle of a fan formed by projecting a sensing area onto a horizontal plane is required to be greater than or equal to 60 degrees, and the advantage of the player is that the head of a user can be ensured to be positioned in the sensing area.
The acquisition of the body motion signal can be realized by a Doppler sensor, for example, the Doppler sensor sends a microwave signal to the human body, the frequency change of the signal reflected by the human body is analyzed, and the difference between the transmitting frequency and the receiving frequency is judged, so that whether the human body sends the body motion signal or not is judged.
The technical scheme has the beneficial effects that: whether the user falls asleep is judged through the body movement signal, the player is automatically controlled to play according to the falling asleep situation, the user does not need to set the playing time any more, the situation that the playing is stopped too early or too late due to uncertain falling asleep time is avoided, and the practicability of the player in the aspect of assisting sleep is improved.
The embodiment of the invention provides a method for automatically controlling playing,
when the timing of the first preset time length is finished and the body movement signal is not monitored in the timing time length of the time, starting the timing of the second preset time length;
before the timing of the first preset time length is ended, the playing volume is V1; at the beginning or after the timing of the second preset time length, the playing volume is reduced by delta V1 on the basis of V1, and delta V1 is larger than zero;
before the timing of the second preset time length is finished, if the body movement signal is monitored, stopping the timing of the second preset time length and restarting the timing of the first preset time length, and simultaneously increasing the playing volume by delta V2 on the basis of V1-delta V1, wherein the delta V2 is larger than zero, wherein V1-delta V1+ delta V2 is equal to V1, or the absolute value of the difference between V1-delta V1+ delta V2 and V1 is equal to or smaller than a preset difference;
when the timing of the second preset time length is finished, if the body movement signal is not monitored in the timing time length of the time, the playing is stopped;
if the first preset time period is T1 and the second preset time period is T2, as shown in fig. 2, for example, the user falls asleep, and when the first preset time period T1 is ended and the body movement signal is received, the first preset time period T1 is controlled to count again, which indicates that the user does not fall asleep; when the first preset time period T1 is timed out and the second preset time period T2 is timed out and no body movement signal is received, it indicates that the user may fall asleep.
The invention adopts the single means of judging the sleeping state of the user based on the existence or nonexistence of the body motion signal, has the advantages of simple signal processing flow, can use a cheap processor or a processor existing in a player, reduces the product cost, inevitably causes misjudgment in some situations, and reminds by temporarily reducing the volume before stopping playing in order to reduce the displeasure brought to the user during misjudgment. Specifically, even if the body movement signal is not monitored before the first preset time period T1 is timed out, it cannot be completely determined that the user has fallen asleep, for example, the user deviates from the sensing area, or the body movement amplitude is too small to be monitored by the sensing module, at this time, if the user stops playing, the user may feel unpleasant, because the user needs to restart to continue playing, for this reason, the second preset time period T2 is increased after the first preset time period T1, and the volume is reduced to remind the user who has not fallen asleep that the playing will be stopped. For the volume step-down, too small is not enough to be noticed, too large affects the use experience, and practice has shown that the suitable volume step-down Δ V1 depends on the size of the original volume V1, such as: when the volume V1 is larger, the volume is reduced by half to attract attention, and when the volume V1 is smaller, the volume is reduced by half to attract attention, so that the user can perceive the volume change without being too obtrusive, different volume reduction amplitude Δ V1 can be set according to the volume V1, and it should be noted that the volume V1 is usually set by the user. When the user perceives that the volume is reduced, the player can restore to the original volume or be close to the original volume by generating a body movement signal such as shaking the body or raising the hand, and the volume increasing amplitude delta V2 and the volume decreasing amplitude delta V1 can be the same or similar. The method has the advantages that no matter what the initial volume set by the user is, the user can be aware of the fact that the playing is about to stop through the appropriate volume reduction, and the purpose of reminding the user is achieved.
The technical scheme has the beneficial effects that: the method and the device have the advantages that the requirement of low-cost implementation on automatic playing stop is met, and meanwhile, the discomfort brought to a user by misjudgment of the device is relieved. In the automatic control playing process, by means of the volume reduction mode, the audio playing of the user who is not asleep is reminded to stop soon, the influence of overlarge volume on the user who is asleep is reduced, and the practicability of the automatic control device is enhanced.
The embodiment of the invention provides a method for automatically controlling playing, wherein a first preset time is more than or equal to 1 minute and less than or equal to 30 minutes.
The method for setting the first preset duration, as shown in fig. 3, includes steps 301-304:
step 301: recording the 1 st group of data, wherein the 1 st group of data is a time interval for recording two adjacent body motion signals of a user in a waking state, a plurality of data can be obtained in each sleep process to form the 1 st group of data, and the data recorded from a plurality of sleep processes can be combined into the 1 st group of data;
step 302, determining the maximum time interval value recorded in the group 1 data, and using the maximum time interval value as the lower limit value of the first preset time length,
the lower limit value of the first preset duration can be further obtained by calculating the average value of the 1 st group of data and the standard deviation of normal distribution;
step 303: recording the 2 nd group of data, wherein the 2 nd group of data is a time interval between the last body movement signal in a waking state and the first body movement signal in a sleeping state, namely the time interval which is larger than the lower limit value of a first preset time length and appears for the first time in the process from waking to falling asleep, only one data is recorded in each sleeping process, and the 2 nd group of data is formed through multiple sleeping process records;
step 304: and determining a minimum time interval value in the 2 nd group of data, and taking the minimum time interval value as an upper limit value of the first preset time length.
The above is further explained:
in step 301, when the person is awake, the person does not remain still for a long time, and generally the person goes to the mobile phone with a book before going to bed, the body motion signals collected by the infrared sensor are dense, that is, the interval duration T4 between two adjacent body motion signals is not too long, and it is found through experiments that the interval duration T4 is affected by the following factors: human factors such as sleeping, reading or using a mobile phone, going to the toilet and the like, infrared sensor factors such as sensitivity, density or resolution of an induction area and the like, and environmental factors such as placement distance, height and direction between the sensor and a human body, room temperature, quilt thickness and the like. The interval duration T4 is set to, for example: t4(1), T4(2).. T4(n), which form group 1 data.
In step 302, theoretically, as long as the first preset time period T1 is greater than the maximum value of the group 1 data T4(1), T4(2).. T4(n), the problem that the playing is automatically controlled when the user does not fall asleep does not occur, so the maximum value of the interval time period T4 in the awake state can be used as the lower limit value T1l of the first preset time period T1, that is:
T1l=Max{T4(1),T4(2)...T4(n)}
wherein: max { T4(1), T4(2).. T4(n) } is the maximum value of T4
In practical applications, the lower limit T1l can be further determined by the following formula in consideration of the limitation of experimental data:
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 the normal distribution of T4
n is an integer greater than zero.
The advantage is that the lower limit value T1l has enough margin, and the probability of occurrence of the problem that the playing is automatically controlled when the user does not fall asleep is reduced.
In step 303, when the person gradually falls asleep, the body movement signals will completely disappear along with the relaxation of muscles, and after the sleep lasts for a period of time, the infrared sensor will again acquire the body movement signals appearing on the human body due to the movement and the movement of the person turning over or scratching, and the first turning-over time period T5 from the last body movement signal before falling asleep to the first body movement signal appearing after falling asleep is generally several tens of minutes.
The method for judging the first turn-over time T5 is as follows: recording the interval duration T4 of two adjacent body movement signals in the whole process from the waking state to the sleeping state; for example, the following settings are set: t4(1), T4(2) · T4(n), T4(n +1), and T4(n +2) · from which a first occurring value T4(n +1) greater than a lower limit value T1l is found in sequence as a first turn-over time T5; repeating the sleep process for a plurality of times, and finding out the first turn-over time length T5 of each sleep process, for example, setting as: t5(1), T5(2).. T5(n), which form set 2 data.
In step 304, theoretically, as long as the first preset time period T1 is less than the first turn-over time period T5, the problem that the person has fallen asleep but cannot stop playing does not occur. Therefore, the minimum value of the first turn-over time period T5 may be taken as the upper limit value T1h of the first preset time period T1, that is:
T1h=Min{T5(1),T5(2)...T5(n)}
wherein: min { T5(1), T5(2).. T5(n) } is the minimum value of T5
In practical applications, in consideration of the limitation of experimental data, the upper limit value T1h can be further obtained by the 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 the normal distribution of T5
n is an integer greater than zero.
The advantage is that the upper limit value T1h has enough margin, and the probability of occurrence of the problem that the player cannot stop playing after the person falls asleep is reduced.
Experiment results show that the lower limit value T1l is 1 minute, the upper limit value T1h is 30 minutes, and the first preset time length T1 can be selected between the lower limit value T1l and the upper limit value T1h according to different requirements of the characteristics and the use environment of the infrared sensor.
The timing diagram corresponding to the above steps 301-304 is shown in FIG. 4.
The technical scheme has the beneficial effects that: a large number of experiments are carried out to determine a reasonable value of the first preset time, so that the probability of occurrence of unexpected actions is reduced, and the use experience is improved.
The embodiment of the invention provides a method for automatically controlling playing, wherein the second preset time length is more than or equal to 30 seconds, and the sum of the first preset time length and the second preset time length is less than or equal to 30 minutes.
The setting method of the second preset time length comprises the following steps: on one hand, to enable the person who has not fallen asleep to have enough reaction time to generate the body movement recovery volume V1, practice proves that when the second preset time period T2 is set to be more than 30 seconds, the possibility of shutdown caused by delayed reaction is remarkably reduced; on the other hand, the sum of the timing durations of the first preset duration T1 and the second preset duration T2 is at least less than the minimum value of the first turning-over duration T5, otherwise the playing cannot be stopped due to the body movement signal appearing after falling asleep, and practice proves that the sum of the timing durations of the first preset duration T1 and the second preset duration T2 is suitable for being less than 30 minutes.
The technical scheme has the beneficial effects that: through the practical setting of the second preset time length, the accuracy of the device is improved, and the use experience is improved.
The above describes in detail the flow of a method for automatically controlling playback in the embodiment of the present invention, and the method may also be implemented by a corresponding apparatus, and the structure and function of the apparatus are described in detail below.
Based on the same concept, an apparatus for automatically controlling playback according to an embodiment of the present invention, as shown in fig. 5, includes:
the playing module 1 is used for playing audio files and/or streaming media;
the receiving module 2 is used for receiving a starting instruction which is input by a user and used for starting the automatic control playing function;
the sensing module 3 is used for monitoring whether a user sends a body movement signal;
the control module 4 is used for starting the first timing module 5 to start timing when the receiving module 2 receives the starting instruction, and the timing duration is set as a first preset duration; when the first timing module 5 finishes the timing, the sensing module 3 monitors the body movement signal, and the control module 4 controls the first timing module to restart timing; when the first timing module finishes the current timing, the sensing module 3 does not monitor the body movement signal within the timing duration, and the control module 4 controls the playing module 1 to work according to a preset mode, wherein the preset mode comprises stopping playing or reducing the playing volume.
The control module can be an independent single chip microcomputer, an MCU, a microprocessor and the like, and can also utilize a built-in processor of the playing module.
The playing module includes but is not limited to a digital or analog music playing component including sound generating elements such as a piezoelectric ceramic piece and a loudspeaker.
The device for automatically controlling playing provided by the embodiment of the invention further comprises:
the control module is further used for starting the second timing module to start timing when the body movement signal is not monitored by the sensing module within the current timing duration of the first timing module when the current timing of the first timing module is finished, and the timing duration is set to be a second preset duration;
before the first timing module finishes timing at this time, the control module controls the volume played by the playing module to be V1; when or after the control module starts the second timing module to start timing, the control module controls the volume played by the playing module to be reduced by delta V1 on the basis of V1, and the delta V1 is larger than zero;
before the second timing module finishes the current timing, if the sensing module monitors a body movement signal, the control module controls the second timing module to stop timing and controls the first timing module to restart timing, and simultaneously controls the playing volume of the playing module to be increased by delta V2 on the basis of V1-delta V1, wherein the delta V2 is larger than zero, wherein V1-delta V1+ delta V2 is equal to V1, or the absolute value of the difference between V1-delta V1+ delta V2 and V1 is equal to or smaller than a preset difference;
when the second timing module finishes the current timing, if the induction module does not detect the body movement signal within the current timing duration of the second timing module, the control module controls the playing module to stop playing;
the first timing module and the second timing module are independent timing modules or the same timing module;
the second preset time is more than or equal to 30 seconds, and the sum of the first preset time and the second preset time is less than or equal to 30 minutes.
The device for automatically controlling playing provided by the embodiment of the invention further comprises:
the recording module is used for recording the played audio content while the playing module plays the streaming media;
and the storage module is used for storing the recording result of the recording module.
In the device for automatically controlling playing provided by the embodiment of the present invention, the start instruction may be, for example, an instruction for controlling switching of a sound source, for example, the device is turned on for the first time, starts an automatic control playing function, and plays audio contents on a memory card at the same time; when the second time is pressed, the audio content on the mobile terminal is played through the Bluetooth, and the playing function is automatically controlled to continue; when the user wakes up in the dark environment, the user can finish all operations such as starting playing, switching sound sources, shutting down and the like only by pressing one switch, so that the operation convenience in the dark environment is improved, and the user is particularly important for people who wake up late night and do not want to fall asleep again due to the influence of turning on the light.
As shown in fig. 6, 601 is a sensing area of a sensing module, 602 is a bedside table, 603 is a playing device, 604 is a human body, and 605 is a bed according to an embodiment of the present invention. The sensing module comprises at least one infrared sensor, and the working principle is as follows: the infrared sensor receives infrared rays generated by human body radiation and converts the variable quantity of the infrared radiation generated by human body movement into corresponding body movement signals. At the moment, the sensing area formed by the infrared ray at least covers the head of a user in a lying posture or a sitting posture on the bed, the central angle of the sector formed by the projection of the sensing area onto the horizontal plane is not less than 60 degrees, and the situation that the head of the user cannot be covered by the sensing area due to the orientation deviation of the player is avoided.
The method mainly comprises the steps that a first timing module is started to start timing, and the timing duration is set to be a first preset duration; when the first timing module finishes the timing, and the sensing module monitors a body movement signal within the first preset time, the control module controls the first timing module to restart the timing; when the first timing module finishes the current timing, the sensing module does not monitor the body movement signal within the current timing duration, and the control module controls the playing module to work according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume. Whether the user falls asleep is judged through the body movement signals monitored by the sensing module, the multimedia player is automatically controlled to play according to the falling asleep situation, the user does not need to set the playing time any more, the situation that the playing is stopped too early or too late due to uncertain falling asleep time is avoided, and the practicability of the player in the aspect of assisting sleep is improved. .
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for automatically controlling playback, comprising:
playing an audio file and/or streaming media;
receiving a starting instruction which is input by a user and used for starting an automatic control playing function;
when the starting instruction is received, timing of a first preset time length is started, and when the body movement signal of the user is monitored before the timing of the first preset time length is ended, the timing of the first preset time length is restarted; when the timing of the first preset time length is finished and the body movement signal of the user is not monitored in the timing time length, controlling the playing of the audio file and/or the streaming media according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume;
when the timing of the first preset time length is finished and no body movement signal is monitored in the timing time length of the time, starting the timing of a second preset time length;
before the timing of the first preset time length is ended, the playing volume is V1; at the beginning or after the timing of the second preset time length, the playing volume is reduced by delta V1 on the basis of V1, and the delta V1 is larger than zero;
before the timing of the second preset time length is finished, if a body movement signal of the user is monitored, stopping the timing of the second preset time length and restarting the timing of the first preset time length, and meanwhile, the playing volume is increased by delta V2 on the basis of V1-delta V1, wherein the delta V2 is larger than zero, wherein V1-delta V1+ delta V2 is equal to V1, or the absolute value of the difference between V1-delta V1+ delta V2 and V1 is equal to or smaller than a preset difference;
when the timing of the second preset time length is finished, if the body movement signal of the user is not monitored in the timing time length of the time, the playing is stopped;
the method for setting the first preset duration includes steps 301-304:
step 301: recording the 1 st group of data, wherein the 1 st group of data is a time interval for recording two adjacent body motion signals of a user in a waking state, and a plurality of data are obtained in each sleep process to form the 1 st group of data, or the data recorded from a plurality of sleep processes are combined into the 1 st group of data;
step 302, determining the maximum time interval value recorded in the group 1 data, and using the maximum time interval value as the lower limit value of the first preset time length,
or the lower limit value of the first preset duration is further obtained by calculating the average value of the 1 st group of data and the standard deviation of normal distribution;
step 303: recording the 2 nd group of data, wherein the 2 nd group of data is the time interval between the last body movement signal in the waking state and the first body movement signal in the sleeping state;
in the process from waking to falling asleep, the time interval which is greater than the lower limit value of a first preset time length appears for the first time, only one data exists in each sleep process, and the 2 nd group of data is formed through multiple sleep process records;
step 304: and determining a minimum time interval value in the 2 nd group of data, and taking the minimum time interval value as an upper limit value of the first preset time length.
2. The method of claim 1, wherein the first predetermined period of time is greater than or equal to 1 minute and less than or equal to 30 minutes.
3. The method of claim 1,
and recording the played audio content while playing the streaming media, and storing the recording result.
4. The method of claim 1,
when the playing is stopped, the audio content before the playing is stopped is marked.
5. An apparatus for automatically controlling playback, comprising:
the playing module is used for playing the audio file and/or the streaming media;
the receiving module is used for receiving a starting instruction which is input by a user and used for starting the automatic control playing function;
the sensing module is used for monitoring whether a user sends a body movement signal;
the control module is used for starting the first timing module to start timing when the receiving module receives the starting instruction, and the timing duration is set as a first preset duration; when the body movement signal is monitored by the sensing module before the first timing module finishes the current timing, the control module controls the first timing module to restart the timing; when the first timing module finishes the current timing, the sensing module does not monitor a body movement signal within the current timing duration, and the control module controls the playing module to work according to a preset mode, wherein the preset mode comprises stopping playing or reducing playing volume;
the control module is further configured to, when the current timing of the first timing module is finished, the sensing module does not monitor a body movement signal within the current timing duration of the first timing module, and then the control module starts a second timing module to start timing, and the timing duration is set to be a second preset duration;
before the first timing module finishes timing at this time, the control module controls the volume played by the playing module to be V1; at the same time or after the control module starts a second timing module to start timing, the control module controls the volume played by the playing module to be reduced by Δ V1 on the basis of V1, and Δ V1 is greater than zero;
before the second timing module finishes the current timing, if the sensing module monitors a body movement signal, the control module controls the second timing module to stop timing, controls the first timing module to restart timing, and simultaneously controls the volume played by the playing module to be increased by Δ V2 on the basis of V1- Δ V1, wherein Δ V2 is greater than zero, V1- Δ V1+ Δ V2 is equal to V1, or the absolute value of the difference between V1- Δ V1+ Δ V2 and V1 is equal to or less than a preset difference;
when the second timing module finishes the current timing, if the sensing module does not detect the body movement signal within the current timing duration of the second timing module, the control module controls the playing module to stop playing;
the first timing module and the second timing module are independent timing modules or the same timing module;
the method for setting the first preset duration includes steps 301-304:
step 301: recording the 1 st group of data, wherein the 1 st group of data is a time interval for recording two adjacent body motion signals of a user in a waking state, and a plurality of data are obtained in each sleep process to form the 1 st group of data, or the data recorded from a plurality of sleep processes are combined into the 1 st group of data;
step 302, determining the maximum time interval value recorded in the group 1 data, and using the maximum time interval value as the lower limit value of the first preset time length,
or the lower limit value of the first preset duration is further obtained by calculating the average value of the 1 st group of data and the standard deviation of normal distribution;
step 303: recording the 2 nd group of data, wherein the 2 nd group of data is the time interval between the last body movement signal in the waking state and the first body movement signal in the sleeping state;
in the process from waking to falling asleep, the time interval which is greater than the lower limit value of a first preset time length appears for the first time, only one data exists in each sleep process, and the 2 nd group of data is formed through multiple sleep process records;
step 304: and determining a minimum time interval value in the 2 nd group of data, and taking the minimum time interval value as an upper limit value of the first preset time length.
6. The apparatus of claim 5, further comprising:
the recording module is used for recording the played audio content while the playing module plays the played streaming media;
and the storage module is used for storing the recording result of the recording module.
7. The apparatus of claim 5,
the starting instruction comprises a switching instruction for switching the sound source.
8. The apparatus of claim 5,
the sensing module comprises at least one infrared sensor, a sensing area formed in front of the infrared sensor at least covers the head of a user in a lying or sitting posture on a bed, and the central angle of a fan-shaped sensing area projected on a horizontal plane is not less than 60 degrees.
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 CN109727611A (en) 2019-05-07
CN109727611B true 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)

Families Citing this family (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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107496072A (en) * 2017-07-28 2017-12-22 惠州市格农科技有限公司 Improve the householder method and auxiliary equipment of sleep quality

Family Cites Families (7)

* 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
CN102857824B (en) * 2012-09-18 2016-08-10 深圳Tcl新技术有限公司 Playback equipment enters the method and device of holding state
CN104764152A (en) * 2015-03-27 2015-07-08 武汉海尔电器股份有限公司 Air conditioner sleeping and running control method
CN105708421B (en) * 2016-04-05 2018-12-04 福州市马尾区小微发明信息科技有限公司 A kind of sleep detection method
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
CN107659710B (en) * 2017-08-15 2020-08-21 捷开通讯(深圳)有限公司 Intelligent terminal, playing control method thereof and device with storage function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107496072A (en) * 2017-07-28 2017-12-22 惠州市格农科技有限公司 Improve the householder method and auxiliary equipment of sleep quality

Also Published As

Publication number Publication date
CN109727611A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US6838994B2 (en) Adaptive alarm system
CN105282343B (en) A kind of method and apparatus for intelligent reminding of sleeping
US9891592B2 (en) Information processing to improve sleep efficiency
US11786172B2 (en) Method, device and storage medium for sleep monitoring
US7650057B2 (en) Broadcasting signal receiving system
CN109727611B (en) Method and device for automatically controlling playing
US9848796B2 (en) Method and apparatus for controlling media play device
US20090149699A1 (en) System for and method of controlling playback of audio signals
US20090195704A1 (en) Power saving device
WO2011100890A1 (en) Reminding method of environmental sound and mobile terminal thereof
EP1629448A1 (en) Monitoring system capable of generating audible messages
US20160249852A1 (en) Information processing apparatus, information processing method, and program
CN105407217A (en) Mobile terminal music playing method and mobile terminal
CN110022924A (en) Householder method of sleeping and terminal
JP2005151507A (en) Electronic apparatus control device, and electronic apparatus control system
US6940432B1 (en) Subliminal recording device
CN112545851A (en) Massage method and device, electronic device and computer readable storage medium
CN112932225B (en) Intelligent awakening pillow and awakening method based on intelligent awakening pillow
JPH08160172A (en) Alarm clock
CN210300462U (en) Intelligent awakening pillow
CN207978020U (en) A kind of mobile phone reminding system
JP2005241286A (en) Alarm clock
CN112781185A (en) Air conditioner, control method thereof, and computer-readable storage medium
CN216160986U (en) Intelligent alarm clock
CN105708421B (en) A kind of sleep detection method

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