Method and apparatus for controlling application volume
By analyzing the user's historical volume information and volume adjustment operations, volume control information is generated, which solves the problem of users' frequent manual volume adjustment, and improves adjustment efficiency and user experience.
Patent Information
- Application Number
- CN202210872055.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-07-19
AI Technical Summary
Users need to frequently manually adjust the volume of different applications and different time periods, which is inefficient and have poor user experience.
By analyzing historical volume information and volume adjustment operation information, the volume control information corresponding to the preset time period is generated to realize automatic adjustment of the application volume.
It improves the efficiency of volume adjustment, improves the user experience, and achieves automatic volume adjustment when the target user uses the target application.
Smart Images

Figure CN115033202B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of computer technology, and in particular, to a method and device for controlling the volume of an application. Background Art
[0002] With the rapid development of terminal devices, users can install various application programs (APPs, Applications) on terminal devices. For example, video APPs, shopping APPs, music APPs, social APPs, and so on. Users can use different applications at different time periods. Generally, users have different requirements for the volume levels when using different application programs. Even for the same application program, the volume levels required at different time periods may also be different. For example, a certain user likes to set the volume to 40% of the maximum system volume when using a certain short video APP at night, and likes to set the volume to 60% of the maximum system volume when using the short video APP during the day. Another example is that the user likes to set the volume to 45% of the maximum system volume when using a certain music APP at night, and likes to set the volume to 70% of the maximum system volume when using the music APP during the day. In order to meet the volume level requirements of different application programs and different time periods, users often need to frequently adjust the volume manually, which is not only inefficient but also provides a poor user experience. Summary of the Invention
[0003] The embodiments of this specification describe a method and device for controlling the volume of an application.
[0004] According to a first aspect, there is provided a method for controlling the volume of an application, including: generating first volume configuration information corresponding to a preset time period duration based on multiple pieces of historical volume information obtained when a target user uses a target application, where the historical volume information includes time information and the application volume corresponding to the time information; generating at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, where the volume adjustment information includes the adjusted volume and the adjustment time relative to the preset time period duration; generating second volume configuration information according to the at least one volume adjustment information and the first volume configuration information; generating volume control information corresponding to the preset time period duration based on the second volume configuration information, where the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
[0005] According to a second aspect, there is provided an apparatus for controlling the volume of an application, including: a first generating unit configured to generate first volume configuration information corresponding to a preset time period based on multiple pieces of historical volume information when a target user uses a target application, where the historical volume information includes time information and the application volume corresponding to the time information; a second generating unit configured to generate at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, where the volume adjustment information includes the adjusted volume and the adjustment time relative to the preset time period; a third generating unit configured to generate second volume configuration information according to the at least one volume adjustment information and the first volume configuration information; a fourth generating unit configured to generate volume control information corresponding to the preset time period based on the second volume configuration information, where the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
[0006] According to a third aspect, there is provided a computer program product including a computer program, where when the computer program is executed by a processor, the method according to any one of the first aspects is implemented.
[0007] According to a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program, where when the computer program is executed on a computer, the computer is caused to execute the method according to any one of the first aspects.
[0008] According to a fifth aspect, there is provided an electronic device including a memory and a processor, where an executable code is stored in the memory, and when the processor executes the executable code, the method according to any one of the first aspects is implemented.
[0009] According to the method and device for controlling the volume of an application provided by the embodiments of the present specification, first, based on multiple pieces of historical volume information obtained when the target user uses the target application, first volume configuration information corresponding to a preset time period duration is generated. Then, based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, at least one piece of volume adjustment information is generated. Next, based on the at least one piece of volume adjustment information and the first volume configuration information, second volume configuration information is generated. Finally, based on the second volume configuration information, volume control information corresponding to the preset time period duration is generated, and this volume control information is used to control the volume of the target application according to time during the process of the target user using the target application. Thus, it is realized to learn the volume size requirements of the target user during the process of using the target application based on the historical volume information and the information corresponding to the volume adjustment operations, and generate volume control information based on the learned requirements, thereby realizing the automatic adjustment of the volume during the process of the target user using the target application, improving the adjustment efficiency, and enhancing the user experience. Description of the Drawings
[0010] Figure 1 FIG. shows a schematic diagram of an application scenario to which the embodiments of the present specification can be applied;
[0011] Figure 2 FIG. shows a schematic flowchart of a method for controlling the volume of an application according to an embodiment;
[0012] Figure 3A FIG. shows a schematic diagram of mapping multiple pieces of historical volume information into points in a two-dimensional coordinate system;
[0013] Figure 3B FIG. shows based on Figure 3A a schematic diagram of the first volume configuration information generated from multiple pieces of historical volume information therein;
[0014] Figure 3C FIG. shows an example of inserting points corresponding to three pieces of volume adjustment information into Figure 3B the first volume configuration information shown;
[0015] Figure 3D FIG. shows after Figure 3C further deleting the points shown therein, a schematic diagram of the obtained points;
[0016] Figure 3E FIG. shows after Figure 3D curve fitting the points therein, a schematic diagram of the obtained curve;
[0017] Figure 4 FIG. shows a schematic flowchart of a method for controlling the volume of an application according to another embodiment;
[0018] Figure 5It shows a schematic diagram of a reachability distance graph obtained by clustering a certain data set using the OPTICS algorithm;
[0019] Figure 6 It shows a schematic block diagram of a device for controlling the application volume according to an embodiment;
[0020] Figure 7 It shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application. Detailed implementation manners
[0021] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0022] For example, when receiving the user's active request, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the technical solutions of the present disclosure according to the prompt message.
[0023] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving the user's active request can be, for example, in the form of a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0024] It can be understood that the above process of notifying and obtaining the user's authorization is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0025] The technical solutions provided in this specification will be further described in detail below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the relevant invention and do not limit the invention. Additionally, it should be noted that for the sake of description, only parts related to the relevant invention are shown in the drawings. It should be noted that, without conflict, the embodiments of this specification and the features in the embodiments can be combined with each other.
[0026] As described above, in the current stage, when users use applications, they often need to frequently manually adjust the volume, which is inefficient and results in a poor user experience. Therefore, the embodiments of this specification provide a method for controlling the application volume, thereby realizing automatic control of the application volume according to time. Figure 1FIG. shows a schematic diagram of an application scenario to which the embodiments of the present specification can be applied. As Figure 1 shown, application B is installed in the terminal device 101 used by user A. The terminal device 101 can record information such as the time and volume when application B is started, and record information such as time and volume at every preset time interval (for example, 10 minutes, 30 minutes, etc.). Every preset duration (for example, one week, one month, two months, etc.), the terminal device 101 can send the recorded information as historical volume information to the server 102. In addition, the terminal device 101 can also record information corresponding to the volume adjustment operations performed by user A during the use of application B. For example, it can include the time of the operation, the adjusted volume, etc. Every preset time, the terminal device 101 can send the information corresponding to the recorded volume adjustment operations to the server 102.
[0027] After that, the server 102 can generate first volume configuration information corresponding to a preset time period duration based on the obtained historical volume information. In this example, the preset time period can be one day. Here, the first volume configuration information can include multiple time points in a day and the volume of application B corresponding to the multiple time points. The server 102 can also generate volume adjustment information based on the information corresponding to the volume adjustment operations. The volume adjustment information can include the adjusted volume and the adjustment time, where the adjustment time can be the time relative to one day. For example, a certain adjustment time can be 17:20. The server 102 can generate second volume configuration information based on the first volume configuration information and the volume adjustment information. And based on the second volume configuration information, generate volume control information corresponding to one day. The server 102 can send the volume control information to the terminal device 101. In this way, during the use of application B by user A, the volume of application B can be automatically controlled according to the time and the volume control information throughout the day.
[0028] It can be understood that in this example, the terminal device 101 sending information such as historical volume information and information corresponding to volume adjustment operations to the server 102, and the server 102 generating volume control information is merely illustrative, rather than a limitation on the subject generating the volume control information. For example, the terminal device 101 can also generate volume control information locally according to the recorded historical volume information, information corresponding to volume adjustment operations, etc.
[0029] Continue to refer to Figure 2 , Figure 2 FIG. shows a schematic flowchart of a method for controlling the volume of an application according to an embodiment. This method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. As Figure 2 shown, the method for controlling the volume of an application can include the following steps:
[0030] Step 201: Generate first volume configuration information corresponding to a preset time period duration based on multiple pieces of historical volume information when the target user uses the target application.
[0031] In this embodiment, the terminal device where the target application is located can record multiple pieces of historical volume information generated by the target user when using the target application. The historical volume information may include time information and the application volume corresponding to the time information. As an example, the historical volume information may include information such as the time when the target user starts the target application, the volume, and the application package name. The historical volume information may also include information collected at preset time intervals (for example, 10 minutes, 30 minutes, etc.) during the process of using the target application. Among them, the collected information may include time, volume, application package name, etc. Then, based on the multiple pieces of historical volume information obtained, first volume configuration information corresponding to a preset time period duration can be generated. Here, the preset time period can be set according to actual needs. For example, it can be one day (i.e., 24 hours), or it can be one week, etc. Taking one day as an example, for the multiple pieces of historical volume information obtained, according to the time information, the historical volume information of the same time period of each day can be analyzed, for example, statistically analyzed, so as to generate first volume configuration information corresponding to one day. Each piece of information in the first volume configuration information may include the time in a day and the volume corresponding to the time.
[0032] Here, the historical volume information of the user can be obtained based on the user's authorization. For example, the method of obtaining and using the user's historical volume information can refer to the description in paragraphs 1-3 of the specific implementation part of this disclosure.
[0033] In some alternative implementation manners, the above step 201 can be specifically carried out as follows:
[0034] S1: Statistically analyze the historical volume information within each preset time interval in the preset time period duration, and determine the application volume and time corresponding to each time interval in the preset time period duration according to the statistical analysis result.
[0035] In this implementation manner, taking the preset time period as one day and the preset time interval as 30 minutes as an example, statistically analyze the historical volume information within every 30 minutes in a day. For example, the average value of the volume sizes of multiple pieces of historical volume information included within every 30 minutes can be calculated, and the time of multiple pieces of historical volume information included within every 30 minutes can also be statistically analyzed, for example, calculate the average time. And according to the statistical analysis result, determine the application volume and time corresponding to every 30 minutes in a day. This time can be the time relative to one day.
[0036] S2. Based on the corresponding application volume and time within each time interval, determine the first volume configuration information corresponding to the preset time period duration.
[0037] In this implementation manner, according to the application volume and time corresponding to each time interval, the first volume configuration information can be determined. For example, the application volume and time corresponding to each time interval can be directly determined as the first volume configuration information.
[0038] For example, as Figure 3A and Figure 3B shown, Figure 3A shows a schematic diagram of mapping multiple historical volume information into points in a two-dimensional coordinate system. Among them, Figure 3A the abscissa of the two-dimensional coordinate system is the time relative to the preset time period. In this example, the preset time period is one day, that is, 24 hours. Figure 3A the ordinate of the two-dimensional coordinate system is the volume of the application. For Figure 3A the multiple points in it, statistical analysis can be performed on the points within each preset time interval (in this example, 30 minutes). For example, calculate the mean values of the abscissa and ordinate, so as to obtain a corresponding point every 30 minutes. Based on the points obtained every 30 minutes, the first volume configuration information corresponding to one day can be determined. As an example, Figure 3B shows a schematic diagram of the first volume configuration information generated based on Figure 3A the multiple historical volume information in it. In practice, a large amount of historical volume information is often obtained. Through statistical analysis of a large amount of historical volume information in this implementation manner, the first volume configuration information that conforms to the usage law of the target application by the target user can be obtained.
[0039] Step 202. Generate at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application.
[0040] In this embodiment, the terminal device where the target application is located can also record the information corresponding to the volume adjustment operations performed by the target user during the use of the target application. Usually, during the use of the target application by the target user, when not satisfied with the current volume, the target user can perform a volume adjustment operation to turn the volume up or down. The information corresponding to the volume adjustment operation can include the time when the volume adjustment operation is performed, the adjusted volume, and so on. According to the information corresponding to the multiple volume adjustment operations obtained, at least one volume adjustment information can be generated. Among them, each volume adjustment information can include the adjusted volume and the adjustment time relative to the preset time period (for example, one day) duration. Taking one day as the time period, for the information corresponding to the multiple volume adjustment operations, various analyses can be performed on the information at the same time period of multiple days, so as to generate at least one volume adjustment information.
[0041] Step 203: Generate second volume configuration information according to at least one piece of volume adjustment information and the first volume configuration information.
[0042] In this embodiment, according to the generated at least one piece of volume adjustment information and the generated first volume configuration information, second volume configuration information can be generated.
[0043] In some optional implementation manners, the first volume configuration information may include multiple pieces of volume configuration information sorted by time, and each piece of volume configuration information may include time information relative to a preset time period and the application volume corresponding to the time information. Based on this, the above step 203 may be specifically performed as follows: Insert each piece of volume adjustment information in the at least one piece of volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information, to obtain the second volume configuration information.
[0044] As an example, the first volume configuration information may be an information sequence. For example, it may be a sequence in which multiple pieces of volume configuration information are sorted in chronological order. In this way, according to the adjustment time included in each piece of volume adjustment information, each piece of volume adjustment information can be inserted into the information sequence to obtain a new information sequence, and this new information sequence can be directly used as the second volume configuration information.
[0045] As another example, as Figure 3B shown, each piece of volume configuration information in the first volume configuration information can be mapped to a point in a two-dimensional coordinate system, and these points are sorted in chronological order in the two-dimensional coordinate system. In this way, according to the adjustment time included in the volume adjustment information, the points corresponding to each piece of volume adjustment information can be inserted into the two-dimensional coordinate system, so as to obtain the second volume configuration information. For example, in the examples shown in Figure 3A and Figure 3B shown, three pieces of volume adjustment information are generated, and these three pieces of volume adjustment information can correspond to three points in the two-dimensional coordinate system. Inserting these three points into the schematic diagram of the first volume configuration information shown in Figure 3B can obtain the schematic diagram shown in Figure 3C shown. Figure 3C shows a schematic diagram of an example of inserting the points corresponding to three pieces of volume adjustment information into the first volume configuration information shown in Figure 3B shown. In Figure 3C , the black triangle "▲" may represent the point corresponding to the volume adjustment information.
[0046] In some implementation manners, the point obtained by directly inserting the point corresponding to the volume adjustment information after the point corresponding to the first volume configuration information can be used as the point corresponding to the second volume configuration information.
[0047] In some other alternative implementations, after inserting the points corresponding to the volume adjustment information into the points corresponding to the first volume configuration information, further processing can be performed on the obtained points, and then the points obtained after the further processing can be used as the points corresponding to the second volume configuration information. For example, step 203 above can be specifically carried out as follows:
[0048] First, according to the adjustment time included in the volume adjustment information, at least one volume adjustment information is inserted into the first volume configuration information. For example, the following schematic diagram can be obtained Figure 3C as shown in the figure.
[0049] Then, for each inserted volume adjustment information, it is determined whether there is volume configuration information other than the volume adjustment information within the preset time range of the inserted time point. If there is, it is deleted, so as to obtain the second volume configuration information.
[0050] For example, after inserting the points corresponding to each volume adjustment information into the points corresponding to the first volume configuration information, it can be judged whether there are other points within the preset time range of the newly inserted points corresponding to the volume adjustment information, for example, within half an hour on both sides; if there are other points, it is further judged whether the existing points are the points corresponding to the volume adjustment information. If so, they are retained; if not, they are deleted. After processing, the points corresponding to the second volume configuration information can be obtained. As Figure 3D shown, Figure 3D shows Figure 3C a schematic diagram of the points obtained after further deletion processing of the points shown in.
[0051] Step 204, generate volume control information corresponding to the preset time period duration based on the second volume configuration information.
[0052] In this embodiment, based on the generated second volume configuration information, volume control information corresponding to the preset time period duration can be generated. The volume control information can be used to control the volume of the target application according to time during the process of the target user using the target application. For example, each piece of information included in the second volume configuration information can be directly used as the volume control information. In this example, the volume control information can include time and the volume corresponding to the time. In this way, during the process of the target user using the target application, it is judged whether the current moment matches the time of the volume control information. If it matches, the volume is adjusted to the volume corresponding to the matching volume control information.
[0053] In some alternative implementations, step 204 above may be specifically carried out as follows: Generate a volume control curve corresponding to the duration of a preset time period according to the information included in the second volume configuration information. One coordinate axis of the volume control curve may be used to represent time, and the other coordinate axis may be used to represent volume values. This volume control curve may be used to determine the volume of the target application according to time during the process of the target user using the target application.
[0054] For example, a curve may be fitted according to the points corresponding to the second volume configuration information. For example, it may be fitted into a quadratic spline curve. For example, Figure 3E shows Figure 3D a schematic diagram of the curve obtained by fitting the points in. According to the fitted curve, the volume values corresponding to each time point in the preset time period duration can be obtained. For example, as analyzed above, the volume value of the target application used by the target user at 6 o'clock is 60 (i.e., the volume is 60% of the maximum volume), and the volume value of the target application used by the target user at 9 o'clock is 10 (i.e., the volume is 10% of the maximum volume). Then, when the target user opens or uses the target application at 8 o'clock on a certain occasion, the value of the ordinate corresponding to 8 o'clock can be calculated according to the fitted curve. In this example, the calculated value may be 20 (i.e., the volume is 20% of the maximum volume). Then, the volume of the target application can be controlled to be 20. Thus, the volume control of the target application can be realized based on the volume control curve.
[0055] Looking back on the above process, in the above embodiments of this specification, first, based on multiple pieces of historical volume information when the target user uses the target application, generate the first volume configuration information corresponding to the duration of the preset time period. Then, based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, generate at least one piece of volume adjustment information. Then, according to the at least one piece of volume adjustment information and the first volume configuration information, generate the second volume configuration information. Finally, based on the second volume configuration information, generate the volume control information corresponding to the duration of the preset time period. This volume control information is used to control the volume of the target application according to time during the process of the target user using the target application. Thus, it is realized to learn the volume size requirements of the target user during the process of using the target application based on the historical volume information and the information corresponding to the volume adjustment operations, and generate the volume control information based on the learned requirements, thereby realizing the automatic volume adjustment during the process of the target user using the target application, improving the adjustment efficiency, and enhancing the user experience.
[0056] Further referring to Figure 4 , Figure 4 shows a schematic flowchart of a method for controlling the volume of an application according to another embodiment. The flowchart of the method for controlling the volume of the application includes the following steps:
[0057] Step 401: Generate first volume configuration information corresponding to a preset time period length based on multiple pieces of historical volume information obtained when the target user uses the target application.
[0058] In this embodiment, the terminal device where the target application is located can record multiple pieces of historical volume information generated by the target user when using the target application. The historical volume information may include time information and the application volume corresponding to the time information. Based on the multiple pieces of historical volume information obtained, first volume configuration information corresponding to a preset time period length can be generated.
[0059] Step 402: Classify the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category.
[0060] In this embodiment, during the process of the target user using the target application, when not satisfied with the current volume, the user can perform a volume adjustment operation to turn the volume up or down. The information corresponding to the volume adjustment operation may include the time when the volume adjustment operation is performed, the adjusted volume, and so on. Various classification methods can be used. For example, an existing machine learning model for classification can be used to classify the information corresponding to multiple volume adjustment operations performed by the target user on the target application, so as to obtain at least one category.
[0061] In some alternative implementation manners, step 403 above can be specifically carried out as follows: Use a clustering algorithm to classify the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category.
[0062] In this implementation manner, multiple clustering algorithms can be used. For example, a partitioning-based clustering algorithm, a hierarchical clustering algorithm, a density-based clustering algorithm, etc. can be used to cluster the information corresponding to multiple volume adjustment operations, so as to obtain at least one cluster. Each cluster can correspond to a category. The clusters generated by clustering are a set of data objects (in this example, the information corresponding to the volume adjustment operations). The objects within the same cluster are similar to each other, and are different from the objects in other clusters. By clustering the information corresponding to multiple volume adjustment operations, the clusters obtained by clustering can more accurately reflect the rules of the volume adjustment operations performed by the target user on the target application, so that the generated volume adjustment information better meets the user's needs.
[0063] Optionally, the above clustering algorithm may be the OPTICS (Ordering points to identify the clustering structure) clustering algorithm. The OPTICS clustering algorithm is a density-based clustering algorithm. The OPTICS clustering algorithm is an improved version of the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm.
[0064] For ease of understanding, the input parameters of the OPTICS algorithm, the definitions of related concepts, etc. will be explained here first. The input parameters of the OPTICS algorithm include the radius ε and the minimum number of points MinPts. The related concepts defined in the OPTICS algorithm include core points, core distance, reachable distance, etc. Specifically:
[0065] Core points: If the number of points within the radius ε of a point is not less than the minimum number of points MinPts, then this point is a core point. The mathematical expression is as follows,
[0066] N ε (P) >= MinPts;
[0067] Among them, N ε (P) can represent the number of points in the set of points contained within the radius ε of this point.
[0068] Core distance: It is the minimum radius that makes a point a core point. Given the parameters radius ε and minimum number of points MinPts, the core distance can be smaller than the given radius ε. That is, for a certain core point P, the distance from the point that is the MinPts th th nearest to this core point to this core point is the core distance of this core point. The mathematical expression is as follows. Assume that N i ε (P) represents the point that is the i-th nearest to point P in the set of points contained within the radius ε of this core point. For example, if N 1 ε (P) represents the point nearest to P in the set, then,
[0069]
[0070] Among them, coreDist(P) can represent the core distance of the core point P.
[0071] reachableDistance: For the core point P, the reachable distance from point O to point P is defined as the distance from point O to point P, or the core distance of point P. The mathematical expression is as follows:
[0072]
[0073] where reachDist(O, P) can represent the reachable distance from point O to point P.
[0074] For the dataset datalist, the process of calculating using the OPTICS algorithm is as follows:
[0075] 1), Establish two queues, an ordered queue orderList and a result queue resultList.
[0076] 2), Calculate the reachable distance of all points.
[0077] 3), Find all core points and store them in the preset coreList, and calculate the core distance of all core points.
[0078] 4), Take a core point from coreList, put it into resultList, and remove this core point from coreList and datalist. Then, calculate the distance between each density-reachable point of this core point and this core point, and sort the density-reachable points of this core point according to the calculated distance and save them to the ordered queue orderList.
[0079] 5), Take out the point with the smallest reachable distance from orderList. If this point is a core point, store this point in resultList, and remove this point from orderList, datalist and coreList.
[0080] 6), If this point is not a core point, continue to find the next core point from orderList.
[0081] 7), Find all density-reachable points of this core point in datalist, and calculate the reachable distance. If the found density-reachable point is not in orderList, put it into orderList. If it is in orderList, update the reachable distance of the point in orderList, and then re-sort.
[0082] 8), If orderList is empty, indicating that there is no data to be processed, repeat step 4) to continue the process.
[0083] 9), If coreList is empty, directly terminate.
[0084] 10), a resultList will ultimately be obtained, as well as the reachable distances corresponding to all the core points in the resultList. A reachable distance graph can be drawn according to the resultList. The reachable distance graph may include multiple valleys, and each valley may correspond to a cluster. The deeper the valley, the tighter the cluster. Based on the reachable distance graph, the final clusters can be obtained, and each cluster can be used as a category. As Figure 5 shown, Figure 5 shows a schematic diagram of a reachable distance graph obtained by clustering a certain data set using the OPTICS algorithm. In Figure 5 the example shown, there are 3 valleys shown, which means there are three clusters.
[0085] That is to say, at least one cluster can be obtained by calculating using the OPTICS algorithm.
[0086] As an example, in this implementation manner, the information corresponding to multiple volume adjustment operations performed by the target user on the target application can be used as the data set datalist. Using a preset radius and a preset minimum number of samples, the OPTICS algorithm is used to cluster the information corresponding to multiple volume adjustment operations, and at least one cluster can be obtained, and each cluster is used as a category. Specifically, first, the information corresponding to multiple volume adjustment operations performed by the target user on the target application can be mapped into points in a two-dimensional coordinate system. Among them, the horizontal axis of the two-dimensional coordinate system can be the time relative to a preset time period, and the vertical axis can be the volume. Then, using a preset radius and a preset minimum number of samples, the OPTICS algorithm is used to cluster the points in the two-dimensional coordinate system to obtain at least one cluster. Here, the radius and the minimum number of samples can be set according to actual needs.
[0087] Step 403, generate at least one piece of volume adjustment information according to at least one category.
[0088] In this embodiment, for each category in the at least one category generated in step 402, one piece of volume adjustment information can be generated. For example, for the information corresponding to at least one volume adjustment operation included in each category obtained by classification, various analyses can be performed to generate one piece of volume adjustment information. For example, assuming that the preset time period is one day and a certain category includes 10 pieces of information corresponding to volume adjustment operations, then statistical analysis can be performed on the volume and the time corresponding to one day included in these 10 pieces of information. For example, calculate the mean values of the time and the volume respectively to generate one piece of volume adjustment information corresponding to this category.
[0089] Step 404, generate second volume configuration information according to at least one piece of volume adjustment information and the first volume configuration information.
[0090] In this embodiment, based on at least one generated volume adjustment information and the generated first volume configuration information, a second volume configuration information can be generated.
[0091] Step 405: Based on the second volume configuration information, generate volume control information corresponding to the duration of a preset time period.
[0092] In this embodiment, based on the generated second volume configuration information, volume control information corresponding to the duration of a preset time period can be generated. The volume control information can be used to control the volume of the target application according to time during the process of the target user using the target application. For example, according to the information included in the second volume configuration information, a volume control curve corresponding to the duration of the preset time period can be generated.
[0093] According to an embodiment of another aspect, a device for controlling the volume of an application is provided. The above-mentioned device for controlling the volume of an application can be deployed in any device, equipment, platform, or device cluster with computing and processing capabilities.
[0094] Figure 6 A schematic block diagram of a device for controlling the volume of an application according to an embodiment is shown. Figure 6 The device shown is used to execute Figure 2 or Figure 4 the method shown. As Figure 6 shown, the device 600 for controlling the volume of an application includes: a first generation unit 601 configured to generate first volume configuration information corresponding to the duration of a preset time period based on multiple pieces of historical volume information when the target user uses the target application, where the historical volume information includes time information and the application volume corresponding to the time information; a second generation unit 602 configured to generate at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, where the volume adjustment information includes the adjusted volume and the adjustment time relative to the duration of the preset time period; a third generation unit 603 configured to generate second volume configuration information according to the at least one volume adjustment information and the first volume configuration information; a fourth generation unit 604 configured to generate volume control information corresponding to the duration of a preset time period based on the second volume configuration information, where the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
[0095] In some alternative implementation manners of this embodiment, the second generation unit 602 includes: a classification module (not shown in the figure), configured to classify information corresponding to multiple volume adjustment operations performed by the target user on the target application, to obtain at least one category; a generation module (not shown in the figure), configured to generate a volume adjustment information according to each category in the at least one category.
[0096] In some alternative implementation manners of this embodiment, the classification module includes: a clustering module, configured to classify information corresponding to multiple volume adjustment operations performed by the target user on the target application by using a clustering algorithm, to obtain at least one category.
[0097] In some alternative implementation manners of this embodiment, the clustering algorithm is an OPTICS clustering algorithm; and the clustering module is further configured to: use a preset radius and a preset minimum number of samples, and use the OPTICS clustering algorithm to cluster information corresponding to multiple volume adjustment operations performed by the target user on the target application, to obtain at least one cluster, and use each cluster as a category.
[0098] In some alternative implementation manners of this embodiment, the first generation unit 601 is further configured to: perform statistical analysis on historical volume information within each preset time interval in a preset time period duration, and determine the application volume and time corresponding to each time interval in the preset time period duration according to the statistical analysis result; based on the application volume and time corresponding to each time interval, determine first volume configuration information corresponding to the preset time period duration, where the first volume configuration information includes the application volume and the time relative to the preset time period.
[0099] In some alternative implementation manners of this embodiment, the first volume configuration information includes multiple volume configuration information sorted by time, and each volume configuration information includes time information and an application volume; and the third generation unit 603 is further configured to: insert the at least one volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information, to obtain second volume configuration information.
[0100] In some alternative implementation manners of this embodiment, the first volume configuration information includes multiple volume configuration information sorted by time, and each volume configuration information includes time information and an application volume; and the third generation unit 603 is further configured to: insert the at least one volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information; for each inserted volume adjustment information, determine whether there is volume configuration information other than the volume adjustment information within a preset time range of the inserted time point, and if so, delete it, to obtain second volume configuration information.
[0101] In some alternative implementation manners of this embodiment, the fourth generation unit 604 is further configured to: generate a volume control curve corresponding to a preset time period duration according to the information included in the second volume configuration information, where one coordinate axis of the volume control curve is used to represent time, and the other coordinate axis is used to represent volume values.
[0102] The above device embodiment corresponds to the method embodiment. For specific descriptions, reference can be made to the description in the method embodiment part, which will not be elaborated here. The device embodiment is obtained based on the corresponding method embodiment and has the same technical effects as the corresponding method embodiment. For specific descriptions, reference can be made to the corresponding method embodiment.
[0103] According to an embodiment of another aspect, there is also provided a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is made to execute Figure 2 or Figure 4 the described method.
[0104] According to an embodiment of still another aspect, there is also provided an electronic device, including a memory and a processor. It is characterized in that an executable code is stored in the memory, and when the processor executes the executable code, the Figure 2 or Figure 4 described method is implemented.
[0105] The above content describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily have to be performed in the particular order or continuous order shown to achieve the desired results. In certain implementations, multitasking and parallel processing are also possible or may be advantageous.
[0106] Next, reference is made to Figure 7 , which shows a schematic structural diagram of an electronic device 700 suitable for implementing the embodiments of the present application. Figure 7 The shown electronic device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0107] As Figure 7As shown, the electronic device 700 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 701, which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage device 708 into the random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0108] Generally, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 7 the electronic device 700 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had. Figure 7 Each block shown in may represent one device or, as needed, multiple devices.
[0109] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above functions defined in the method of the embodiment of the present application are executed.
[0110] The embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed in a computer, the computer is made to execute the method provided in this specification.
[0111] It should be noted that the computer-readable medium described in the embodiments of this specification can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of this specification, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the embodiments of this specification, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0112] The above computer-readable medium may be included in the above electronic device; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is caused to: generate first volume configuration information corresponding to a preset time period length based on multiple pieces of historical volume information when the target user uses the target application, wherein the historical volume information includes time information and the application volume corresponding to the time information; generate at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, wherein the volume adjustment information includes the adjusted volume and the adjustment time relative to the preset time period length; generate second volume configuration information according to the at least one volume adjustment information and the first volume configuration information; generate volume control information corresponding to the preset time period length based on the second volume configuration information, wherein the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
[0113] Computer program code for performing the operations of the embodiments of this specification may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0114] The various embodiments in this specification are described in a progressive manner. The same or similar parts among the various embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the embodiments of the storage medium and the computing device, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0115] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present invention can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0116] The specific implementation manners described above have further elaborated on the objectives, technical solutions, and beneficial effects of the embodiments of the present invention. It should be understood that the above are only specific implementation manners of the embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for controlling the volume of an application, comprising: Generating first volume configuration information corresponding to a preset time period duration based on multiple pieces of historical volume information when a target user uses a target application, wherein the historical volume information includes time information and the application volume corresponding to the time information, and the first volume configuration information includes multiple pieces of volume configuration information sorted by time, and each volume configuration information includes time information and the application volume; Generating at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application, wherein the volume adjustment information includes the adjusted volume and the adjustment time relative to the preset time period duration; Generating second volume configuration information according to the at least one volume adjustment information and the first volume configuration information, including: inserting the at least one volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information to obtain the second volume configuration information; Generating volume control information corresponding to a preset time period duration based on the second volume configuration information, wherein the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
2. The method according to claim 1, wherein, The generating at least one volume adjustment information based on the information corresponding to multiple volume adjustment operations performed by the target user on the target application includes: Classifying the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category; Generating one volume adjustment information according to each category in the at least one category.
3. The method according to claim 2, wherein The classifying the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category includes: Using a clustering algorithm to classify the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category.
4. The method according to claim 3, wherein, The clustering algorithm is the OPTICS clustering algorithm; and The using a clustering algorithm to classify the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one category includes: Using a preset radius and a preset minimum number of samples, using the OPTICS clustering algorithm to cluster the information corresponding to multiple volume adjustment operations performed by the target user on the target application to obtain at least one cluster, and using each cluster as a category.
5. The method according to claim 1, wherein The generating first volume configuration information corresponding to a preset time period duration based on multiple pieces of historical volume information when a target user uses a target application includes: Performing statistical analysis on the historical volume information within each preset time interval in the preset time period duration, and determining the application volume and time corresponding to each time interval in the preset time period duration according to the statistical analysis result; Determining first volume configuration information corresponding to the preset time period duration based on the application volume and time corresponding to each time interval, wherein the first volume configuration information includes the application volume and the time relative to the preset time period.
6. The method according to claim 1, wherein, The first volume configuration information includes multiple pieces of volume configuration information sorted by time, and each piece of volume configuration information includes time information and application volume; and Generating second volume configuration information according to the at least one piece of volume adjustment information and the first volume configuration information includes: Inserting the at least one piece of volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information; For each piece of inserted volume adjustment information, determine whether there is volume configuration information other than the volume adjustment information within a preset time range of the inserted time point. If so, delete it to obtain the second volume configuration information.
7. The method according to claim 1, wherein Generating volume control information corresponding to a preset time period length based on the second volume configuration information includes: Generating a volume control curve corresponding to the preset time period length according to the information included in the second volume configuration information, where one coordinate axis of the volume control curve is used to represent time and the other coordinate axis is used to represent volume values.
8. A device for controlling application volume, comprising: A first generation unit configured to generate first volume configuration information corresponding to a preset time period length based on multiple pieces of historical volume information when a target user uses a target application, where the historical volume information includes time information and application volume corresponding to the time information, and the first volume configuration information includes multiple pieces of volume configuration information sorted by time, and each piece of volume configuration information includes time information and application volume; A second generation unit configured to generate at least one piece of volume adjustment information based on information corresponding to multiple volume adjustment operations performed by the target user on the target application, where the volume adjustment information includes an adjusted volume and an adjustment time relative to the preset time period length; A third generation unit configured to generate second volume configuration information according to the at least one piece of volume adjustment information and the first volume configuration information. The third generation unit is further configured to: insert the at least one piece of volume adjustment information into the first volume configuration information according to the adjustment time included in the volume adjustment information to obtain the second volume configuration information; A fourth generation unit configured to generate volume control information corresponding to a preset time period length based on the second volume configuration information, where the volume control information is used to control the volume of the target application according to time during the process of the target user using the target application.
9. A computer program product, comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1-7.
11. An electronic device, comprising a memory and a processor. An executable code is stored in the memory. When the processor executes the executable code, the method according to any one of claims 1-7 is implemented.
Citation Information
Patent Citations
Processing method, device, apparatus and storage medium for volume adjustment
CN109240637A
Automatic volume adjustment method and device, medium and equipment
CN113495712A