CN113676596B - Electronic device control method, electronic device control device, storage medium and electronic device - Google Patents

Electronic device control method, electronic device control device, storage medium and electronic device Download PDF

Info

Publication number
CN113676596B
CN113676596B CN202110959178.9A CN202110959178A CN113676596B CN 113676596 B CN113676596 B CN 113676596B CN 202110959178 A CN202110959178 A CN 202110959178A CN 113676596 B CN113676596 B CN 113676596B
Authority
CN
China
Prior art keywords
electronic equipment
electronic device
mute mode
sound event
event
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
CN202110959178.9A
Other languages
Chinese (zh)
Other versions
CN113676596A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110959178.9A priority Critical patent/CN113676596B/en
Publication of CN113676596A publication Critical patent/CN113676596A/en
Application granted granted Critical
Publication of CN113676596B publication Critical patent/CN113676596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to an electronic device control method, an electronic device control apparatus, a storage medium, and an electronic device, wherein the method comprises: determining the starting time of reaching a preset time period, and detecting whether the electronic equipment runs a first sound event, wherein the preset time period is a time period when a mute mode of the electronic equipment is in an on state; after the electronic equipment is detected to be running the first sound event, judging whether the first sound event is finished or not; determining that the first sound event is ended, and starting a mute mode of the electronic equipment; and determining the end time of the preset time period, and closing the mute mode of the electronic equipment. The embodiment of the disclosure can flexibly adjust the mute setting according to the potential requirements of the user, so that the mute setting mode is richer, and the intelligent degree of the mute setting is higher.

Description

