Volume adjustment method and device, electronic equipment and medium
By analyzing historical playback records of media data, the system automatically adjusts the volume, solving the problem of users having to manually adjust the volume and improving the playback experience.
Patent Information
- Application Number
- CN202411088514.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, although equalization processing is performed when media data is played on the terminal, users still need to manually adjust the volume, which affects the user experience.
By analyzing the historical playback records of the target media data, the probability of volume adjustment is determined, and based on the probability comparison results, an appropriate adjustment strategy is adopted to automatically adjust the volume.
This reduces the probability of volume adjustment during media playback, improves playback quality, and meets user expectations.
Smart Images

Figure CN121501237A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer processing technology, and specifically to volume adjustment methods, devices, electronic devices, and media. Background Technology
[0002] In related technologies, media data undergoes equalization processing during playback on the terminal to ensure balanced loudness. However, in actual playback, the loudness of some media data, even after equalization, still requires manual adjustment by the user, impacting the user experience. Summary of the Invention
[0003] In view of this, the present disclosure provides a volume adjustment method, apparatus, electronic device, and medium to solve the problem that the volume needs to be manually adjusted by the user when playing media data.
[0004] Firstly, this disclosure provides a volume adjustment method, the method comprising:
[0005] Based on the historical playback records of the target media data, determine the volume adjustment probability of playing the target media data at a preset volume. The historical playback records include the volume adjustment records when the target media data was played in the past.
[0006] In response to a volume adjustment probability greater than a first threshold, based on the volume adjustment records, a first probability of the preset volume being increased and a second probability of the preset volume being decreased are determined respectively.
[0007] Based on the comparison between the first probability and the second probability, the target adjustment strategy is determined;
[0008] Adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data.
[0009] Secondly, this disclosure provides a volume adjustment device, the device comprising:
[0010] The first processing module is used to determine the volume adjustment probability of playing the target media data at a preset volume based on the historical playback records of the target media data. The historical playback records include the volume adjustment records when the target media data was played in the past.
[0011] The second processing module is used to determine, based on the volume adjustment record, the first probability of the preset volume being increased and the second probability of the preset volume being decreased in response to the volume adjustment probability being greater than the first threshold.
[0012] The third processing module is used to determine the target adjustment strategy based on the comparison result between the first probability and the second probability;
[0013] The adjustment module is used to adjust the preset volume according to the target adjustment strategy in order to determine the playback volume of the target media data.
[0014] Thirdly, this disclosure provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the volume adjustment method of the first aspect or any corresponding embodiment described above.
[0015] Fourthly, this disclosure provides a computer-readable storage medium storing computer instructions for causing a computer to perform the volume adjustment method of the first aspect or any corresponding embodiment described above.
[0016] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the volume adjustment method of the first aspect or any corresponding embodiment described above.
[0017] The volume adjustment method provided in this embodiment can identify the probability of volume adjustment when the target media data is played at a preset volume by using the historical playback records of the target media data. Then, when the volume adjustment probability is greater than a first threshold, based on the comparison between the first probability of the preset volume being increased and the second probability of it being decreased, an appropriate target adjustment strategy is adopted to adjust the preset volume in a targeted manner. This makes the obtained playback volume more in line with the playback expectation, reduces the probability of the target media data being adjusted during playback, and achieves the purpose of improving the playback effect of the media data. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 This is a schematic flowchart of a volume adjustment method provided according to an embodiment of the present disclosure;
[0020] Figure 2 This is a schematic flowchart of another volume adjustment method provided according to an embodiment of the present disclosure;
[0021] Figure 3 This is a schematic flowchart of another volume adjustment method provided according to an embodiment of the present disclosure;
[0022] Figure 4 This is a schematic flowchart of another volume adjustment method provided according to an embodiment of the present disclosure;
[0023] Figure 5 This is a schematic flowchart of a volume adjustment method provided according to another embodiment of the present disclosure;
[0024] Figure 6 This is a structural block diagram of a volume adjustment device provided according to an embodiment of the present disclosure;
[0025] Figure 7 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this disclosure. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0027] In related technologies, media data undergoes equalization processing during playback on the terminal to ensure balanced loudness. However, in actual playback, the loudness of some media data, even after equalization, may still not meet the user's needs, requiring the user to manually increase or decrease the volume, thus affecting the user experience.
[0028] Therefore, this disclosure provides a volume adjustment method that can effectively reduce the number of times volume adjustment is required when playing media data, thereby improving the playback effect of media data.
[0029] According to an embodiment of this disclosure, a volume adjustment method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] This embodiment provides a volume adjustment method that can be used in electronic devices such as mobile phones and tablets. Figure 1 This is a flowchart of a volume adjustment method according to an embodiment of the present disclosure, such as... Figure 1 As shown, the process includes the following steps:
[0031] Step S101: Based on the historical playback records of the target media data, determine the probability of adjusting the volume of the target media data to play at a preset volume.
[0032] The target media data can be understood as any media data that needs to be played. For example, the target media data can be audio or video that needs to be played. The playback history includes the volume adjustment records when the target media data was played in the past. The volume adjustment records are used to record the volume adjustments made during the past playback of the target media data. The preset volume can be the volume used when the target media data was played once or multiple times in the past playback history.
[0033] To determine whether volume adjustment is needed when the target media data is played at a preset volume, the volume adjustment status of the target media data in each past playback is determined based on the historical playback records of the target media data. This allows for targeted analysis to determine the probability of volume adjustment when the target media data is played at a preset volume, thereby improving the rationality and accuracy of subsequent preset volume adjustments.
[0034] Step S102: In response to the volume adjustment probability being greater than the first threshold, based on the volume adjustment record, determine the first probability of the preset volume being increased and the second probability of the preset volume being decreased.
[0035] The first threshold can be understood as the maximum probability value for determining that the preset volume does not need to be adjusted. When the volume adjustment probability is greater than the first threshold, it indicates that the volume will be adjusted when the target media data is played at that preset volume. Therefore, when the volume adjustment probability is determined to be greater than the first threshold, based on the volume adjustment records, a first probability of increasing the preset volume and a second probability of decreasing it are determined respectively. This allows for subsequent adjustments to the preset volume based on the comparison between the first and second probabilities, thereby improving the effectiveness of volume adjustment.
[0036] Step S103: Determine the target adjustment strategy based on the comparison result between the first probability and the second probability.
[0037] By comparing the first and second probabilities, the adjustment direction can be clearly defined, making the resulting target adjustment strategy more reasonable and effective. For example, if the first probability is greater than the second probability, it means that during the past playback of the target media data, the probability of the preset volume being increased is greater than the probability of the preset volume being decreased. Therefore, when determining the subsequent target adjustment strategy, an adjustment strategy that increases the preset volume should be adopted. If the first probability is less than the second probability, it means that during the historical playback of the target media data, the probability of the preset volume being increased is less than the probability of the preset volume being decreased. Therefore, when determining the subsequent target adjustment strategy, an adjustment strategy that decreases the preset volume should be adopted.
[0038] Step S104: Adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data.
[0039] After determining the target adjustment strategy, the preset volume is adjusted according to the target adjustment strategy so that the volume of the target media data to be played is more in line with the playback expectation. This can effectively reduce the probability that the volume of the target media data will be adjusted during playback, thereby helping to improve the playback effect of the media data.
[0040] The volume adjustment method provided in this embodiment can identify the probability of volume adjustment when the target media data is played at a preset volume by using the historical playback records of the target media data. Then, when the volume adjustment probability is greater than a first threshold, based on the comparison between the first probability of the preset volume being increased and the second probability of it being decreased, an appropriate target adjustment strategy is adopted to adjust the preset volume in a targeted manner. This makes the obtained playback volume more in line with the playback expectation, reduces the probability of the target media data being adjusted during playback, and achieves the purpose of improving the playback effect of the media data.
[0041] This embodiment provides a volume adjustment method that can be used in the aforementioned electronic devices, such as mobile phones and tablet computers. Figure 2 This is a flowchart of a volume adjustment method according to an embodiment of the present disclosure, such as... Figure 2 As shown, the process includes the following steps:
[0042] Step S201: Based on the historical playback records of the target media data, determine the probability of adjusting the volume of the target media data to play at a preset volume.
[0043] Specifically, the historical playback record also includes the historical playback count of the target media data, and step S201 above includes:
[0044] Step S2011: Based on the volume adjustment record and the historical playback count, determine the first playback count of the target media data played at the preset volume and the second playback count of the preset volume being adjusted.
[0045] Volume adjustment records reveal the initial and adjusted volume of the target media data during each playback. Historical playback records show the total number of times the target media data has been played in the past; that is, the total number of times the target media data has been played historically. Historical playback counts refer to the cumulative number of times the target media data has been played on at least one playback device.
[0046] Since the volume used for each playback of the target media data may vary, to better understand the playback performance when the target media data is played at the preset volume, the following statistics are calculated based on volume adjustment records and historical playback counts: the first playback count when the target media data was played at the preset volume, and the second playback count during which the preset volume was adjusted. The second playback count is less than or equal to the first playback count.
[0047] Step S2012: Based on the first playback count and the second playback count, determine the probability of adjusting the volume of the target media data to be played at a preset volume.
[0048] Based on the comparison results of the first and second playback counts, the probability of volume adjustment when playing target media data at the preset volume can be clearly defined. This volume adjustment probability can quantify the likelihood that the preset volume needs to be adjusted, thereby making the process of determining the target adjustment strategy more convenient and efficient.
[0049] In some optional implementations, step S2012 above includes:
[0050] Step a1: Determine the total historical playback volume of media data played by the playback device and the total volume adjustment volume;
[0051] Step a2: Determine the total probability of volume adjustment corresponding to the playback device based on the ratio between the total volume adjustment and the total historical playback volume.
[0052] Step a3: Determine the playback probability of the target media data based on the ratio between the first playback count and the total historical playback count.
[0053] Step a4: Based on the ratio between the second playback count and the total volume adjustment, determine the third probability that the preset volume needs to be adjusted on the playback device;
[0054] Step a5: Based on the third probability, the total probability of volume adjustment, and the playback probability, determine the probability of volume adjustment when the target media data is played on the playback device at the preset volume.
[0055] Specifically, historical playback volume refers to the total number of media data played on the playback device in the past (PlayVolume, PV). The number of plays for each media data item must be at least 1, and the corresponding content is unlimited. Total volume adjustment volume refers to the total number of times the playback device adjusted the volume while playing media data in the past. In some optional examples, to ensure improved reliability of volume adjustment, both historical playback volume and total volume adjustment volume are statistically obtained from media data played on the playback device within a specified time period. For example, the specified time period could be within 30 days from the current time, or within 7 days from the current time. The time interval of the specified period can be determined according to requirements.
[0056] By comparing the total volume adjustment count with the total historical playback count, we can determine the probability that the playback device will adjust the volume while playing media data. This ratio can then be used to predict the total probability of the playback device adjusting the volume. For example, the total probability of volume adjustment P(c) can be expressed by the following formula: P(c) = Total volume adjustment count / Total historical playback count.
[0057] By calculating the ratio between the first playback count and the total historical playback count, we can determine the percentage of times the target media data has been played on the playback device in the past. This ratio can then be used to predict the probability of the target media data being played again on the playback device, thus obtaining the playback probability of the target media data. For example, the playback probability p(x) can be expressed by the following formula: p(x) = First playback count / Total historical playback count.
[0058] Based on the ratio between the second playback count and the total volume adjustment, the probability that the target media data will be played at the preset volume on the playback device and requires volume adjustment can be determined. This ratio can then be used as a third probability to predict the need to adjust the preset volume on the playback device. For example, the playback probability p(x|c) can be expressed by the following formula: p(x|c) = Second playback count / Total volume adjustment.
[0059] Based on the third probability, the total probability of volume adjustment, and the playback probability, the historical playback data of the target media data and the historical playback data of the playback device can be combined to comprehensively evaluate and analyze the probability of volume adjustment when the target media device plays at the preset volume on the playback device. This can effectively improve the reliability and accuracy of determining the volume adjustment probability.
[0060] In some optional examples, the process of determining the volume adjustment probability includes: determining the product between the total volume adjustment probability and the third probability, and using the quotient between the product and the playback probability as the volume adjustment probability of playing the target media data at a preset volume on the playback device. That is, the volume adjustment probability p(c|x) can be determined based on Bayes' theorem using the following formula: p(c|x) = p(x|c)P(c) / p(x). Determining the volume adjustment probability through this process reduces the influence of subjective factors, making the determination of the volume adjustment probability more objective and scientific, thereby helping to improve the rationality and accuracy of subsequent volume adjustments.
[0061] In some optional implementation scenarios, since P(c) = total volume adjustment / total historical playback, p(x) = first playback count / total historical playback, p(x|c) = second playback count / total volume adjustment, and p(c|x) = p(x|c)P(c) / p(x), the formula for determining the volume adjustment probability p(c|x) can be simplified to: p(c|x) = second playback count / first playback count. Therefore, when the first playback count and the second playback count are determined, the volume adjustment probability can be obtained quickly, thereby effectively improving the determination efficiency.
[0062] In other alternative examples, the volume adjustment probability can be determined by a pre-built deep learning model based on the third probability of the input, the total probability of volume adjustment, and the probability of playback. This can effectively reduce the need for manual intervention and analysis, thereby helping to improve the efficiency of determining the volume adjustment probability.
[0063] Step S202: In response to the volume adjustment probability being greater than a first threshold, based on the volume adjustment records, determine a first probability of the preset volume being increased and a second probability of it being decreased. For details, please refer to [link to relevant documentation]. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0064] Step S203: Based on the comparison between the first probability and the second probability, determine the target adjustment strategy. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0065] Step S204: Adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data. For details, please refer to [link to relevant documentation]. Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0066] The volume adjustment method provided in this embodiment determines the volume adjustment probability by analyzing volume adjustment records and historical playback counts. This quantifies the likelihood that volume adjustment is required when playing target media data. Then, based on the comparison between the volume adjustment probability and a first threshold, a target adjustment strategy is determined. This makes the determined target adjustment strategy more reasonable and reliable, thereby effectively improving the playback effect of the target media data.
[0067] In some optional examples, the process of determining the first probability can be as follows: Based on the volume adjustment records, playback records where the target media data was played at a preset volume during historical playback can be selected. Then, based on these playback records, the number of times the preset volume was increased can be counted, thus obtaining the first adjustment quantity. The ratio between the first adjustment quantity and the first playback count is taken as the first probability. Similarly, when determining the second probability, based on the playback records, the number of times the preset volume was decreased can be counted, thus obtaining the second adjustment quantity. The ratio between the second adjustment quantity and the first playback count is taken as the second probability.
[0068] In some optional implementations, the process of determining the target adjustment strategy based on the comparison between the first probability and the second probability includes: if the first difference between the first probability and the second probability is greater than a second threshold, then the target adjustment strategy is determined to be the first adjustment strategy. The second threshold can be understood as a threshold for determining whether volume increase processing is needed. The specific value of the second threshold can be set according to requirements; for example, the second threshold can be 0.4 or 0.5. When the first difference between the first probability and the second probability is greater than the second threshold, it indicates that during historical playback of the target media data, when played at a preset volume, the preset volume is mostly adjusted by increasing the volume to alleviate the problem of insufficient volume provided by the preset volume affecting the auditory effect. Therefore, the first adjustment strategy for increasing the preset volume is selected as the target adjustment strategy so that subsequent volume adjustments can increase the preset volume to meet playback expectations, thereby improving the playback effect of the target media data.
[0069] In some alternative implementations, if the target adjustment strategy is the first adjustment strategy, the preset volume is adjusted according to the target adjustment strategy to determine the playback volume of the target media data, including: determining the maximum value of the dynamic range control curve according to the first adjustment strategy, and adjusting the preset volume based on the maximum value to obtain the playback volume of the target media data.
[0070] Specifically, the maximum value of the Dynamic Range Control (DRC) curve is determined according to the first adjustment strategy. Dynamic Range Control is a method of adjusting volume by compressing or expanding the dynamic range of an audio signal. To maximize the preset volume, the maximum value of the DRC curve is determined, and this maximum value is used to specifically adjust the preset volume, ensuring that the playback volume of the target media data meets playback expectations.
[0071] In some alternative implementations, the process of determining the target adjustment strategy based on the comparison between the first probability and the second probability further includes: if the first difference between the first probability and the second probability is less than or equal to a second threshold, then the target adjustment strategy is determined based on the second difference between the second probability and the first probability. If the first difference between the first probability and the second probability is less than or equal to the second threshold, it indicates that during historical playback of the target media data, the preset volume was not frequently adjusted by increasing the volume. Therefore, to determine whether the preset volume was frequently adjusted by decreasing the volume during historical playback, the target adjustment strategy is determined based on the second difference between the second probability and the first probability, thereby improving the accuracy of determining the target adjustment strategy.
[0072] In some optional examples, if the second difference is greater than the third threshold, the target adjustment strategy is determined to be the second adjustment strategy, which is used to reduce the preset volume; if the second difference is less than or equal to the third threshold, the target adjustment strategy is determined to be the third adjustment strategy, which is used to compress the dynamic range control curve and adjust the preset volume based on the compressed dynamic range control curve.
[0073] Specifically, the third threshold can be understood as the threshold for determining whether volume reduction processing is needed. The specific value of the third threshold can be set according to requirements; for example, the third threshold can be 0.2 or 0.3. If the second difference is greater than the third threshold, it indicates that during the historical playback of the target media data, when played at the preset volume, the preset volume is mostly adjusted by reducing the volume to alleviate the problem of excessive volume affecting the listening effect. Therefore, the second adjustment strategy for reducing the preset volume is selected as the target adjustment strategy so that when the preset volume is adjusted according to the second adjustment strategy, the preset volume can be effectively reduced to meet the playback expectations. For example, the second adjustment strategy can refer to reducing the preset volume by adjusting the limit makeup gain or DRC compensation gain. Preferably, the limit makeup gain or DRC compensation gain can be adjusted by setting it to zero or adjusting the weight to achieve the purpose of reducing the preset volume, avoiding the situation where the audio signal is too strong or distorted due to excessive compensation gain, thereby improving the stability of volume adjustment.
[0074] If the second difference is less than or equal to the third threshold, it indicates that during the historical playback of the target media data, the preset volume may have increased or decreased. Therefore, the third adjustment strategy is selected as the target adjustment strategy to ensure a more stable playback volume when adjusting the preset volume according to the third adjustment strategy. Specifically, the third adjustment strategy compresses the dynamic range control curve and adjusts the preset volume based on the compressed dynamic range control curve, effectively preventing volume fluctuations during adjustment. This can improve the listening experience of the target media data to a certain extent, making the sound playback clearer and more comfortable, thus enhancing the playback quality of the target media data.
[0075] Determining the target adjustment strategy based on the comparison between the second difference and the third threshold allows for more flexible adaptation to different playback situations, improving the quality and effect of media data playback and meeting playback expectations.
[0076] This embodiment provides a volume adjustment method that can be used in electronic devices such as mobile phones and tablets. Figure 3 This is a flowchart of a volume adjustment method according to an embodiment of the present disclosure, such as... Figure 3 As shown, the process includes the following steps:
[0077] Step S301: Based on the historical playback records of the target media data, determine the probability of adjusting the volume of the target media data to play at a preset volume.
[0078] Step S302: In response to the volume adjustment probability being greater than the first threshold, based on the volume adjustment record, determine the first probability of the preset volume being increased and the second probability of the preset volume being decreased.
[0079] Step S303: Determine the target adjustment strategy based on the comparison result between the first probability and the second probability.
[0080] Step S304: Adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data.
[0081] Step S305: In response to the volume adjustment probability being less than or equal to the first threshold, loudness equalization processing is performed on the target media data to determine the playback volume of the target media data.
[0082] In response to a volume adjustment probability less than or equal to a first threshold, indicating that the target media data has a low probability of volume adjustment when played at a preset volume during historical playback, loudness equalization is performed on the target media data to further optimize the audio effect of the target media data and obtain the playback volume of the target media data.
[0083] The volume adjustment method provided in this embodiment, after determining the probability of playing the target media data at a preset volume, uses different methods to determine the volume to be played of the target media data based on the comparison result of the volume adjustment probability and a first threshold. This makes the volume adjustment method more flexible and targeted, thereby effectively improving the playback quality of the target media data, reducing the probability of manual adjustment, and meeting the user's expectations.
[0084] As one or more specific application embodiments of this disclosure, the process of determining the playback volume of target media data is as follows: Figure 4 As shown, the specific process is as follows:
[0085] First, based on the historical playback records of the target media data, determine the probability of adjusting the volume of the target media data to play at the preset volume.
[0086] Secondly, given the determined volume adjustment probability, the volume adjustment probability is compared with a first threshold to determine whether the volume adjustment probability is greater than the first threshold.
[0087] If the volume adjustment probability is less than or equal to the first threshold, then loudness equalization processing is performed on the target media data to determine the playback volume of the target media data.
[0088] If the volume adjustment probability is greater than a first threshold, then based on the volume adjustment records during historical playback of the target media data, a first probability of increasing the preset volume and a second probability of decreasing the preset volume are determined. It is then determined whether a first difference between the first and second probabilities is greater than a second threshold. If the first difference is greater than the second threshold, the target adjustment strategy is determined to be the first adjustment strategy. According to the first adjustment strategy, the maximum value of the dynamic range control curve is determined, and the preset volume is adjusted based on this maximum value. The adjusted preset volume is then used to update the parameters for processing the target media data, and the updated parameters are used for loudness equalization processing to determine the playback volume of the target media data.
[0089] If the first difference between the first probability and the second probability is less than or equal to the second threshold, then it is determined whether the second difference between the second probability and the first probability is greater than the third threshold. If the second difference between the second probability and the first probability is greater than the third threshold, then the target adjustment strategy is determined to be the second adjustment strategy. According to the second adjustment strategy, the preset volume is reduced by adjusting the limit makeup gain or DRC compensation gain. Then, the adjusted preset volume is used to update the parameters for processing the target media data, and the updated parameters are used for loudness equalization processing to determine the playback volume of the target media data.
[0090] If the second difference between the second probability and the first probability is less than or equal to the third threshold, then the target adjustment strategy is determined to be the third adjustment strategy. According to the third adjustment strategy, the dynamic range control curve is compressed, and the preset volume is adjusted based on the compressed dynamic range control curve. Then, the adjusted preset volume is used to update the parameters for processing the target media data, and the updated parameters are used for loudness equalization processing, thereby determining the playback volume of the target media data.
[0091] Adjusting volume in the above way makes the process more scientific and targeted, resulting in a higher volume of the target media data that is more in line with expectations, and thus helps to improve the playback quality and effect of the target media data.
[0092] As another specific application embodiment of the present disclosure, the target adjustment strategy may be obtained through a preset volume adjustment module. Figure 5The process flow for processing target media data is illustrated, which can include a parameter preparation stage and a streaming processing stage. The preparation stage includes determining the loudness gain, determining the parameters of the DRC curve, and determining the loudness compensation gain. Based on the target adjustment strategy determined by the volume adjustment module, the loudness gain, the parameters for determining the DRC curve, and the loudness compensation gain in the preparation stage can be specifically adjusted to ensure that the loudness gain processing of the target media data in the streaming processing stage is more reasonable and the auditory effect better meets expectations.
[0093] The streaming processing stage includes: applying loudness gain to the target media data to obtain the first media data; obtaining the DRC curve using the parameters of the DRC curve, and then applying the DRC curve to the first media data for dynamic range control to obtain the second media data; applying loudness compensation gain to the second media data to obtain the third media data; and finally, applying peak limiting to the third media data to obtain the target media data.
[0094] This embodiment also provides a volume adjustment device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.
[0095] This embodiment provides a volume adjustment device, such as... Figure 6 As shown, it includes:
[0096] The first processing module 601 is used to determine the volume adjustment probability of playing the target media data at a preset volume based on the historical playback records of the target media data. The historical playback records include the volume adjustment records when the target media data was played in the past.
[0097] The second processing module 602 is used to determine, based on the volume adjustment record, a first probability that the preset volume will be increased and a second probability that the preset volume will be decreased in response to the volume adjustment probability being greater than a first threshold.
[0098] The third processing module 603 is used to determine the target adjustment strategy based on the comparison result between the first probability and the second probability;
[0099] The adjustment module 604 is used to adjust the preset volume according to the target adjustment strategy in order to determine the playback volume of the target media data.
[0100] In some optional implementations, the historical playback record also includes the historical playback count of the target media data; the first processing module 601 includes:
[0101] The first statistical unit is used to determine the first number of times the target media data is played at a preset volume and the second number of times the preset volume is adjusted, based on the volume adjustment record and the historical playback count. The second playback count is less than or equal to the first playback count.
[0102] The second statistical unit is used to determine the probability of adjusting the volume of the target media data to be played at a preset volume based on the first playback count and the second playback count.
[0103] In some alternative implementations, the second statistical unit includes:
[0104] The first determining unit is used to determine the total historical playback volume of media data played by the playback device and the total volume adjustment volume.
[0105] The second determining unit is used to determine the total probability of volume adjustment corresponding to the playback device based on the ratio between the total volume adjustment and the total historical playback volume.
[0106] The third determining unit is used to determine the playback probability of the target media data based on the ratio between the first playback count and the total historical playback count.
[0107] The fourth determining unit is used to determine the third probability that the preset volume needs to be adjusted on the playback device based on the ratio between the second playback count and the total volume adjustment.
[0108] The fifth determining unit is used to determine the volume adjustment probability of the target media data being played at a preset volume on the playback device based on the third probability, the total volume adjustment probability, and the playback probability.
[0109] In some optional implementations, the fifth determining unit includes:
[0110] The first execution unit is used to determine the product between the total probability of volume adjustment and the third probability, and to use the quotient between the product and the playback probability as the volume adjustment probability of playing the target media data on the playback device at a preset volume.
[0111] In some alternative implementations, the third processing module 603 includes:
[0112] The first strategy determination unit is used to determine the target adjustment strategy as the first adjustment strategy if the first difference between the first probability and the second probability is greater than the second threshold. The first adjustment strategy is used to increase the preset volume.
[0113] In some alternative implementations, the adjustment module 604 includes:
[0114] The second execution unit is used to determine the maximum value of the dynamic range control curve according to the first adjustment strategy, and adjust the preset volume based on the maximum value to obtain the playback volume of the target media data.
[0115] In some optional implementations, the third processing module 603 further includes:
[0116] The sixth determining unit is used to determine the target adjustment strategy based on the second difference between the second probability and the first probability if the first difference between the first probability and the second probability is less than or equal to the second threshold.
[0117] In some optional implementations, the sixth determining unit includes:
[0118] The second strategy determination unit is used to determine the target adjustment strategy as the second adjustment strategy if the second difference is greater than the third threshold. The second adjustment strategy is used to reduce the preset volume.
[0119] The third strategy determination unit is used to determine the target adjustment strategy as the third adjustment strategy if the second difference is less than or equal to the third threshold. The third adjustment strategy is used to compress the dynamic range control curve and adjust the preset volume based on the compressed dynamic range control curve.
[0120] In some alternative embodiments, the apparatus further includes:
[0121] The fourth processing module is used to perform loudness equalization processing on the target media data in response to the volume adjustment probability being less than or equal to the first threshold, and to determine the playback volume of the target media data.
[0122] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0123] In this embodiment, the volume adjustment device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0124] This disclosure also provides an electronic device having the above-described features. Figure 6 The volume control shown.
[0125] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of this disclosure, such as... Figure 7As shown, the electronic device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take a processor 10 as an example.
[0126] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0127] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0128] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0129] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0130] The electronic device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.
[0131] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touch screen.
[0132] This disclosure also provides a computer-readable storage medium in which the methods described in this disclosure can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded over a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium may be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0133] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0134] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0135] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0136] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0137] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0138] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and all such modifications and variations fall within the scope defined by the present disclosure.
Claims
1. A volume adjustment method, characterized in that, The method includes: Based on the historical playback records of the target media data, the volume adjustment probability of playing the target media data at a preset volume is determined, wherein the historical playback records include the volume adjustment records when the target media data was played in the past; In response to the volume adjustment probability being greater than a first threshold, based on the volume adjustment record, a first probability of the preset volume being increased and a second probability of the preset volume being decreased are determined respectively; Based on the comparison between the first probability and the second probability, a target adjustment strategy is determined; Adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data.
2. The method according to claim 1, characterized in that, The historical playback record also includes the historical playback count of the target media data; The historical playback records based on the target media data are used to determine the volume adjustment probability of playing the target media data at a preset volume, including: Based on the volume adjustment record and the historical playback count, determine the first playback count of the target media data played at the preset volume and the second playback count of the preset volume being adjusted, wherein the second playback count is less than or equal to the first playback count; Based on the first playback count and the second playback count, determine the probability of adjusting the volume of the target media data to be played at the preset volume.
3. The method according to claim 2, characterized in that, The step of determining the volume adjustment probability of playing the target media data at the preset volume based on the first playback count and the second playback count includes: Determine the total historical playback volume and total volume adjustment of the media data played on the playback device; The total probability of volume adjustment corresponding to the playback device is determined based on the ratio between the total volume adjustment and the total historical playback volume. The playback probability of the target media data is determined based on the ratio between the first playback count and the total historical playback count. Based on the ratio between the second number of playbacks and the total volume adjustment, a third probability is determined that the preset volume needs to be adjusted on the playback device; Based on the third probability, the total probability of volume adjustment, and the playback probability, the volume adjustment probability of the target media data being played on the playback device at the preset volume is determined.
4. The method according to claim 3, characterized in that, The step of determining the volume adjustment probability of the target media data being played on the playback device at the preset volume based on the third probability, the total volume adjustment probability, and the playback probability includes: Determine the product between the total probability of volume adjustment and the third probability, and use the quotient between the product and the playback probability as the volume adjustment probability of the target media data being played on the playback device at the preset volume.
5. The method according to claim 1, characterized in that, The step of determining the target adjustment strategy based on the comparison result between the first probability and the second probability includes: If the first difference between the first probability and the second probability is greater than the second threshold, then the target adjustment strategy is determined to be the first adjustment strategy, which is used to increase the preset volume.
6. The method according to claim 5, characterized in that, The step of adjusting the preset volume according to the target adjustment strategy and determining the playback volume of the target media data includes: Based on the first adjustment strategy, the maximum value of the dynamic range control curve is determined, and the preset volume is adjusted based on the maximum value to obtain the playback volume of the target media data.
7. The method according to claim 5, characterized in that, The step of determining the target adjustment strategy based on the comparison result between the first probability and the second probability further includes: If the first difference between the first probability and the second probability is less than or equal to the second threshold, then a target adjustment strategy is determined based on the second difference between the second probability and the first probability.
8. The method according to claim 7, characterized in that, The step of determining the target adjustment strategy based on the difference between the second probability and the first probability includes: If the second difference is greater than the third threshold, then the target adjustment strategy is determined to be the second adjustment strategy, which is used to reduce the preset volume. If the second difference is less than or equal to the third threshold, the target adjustment strategy is determined to be the third adjustment strategy. The third adjustment strategy is used to compress the dynamic range control curve and adjust the preset volume based on the compressed dynamic range control curve.
9. The method according to claim 1, characterized in that, The method further includes: In response to the volume adjustment probability being less than or equal to the first threshold, loudness equalization processing is performed on the target media data to determine the playback volume of the target media data.
10. A volume control device, characterized in that, The device includes: The first processing module is used to determine the volume adjustment probability of the target media data being played at a preset volume based on the historical playback records of the target media data. The historical playback records include the volume adjustment records when the target media data was played in the past. The second processing module is used to determine, based on the volume adjustment record, a first probability that the preset volume will be increased and a second probability that it will be decreased if the volume adjustment probability is greater than the first threshold. The third processing module is used to determine the target adjustment strategy based on the comparison result between the first probability and the second probability; An adjustment module is used to adjust the preset volume according to the target adjustment strategy to determine the playback volume of the target media data.
11. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the volume adjustment method of any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the volume adjustment method according to any one of claims 1 to 9.
13. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the volume adjustment method according to any one of claims 1 to 9.