Volume control method and device, storage medium and electronic equipment
Abstract
The application discloses a volume control method and device, a storage medium and electronic equipment. The volume control method comprises the following steps: monitoring the system volume of the electronic equipment when detecting that a volume key is pressed; detecting whether the volume key is in a continuous pressed state if the system volume of the electronic equipment achieves a preset threshold value; determining the media volume in the electronic equipment as a target adjusting object if detecting a fact that the volume key is in the continuous pressed state, and performing volume adjusting on the target adjusting object. The media volume and the system volume can be fast and accurately controlled through the operation behavior detection of a physical key, thereby avoiding the embarrassing situation of a user in the media playing.
Term
11 yearsto projected expiry
Projected expiry 26 September 2037, counted from filing; an application has no term until it is granted.
- Priority and filed
- Published
- Today
- Projected expiry
16 claims: 2 independent, 14 dependent
- 1一种音量控制方法,应用于电子设备中,其特征在于,所述方法包括: 当检测到音量按键被按压时,监控所述电子设备的系统音量; 若所述电子设备的系统音量达到预设阈值,则检测所述音量按键是否处于持续被按压 状态; 若检测到所述音量按键处于持续被按压状态,则将所述电子设备中的媒体音量确定为 目标调整对象; 对所述目标调整对象进行音量调整。 A volume control method applied to an electronic device, characterized in that the method comprises:monitoring a system volume of the electronic device when it is detected that a volume button is pressed;if the system volume of the electronic device reaches The preset threshold value is used to detect whether the volume button is continuously pressed;if it is detected that the volume button is continuously pressed, the media volume in the electronic device is determined as the target adjustment target;and the target is adjusted. Adjust the object for volume adjustment.
- 8A kind of volume control device, characterized in that the device comprises:a monitoring module, configured to monitor the system volume of the electronic device when it is detected that a volume button is pressed;a first detection module configured to: When the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed;the determining module is configured to press the media in the electronic device if it is detected that the volume button is continuously pressed. The volume is determined as a target adjustment object;the adjustment module is used to perform the first adjustment of the target adjustment object. 8. —种音量控制装置,其特征在于,所述装置包括: 监控模块,用于当检测到音量按键被按压时,监控所述电子设备的系统音量; 第一检测模块,用于若所述电子设备的系统音量达到预设阈值,则检测所述音量按键 是否处于持续被按压状态; 确定模块,用于若检测到所述音量按键处于持续被按压状态,则将所述电子设备中的 媒体音量确定为目标调整对象; 调整模块,用于对所述目标调整对象进行首量调整。
Independent claims2
207 paragraphs, as filed
Volume control method, device, storage medium and electronic device
Technical field
[0001] The present application relates to the field of mobile communications technologies, and in particular, to the field of mobile device technologies, and in particular, to a volume control method, apparatus, storage medium, and electronic device.
Background technique
[0002] At present, with the popularization of smart electronic devices, smart electronic devices become an indispensable tool for everyday life, and users use smart electronic devices with more and more use scenarios. Intelligent electronic devices can be used to play multimedia, but during actual application, media volume at the time of media playback tends to conflict with the expected volume under the current usage scenario. For example, in public situations, it is desirable to play multimedia in a silent mode. , but the actual playback process tends to occur when the volume of the user is too large to find the media volume adjustment controls.
Summary of the Invention
[0003] Embodiments of the present application provide a volume control method, device, storage medium, and electronic device, which can quickly and accurately adjust media volume.
[0004] Embodiments of the present application provide a volume control method applied in an electronic device. The method includes:
[0005] When it is detected that the volume button is pressed, the system volume of the electronic device is monitored;
[0006] If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed;
[0007] if it is detected that the volume button is continuously pressed, the media volume in the electronic device is determined as a target adjustment target;
[0008] Volume adjustment is performed on the target adjustment object.
[0009] An embodiment of the present application further provides a volume control apparatus, the apparatus including:
[0010] a monitoring module for monitoring the system volume of the electronic device when a volume button is detected to be pressed;
[0011] a first detection module, configured to detect whether the volume button is continuously pressed if the system volume of the electronic device reaches a preset threshold;
[0012] a determining module configured to determine a media volume in the electronic device as a target adjustment object if it is detected that the volume button is continuously pressed;
[0013] An adjustment module for performing volume adjustment on the target adjustment object.
An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program runs on a computer, the computer is caused to perform the volume control method as described above.
An embodiment of the present application further provides an electronic device, including a memory and a processor, the processor being configured to execute a volume control method as described above by calling a computer program stored in the memory.
[0016] The embodiment of the present application monitors the system volume of the electronic device when it is detected that the volume button is pressed. If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed. In the state, if it is detected that the volume button is continuously pressed by $ &, the media volume in the media is set as the target of the adjustment, and the volume adjustment of the target adjustment object is performed. This application detects the operation behavior of the physical key, and the mouth J quickly controls the media volume and the system volume with fast spot, thereby avoiding the user's embarrassing situation during the media playing.
Description of the drawings
[0017] The following detailed description of the specific embodiments of the present invention will be made in conjunction with the accompanying drawings, which will make the technical solution and other beneficial effects of the present application obvious.
[0018] FIG. 1 is a schematic diagram of an application scenario of a volume control method according to an embodiment of the present application.
[0019] FIG. 2 is a schematic flowchart of a volume control method according to an embodiment of the present application.
[0020] FIG. 3 is another schematic flowchart of a volume control method according to an embodiment of the present application.
[0021] FIG. 4 is still another schematic flowchart of a volume control method according to an embodiment of the present application.
[0022] FIG. 5 is a schematic diagram of another application scenario of a volume control method according to an embodiment of the present application.
[0023] FIG. 6 is a schematic flowchart of another volume control method according to an embodiment of the present application.
[0024] FIG. 7 is a schematic diagram of another application scenario of a volume control method according to an embodiment of the present application.
[0025] FIG. 8 is a schematic structural diagram of a volume control apparatus according to an embodiment of the present application.
FIG. 9 is another schematic structural diagram of a volume control apparatus according to an embodiment of the present application.
[0027] FIG. 10 is a schematic structural diagram of a second detection module according to an embodiment of the present application.
[0028] FIG. 11 is still another schematic structural diagram of a volume control apparatus provided by an embodiment of the present application.
FIG. 12 is still another schematic structural diagram of a volume control apparatus according to an embodiment of the present application.
[0030] FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
[0031] FIG. 14 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
detailed description
[0032] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the accompanying drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely used to explain the present application and are not intended to limit the present application. In addition, it should also be noted that for ease of description, only some but not all of the structures related to the present application are shown in the drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0033] The terms "first" and "second" in this application are used to distinguish different objects and not to describe a particular sequence. Further, the terms "include" and "have" and any variants thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that comprises a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules that are not listed, or alternatively may also include Other steps or modules inherent to these processes, methods, products, or devices.
References herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It will be understood by those skilled in the art, both explicitly and implicitly, that the embodiments described herein can be combined with other embodiments.
[0035] An implementation body of a volume control method provided in an embodiment of the present application may be a volume control apparatus provided in an embodiment of the present application, or an electronic apparatus (for example, a palmtop computer, a tablet computer) that integrates the volume control apparatus. , smart phones, etc.) The volume control device may be implemented in hardware or software.
[0036] At present, a user is prone to a media volume that cannot quickly control the audio or video playback during the use of the mobile phone. At present, the electronic device is currently under the home page interface. When the user controls the volume button, only the volume of the system can be adjusted, that is, the volume of the volume of the incoming call information prompt can be adjusted. For the media volume adjustment, only when it enters the corresponding application program to respond to the media volume adjustment requirement, at this time, the application program has started to put multimedia sound, which obviously brings a great deal of trouble to the user experience. Therefore, an embodiment of the present application provides an electronic device. As shown in FIG. 1, when a user presses a volume button of an electronic device, the electronic device starts to adjust the volume of the system, and if the system volume of the electronic device reaches a preset threshold, such as the user. Press the "-" button continuously, when the system volume is muted, it is detected whether the user continues to press the volume button. If yes, then the media volume is determined as the target adjustment object, then the volume adjustment channel is switched from the system volume channel to the media volume channel. For example, the media volume adjustment window may be displayed on the display of the electronic device, and then the volume of the media may be adjusted according to the user's demand. For example, after switching to the media volume adjustment channel, if the user continues to press the volume button, the volume will decrease accordingly. The volume level of the media volume. Through the detection of the operation behavior of the physical buttons, the present application can quickly and accurately control the volume of the media and the volume of the system, thereby avoiding the embarrassing situation that occurs when the user plays the media.
Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a volume control method according to an embodiment of the present application. The method is applied in an electronic device, the method comprising:
[0038] Step 101: Monitor the system volume of the electronic device when it is detected that the volume button is pressed.
[0039] Wherein, when the user presses the volume button of the electronic device, the electronic device detects that the volume button is pressed, and at this time the electronic device starts to adjust the system volume according to the user's pressing operation. For example, if the user presses a volume button, the volume of the electronic device control system gradually decreases, and the system volume change of the electronic device is monitored during the volume adjustment of the system by pressing the volume button.
[0040] Step 102: If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed.
[0041] For example, the preset threshold is 30 decibels, and when it is detected that the system volume of the electronic device reaches 30 decibels, it is further detected whether the volume button is continuously pressed, ie, whether the user is still detected. Press the volume button continuously.
[0042] For example, the preset threshold is mute. When it is detected that the system volume of the electronic device is muted, it is further detected whether the volume button is continuously pressed, ie, whether the user is still pressing the volume button is detected. . [0043] In step 103, if it is detected that the volume button is continuously pressed, the media volume in the electronic device is determined as the target adjustment target.
[0044] wherein, if it is detected that the volume button is continuously pressed, the media volume in the electronic device is determined as the target adjustment object, and at this time, the volume adjustment channel is switched from the system volume channel to the media volume channel. . [0045] Step 104: Adjust volume of the target adjustment object.
[0046] The volume of the media is adjusted according to a volume adjustment instruction executed by the user.
In some embodiments, after the detecting that the volume button is continuously pressed, and before determining that the media volume in the electronic device is a target adjustment object, the method further includes:
[0048] Detecting whether Media Playback is Coming;
[0049] If it is detected that the media is about to be played, the volume of the media in the electronic device is determined as a target adjustment target.
[0050] In some embodiments, the detecting whether media play is about to be performed includes:
[0051] detecting whether the currently running application satisfies a media playing condition, wherein the application comprises a foreground application and a background application;
[0052] If it is detected that the currently running application satisfies the media playing condition, it is determined that the media is about to be played.
[0053] In some embodiments, the detecting whether media play is about to be performed includes:
[0054] According to the historical usage record of the electronic device, whether the application program for media playing is about to be started at the next moment is predicted;
[0055] If it is predicted that the application for media playing is about to be opened at the next moment, it is determined that the media is about to be played.
[0056] In some embodiments, performing volume adjustment on the target adjustment object includes:
[0057] According to the operation that the volume button is pressed, the volume of the target adjustment object is adjusted correspondingly.
[0058] In some embodiments, before performing the volume adjustment on the target adjustment object, the method further includes:
[0059] setting the initial adjustment volume of the target adjustment object to mute;
[0060] The volume adjustment of the target adjustment object includes:
[0061] gradually increasing the volume of the target adjustment object with the silence being the initial adjustment volume.
[0062] In some embodiments, before performing the volume adjustment on the target adjustment object, the method further includes:
[0063] an adjustment window is displayed on the display screen of the electronic device, wherein the adjustment window is used to display a volume adjustment control corresponding to the application program, and the volume adjustment control is used to adjust the volume of the corresponding application program;
[0064] The performing volume adjustment on the target adjustment object includes:
[0065] The volume adjustment of the target adjustment object is performed by controlling the volume adjustment control on the adjustment window.
[0066] All of the above-mentioned optional technical solutions may be used in any combination to form optional embodiments of the present invention, and are not described here.
In this embodiment, the system volume of the electronic device is monitored when a volume button is pressed, and if the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed. In the state, if it is detected that the volume button is continuously pressed, the volume of the media in the electronic device is determined as a target adjustment target, and volume adjustment is performed on the target adjustment object. Through the detection of the operation behavior of the physical buttons, the present application can quickly and accurately control the volume of the media and the volume of the system, thereby avoiding the embarrassing situation that occurs when the user plays the media.
Please refer to FIG. 3. FIG. 3 is another schematic flowchart of a volume control method according to an embodiment of the present application. The method includes:
[0069] Step 201: Monitor the system volume of the electronic device when it is detected that the volume button is pressed.
[0070] When the user presses a volume button of the electronic device, the electronic device detects that the volume button is pressed, and at this time, the electronic device starts to adjust the system volume according to the user's pressing operation. For example, if the user presses a volume button, the volume of the electronic device control system gradually decreases, and the system volume change of the electronic device is monitored during the volume adjustment of the system by pressing the volume button.
[0071] Step 202: If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed.
[0072] For example, the preset threshold is 30 decibels. When it is detected that the system volume of the electronic device reaches 30 decibels, it is further detected whether the volume button is continuously pressed, ie, whether the user is still being detected. Press the volume button continuously.
[0073] For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device is muted, it is further detected whether the volume button is continuously pressed, ie, whether the detecting body is still pressing the volume. button. [0074] In step 203, if it is detected that the volume button is continuously pressed, it is detected whether media play is about to be performed.
[0075] When detecting that the volume button is continuously pressed, in order to more intelligently control the media volume in the electronic device, it may be detected whether the electronic device is about to perform media playback before the media volume is adjusted. .
[0076] In some embodiments, the step 203 may also be implemented by the following steps:
[0077] (1) It is detected whether the currently running application satisfies a media playing condition, wherein the application includes a foreground application and a background application;
[0078] (2) If it is detected that the currently running application satisfies the media playing condition, it is determined that the media is about to be played. [0078] Wherein, the satisfying the media playing condition may include that the application program contains media data, or the application program has media-related controls.
[0080] The application program includes media data, such as audio data or video data. For example, when communicating using instant messaging software, the communication interface carries voice information.
[0081] wherein the application has a media-related control, that is, a volume adjustment control is provided in a setting option column of the application. For example, a certain game software has a volume adjustment control in the setting option bar for adjusting the volume of the background music.
[0082] In some embodiments, step 203 may also be implemented by the following steps:
[0083] (1) According to the historical usage record of the electronic device, predict whether the application program for media playing is about to be opened at the next moment;
[0084] (2) If it is predicted that the application program for media playing is to be opened at the next moment, it is determined that the media playing is about to be performed.
[0085] wherein the electronic device may record historical usage records of various applications in the electronic device within a period of history of the user, and may use the learning algorithm to analyze and learn the historical usage records of the records. The self-analysis and learning process analyzes the user's usage habits during the same period of time, and predicts whether the application for media playing is about to be started at the next moment according to the usage habits. For example, users often watch videos on the way to work. At this time, the electronic device records “working days, 19:00-19:30, open the video player”, you can analyze the usage habits on the working day 19:0〇-19: 3. The video player is turned on, so when the current time is close to 19 points or within the time range of 19:00 to 19:30, it is predicted that the application for media playing will be started at the next moment, then the media playing is about to be determined.
[0086] Step 204: If it is detected that the media is about to be played, determine the volume of the media in the electronic device as the target adjustment object.
[0087] Wherein, if it is detected that the media is about to be played, the volume of the media in the electronic device is determined as the target adjustment object, and at this time, the volume adjustment channel is switched from the system volume channel to the media volume channel.
[0088] Step 205, volume adjustment is performed on the target adjustment object.
[0089] The volume of the media is adjusted according to a volume adjustment instruction executed by the user.
[0090] For example, the volume of the volume of the media can be adjusted according to the operation that the volume button is pressed.
[0091] The embodiment of the present application monitors the system volume of the electronic device when it is detected that the volume button is pressed, and if the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed. State, if it is detected that the volume button is continuously pressed, detecting whether media play is about to be performed; if it is detected that media play is about to be performed, determine the volume of the media in the electronic device as a target adjustment target, and The target adjustment object performs volume adjustment. Through the detection of the operation behavior of the physical buttons, the present application can quickly and accurately control the volume of the media and the volume of the system, and can adjust the volume of the media before the media is played, so as to avoid the embarrassing situation when the user plays media.
Please refer to FIG. 4. FIG. 4 is still another schematic flowchart of a volume control method according to an embodiment of the present application. The method includes:
[0093] In step 301, the system volume of the electronic device is monitored when it is detected that the volume button is pressed.
[0094] wherein, when the user presses the volume button of the electronic device, the electronic device detects that the volume button is pressed, and at this time the electronic device starts to adjust the system volume according to the user's pressing operation. For example, if the user presses a volume button, the volume of the electronic device control system gradually decreases, and the system volume change of the electronic device is monitored during the volume adjustment of the system by pressing the volume button.
[0095] Step 312, if the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed.
[0096] For example, the preset threshold is 30 decibels, and when it is detected that the system volume of the electronic device reaches 30 decibels, it is further detected whether the volume button is continuously pressed, that is, whether the user is still detected. Press the volume button continuously.
[0097] For example, the preset threshold is mute. When it is detected that the system volume of the electronic device is muted, it is further detected whether the volume button is continuously pressed, ie, whether the user is still pressing the volume button is detected. . [0098] Step 303: If it is detected that the volume button is continuously pressed, it is detected whether media playback is about to be performed.
[0039] wherein, when it is detected that the volume button is continuously pressed, in order to more intelligently control the volume of the media in the electronic device, it may be detected whether the electronic device is about to perform media before adjusting the volume of the media. Play.
[0100] In some embodiments, step 303 may also be implemented by the following steps:
[0101] (1) It is detected whether the currently running application satisfies a media playing condition, wherein the application includes a foreground application and a background application;
[0112] (2) If it is detected that the currently running application satisfies the media playing condition, it is determined that the media is about to be played.
[0103] Wherein, the satisfying the media playing condition may include that the application program contains media data, or the application program has media-related controls.
[0104] The application program includes media data, such as audio data or video data. For example, when communicating using instant messaging software, the communication interface carries voice information.
[0105] Wherein, the application program has media-related controls, that is, a volume adjustment control is provided in a setting option column of the application program. For example, a certain game software has a volume adjustment control in the setting option bar for adjusting the volume of the background music.
[0106] In some embodiments, step 303 may also be implemented by the following steps:
[0107] (1) According to the historical usage record of the electronic device, whether the application program for media playing is about to be started at the next moment is predicted;
[0108] (2) If it is predicted that the application program for media playing is to be opened at the next moment, it is determined that the media playing is about to be performed.
[0109] wherein, the electronic device may record a historical usage record of each application in the electronic device within a piece of historical time of the user, and may use the learning algorithm to analyze and learn the historical usage record of the record. The self-analysis and learning process analyzes the user's usage habits during the same period of time, and predicts whether the application for media playing is about to be started at the next moment according to the usage habits. For example, the user often watches videos on the way to work. At this time, the electronic device records “working days, 19:00-19:30, starts the video player,” and you can analyze the usage habits on the working day 19:00-19: The video player is turned on, so when the current time is close to 19 points or within 19: 〇〇 — 19:30, it is predicted that the application for media playing will be opened at the next moment, then the upcoming media playback is determined. .
[0110] Step 304, if it is detected that the media is about to be played, determine the media volume in the electronic device as the target adjustment object.
[0111] Wherein, if it is detected that the media is about to be played, the volume of the media in the electronic device is determined as the target adjustment object, and at this time, the volume adjustment channel is switched from the system volume channel to the media volume channel.
[0112] Step 305, the initial adjustment volume of the target adjustment object is set to mute.
[0113] Among them, in the actual application process, the volume of the media that is required to be adjusted is generally loud, and the final purpose of the user is to adjust to a small volume so as not to affect the surrounding environment and protect personal privacy, so when the volume is After the adjusted channel is switched from the system volume channel to the media volume channel, the initial adjustment volume of the target adjustment object may be set to be muted, so that the user starts to gradually increase the media volume from the mute but is more close to the user's media volume. Expected value.
[0114] In step 306, the volume of the target adjustment object is gradually increased with mute as an initial adjustment volume.
[0115] For example, according to the operation that the key with the volume “+” is pressed, the volume of the target adjustment object may be gradually increased with silence as the initial adjustment volume.
[0116] For example, as shown in FIG. 5, for example, if the user continuously presses the volume button, when the volume of the system reaches mute, it is detected whether the user continues to press the volume button, and if so, whether media playback is about to be performed is detected, when it is detected that the video player is about to When the media is played, the volume of the media in the electronic device is determined as the target adjustment object, the volume adjustment channel is switched from the system volume channel to the media volume channel, and then the user presses the volume “+” button, and the electronic device is according to the volume. The operation of the "+" key is pressed, and the volume of the video player is gradually increased by muting the initial volume.
[0117] The embodiment of the present application monitors the system volume of the electronic device when it is detected that the volume button is pressed, and detects whether the volume button is continuously pressed if the system volume of the electronic device reaches a preset threshold. State, if it is detected that the volume button is continuously pressed, detecting whether media play is about to be performed; if it is detected that media play is about to be performed, determine the volume of the media in the electronic device as a target adjustment target, and The initial adjustment volume of the target adjustment object is set to mute, and the volume of the target adjustment object is gradually increased by the mute volume as the initial adjustment volume. Through the detection of the operation behavior of the physical buttons, the present application can quickly and accurately control the volume of the media and the volume of the system. The volume of the media can be adjusted before the media is played, and the volume of the media can be gradually increased from the silent state, so that the user can better protect the individual. privacy.
[0118] Please refer to FIG. 6. FIG. 6 is a schematic flowchart of another volume control method according to an embodiment of the present application. The method includes:
[0119] Step 401: Monitor the system volume of the electronic device when it is detected that the volume button is pressed.
[0120] wherein, when the user presses a volume button of the electronic device, the electronic device detects that the volume button is pressed, and the electronic device starts to adjust the system volume according to the user's pressing operation. For example, if the user presses a key with a volume "-", the volume of the electronic device control system gradually decreases, and the system volume change of the electronic device is monitored during the volume adjustment of the system by pressing the volume button.
[0121] Step 402: If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed.
[0122] For example, the preset threshold is 30 decibels, and when it is detected that the system volume of the electronic device reaches 30 decibels, it is further detected whether the volume button is continuously pressed, ie, whether the user is still detected. Press the volume button continuously.
[0123] For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device is muted, it is further detected whether the volume button is continuously pressed, ie, whether the user is still pressing the volume button is detected. .
[0124] Step 403: If it is detected that the volume button is continuously pressed, whether media play is about to be performed is detected.
[0125] When the volume button is detected to be continuously pressed, in order to more intelligently control the media volume in the electronic device, whether the electronic device is about to perform media playback may be detected before the media volume is adjusted. .
[0126] In some embodiments, step 303 may also be implemented by the following steps:
[0127] (1) It is detected whether a currently running application satisfies a media playing condition, wherein the application includes a foreground application and a background application;
[0128] (2) If it is detected that the currently running application satisfies the media playing condition, it is determined that the media is about to be played.
[0129] Wherein, the satisfying the media playing condition may include that the application program contains media data, or the application program has media-related controls.
[0130] The application program includes media data, such as audio data or video data. For example, when communicating using instant messaging software, the communication interface carries voice information.
[0131] wherein the application program has a media-related control, that is, a volume adjustment control is provided in a setting option column of the application program. For example, a certain game software has a volume adjustment control in the setting option bar for adjusting the volume of the background music.
[0132] In some embodiments, step 303 may also be implemented by the following steps:
[0133] (1) According to the historical usage record of the electronic device, whether the application program for media playing is about to be started at the next moment is predicted;
[0134] (2) If it is predicted that the application program for media playing is to be opened at the next moment, it is determined that the media playing is about to be performed.
[0135] The electronic device may record historical usage records of various applications in the electronic device within a piece of historical time of the user, and may use the learning algorithm to analyze and learn the historical usage record of the record. The process of self-analysis and learning analyzes the user's usage habits during the same period of time, and predicts whether the application for media playing is about to be opened at the next moment in time according to the usage habits. If it is predicted that the application for media playing will be opened next time, it is determined that the media is about to be played.
[0136] Step 404: If it is detected that the media is about to be played, determine the volume of the media in the electronic device as the target adjustment target.
[0137] Wherein, if it is detected that the media is about to be played, the volume of the media in the electronic device is determined as the target adjustment object, and at this time, the volume adjustment channel is switched from the system volume channel to the media volume channel.
[0138] Step 405: Display a window on the display screen of the electronic device, wherein the adjustment window is used to display a volume adjustment control corresponding to the application program, and the volume adjustment control is used to adjust the corresponding application program. volume.
[0139] wherein, the application program may include all application programs in the electronic device that satisfy the media playing conditions, and the application program may also include an application program that is to be media-played in the electronic device. The applications may include foreground applications and background applications that have been opened, as well as applications that are not open. All of the applications that meet the media playing conditions may include applications that have media-related controls.
[0140] After the volume adjustment channel is switched from the system volume channel to the media volume channel, an adjustment window may be displayed on a display screen of the electronic device, where the adjustment window is used to display each application that satisfies the media playback condition. The volume adjustment control corresponding to the program, when the user needs to adjust the media volume of an application, correspondingly select the corresponding volume adjustment control.
[0141] Step 406: Adjust the volume of the target adjustment object by controlling the volume adjustment control on the adjustment window.
[0142] In some embodiments, media volume adjustment may be performed on all volume adjustment controls displayed on the adjustment window according to the operation that the volume button is pressed.
[0143] In some embodiments, after the user selects the target volume adjustment control corresponding to the target application displayed on the adjustment window, the target volume adjustment control may be performed according to the operation that the volume button is pressed. Make media volume adjustments.
[0144] In some embodiments, after the user selects the target volume adjustment control corresponding to the target application displayed on the adjustment window, the user may perform the touch control operation on the target volume adjustment control according to the user. The target volume adjustment controls the volume of the media.
[0145] For example, as shown in FIG. 7 , for example, if the user continuously presses the volume button, when the system volume reaches mute, it is detected whether the user continues to press the volume button, and if so, whether the media playback is about to be performed is detected, and if so, the electronic device is used. The medium volume in the medium is determined as the target adjustment object, the volume adjustment channel is switched from the system volume channel to the media volume channel, and then an adjustment window is displayed on the display screen of the electronic device, where the adjustment window is used to display each satisfied content. If the user needs to adjust the media volume of the video player, the user selects the volume adjustment control of the video player correspondingly, and the volume adjustment control of the video player is selected. Afterwards, the user may reduce the volume of the video player by touching the “-” control of the volume adjustment control, and may also reduce the volume of the video player by physically pressing the volume button.
[0146] The embodiment of the present application monitors the system volume of the electronic device when it is detected that the volume button is pressed. If the system volume of the electronic device reaches a preset threshold, it is detected whether the volume button is continuously pressed. State, if it is detected that the volume button is continuously pressed, detecting whether media play is about to be performed, and if it is detected that media play is about to be performed, determine the volume of the media in the electronic device as a target adjustment object, where An adjustment window is displayed on the display screen of the electronic device, wherein the adjustment window is used to display a volume adjustment control corresponding to the application program, and the volume adjustment control is used to adjust the volume of the corresponding application program and control the volume adjustment on the adjustment window. The control adjusts the volume of the target adjustment object. Through the detection of the operation behavior of the physical buttons, the present application can quickly and accurately control the volume of the media and the system volume, and can adjust the volume of the media by controlling the volume adjustment control displayed on the adjustment window before the media is played, and gradually increase the media from the start of mute. Volume, to avoid the user's embarrassing situation in media playback.
[0146] An embodiment of the present application further provides a volume control apparatus. As shown in FIG. 8, FIG. 8 is a schematic structural diagram of a volume control apparatus according to an embodiment of the present disclosure. The volume control device 50 includes a monitoring module 51, a vibration detection block 52, a determination module 54, and an adjustment module 57. + +
[0148] The monitoring module 51 is configured to monitor the system volume of the electronic device when it is detected that the volume button is pressed. ,,
[0149] The first detection module 52 is configured to detect whether the volume button is continuously pressed if the system volume of the electronic device reaches a preset threshold.
[0150] The determining module 54 is configured to determine the media volume in the electronic device as the target adjustment target if it is detected that the volume button is continuously pressed by a prostitute;
[0151] The adjusting module 57 is configured to perform volume adjustment on the target adjustment object.
[0152] Please refer to FIG. 9 . FIG. 9 is another structural schematic diagram of a volume control apparatus provided by an embodiment of the present application. The volume control device 50 includes a monitoring module 51, a first detection module 52, a second detection module 53, a determination module 54, and an adjustment module 57.
[0153] The monitoring module 51 is configured to monitor the system volume of the electronic device when it is detected that the volume button is pressed.
[0154] The first detection module 52 is configured to detect whether the volume button is continuously pressed if the system volume of the electronic device reaches a preset threshold.
[0155] The second detection module 53 is configured to detect whether media playback is about to occur if it is detected that the volume button is continuously pressed.
[0156] As shown in FIG. 1A, in some embodiments, the second detection module 53 includes:
[0158] The detecting unit 531 is configured to detect whether the currently running application satisfies a media playing condition, wherein the application includes a foreground application and a background application;
[0158] The first determining unit 532 is configured to determine that the media playing is about to be performed if it is detected that the currently running application satisfies the media playing condition.
[0159] In some embodiments, the second detection module 53 includes:
[0159] The prediction unit 533 is configured to predict, according to the historical usage record of the electronic device, whether the application for media playing is about to be started at the next moment;
[0161] The second determining unit 534 is configured to determine that the media playing is about to be performed if it is predicted that the application program for media playing is about to be opened at the next moment.
The determining module 54 is further configured to determine the media volume in the electronic device as the target adjustment object if it is detected that media play is about to occur.
[0163] The adjustment module 57 is configured to perform volume adjustment on the target adjustment object.
[0164] Please refer to FIG. 11. FIG. 11 is still another schematic structural diagram of a volume control apparatus according to an embodiment of the present application. The volume control device 50 also includes a setting module 55 .
[0165] wherein the setting module 55 is configured to mute the initial adjustment volume of the target adjustment object.
[0166] The adjusting module 57 is further configured to gradually increase the volume of the target adjustment object by using the mute as an initial adjustment volume.
[0167] Referring to FIG. 12, FIG. 12 is a schematic structural diagram of still another volume control apparatus according to an embodiment of the present application. The volume control device 50 also includes a display module 56 .
[0168] The display module 56 is configured to display an adjustment window on a display screen of the electronic device, where the adjustment window is used to display a volume adjustment control corresponding to the application program, and the volume adjustment control is used to adjust the corresponding application. The volume of the program.
[0169] The adjusting module 57 is further configured to perform volume adjustment on the target adjustment object by controlling the volume adjustment control on the adjustment window.
[0170] An embodiment of the present application further provides an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor calling the computer program stored in the memory. Perform the volume control method described in any one of the embodiments of the present application.
[0171] The electronic device may be a smart phone, a tablet computer, a palmtop computer, or the like. As shown in FIG. 13, the electronic device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored on the memory and operable on the processor. . Among them, the processor 601 and the memory 602 are electrically connected. Those skilled in the art can understand that the electronic device structure shown in the drawings does not constitute a limitation on the electronic device, and may include more or less than the illustrated components, or combine some components, or different component arrangements.
[0172] The processor 601 is a control center of the electronic device 600, connects various parts of the entire electronic device with various interfaces and lines, runs or loads an application stored in the memory 602, and calls data stored in the memory 602. , Performing various functions of electronic devices and processing data to perform overall monitoring of electronic devices.
[0173] In this embodiment of the present application, the processor 601 in the electronic device 600 loads the instructions corresponding to the processes of one or more application programs into the memory 620 according to the following steps, and is executed by the processor 601. The applications stored in the memory 602 are run to achieve various functions:
[0174] monitoring the system volume of the electronic device when it is detected that the volume button is pressed;
[0175] if the system volume of the electronic device reaches a preset threshold, detecting whether the volume button is continuously pressed;
[0176] if it is detected that the volume button is continuously pressed, the media volume in the electronic device is determined as a target adjustment target;
[0177] Volume adjustment of the target adjustment object.
[0178] In some embodiments, the processor 601 is used after the detecting that the volume button is continuously pressed, and before the media volume in the electronic device is determined as the target adjustment object, include:
[0179] Detecting whether Media Playback is Coming;
[0180] If it is detected that the media is about to be played, the volume of the media in the electronic device is determined as a target adjustment target.
[0181] In some embodiments, the processor 610 may be configured to detect whether media play is about to be performed, including:
[0182] detecting whether the currently running application satisfies a media playing condition, wherein the application comprises a foreground application and a background application;
[0183] If it is detected that the currently running application satisfies the media playing condition, it is determined that the media is about to be played. [0184] In some embodiments, the processor 601 is configured to detect whether media play is about to be performed, including:
[0185] According to the historical usage record of the electronic device, it is predicted whether the application for media playing is about to be opened at the next moment;
[0186] If it is predicted that the application for media playing is about to be opened at the next moment, it is determined that the media is about to be played.
[0187] In some embodiments, the processor 601 is configured to perform volume adjustment on the target adjustment object, including:
[0188] According to the operation that the volume button is pressed, the volume of the target adjustment object is adjusted correspondingly.
[0189] In some embodiments, the processor 601 is configured to: before the performing volume adjustment on the target adjustment object, further comprising:
[0190] setting the initial adjustment volume of the target adjustment object to mute;
[0191] performing volume adjustment on the target adjustment object includes:
[0192] gradually increasing the volume of the target adjustment object with silence as the initial adjustment volume.
[0193] In some embodiments, the processor 601 is configured to: before the performing volume adjustment on the target adjustment object, further comprising:
[0194] an adjustment window is displayed on the display screen of the electronic device, wherein the adjustment window is used to display a volume adjustment control corresponding to the application program, and the volume adjustment control is used to adjust the volume of the corresponding application program;
[0195] performing volume adjustment on the target adjustment object includes:
And [0196] controlling volume adjustment of the target adjustment object by controlling the volume adjustment control on the adjustment window.
[0197] In some embodiments, as shown in FIG. 14, the electronic device 600 further includes a display screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected with the display screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device, and may include more or less than the illustrated components, or combine some components, or different component arrangements.
[0198] The display screen 603 may be used to display information input by the user or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of graphics, text, icons, video, and any combination thereof. When the display screen 603 is a touch screen display, the input function may also be implemented as part of the input unit.
[0199] The radio frequency circuit 604 may be configured to receive a radio frequency signal to establish wireless communications with a network device or other electronic device through wireless communications, and to send and receive signals with a network device or other electronic device.
[0200] The audio circuit 605 may be used to provide an audio interface between a user and an electronic device through a speaker and a microphone. [0201] The input unit 606 may be configured to receive input numeric, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
[0202] The power source 607 is used to power various components of the electronic device 600. In some embodiments, the power sources 1 to 7 can be logically connected to the processor 601 through the power management system, so as to realize the functions of managing charging, discharging, and power consumption management through the power management system.
[0203] Although not shown in FIG. 14 , the electronic device 6 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, and the like, and details are not described herein.
[0204] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in one embodiment, reference may be made to the description of other embodiments.
[0205] In this embodiment of the present application, the volume control apparatus and the volume control method in the foregoing embodiments belong to the same concept, and the volume control apparatus may run any of the methods provided in the volume control method embodiment. For a method, its specific implementation process is described in detail in the embodiment of the volume control method, which will not be described here.
[0206] It should be noted that, for the volume control method described in the present application, ordinary testers in the field can understand that all or part of the flow of the volume control method described in the embodiments of the present application can be controlled by a computer program. Completion of the hardware, the computer program may be stored in a computer-readable storage medium, such as a memory of the electronic device, and executed by at least one processor within the electronic device. During execution, the computer program may include The flow of an embodiment of a volume control method. The storage medium may be a disk, an optical disk, a read only memory (ROM), a random access memory (RAM), or the like.
[0207] For the volume control apparatus in the embodiment of the present application, each function module thereof may be integrated in a processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. in. The above integrated module can be implemented in the form of hardware or in the form of a software function module. The integrated module, if implemented in the form of a software functional module and sold or used as an independent product, may also be stored in a computer-readable storage medium such as a read-only memory, a magnetic disk or an optical disk.
[0208] The volume control method, device, storage medium, and electronic device provided in the embodiments of the present application are described in detail above, and the specific principles of the application and the implementation manners of the application are described in this application example. The description is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalent some of the technical features. Instead, these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.
Every citation, both ways
| Document | Relation | Office | Category | Cited during | Relevant claims |
|---|---|---|---|---|---|
| CN101359900A | Cites | China | A | Search report | 1-8 |
| CN102932595A | Cites | China | A | Search report | 1-8 |
| CN103019529A | Cites | China | A | Search report | 1-16 |
| CN105915729A | Cites | China | YX | Search report | 2-4、9-11 |
| CN106161776A | Cites | China | A | Search report | 1-16 |
| CN106454507A | Cites | China | Y | Search report | 2-4、9-11 |
| US2005282590A1 | Cites | United States of America | A | Search report | 1-8 |
| JP2009538566A | Cites | Japan | A | Search report | 1-16 |
| EP3048779B1 | Cites | European Patent Office (EPO) | A | Search report | 1-8 |
2 priority claims, no other members on record
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 201710883598 | China | A | |
| CN20171883598 | – | – | – |
4 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Patent grantGrantedGR01 | GR01 | |
| Change of applicant informationCB02 | CB02 | |
| Entry into force of request for substantive examinationSE01 | SE01 | |
| PublicationPB01 | PB01 |
Numbers
- Publication
- 107734121
- Publication, DOCDB
- 107734121
- Publication, EPODOC
- CN107734121
- Application
- 108835987
- Application, DOCDB
- 201710883598
- Application, EPODOC
- CN201710883598
Titles2
- Chinese
- 音量控制方法、装置、存储介质及电子设备
- English
- Volume control method and device, storage medium and electronic equipment
Classification
- CPC, 3
- H04M1/24
- G06F3/165
- H04M1/72563
- IPC, 3
- H04M1 24
- H04M1 725
- G06F3 16