Electronic device control method, electronic device control device, storage medium and electronic device
Technical Field
The disclosed embodiments relate to the field of computer technologies, and in particular, to an electronic device control method, an electronic device control apparatus, and a computer-readable storage medium and an electronic device for implementing the electronic device control method.
Background
Intelligent electronic devices such as smart phones are becoming more and more popular, and smart phones generally have a mute function, so that users can conveniently and rapidly switch contextual models in specific periods such as rest periods.
At present, after a mute mode is set, the volume of the smart phone is turned off, and at the moment, all incoming calls, short messages, played music and the like have no sound prompt.
However, the current mute setting cannot be flexibly adjusted according to the potential requirements of users, the mute setting mode is too single, and the intelligent degree of the mute setting is low.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide an electronic device control method, an electronic device control apparatus, and a computer-readable storage medium and an electronic device implementing the electronic device control method.
In a first aspect, an embodiment of the present disclosure provides an electronic device control method, including:
determining a starting moment reaching a preset time period, and detecting whether an electronic device is running a first sound event, wherein the preset time period is a time period when a mute mode of the electronic device is in an on state;
after detecting that the electronic equipment is running the first sound event, judging whether the first sound event is ended;
determining that the first sound event is finished, and starting a mute mode of the electronic equipment;
and determining the end time of the preset time period, and closing the mute mode of the electronic equipment.
Optionally, in some embodiments of the present disclosure, after the step of turning on the mute mode of the electronic device and before the step of turning off the mute mode of the electronic device, the method further includes:
detecting whether a second sound event is turned on;
turning off a mute mode of the electronic device upon detecting turning on the second sound event;
judging whether the second sound event is finished or not;
and when the second sound event is finished, restarting the mute mode of the electronic equipment.
Optionally, in some embodiments of the present disclosure, the method further includes:
when the second sound event is finished, judging whether the electronic equipment is in a screen locking state;
when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment;
and when the electronic equipment is not in the screen locking state, not starting the mute mode of the electronic equipment.
Optionally, in some embodiments of the present disclosure, after detecting that the second sound event is turned on, the method further includes:
detecting whether a volume setting event exists, wherein the volume setting event is related to the second sound event;
if yes, recording the set volume value when the volume setting event is ended;
and after the mute mode of the electronic equipment is closed when the ending time comes, setting the volume of the electronic equipment based on the volume value.
Optionally, in some embodiments of the present disclosure, the method further includes:
after the volume setting event is finished, judging whether the electronic equipment is in a screen locking state;
and when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment.
Optionally, in some embodiments of the present disclosure, after the step of turning off the mute mode of the electronic device when the second sound event is detected to be turned on, the method further includes:
and when the ending time arrives, if the second sound event is still running, keeping the electronic equipment in a state of closing a mute mode.
Optionally, in some embodiments of the present disclosure, the method further includes:
when the starting moment comes, detecting whether the electronic equipment is in a screen locking state;
and when the electronic equipment is in a screen locking state, starting a mute mode of the electronic equipment.
Optionally, in some embodiments of the present disclosure, the method further includes:
when the electronic equipment is detected to be running the first sound event, starting to calculate the running time length of the first sound event;
when the running time is longer than the preset time, starting a mute mode of the electronic equipment;
and the preset duration is less than the total duration corresponding to the preset time period.
In a second aspect, an embodiment of the present disclosure provides an electronic device control apparatus, including:
the event detection module is used for determining the starting time of reaching a preset time period and detecting whether the electronic equipment runs a first sound event, wherein the preset time period is the time period when the mute mode of the electronic equipment is in an on state;
the event state detection module is used for judging whether the first sound event is finished or not after the first sound event is detected to be operated by the electronic equipment;
a mute starting module, configured to determine that the first sound event is ended, and start a mute mode of the electronic device;
and the mute closing module is used for determining the end time of the preset time period and closing the mute mode of the electronic equipment.
In a third aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the electronic device control method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
a processor; and
a memory for storing a computer program;
wherein the processor is configured to perform the steps of the electronic device control method of any of the above embodiments via execution of the computer program.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the electronic device control method, the electronic device control apparatus, the electronic device control medium, and the electronic device provided by the embodiments of the present disclosure, when a preset time period, that is, a starting time of a time period when a mute mode of the electronic device is in an on state arrives, it is detected whether the electronic device is running a first sound event such as playing music, and after it is detected that the electronic device is running the first sound event, it is determined whether the first sound event is ended; and when the end moment of the preset time period comes, closing the electronic equipment, namely exiting the mute mode. Therefore, when a preset time period such as a rest period comes, if a user plays music, the user cannot directly and automatically enter a mute mode to enable the music being played to be silent at this moment, but enters the mute mode after the music playing is finished, so that the user can flexibly adjust the music playing mode according to potential requirements of the user, such as listening to the music and the like, the mute setting mode is rich, and the intelligent degree is high.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart of an electronic device control method according to an embodiment of the disclosure;
FIG. 2 is a flowchart of an electronic device control method according to another embodiment of the disclosure;
FIG. 3 is a flowchart of a method for controlling an electronic device according to another embodiment of the disclosure;
FIG. 4 is a flowchart illustrating a method for controlling an electronic device according to still another embodiment of the disclosure;
FIG. 5 is a flowchart of an electronic device control method according to an exemplary embodiment of the disclosure;
fig. 6 is a flowchart illustrating an electronic device control method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an electronic device control apparatus according to an embodiment of the disclosure;
fig. 8 is a schematic diagram of an electronic device for implementing a method for controlling an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
It is to be understood that, hereinafter, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated objects, meaning that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The current mute setting mode is too single, the intelligent degree of mute setting is lower, for example, the mute mode is started in a specific time period such as a night rest time period, when the rest time period comes, if a user plays music, the user can directly and automatically enter the mute mode to enable the music being played to have no sound, and the user may need to listen to the music and then enter the mute mode. Therefore, the current mute setting mode cannot be flexibly adjusted according to the potential requirements of the user, the setting mode is too single, and the intelligent degree is low.
Fig. 1 is a flowchart of an electronic device control method exemplarily shown in an embodiment of the present disclosure, where the control method may be applied to an electronic device such as a smart phone, a tablet computer, and may specifically include the following steps:
step S101: determining a starting time reaching a preset time period, and detecting whether the electronic equipment runs a first sound event, wherein the preset time period is a time period when a mute mode of the electronic equipment is in an on state.
For example, the preset time period can be set by the user according to needs, for example, the preset time period is set to be 22: 00-6: 00 of a night rest period of a day. Then the electronic device, such as a smart phone, is triggered to automatically enter a mute mode, i.e. to turn on the mute mode, when the rest period comes. The first sound event may be, but is not limited to, an event that the user starts playing, for example, audio and video, on the smartphone.
Specifically, in an example application scenario, when a user performs mute setting on a smartphone, for example, the user sets to turn on a mute mode in a rest period of 22:00 to 6: 00. When the night is 22:00, namely the starting moment comes, whether the smart phone is playing the audio and video is detected. For example, the user starts playing the audio and video at 21:58 night and continues to the end of 22:02 night, and then it is detected that the smart phone is playing the audio and video at 22:00 night. If it is detected at the time of 22:00 that the smart phone is not playing the audio and video, the mute mode can be directly started as in the prior art.
Step S102: after detecting that the electronic equipment is running the first sound event, judging whether the first sound event is finished.
Specifically, in an example application scenario, after detecting that the smart phone is playing the audio and video at the time 22:00, it is continuously determined whether the playing of the audio and video is finished.
Step S103: and determining that the first sound event is ended, and starting a mute mode of the electronic equipment.
Specifically, in an example application scenario, when the audio/video playing is determined to be finished, for example, the playing is finished at a time 22:02, the mute mode of the smart phone is started at this time.
Step S104: and determining the end time of the preset time period, and closing the mute mode of the electronic equipment.
Specifically, when the ending time, which is the time 6:00 of the rest period 22: 00-6: 00, comes, the mute mode of the electronic equipment is turned off, that is, the mute mode is exited outside the rest period.
According to the control method of the electronic device provided by the embodiment of the disclosure, when a preset time period, that is, a starting time of a time period when a mute mode of the electronic device is in an on state arrives, whether the electronic device is running a first sound event such as playing music is detected, and after the electronic device is detected to be running the first sound event, whether the first sound event is ended is judged; and when the first sound event is ended, the mute mode of the electronic equipment is started, and finally, when the ending moment of the preset time period comes, the mute mode is closed, namely, the mute mode is exited. Therefore, when a preset time period such as a rest period comes, if a user plays music, the user cannot directly and automatically enter a mute mode to enable the music being played to be silent at this moment, but enters the mute mode after the music playing is finished, so that the user can flexibly adjust the music playing mode according to potential requirements of the user, such as listening to the music and the like, the mute setting mode is rich, and the intelligent degree is high.
Optionally, in some embodiments of the present disclosure, after the step of turning on the mute mode of the electronic device in step S103 and before the step of turning off the mute mode of the electronic device in step S104, with reference to fig. 2, the method may further include the following steps:
step S201: it is detected whether a second sound event is turned on.
For example, the second sound event may also be an event that the user starts playing audio and video on the smartphone, and after entering the silent mode, the user may actively start playing audio, for example, in consideration of a situation that the user may have a temporary or other urgent event that requires using the smartphone. Therefore, in this embodiment, after entering the mute mode, it can be detected whether the user actively turns on the second sound event, such as an audio playing event.
Step S202: and when the second sound event is detected to be switched on, switching off the mute mode of the electronic equipment.
Specifically, when it is detected that the user actively turns on a second sound event, such as an audio play event, the mute mode of the smartphone may be temporarily turned off.
Step S203: and judging whether the second sound event is finished or not.
Specifically, after the mute mode of the smartphone is temporarily turned off, it is determined whether a second audio event, such as an audio play event, is finished, that is, whether the current audio play is finished.
Step S204: and when the second sound event is finished, restarting the mute mode of the electronic equipment.
Specifically, when a second sound event such as an audio playing event is determined to be finished, for example, when the user finishes processing the temporary or other urgent events, the mute mode of the smart phone is restarted, then the user waits for the arrival of the end time at the time 6:00 of the rest period 22: 00-6: 00, and exits from the mute mode when the time 6:00 arrives.
In the existing mute setting mode, after the smart phone enters a mute mode, if a user actively starts audio playing, such as playing music, the played music still has no sound, the user needs to manually adjust and turn off the mute to have the sound, and after the music playing is finished, the user needs to manually set and turn on the mute, so that the operation in the process is inconvenient, and the intelligent degree is low.
In an example scenario, after the smartphone enters the mute mode, if the user actively starts audio playing such as playing music, the mute mode is automatically and temporarily turned off to normally play music, and after the music playing is finished, the mute mode is automatically turned on again, so that the user does not need to manually adjust the mute mode, and the operation is simple and convenient, and the intelligent degree is high.
Optionally, on the basis of the embodiment shown in fig. 2, in some embodiments of the present disclosure, in combination with the embodiment shown in fig. 3, the method may further include the following steps:
step S301: and when the second sound event is finished, judging whether the electronic equipment is in a screen locking state.
Specifically, when a second sound event such as an audio playing event is finished, whether the smart phone is in a screen locking state is further judged.
Step S302: and when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment.
Specifically, when the smart phone is determined to be in the screen locking state, the mute mode of the smart phone is restarted.
Step S303: and when the electronic equipment is not in the screen locking state, not starting the mute mode of the electronic equipment.
Specifically, when it is determined that the smartphone is not in the screen-locked state, such as the screen-on state, the mute mode of the smartphone is not turned on again, that is, the state of turning off the mute mode when the second sound event is turned on is maintained.
It should be noted that, after the smart phone enters the silent mode, for example, audio playing may be actively turned on in consideration of situations that the user may have a temporary or other urgent situation and need to use the smart phone. Typically, this process includes the following flow: the user can bright the screen with the smart mobile phone, then unblock the screen, start audio playback after that, lock the screen at last, lock the screen and can show that the processing of interim or other urgent matters finishes. If the screen is not locked, it can be shown that the user is still operating the smart phone, the temporary or other urgent situations are not processed, and at this time, if the mute mode is turned on again, and the user continues to actively turn on, for example, audio playing, the mute mode needs to be manually turned off by the user, which increases the manual operation process, and the intelligent degree is low.
Therefore, in this embodiment, when a second sound event, such as an audio play event, ends, and it is determined that the smartphone is in the screen locking state by adding, the mute mode of the smartphone is automatically re-turned on, so that it can be relatively accurately ensured that the mute mode of the smartphone is re-turned on after the temporary or other urgent events are processed, and the above-mentioned problem caused by re-turning on the mute mode of the smartphone when the processing is not completed is avoided, so that the adjustment operation of the mute mode is simple and convenient, and the intelligent degree of setting the mute mode can be improved.
Optionally, on the basis of the embodiment shown in fig. 2, in some embodiments of the present disclosure, as shown in fig. 4, after the step S202 detects that the second sound event is turned on, the method may further include the following steps:
step S401: detecting whether there is a volume setting event, the volume setting event being associated with the second sound event.
For example, the volume setting event may be an event that a volume up key or a volume down key of the smart phone is pressed, such as adjusting the volume of the played audio corresponding to a second sound event, such as an audio playing event.
In an example scenario, after the smartphone enters the silent mode, the user may actively turn on audio playback, for example, in consideration of situations where the user may have temporary or other urgent events that require the smartphone. After the audio playback is actively started, the user may adjust and set the volume of the audio playback, and this volume setting may be detected in this embodiment.
Step S402: and if so, recording the set volume value when the volume setting event is ended.
For example, when the operation of pressing the volume-up key or the volume-down key is detected, that is, the volume setting event is detected, and then, if the operation of pressing the volume-up key or the volume-down key is not detected within a preset time period, for example, 4 seconds, it is determined that the volume setting event is ended. Specifically, after the user actively starts the audio playing, if it is detected that the user adjusts and sets the volume of the audio playing, the last volume value is recorded when the volume adjustment setting is finished.
For example, it is assumed that the volume value corresponding to the maximum volume of the smartphone is 100, the volume value of the smartphone before entering the mute mode is 50, after entering the mute mode, the user actively starts audio playing, and when the volume setting for the audio playing is finished, the last volume value recorded is 40, which is only an example and is not limited thereto.
Step S403: and after the mute mode of the electronic equipment is closed when the ending time arrives, setting the volume of the electronic equipment based on the volume value.
Specifically, after exiting the mute mode outside the rest period 22: 00-6: 00, the volume of the electronic device, such as a smartphone, is set based on the volume value 40, i.e., the volume of the smartphone is adjusted to the volume value 40, instead of returning to the volume value 50 before entering the mute mode.
It will be appreciated that after the smartphone enters the silent mode, for example, audio playback may be actively enabled, taking into account that the user may have temporary or other urgent events requiring the smartphone, etc. After the audio playing is actively started, a user may adjust and set the volume of the audio playing, at this time, the set volume value 40 generally corresponds to the volume value required by the user, and after the silent mode exits outside the rest time period of 22:00 to 6:00, the volume of the smart phone is adjusted to the volume value 40 so as to better correspond to the user requirement, so that the intelligent degree of the silent mode setting can be improved to a certain extent.
Optionally, on the basis of the embodiment shown in fig. 4, in some embodiments of the present disclosure, as shown in fig. 5, the method may further include the following steps:
step S501: and after the volume setting event is finished, judging whether the electronic equipment is in a screen locking state or not.
For example, step S501 may be executed after the volume setting event is ended in step S402, and it is determined whether the smartphone is in the screen lock state.
Step S502: and when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment.
For example, the mute mode of the smart phone is turned on again when the smart phone is in the screen locking state.
It should be noted that, after the smart phone enters the mute mode in the above embodiments, considering that the user may have a temporary or other urgent situation that needs to use the smart phone, for example, the audio playing may be actively turned on. After the audio playing is actively started, the user may adjust the volume of the audio playing, and after the volume adjustment is completed, if the smart phone is determined to be in the screen locking state, it indicates that the temporary or other urgent events are completed. If the screen is not locked, it can be shown that the user is still operating the smart phone, the temporary or other urgent situations are not processed, and at this time, if the mute mode is turned on again, and the user continues to actively turn on, for example, audio playing, the mute mode needs to be manually turned off by the user, which increases the manual operation process, and the intelligent degree is low.
Therefore, in this embodiment, in view of the situation that the user actively starts audio playing after the smartphone enters the silent mode, after the volume adjustment for playing audio is completed, and when the audio playing is completed, the user automatically restarts the silent mode of the smartphone when it is determined that the smartphone is in the screen locking state by adding the key, the user can more accurately ensure that the silent mode of the smartphone is restarted after the temporary or other urgent events are processed, and the above-mentioned problem caused by restarting the silent mode of the smartphone when the events are not processed is avoided, so that the silent mode adjustment operation is simple and convenient, and the intelligent degree of the silent mode setting can be improved.
Optionally, in some embodiments of the present disclosure, after the step S202 turns off the mute mode of the electronic device when the second sound event is detected to be turned on, the method may further include: and when the ending time arrives, if the second sound event is still running, keeping the electronic equipment in a state of closing a mute mode.
For example, when the time 6:00 of the rest period 22:00 to 6:00 comes, a second sound event such as audio playing time is still running, that is, audio playing is always performed in the rest period, the state of turning off the mute mode, that is, the non-mute mode may be maintained.
Optionally, in some embodiments of the present disclosure, the method may further include the steps of:
step i): and when the starting moment comes, detecting whether the electronic equipment is in a screen locking state.
Illustratively, for example, when the starting time of the rest period 22: 00-6: 00, namely 22:00, comes, whether the smart phone is in the screen locking state is detected.
Step ii): and when the electronic equipment is in a screen locking state, starting a mute mode of the electronic equipment.
For example, the mute mode of the smart phone is turned on only when it is determined that the smart phone is in the screen lock state.
It should be noted that when the starting time of the rest period 22: 00-6: 00, that is, 22:00 comes, if the smart phone is in the screen locking state, it indicates that the user does not operate the smart phone at this time. If the screen is not locked, it may indicate that the user is still operating the smartphone, and may need to play music, for example, and it is not suitable to mute directly. Therefore, in this embodiment, when the initial time of the rest period 22: 00-6: 00, that is, 22:00 arrives, if it is determined that the smart phone is in the screen locking state, the mute mode of the smart phone is automatically turned on, so that the intelligent degree of the mute setting mode can be improved. In some embodiments, if the smartphone is in the unlocked state, the mute mode of the smartphone may be turned on after waiting for the screen to be locked.
Optionally, in some embodiments of the present disclosure, in combination with the method shown in fig. 6, the method may further include the following steps:
step S601: when the electronic equipment is detected to be running the first sound event, starting to calculate the running time length of the first sound event.
Step S601 may be executed after step S101, and when it is detected that the smartphone is playing the audio and video at, for example, time 22:00, the running time T for playing the audio and video starts to be calculated, and if the playing is not finished at time 22:06, the running time T is 6 minutes at this time.
Step S602: when the running time is longer than the preset time, starting a mute mode of the electronic equipment; and the preset duration is less than the total duration corresponding to the preset time period.
For example, the preset time period may be set as required, and is less than the total time period corresponding to the preset time period, for example, the rest period 22:00 to 6:00, by 8 hours, for example, within 4 minutes, but is not limited thereto.
Specifically, when the operation time period T, for example, 6 minutes, is longer than a preset time period, for example, 4 minutes, the mute mode of the electronic device is turned on. Therefore, in the embodiment, the situation that when the smart phone is about to enter the mute mode in the rest period of 22: 00-6: 00, the situation that the user has a rest is affected because the playing time of playing the audio and video is too long and the smart phone cannot enter the mute mode all the time can be avoided, so that the mute setting mode is rich and the intelligent degree is high.
It should be noted that although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order or that all of the depicted steps must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
Based on the same inventive concept, an embodiment of the present disclosure provides an electronic device control apparatus, as shown in fig. 7, the electronic device control apparatus may include an event detection module 701, an event state detection module 702, a mute on module 703, and a mute off module 704:
the event detecting module 701 is configured to determine a starting time when a preset time period is reached, and detect whether the electronic device is running a first sound event, where the preset time period is a time period when a mute mode of the electronic device is in an on state.
The event state detection module 702 is configured to determine whether the first sound event is ended after the event detection module 701 detects that the electronic device is running the first sound event.
The mute starting module 703 is configured to determine that the first sound event is ended, and start a mute mode of the electronic device.
The mute closing module 704 is configured to determine that the end time of the preset time period is reached, and close the mute mode of the electronic device.
The electronic device control apparatus of the embodiment of the present disclosure detects whether the electronic device is running a first sound event, such as playing music, when a preset time period, that is, a starting time of a time period when a mute mode of the electronic device is in an on state, and determines whether the first sound event is ended after detecting that the electronic device is running the first sound event; and when the first sound event is ended, the mute mode of the electronic equipment is started, and finally, when the ending moment of the preset time period comes, the mute mode is closed, namely, the mute mode is exited. Therefore, when a preset time period such as a rest period comes, if a user plays music, the user cannot directly and automatically enter a mute mode to enable the music being played to be silent, but enters the mute mode after the music playing is finished, so that the user can flexibly adjust the music playing mode according to potential requirements of the user, such as listening to the music, and the like, the mute setting mode is rich, and the intelligent degree is high.
Optionally, in some embodiments of the present disclosure, the event detecting module 701 may be further configured to detect whether to turn on a second sound event after the mute turning-on module 703 turns on the mute mode of the electronic device and before the mute turning-off module 704 turns off the mute mode of the electronic device; when the second sound event is detected to be turned on, the mute closing module 704 is triggered to close the mute mode of the electronic device. The event state detection module 702 may also be configured to determine whether the second sound event is over; when the second sound event ends, the mute turning-on module 703 is triggered to turn on the mute mode of the electronic device again.
Optionally, in some embodiments of the present disclosure, the apparatus may further include a screen locking determination module, configured to determine whether the electronic device is in a screen locking state when the event state detection module 702 determines that the second sound event is ended; when the electronic device is in the screen lock state, the mute turning-on module 703 is triggered to turn on the mute mode of the electronic device again, and when the electronic device is not in the screen lock state, the mute mode of the electronic device is not turned on.
Optionally, in some embodiments of the present disclosure, the apparatus may further include a volume event detection module, a volume recording module, and a volume setting module, where the volume event detection module is configured to detect whether there is a volume setting event after the event detection module 701 detects that the second sound event is turned on, where the volume setting event is related to the second sound event. The volume recording module is used for recording the set volume value when the volume event detection module detects a volume setting event and the volume setting event is finished. And the volume setting module is used for setting the volume of the electronic equipment based on the volume value after the mute mode of the electronic equipment is closed when the ending moment comes.
Optionally, in some embodiments of the present disclosure, the screen locking determination module may be further configured to determine whether the electronic device is in a screen locking state after the volume setting event is ended; when the electronic device is in the screen lock state, the mute start module 703 is triggered to restart the mute mode of the electronic device.
Optionally, in some embodiments of the present disclosure, the apparatus may further include a state maintaining module, configured to, after the event detecting module 701 detects that the second sound event is turned on, trigger the mute turning-off module 704 to turn off the mute mode of the electronic device, and when the end time arrives, if the second sound event is still running, keep the electronic device in a state of turning off the mute mode.
Optionally, in some embodiments of the present disclosure, the screen locking determination module may be further configured to detect whether the electronic device is in a screen locking state when the starting time arrives; when the electronic device is in the screen locking state, the mute opening module 703 is triggered to open the mute mode of the electronic device.
Optionally, in some embodiments of the present disclosure, the apparatus further includes a duration determining module, configured to start calculating an operation duration of the first sound event when the event detecting module 701 detects that the electronic device is operating the first sound event; when the operation duration is longer than a preset duration, the mute opening module 703 is triggered to open the mute mode of the electronic device. And the preset duration is less than the total duration corresponding to the preset time period.
The specific manner in which the above-mentioned embodiments of the apparatus, and the corresponding technical effects brought about by the operations performed by the respective modules, have been described in detail in the embodiments related to the method, and will not be described in detail herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units. The components shown as modules or units may or may not be physical units, i.e. may be located in one place or may also be distributed over a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the wood-disclosed scheme. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the electronic device control method according to any one of the embodiments.
By way of example, and not limitation, such readable storage media can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
An embodiment of the present disclosure also provides an electronic device, including a processor and a memory for storing a computer program. Wherein the processor is configured to perform the steps of the electronic device control method in any of the above embodiments via execution of the computer program.
Fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with determining, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be 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.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may 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 816 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 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 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, micro-controllers, microprocessors or other electronic components for performing the above-described control methods.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. An electronic device control method, comprising:
determining a starting time when a preset time period is reached, and detecting whether the electronic equipment runs a first sound event or not, wherein the preset time period is a time period when a mute mode of the electronic equipment is in an on state;
after detecting that the electronic equipment is running the first sound event, judging whether the first sound event is ended;
determining that the first sound event is finished, and starting a mute mode of the electronic equipment;
and determining the end time of the preset time period, and closing the mute mode of the electronic equipment.
2. The method according to claim 1, wherein after the step of turning on the mute mode of the electronic device and before the step of turning off the mute mode of the electronic device, the method further comprises:
detecting whether a second sound event is turned on;
when the second sound event is detected to be turned on, turning off a mute mode of the electronic equipment;
judging whether the second sound event is finished or not;
and when the second sound event is finished, restarting the mute mode of the electronic equipment.
3. The control method according to claim 2, characterized in that the method further comprises:
when the second sound event is finished, judging whether the electronic equipment is in a screen locking state;
when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment;
and when the electronic equipment is not in the screen locking state, not starting the mute mode of the electronic equipment.
4. The control method of claim 2, wherein after detecting turning on the second sound event, the method further comprises:
detecting whether a volume setting event exists, wherein the volume setting event is related to the second sound event;
if yes, recording the set volume value when the volume setting event is ended;
and after the mute mode of the electronic equipment is closed when the ending time arrives, setting the volume of the electronic equipment based on the volume value.
5. The control method according to claim 4, characterized in that the method further comprises:
after the volume setting event is finished, judging whether the electronic equipment is in a screen locking state or not;
and when the electronic equipment is in a screen locking state, restarting a mute mode of the electronic equipment.
6. The method according to any one of claims 2 to 5, wherein after the step of turning off the mute mode of the electronic device upon detection of turning on the second sound event, the method further comprises:
and when the ending time arrives, if the second sound event is still running, keeping the electronic equipment in a state of closing a mute mode.
7. The control method according to any one of claims 1 to 5, characterized by further comprising:
when the starting moment comes, detecting whether the electronic equipment is in a screen locking state;
and when the electronic equipment is in a screen locking state, starting a mute mode of the electronic equipment.
8. The control method according to any one of claims 1 to 5, characterized by further comprising:
when the electronic equipment is detected to be running the first sound event, starting to calculate the running time length of the first sound event;
when the running time is longer than the preset time, starting a mute mode of the electronic equipment;
and the preset duration is less than the total duration corresponding to the preset time period.
9. An electronic device control apparatus, comprising:
the event detection module is used for determining the starting time of reaching a preset time period and detecting whether the electronic equipment runs a first sound event or not, wherein the preset time period is the time period when the mute mode of the electronic equipment is in an on state;
the event state detection module is used for judging whether the first sound event is finished or not after the first sound event is detected to be operated by the electronic equipment;
a mute starting module, configured to determine that the first sound event is ended, and start a mute mode of the electronic device;
and the mute closing module is used for determining the end time of the preset time period and closing the mute mode of the electronic equipment.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the electronic device control method according to any one of claims 1 to 8.
11. An electronic device, comprising:
a processor; and
a memory for storing a computer program;
wherein the processor is configured to perform the steps of the electronic device control method of any one of claims 1 to 8 via execution of the computer program.
CN202110959178.9A 2021-08-20 2021-08-20 Electronic device control method, electronic device control device, storage medium and electronic device Active CN113676596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110959178.9A CN113676596B (en) 2021-08-20 2021-08-20 Electronic device control method, electronic device control device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110959178.9A CN113676596B (en) 2021-08-20 2021-08-20 Electronic device control method, electronic device control device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113676596A CN113676596A (en) 2021-11-19
CN113676596B true CN113676596B (en) 2022-08-16

