Terminal control method, device and medium
By implementing the automatically enabled sleep aid mode on the terminal, processing audio and video or adding setting audio, the existing sleep aid solution is solved and the problem of boring experience and user resistance, and the sleep aid effect is improved.
Patent Information
- Application Number
- CN202110054539.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-15
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-01-15
AI Technical Summary
Existing sleep-aided solutions such as playing hypnotic music or hypnotic videos are boring and require users to actively play, which can easily cause psychological resistance and make it difficult to persist for a long time.
By implementing the sleep aid mode on the terminal, it is determined that the current environment meets the preset conditions and the terminal is in a media playback scenario, the sleep aid mode is automatically turned on, the audio and video is processed or the audio is added, and the playback is processed in the media playback scenario audio or set audio.
It realizes that the sleep aid mode is automatically activated when the user is not easily noticed, avoiding the user's resistance and thus improving the sleep aid effect.
Smart Images

Figure CN114765643B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of intelligent terminals, and in particular to a terminal control method, device and medium. Background Art
[0002] Sleep is an essential physiological behavior in people's daily life. The process of sleep is the process of nerve cells in the cerebral cortex changing from an excited state to an inhibited state. However, in today's society, with the increase of life pressure, insomnia and staying up late have gradually become the norm in people's daily life. These behaviors are very detrimental to physical health.
[0003] Smart terminals, such as mobile phones, are one of the most important consumer electronic products today and have become an essential tool for people's daily life and entertainment. However, when people play with their mobile phones at night, due to the stimulation of music and pictures, the cerebral cortex will always be in an excited state, and it is difficult to switch to an inhibited state, making it difficult to fall asleep.
[0004] The existing "sleep aid" scheme is, for example, playing hypnotic music or hypnotic videos. However, the experience of playing such hypnotic music or hypnotic videos is relatively boring. In addition, the scheme requires users to actively play such hypnotic music or hypnotic videos, which may easily cause users to have a certain psychological resistance and is not easy to persist for a long time. Therefore, most users who are not serious insomniacs generally do not actively choose this sleep aid method. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a terminal control method, device and medium.
[0006] According to a first aspect of an embodiment of the present disclosure, a terminal control method is provided, which is applied to a terminal, and the method includes:
[0007] Determining that the current environment satisfies a first preset condition and the terminal is in a media playback scenario;
[0008] Turn on the sleep aid mode, process the played audio and video and / or add a set audio to the played audio;
[0009] The processed audio and / or the set audio is played in the media playback scene.
[0010] The processing of the played audio and video includes:
[0011] When the media playback includes audio playback and the played audio satisfies a second preset condition, at least one of the following processing is performed on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value.
[0012] Wherein, the method further comprises:
[0013] In a case where the media playback includes video playback, the light intensity of an environment in which the terminal is located is obtained, and based on the light intensity, the screen brightness is adjusted to a set brightness within a first set time period.
[0014] Wherein, playing the processed audio and / or the set audio in the media playback scene includes:
[0015] In the case of playing the processed audio, reducing the playing volume of the played audio over time, or reducing the playing volume of the played audio to a second set volume value within a second set time period; and
[0016] When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
[0017] Wherein, the method further comprises:
[0018] When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
[0019] Wherein, the method further comprises:
[0020] The working state of the terminal is set to a standby state.
[0021] Wherein, determining that the current environment satisfies the first preset condition includes satisfying at least one of the following conditions:
[0022] The current time is the set time;
[0023] The current time is greater than the set time threshold from the user's last sleep time;
[0024] It is detected that the user's heart rate is lower than the set heart rate threshold;
[0025] It is detected that the user is currently in a fatigue state.
[0026] According to a second aspect of an embodiment of the present disclosure, a terminal control device is provided, which is applied to a terminal, and is characterized in that the device includes:
[0027] A determination module, configured to determine that the current environment satisfies a first preset condition and the terminal is in a media playback scenario;
[0028] An audio processing module is configured to enable a sleep aid mode, process the played audio and video, and / or add a set audio to the played audio;
[0029] The playing module is configured to play the processed audio and / or the set audio in the media playing scene.
[0030] Wherein, the audio processing module is further configured to:
[0031] When the media playback includes audio playback and the played audio satisfies a second preset condition, at least one of the following processing is performed on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value.
[0032] The device further comprises a brightness adjustment module, which is configured as follows:
[0033] In a case where the media playback includes video playback, the light intensity of an environment in which the terminal is located is obtained, and based on the light intensity, the screen brightness is adjusted to a set brightness within a first set time period.
[0034] Wherein, the audio processing module is further configured to:
[0035] In the case of playing the processed audio, reducing the playing volume of the played audio over time, or reducing the playing volume of the played audio to a second set volume value within a second set time period; and
[0036] When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
[0037] Wherein, the playing module is further configured to:
[0038] When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
[0039] The device further includes a control module, and the control module is configured to set the working state of the terminal to a standby state when the playing module stops playing the media.
[0040] The determining module is further configured to determine that the current environment satisfies the first preset condition when at least one of the following conditions is met:
[0041] The current time is the set time;
[0042] The current time is greater than the set time threshold from the user's last sleep time;
[0043] It is detected that the user's heart rate is lower than the set heart rate threshold;
[0044] It is detected that the user is currently in a fatigue state.
[0045] According to a third aspect of an embodiment of the present disclosure, there is provided a terminal control device, characterized in that it includes:
[0046] processor;
[0047] a memory for storing processor-executable instructions;
[0048] Wherein, the processor is configured to implement the above method when running the executable instructions.
[0049] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, and when instructions in the storage medium are executed by a processor of a device, the device is enabled to perform the above-mentioned method.
[0050] In the method disclosed herein, when it is determined that the current environment satisfies the first preset condition and the terminal is in a media playback scene, the sleep aid mode is turned on, the played audio and video are processed and / or the set audio is added to the played audio, and then the processed audio and / or the set audio is played in the media playback scene.
[0051] By adopting the above method, the user can customize the start time of the sleep aid mode. When the start time is reached, if the terminal is in a media playback scene, such as playing music, video, or running a game, it is considered that the sleep aid mode can be started. By adopting this sleep aid mode start method, the user's active start of the sleep aid mode in the prior art can be converted into a passive start method. The sleep aid mode is automatically started without the user's awareness, avoiding the user's resistance, thereby improving the sleep aid effect on the user.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0054] Figure 1 The present invention is a flowchart of a terminal control method according to an exemplary embodiment.
[0055] Figure 2The present invention is a flowchart of a terminal control method according to an exemplary embodiment.
[0056] Figure 3 The present invention is a block diagram of a terminal control device according to an exemplary embodiment.
[0057] Figure 4 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0059] The existing "sleep aid" solutions, such as playing hypnotic music or hypnotic videos, are relatively boring. In addition, the solution requires users to actively play such hypnotic music or hypnotic videos, which can easily cause users to have a certain psychological resistance and is not easy to persist for a long time.
[0060] The present disclosure provides a terminal control method, which includes: when it is determined that the current environment meets a first preset condition and the terminal is in a media playback scene, turning on a sleep aid mode, processing the played audio and video and / or adding set audio to the played audio, and then playing the processed audio and / or the set audio in the media playback scene.
[0061] By adopting the above method, the user can customize the start time of the sleep aid mode. When the start time is reached, if the terminal is in a media playback scene, such as playing music, video, or running a game, it is considered that the sleep aid mode can be started. By adopting this sleep aid mode start method, the user's active start of the sleep aid mode in the prior art can be converted into a passive start method. The sleep aid mode is automatically started without the user's awareness, avoiding the user's resistance, thereby improving the sleep aid effect on the user.
[0062] The terminal here refers to a terminal with media playback function, such as a mobile phone, PAD, wearable device, etc.
[0063] Figure 1 is a flow chart of a terminal control method according to an exemplary embodiment. Figure 1 As shown, the method comprises the following steps:
[0064] Step 101, determining that the current environment meets a first preset condition and the terminal is in a media playback scenario;
[0065] Step 102, turning on the sleep aid mode, processing the played audio and video and / or adding a set audio to the played audio;
[0066] Step 103: Play the processed audio and / or the set audio in the media playback scene.
[0067] For convenience, the function executed by the terminal in this method is called a sleep aid function, which can also be understood as the terminal starting the sleep aid mode to execute the sleep aid function. It should be noted that the terms sleep aid mode and sleep aid function here are only for the convenience of description and do not constitute a limitation of this method.
[0068] The method is a method for controlling a terminal to automatically enter a sleep-aiding mode, thereby helping a user to sleep without the user noticing. In the method, the terminal determines whether to start the sleep-aiding mode by judging whether a specific condition is currently met.
[0069] In step 101, when the terminal determines that the current environment meets the first preset condition and is in a media playback scene, it is considered that the condition for starting the sleep aid mode is met. The first preset condition here can be whether the current time is a set time, whether the current time is more than a set time threshold from the user's last sleep time, whether the user's heart rate is detected to be lower than a set heart rate threshold, whether the user is detected to be in a fatigue state, etc. The media playback scene can be a scene involving media playback, such as playing audio (including music, novels, etc.), playing videos, running games, etc.
[0070] For example, users generally have a period of entertainment time before going to bed at night, during which time users often listen to audio, watch videos or play games. In addition, if the user suffers from insomnia at night, he or she will also pass the time by listening to audio, watching videos or playing games. Therefore, the first preset condition can be set to the current time as the set time. In this case, at the set time in the evening, if the terminal is in the media playback scene at this time, it can be confirmed that the user needs sleep assistance. At this time, the sleep assistance mode of the terminal can be activated to help the user fall asleep.
[0071] In step 102, when it is determined that the terminal enters the sleep aid mode, the played audio and video can be processed to make the played audio more suitable for the user to quickly fall asleep, or a set audio suitable for the user to fall asleep can be added to play. Here, both the processing of the played audio and the addition of the set audio can be performed, or one of the two can be performed.
[0072] The setting audio generally includes relaxing music elements, such as environmental music (for example, the calls of animals such as frogs, crickets, birds, seagulls, the sounds of flowing water, dripping waves, etc.), space music (for example, sounds that can create a huge sense of space and make the listener feel comfortable), spiritual music (for example, music that can release negative emotions and inspire confidence), and so on.
[0073] In step 103, in the media playback scenario, the processed audio is played, or the set audio is played, or the processed audio and the set audio are played simultaneously. It should be noted that in step 102, if the played audio is processed and the set audio is added to the played audio, then in step 103, the processed audio and the set audio are played simultaneously, and the processed audio and the set audio can be played separately through different channels. In addition, if only the played audio is processed in step 102, then only the processed audio is played in step 103; if only the set audio is added in step 102, then only the set audio is played in step 103.
[0074] By adopting the above method, the user can customize the start time of the sleep aid mode. When the start time is reached, if the terminal is in a media playback scene, such as playing music, video, or running a game, it is considered that the sleep aid mode can be started. By adopting this sleep aid mode start method, the user's active start of the sleep aid mode in the prior art can be converted into a passive start method. The sleep aid mode is automatically started without the user's awareness, avoiding the user's resistance, thereby improving the sleep aid effect on the user.
[0075] In an optional implementation manner, the processing of the played audio and video includes:
[0076] When the media playback includes audio playback and the played audio satisfies a second preset condition, at least one of the following processing is performed on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value.
[0077] In this embodiment, the played audio is processed to make the audio more helpful for the user to fall asleep. The played audio satisfies the second preset condition, for example, the rhythm of the played audio is greater than the set rhythm threshold, and the played audio includes harsh sounds (for example, including sound frequencies higher than the set frequency threshold). When the audio rhythm is too fast, the audio playback rate can be reduced; when the audio contains harsh sounds, the set frequencies corresponding to these harsh sounds can be removed (these set frequencies are pre-acquired); when the volume of some parts of the audio is too loud, the volume of this part of the audio can be reduced.
[0078] After this processing, the played audio can be made more soothing, thus more suitable for the user to fall asleep. In addition, this processing is a partial processing of the played audio, which is less noticeable to the user, will not cause the user to have a resistance, and is more easily accepted by the user.
[0079] It should be noted that when audio and video are played simultaneously and the playback rate of the audio is reduced, the playback rate of the video also needs to be reduced so that the audio and video played simultaneously match.
[0080] In an optional embodiment, the method further comprises:
[0081] In the case where the media playback includes video playback, the light intensity of the environment in which the terminal is located is obtained, and the screen brightness is adjusted to a set brightness within a first set time period.
[0082] In this embodiment, when the media playback of the terminal includes video playback, the screen brightness is adjusted based on the light intensity of the environment in which the terminal is located. Generally speaking, when users use terminals to listen to audio or watch videos at night, they are indoors and the light indoors is dim at night. At this time, if the screen brightness is high, it will stimulate the user and prevent the user from falling asleep; if the screen brightness is low, it will reduce the stimulation to the user and help the user fall asleep. Specifically, the screen brightness can be gradually reduced so that the user is not easily aware of the change in screen brightness, making it easier for the user to accept this sleep-aiding mode.
[0083] For example, within the first set time period, the screen brightness is adjusted to a set brightness, which can be a lower brightness. After the first set time period, the user is already very sleepy, so it is not easy to notice that the screen brightness is lower at this time, and the lower screen brightness at this time helps the user fall asleep quickly. The first set time period here can be set by the user, or it can be set by default, such as 20 minutes, 30 minutes, etc.
[0084] In an optional implementation manner, playing the processed audio and / or the set audio in the media playback scene includes:
[0085] In the case of playing the processed audio, reducing the playing volume of the played audio over time, or reducing the playing volume of the played audio to a second set volume value within a second set time period; and
[0086] When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
[0087] As described above, if the played audio is processed and the set audio is added to the played audio in step 102, the processed audio and the set audio are played simultaneously in step 103; if only the played audio is processed in step 102, only the processed audio is played in step 103; if only the set audio is added in step 102, only the set audio is played in step 103.
[0088] Then in this embodiment, when playing the processed audio, its playback volume is reduced over time, so that the user gradually stops focusing on the media being played; when playing the set audio, its playback volume is increased over time, so that by playing this soothing audio, the sleep-aiding effect on the user is enhanced. Here, reducing the volume over time and increasing the volume over time can mean gradually reducing the volume and increasing the volume over time. When playing the processed audio and the set audio at the same time, they are played through different channels of the terminal, so that the playback volume can be controlled separately.
[0089] When the volume of the processed audio is reduced over time, the volume is reduced to a second set volume value within a second set time period, and the second set volume value is generally a lower volume value, and may also be zero, so that the user can fall asleep. The second set time period is a time period set by the user, and may also be a default time period, such as 10 minutes, 20 minutes, etc.
[0090] When the volume of the set audio is increased over time, the volume is increased to a third set volume value within a third set time period, and the third set volume value is generally a relatively high volume value, and the third set volume value is greater than the second set volume value. The third set time period is a time period set by the user, and may also be a default time period, such as 10 minutes, 20 minutes, etc. The third set time period may be the same as or different from the second set time period.
[0091] By using this method, sleep-aiding music can be added to the audio being played in a way that is not easily noticed by the user, thereby enhancing the sleep-aiding effect.
[0092] In an optional embodiment, the method further comprises:
[0093] When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
[0094] In this embodiment, the fourth set time period is the time period during which the sleep aid mode lasts, and the time is counted from the time when the sleep aid mode is entered. The fourth set time period is the time period for assisting the user to sleep. It is generally believed that when the fourth set time period ends, the user has entered a sleep state, so the media playback is stopped at this time to avoid disturbing the user's sleep. Here, detecting that the user has entered a sleep state can be achieved by detecting physical indicators such as the user's heart rate. For example, when it is detected that the user's heart rate is lower than a set number of times, it can be determined that the user has been detected to have entered a sleep state.
[0095] In an optional embodiment, the method further comprises:
[0096] The working state of the terminal is set to a standby state.
[0097] When the user has entered the sleep state and stopped media playback, the terminal working state can be set to the standby state to save terminal power.
[0098] In an optional implementation manner, determining that the current environment satisfies the first preset condition includes satisfying at least one of the following conditions:
[0099] The current time is the set time;
[0100] The current time is greater than the set time threshold from the user's last sleep time;
[0101] It is detected that the user's heart rate is lower than the set heart rate threshold;
[0102] It is detected that the user is currently in a fatigue state.
[0103] The set time can be set by the user or by the system default. Generally, the set time is the time when the user is ready to go to bed, such as 22:30, 23:00, etc., and is set according to the user's work and rest habits. The set time threshold can be the user's sleep cycle, such as 24 hours.
[0104] The heart rate threshold may be set to a value when a person is at rest. Generally, a person's heart rate when resting (including sleeping) is lower than that when the person is active. In addition, whether the user is currently in a fatigue state may be determined by detecting some physical indicators, such as the user's heart rate, eye movement state, and other physical indicators.
[0105] The following describes a specific embodiment of the present disclosure in conjunction with a specific application scenario. In this embodiment, the terminal is a mobile phone, and the embodiment includes the following steps:
[0106] Step 201, obtaining the current time as 22:00, which is the set time for starting the sleep aid mode set by the user.
[0107] Step 202: determine that the terminal is currently playing video and audio, that is, is in a media playing scenario.
[0108] Step 203, determining that the rhythm of the played audio is too fast, processing the played audio, reducing the playing rate of the audio, and adding ambient music to the played audio.
[0109] Step 204, adding ambient music to the played audio.
[0110] Step 205: Play the processed audio and ambient music through two sound channels of the terminal respectively.
[0111] Step 206, gradually reduce the volume of the channel playing the processed audio, and gradually increase the volume of the channel playing the ambient music. After 20 minutes of entering the sleep aid mode, the volume of the processed audio is reduced to zero, and the volume of the ambient music is increased to the set volume.
[0112] Step 207, while processing the audio, obtain the ambient light intensity around the mobile phone, and gradually reduce the brightness of the mobile phone screen based on the light intensity.
[0113] Step 208, 20 minutes after entering the sleep aid mode, the screen brightness is set to the set brightness.
[0114] Step 209, when the sleep aid mode is entered for 40 minutes, the media playback is stopped and the mobile phone is set to standby mode.
[0115] The present disclosure also proposes a terminal control device, which is applied to a terminal, such as Figure 3 As shown, the device comprises:
[0116] A determination module 301 is configured to determine that the current environment satisfies a first preset condition and the terminal is in a media playback scenario;
[0117] The audio processing module 302 is configured to enable the sleep aid mode, process the played audio and video, and / or add a set audio to the played audio;
[0118] The playing module 303 is configured to play the processed audio and / or the set audio in the media playing scene.
[0119] In an optional implementation manner, the audio processing module 302 is further configured to:
[0120] When the media playback includes audio playback and the played audio satisfies a second preset condition, at least one of the following processing is performed on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value.
[0121] In an optional implementation, the device further includes a brightness adjustment module configured to:
[0122] In a case where the media playback includes video playback, the light intensity of an environment in which the terminal is located is obtained, and based on the light intensity, the screen brightness is adjusted to a set brightness within a first set time period.
[0123] In an optional implementation manner, the audio processing module 302 is further configured to:
[0124] In the case of playing the processed audio, reducing the playing volume of the played audio over time, or reducing the playing volume of the played audio to a second set volume value within a second set time period; and
[0125] When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
[0126] In an optional implementation manner, the playing module 303 is further configured to:
[0127] When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
[0128] In an optional implementation, the device further includes a control module, and the control module is configured to set the working state of the terminal to a standby state when the playing module stops playing the media.
[0129] In an optional implementation manner, the determining module 301 is further configured to determine that the current environment satisfies the first preset condition when at least one of the following conditions is met:
[0130] The current time is the set time;
[0131] The current time is greater than the set time threshold from the user's last sleep time;
[0132] It is detected that the user's heart rate is lower than the set heart rate threshold;
[0133] It is detected that the user is currently in a fatigue state.
[0134] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0135] By using the above device, the user can customize the start time of the sleep aid mode. When the start time is reached, if the terminal is in a media playback scene, such as playing music, video, or running a game, it is considered that the sleep aid mode can be started. By using this sleep aid mode start method, the user's active start of the sleep aid mode in the prior art can be converted into a passive start method. The sleep aid mode is automatically started without the user's awareness, avoiding the user's resistance, thereby improving the sleep aid effect on the user.
[0136] Figure 4 It is a block diagram of a terminal control device 400 according to an exemplary embodiment.
[0137] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0138] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0139] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0140] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0141] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0142] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0143] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0144] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0145] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0146] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0148] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a terminal control method, the method comprising: determining that the current environment meets a first preset condition and the terminal is in a media playback scene; turning on a sleep aid mode, processing the played audio and video and / or adding set audio to the played audio; playing the processed audio and / or the set audio in the media playback scene.
[0149] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0150] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A terminal control method, applied to a terminal, characterized in that: The method comprises: Determining that the current environment satisfies a first preset condition and the terminal is in a media playback scenario; Turning on the sleep-aiding mode, adding a set audio to the played audio, or processing the played audio or video and adding the set audio to the played audio, wherein the set audio includes a music element with a relaxing effect; Playing the set audio in the media playback scene, or playing the processed audio and the set audio in the media playback scene; Wherein, determining that the current environment satisfies the first preset condition includes satisfying at least one of the following conditions: The current time is the set time; The current time is greater than the set time threshold from the user's last sleep time; It is detected that the user's heart rate is lower than the set heart rate threshold; Detecting that the user is currently in a fatigue state, wherein the fatigue state is determined based on the user's physical indicators, wherein the physical indicators include heart rate and eyeball activity state; The processing of the played audio and video includes: In the case where the media playback includes audio playback, performing at least one of the following processing on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value; When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
2. The method according to claim 1, characterized in that The method further comprises: In a case where the media playback includes video playback, the light intensity of an environment in which the terminal is located is obtained, and based on the light intensity, the screen brightness is adjusted to a set brightness within a first set time period.
3. The method according to claim 1, characterized in that Playing the processed audio in the media playback scenario includes: When playing the processed audio, the playing volume of the played audio is reduced over time, or within a second set time period, the playing volume of the played audio is reduced to a second set volume value.
4. The method according to claim 3, characterized in that The method further comprises: When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
5. The method according to claim 4, characterized in that The method further comprises: The working state of the terminal is set to a standby state.
6. A terminal control device, applied to a terminal, characterized in that: The device comprises: A determination module, configured to determine that the current environment satisfies a first preset condition and the terminal is in a media playback scenario; An audio processing module is configured to enable a sleep aid mode, add a set audio to the played audio, or process the played audio or video and add the set audio to the played audio, wherein the set audio includes a music element with a relaxing effect; A playing module, configured to play the set audio in the media playing scene, or to play the processed audio and the set audio in the media playing scene; The determining module is further configured to determine that the current environment satisfies the first preset condition when at least one of the following conditions is met: The current time is the set time; The current time is greater than the set time threshold from the user's last sleep time; It is detected that the user's heart rate is lower than the set heart rate threshold; Detecting that the user is currently in a fatigue state, wherein the fatigue state is determined based on the user's physical indicators, wherein the physical indicators include heart rate and eyeball activity state; Wherein, the audio processing module is further configured to: In the case where the media playback includes audio playback, performing at least one of the following processing on the played audio: reducing the playback rate of the audio, removing a set frequency in the audio, and reducing the volume of part of the audio, where the volume of the part of the audio is greater than a first set volume value; Wherein, the audio processing module is further configured to: When playing the set audio, the playing volume of the set audio is increased over time, or within a third set time period, the playing volume of the set audio is increased to a third set volume value.
7. The device according to claim 6, characterized in that The device also includes a brightness adjustment module, which is configured to: In a case where the media playback includes video playback, the light intensity of an environment in which the terminal is located is obtained, and based on the light intensity, the screen brightness is adjusted to a set brightness within a first set time period.
8. The device according to claim 6, characterized in that The audio processing module is also configured to: When playing the processed audio, the playing volume of the played audio is reduced over time, or within a second set time period, the playing volume of the played audio is reduced to a second set volume value.
9. The device according to claim 8, characterized in that The playback module is also configured to: When the sleep aid mode timing reaches a fourth set time period, or when it is detected that the user has fallen asleep, the media playback is stopped.
10. The device according to claim 9, characterized in that The device further comprises a control module, wherein the control module is configured to set the working state of the terminal to a standby state when the playing module stops playing the media.
11. A terminal control device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 5 when executing the executable instructions.
12. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device, the device is enabled to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Audio signal playing method and device, and earphone
CN109413537A
Sleep-aiding earphone control method and device
CN112087685A