Family

ID=78544357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110959178.9A Active CN113676596B (en) 2021-08-20 2021-08-20 Electronic device control method, electronic device control device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113676596B (en)

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2106659A1 (en) * 2007-01-26 2009-10-07 TTE Technology, Inc. System and method for playing audio from a media source on a television during a music-on-mute function
CN101335786A (en) * 2008-05-30 2008-12-31 北京天语君锐科技有限公司 Silencing system and method
JP5298785B2 (en) * 2008-11-10 2013-09-25 富士通モバイルコミュニケーションズ株式会社 Mobile device
CN201717934U (en) * 2009-12-16 2011-01-19 中兴通讯股份有限公司 Mobile terminal
US8934645B2 (en) * 2010-01-26 2015-01-13 Apple Inc. Interaction of sound, silent and mute modes in an electronic device
CN104580696A (en) * 2014-12-09 2015-04-29 东莞宇龙通信科技有限公司 Switching method and system for contextual model
CN105872800A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Continuous playing method and terminal device after audio/video file is muted
WO2017124278A1 (en) * 2016-01-18 2017-07-27 陈学良 Method for automatically muting mobile phone and mobile phone
CN105847569A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Handset sound mode automatic switching method and device
CN106253933A (en) * 2016-08-16 2016-12-21 惠州Tcl移动通信有限公司 Mobile terminal audio frequency and video autocontrol method based on Intelligent bracelet and system
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device
CN106713630A (en) * 2016-12-15 2017-05-24 珠海格力电器股份有限公司 Method and device for controlling communication terminal
CN107295191A (en) * 2017-07-12 2017-10-24 安徽信息工程学院 Autocontrol method, device and the mobile phone of mobile phone silent mode
CN107526503A (en) * 2017-07-27 2017-12-29 珠海市魅族科技有限公司 Terminal operation method and device, computer installation and computer-readable recording medium
CN107800870A (en) * 2017-09-26 2018-03-13 深圳天珑无线科技有限公司 Terminal and its method for automatic mute, storage device
US11405499B2 (en) * 2018-04-20 2022-08-02 Huawei Technologies Co., Ltd. Do-not-disturb method and terminal
CN111294475B (en) * 2018-12-07 2024-01-30 鸿富锦精密电子(郑州)有限公司 Electronic device and mode switching method thereof
CN113242352A (en) * 2021-03-30 2021-08-10 上海闻泰电子科技有限公司 Method and device for closing music playing program and computer equipment

Also Published As

Publication number Publication date
CN113676596A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
US10324682B2 (en) Method, apparatus, and storage medium for controlling audio playing based on playing environment
WO2017201860A1 (en) Video live streaming method and device
CN106791921B (en) Processing method and device for live video and storage medium
CN108806714B (en) Method and device for adjusting volume
CN105898032B (en) method and device for adjusting prompt tone
US20170034336A1 (en) Event prompting method and device
WO2016138769A1 (en) State switching method and device
CN105187594A (en) Echo canceling method and device
US11743355B2 (en) Prompting method and device
CN105282446A (en) Camera management method and device
CN105807894A (en) Processing method and device of lock holding of application
CN106462835A (en) Calendar event creation method and device
EP3934265A1 (en) Audio playback control method, audio playback control apparatus and storage medium
CN105653903B (en) The management method and device of application program permission
CN108766427B (en) Voice control method and device
US9865161B2 (en) Method, remote controller and electrical applicance for releasing a binding of a remote controller
CN108874450A (en) Wake up the method and device of voice assistant
CN109474744B (en) Alarm clock processing method, device and storage medium
CN106066781B (en) A kind of method and apparatus terminating playing audio-fequency data
CN106201738B (en) System broadcast calling method and device
CN106101372B (en) Using prompting setting method and device
CN113676596B (en) Electronic device control method, electronic device control device, storage medium and electronic device
CN105635489A (en) Call communication mode processing method and device
CN105323383A (en) Mobile phone ringing volume adjusting method and device
CN106789943B (en) Playing method and device of Bluetooth equipment

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