Volume adjustment method, electronic device, and computer program product
By acquiring the multi-level volume adjustment step size and its weight, the problem of global and local coordinated control in volume adjustment is solved, realizing refined and flexible volume adjustment and improving the accuracy and consistency of volume adjustment.
Patent Information
- Application Number
- CN202610700775.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-20
- Publication Date
- 2026-08-25
AI Technical Summary
Existing volume control technology cannot meet the dual needs of global control and fine-tuning, resulting in insufficient volume control accuracy and a lack of global consistency.
By acquiring the volume adjustment step size and its weight at multiple levels, the target volume adjustment step size is determined, and dynamic adjustments are made in conjunction with user scenarios and device information to achieve refined and coordinated volume control.
It improves the accuracy and flexibility of volume adjustment, adapts to various usage scenarios, and ensures the coordination and consistency of global and local volume.
Smart Images

Figure CN122633142A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a volume adjustment method, electronic device, and computer program product. Background Technology
[0002] In related volume adjustment technologies, single-dimensional control is usually adopted, such as unified management by a central control system or independent management by a certain application. However, the unified management by the central control system sets a fixed volume adjustment step size globally, resulting in insufficient volume adjustment precision. Independent management by the application only adjusts the local volume but not the global volume, resulting in a lack of global consistency in volume adjustment. The local volume and the global volume are not coordinated, thus failing to meet the dual needs of coordinated volume control and fine adjustment. Summary of the Invention
[0003] This application provides a volume adjustment method, electronic device, and computer program product to at least solve the problem that related volume adjustment technologies cannot simultaneously meet the dual needs of global volume control and fine-tuning.
[0004] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide a volume adjustment method, comprising: acquiring volume adjustment parameters; wherein the volume adjustment parameters include: a first volume adjustment step size and a second volume adjustment step size; determining a target volume adjustment step size based on the first volume adjustment step size and the second volume adjustment step size; and adjusting the volume based on the target volume adjustment step size in response to a volume adjustment operation.
[0005] In a second aspect, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the volume adjustment method as described in the first aspect.
[0006] Thirdly, embodiments of this application provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including a program or instructions, which, when executed, implement the steps of the volume adjustment method as described in the first aspect.
[0007] In this embodiment, volume adjustment parameters are obtained, including a first volume adjustment step size and a second volume adjustment step size, corresponding to different levels of volume adjustment step sizes. A target volume adjustment step size is determined based on the first and second volume adjustment step sizes. In response to a volume adjustment operation, the volume is adjusted based on the target volume adjustment step size. In this embodiment, the target volume adjustment step size is jointly determined by multiple levels of volume adjustment parameters. Adjusting the volume based on this target volume adjustment step size can cover multiple levels of volume adjustment step sizes for fine-grained volume adjustment, satisfying multiple dimensions of volume adjustment needs while also ensuring coordinated volume control to achieve global consistency, thus improving the accuracy and flexibility of volume adjustment. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 A schematic flowchart of a volume adjustment method provided in an embodiment of this application is shown; Figure 2 A schematic diagram of a volume control system provided in an embodiment of this application is shown; Figure 3 A flowchart illustrating another volume adjustment method provided in an embodiment of this application is shown; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0010] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0011] Figure 1This diagram illustrates a flow chart of a volume adjustment method provided in an embodiment of this application. The method can be executed by an electronic device, which may include in-vehicle devices such as in-vehicle infotainment systems, in-vehicle audio domain controllers, cockpit audio control modules, steering wheel volume control devices, etc. It may also include intelligent central control systems such as smart home central control hosts, multi-device audio collaborative controllers, etc., and may further include terminals such as audio controllers for computers / tablets / mobile phones, third-party audio adjustment tools, etc. See also... Figure 1 The method includes the following steps.
[0012] Step 102: Obtain volume adjustment parameters; wherein, the volume adjustment parameters include: a first volume adjustment step size and a second volume adjustment step size.
[0013] In this embodiment, the first volume adjustment step size and the second volume adjustment step size correspond to different levels of volume adjustment step sizes. For example, the first volume adjustment step size can correspond to the volume adjustment step size of the central control system, which adjusts the global volume based on the first volume adjustment step size. The second volume adjustment step size can correspond to the volume adjustment step size of a specific application, which adjusts the local volume based on the second volume adjustment step size. For another example, the first volume adjustment step size can correspond to the volume adjustment step size of a navigation application, used to adjust the volume of navigation voice commands. The second volume adjustment step size can correspond to the volume adjustment step size of a music application, used to adjust the volume of music commands.
[0014] For in-vehicle devices, the first volume adjustment step can be the volume adjustment step for alarms, prompts, voice assistants, parking assists, and other sounds throughout the vehicle, allowing for overall volume adjustment. The second volume adjustment step can be the volume adjustment step for alarms, prompts, voice assistants, parking assists, and other sounds in a specific area of the vehicle, such as the driver's seat or the rear passenger area. This allows for localized volume adjustment by increasing the volume adjustment step for the driver's seat and decreasing it for the rear passenger area.
[0015] For intelligent central control systems, the first volume adjustment step size can be used to adjust the volume of notification sounds, power-on or power-off sounds, voice assistant sounds, and other sounds from all smart home devices, allowing for global volume adjustment of the smart home system. The second volume adjustment step size can be used to adjust the volume of notification sounds and task execution feedback sounds from smart home devices for specific tasks, allowing for localized volume adjustment of smart home devices by increasing the volume of important tasks and decreasing the volume of notification sounds and task execution feedback sounds for less important tasks.
[0016] For the terminal, the first volume adjustment step size can be the volume adjustment step size for global notification sounds, power-on or power-off sounds, voice assistant sounds, etc., allowing for global volume adjustment of the terminal. The second volume adjustment step size can be the volume adjustment step size for a specific application or audio file on the terminal, allowing for local volume adjustment based on the volume adjustment needs of the application or audio file.
[0017] The first volume adjustment step and the second volume adjustment step are not limited to the above embodiments. It is understood that the first volume adjustment step can be a system-wide volume adjustment step, such as a system volume adjustment step set based on an audio codec chip, an audio control protocol, or Windows. The second volume adjustment step can be a local volume adjustment step for a specific application, external device, etc., such as a local volume adjustment step set based on an audio playback software, Bluetooth external headphones, a player, or other application or device.
[0018] Step 104: Determine the target volume adjustment step size based on the first volume adjustment step size and the second volume adjustment step size.
[0019] In this embodiment, the target volume adjustment step size is jointly determined by first and second volume adjustment step sizes at different levels, taking into account volume adjustment needs from different dimensions and overcoming the shortcomings of a single-level volume adjustment step size that is fixed and cannot adapt to multiple scenarios. For example, the target volume adjustment step size is determined jointly based on the volume adjustment step size of the central control system and the volume adjustment step size of the music application. This target volume adjustment step size takes into account both the global volume adjustment of the central control system and the local music volume adjustment, so that when adjusting the volume based on this target volume adjustment step size, it can meet the local music volume adjustment needs, such as increasing the music volume in a noisy environment and decreasing the music volume in a quiet environment. It can also coordinate the local volume with the global volume. For example, when increasing the music volume in a noisy environment, the volume of global alarms, prompts, and other sounds will also be increased accordingly, without having to repeatedly adjust the global volume to adapt to the noisy environment, and avoiding the problem of poor listening experience caused by a large difference between the music volume and the global volume. For example, in a noisy environment, the volume of global alarms and notification sounds can be increased. When the global alarms and notification sounds end and the music is switched to, the music volume should also be increased accordingly. This avoids the music volume being unsuitable for the noisy environment, and also avoids the problem of a large difference between the music volume and the global volume when the global alarms and notification sounds end and the music is switched to, resulting in a poor listening experience due to sudden changes in sound volume.
[0020] Step 106: In response to the volume adjustment operation, adjust the volume based on the target volume adjustment step size.
[0021] The volume adjustment operation can be triggered by the user through hardware (such as pressing a physical button or rotating a knob), voice, or user input on the interactive interface.
[0022] In this embodiment, volume adjustment parameters are obtained, including a first volume adjustment step size and a second volume adjustment step size, corresponding to different levels of volume adjustment step sizes. A target volume adjustment step size is determined based on the first and second volume adjustment step sizes. In response to a volume adjustment operation, the volume is adjusted based on the target volume adjustment step size. In this embodiment, the target volume adjustment step size is determined by parameters from multiple levels. Adjusting the volume based on this target volume adjustment step size can cover multiple levels of volume adjustment step sizes for fine-grained volume adjustment, satisfying multiple dimensions of volume adjustment needs while also ensuring coordinated volume control to achieve global consistency, thus improving the accuracy and flexibility of volume adjustment.
[0023] In some embodiments, the volume adjustment parameters described above may further include: a first weight corresponding to the first volume adjustment step size and a second weight corresponding to the second volume adjustment step size. Step 104, which determines the target volume adjustment step size based on the first volume adjustment step size and the second volume adjustment step size, may include: determining the target volume adjustment step size based on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight.
[0024] Specifically, the first weight characterizes the influence of the first volume adjustment step size on the target volume adjustment step size, further refining the precision of the target volume adjustment step size. This first weight can be adjusted based on various factors, such as usage scenarios. Different usage scenarios have different characteristics and can be assigned different first weights to adapt to different usage scenarios. Another example is users; different users have different habits or preferences and can be assigned different first weights to meet the volume adjustment needs of different users.
[0025] Specifically, a second weight characterizes the influence of the second volume adjustment step size on the target volume adjustment step size, further refining the precision of the target volume adjustment step size. This second weight can also be adjusted based on various factors, such as application type. Different second weights can be assigned to the volume adjustment step sizes of music applications and navigation applications to specifically adjust the volume of different application types using target volume adjustment step sizes with varying precision. Another example is the audio type to be adjusted. Different audio types have different importance levels, volume ranges, signal-to-noise ratios, and other characteristics, and can be assigned different second weights to specifically adjust the volume of different audio types using target volume adjustment step sizes with varying precision.
[0026] In this embodiment, by introducing a first weight corresponding to the first volume adjustment step size and a second weight corresponding to the second volume adjustment step size, the target volume adjustment step size is determined by multiple volume adjustment parameters including the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight. The influence of the first volume adjustment step size and the second volume adjustment step size on the target volume adjustment step size are taken into account, thereby refining the precision of the target volume adjustment step size and providing a more accurate target adjustment step size for volume adjustment.
[0027] In some embodiments, determining the target volume adjustment step size based on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight may include: performing a multiplication operation on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight to obtain the target volume adjustment step size.
[0028] Alternatively, the target volume adjustment step size can be obtained by performing a weighted summation operation on the first volume adjustment step size and the first weight, and on the second volume adjustment step size and the second weight.
[0029] In some optional embodiments, the target volume adjustment step size can be determined using the following formula: Step final = Step1×Step2×W1×W2.
[0030] In some alternative embodiments, the target volume adjustment step size can be determined using the following formula: Step final = Step1×W1+Step2×W2.
[0031] Among them, Step finalThe target volume adjustment step size is defined as follows: Step1 is the first volume adjustment step size, Step2 is the second volume adjustment step size, W1 is the first weight, and W2 is the second weight.
[0032] In this embodiment, the first weight can range from 0 to 1 or from 1 to 5, and the second weight can also range from 0 to 1 or from 1 to 5. When the first or second weight is between 0 and 1, the volume can be finely adjusted based on the target volume adjustment step size, which is suitable for usage scenarios sensitive to volume changes. When the first or second weight is between 1 and 5, the volume can be coarsely adjusted based on the target volume adjustment step size, which is suitable for usage scenarios requiring large and rapid volume adjustments.
[0033] In this embodiment, the acquired volume adjustment parameters, including the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight, can be used to determine the target volume adjustment step size through multiplication or weighted summation. This ensures that the target volume adjustment step size includes both the first and second volume adjustment step sizes, and also takes into account the influence of the first volume adjustment step size on the target volume adjustment step size through the first weight and the influence of the second volume adjustment step size on the target volume adjustment step size through the second weight. This results in a highly precise target volume adjustment step size, allowing for both fine-grained and coarse-grained volume adjustment, suitable for different usage scenarios, thereby improving the accuracy and flexibility of volume adjustment.
[0034] In some embodiments, the first volume adjustment step size is used to indicate the step size by which the central control system adjusts the volume in a single operation; and / or, the second volume adjustment step size is used to indicate the step size by which the application adjusts the volume in a single operation.
[0035] The first volume adjustment step size can correspond to the volume adjustment step size at the central control system level, that is, the step size of the volume change produced by a single volume adjustment at the central control system level during a volume adjustment operation. For example, in the elderly mode, a larger first volume adjustment step size can be set, and the central control system can adjust the volume significantly based on the first volume adjustment step size to suit the usage scenarios of elderly users who are not sensitive to sound.
[0036] The second volume adjustment step size can correspond to the volume adjustment step size at the application level, that is, the step size of the change in volume caused by a single volume adjustment at the application level when responding to a volume adjustment operation. For example, for users with hearing loss or hearing sensitivity, setting a fine second volume adjustment step size allows the application to finely adjust the application's volume based on the second volume adjustment step size, which is suitable for use scenarios such as hearing aids and interactive terminals for special groups.
[0037] In some embodiments, the first volume adjustment step size can be used to indicate the step size by which the central control system adjusts the volume of the vehicle's global alarms, prompts, voice assistants, parking assistance, and other sounds in a single operation. The second volume adjustment step size can be used to indicate the step size by which a music application adjusts the volume of music in a single operation. Thus, the target volume adjustment step size determined based on the first and second volume adjustment step sizes can not only meet the music volume adjustment requirements, but also ensure that the music volume is coordinated with the volume of the global alarms, prompts, voice assistants, parking assistance, and other sounds.
[0038] In some embodiments, the first volume adjustment step size can be used to indicate the step size by which the central control system adjusts the volume of notification sounds, power-on or power-off sounds, voice assistant sounds, etc. of the smart home device (e.g., a robot vacuum cleaner) once. The second volume adjustment step size can be used to indicate the step size by which the volume of notification sounds, task execution feedback sounds, etc. of the robot vacuum cleaner's self-cleaning task once is adjusted. Thus, when reducing the sound volume corresponding to the self-cleaning task, the target volume adjustment step size determined based on the first and second volume adjustment step sizes can not only meet the need to reduce the sound volume corresponding to the self-cleaning task, but also reduce the overall volume. This ensures that the sound volume corresponding to the local self-cleaning task is coordinated with the overall volume, preventing the user from reducing the sound volume of the robot vacuum cleaner's self-cleaning task while the overall volume remains high, resulting in a poor listening experience for the user.
[0039] In some embodiments, the first volume adjustment step size can be used to indicate the step size by which the central control system adjusts the volume of the terminal's global notification sounds, power-on or power-off sounds, voice assistant sounds, etc., once. The second volume adjustment step size can be used to indicate the step size by which an application in the terminal adjusts the volume of a certain audio file once. Thus, the target volume adjustment step size determined based on the first and second volume adjustment step sizes can not only meet the volume adjustment requirements of the audio file, but also make the volume of the audio file consistent with the volume of the global notification sounds, power-on or power-off sounds, voice assistant sounds, etc.
[0040] In this embodiment, the first volume adjustment step size is used to indicate the step size of the central control system in adjusting the volume once, and the second volume adjustment step size is used to indicate the step size of the application in adjusting the volume once. The target volume adjustment step size is determined by the volume adjustment step sizes of the central control system and the application. This target volume adjustment step size can take into account both the overall control of the central control system and the fine adjustment of the application, solving the problems of insufficient volume adjustment accuracy in the overall central control system and lack of global consistency in volume adjustment in the application. This achieves global volume coordination and meets the local fine volume adjustment needs.
[0041] Furthermore, when the value of the first weight or the second weight is between 0 and 1, the step size of a single volume adjustment by the central control system or application will be reduced, decreasing the target volume adjustment step size. Based on the target volume adjustment step size, the volume can be finely adjusted, suitable for usage scenarios sensitive to volume changes. When the value of the first weight or the second weight is between 1 and 5, the step size of a single volume adjustment by the central control system or application will be increased, increasing the target volume adjustment step size. Based on the target volume adjustment step size, the volume can be coarsely adjusted, suitable for usage scenarios requiring large and rapid volume adjustments.
[0042] In some embodiments, the volume adjustment method described above may further include the following steps: receiving a preset first weight; or determining the first weight based on at least one of the following: usage scenario information, user information, and electronic device information.
[0043] Among them, usage scenario information can be obtained through scene perception technology, including light sensor measurement, microphone ambient noise detection, Global Positioning System (GPS) positioning, Inertial Measurement Unit (IMU) measurement, etc. Usage scenario information can include: ambient noise intensity, sound field quietness, indoor or outdoor area, moving or stationary state, etc. For example, a smaller first weight will be given to nighttime or indoor areas to finely adjust the volume.
[0044] User information may include: the user's hearing characteristics, age, audio listening status (e.g., listening to the other party's voice during a call, listening to multimedia data), and volume adjustment habits or preferences (e.g., adjustment frequency, adjustment amplitude, adjustment speed, adjustment pattern). For example, a user who is not sensitive to sound will be given a higher first weight, while a user who prefers fine-tuning the volume will be given a lower first weight.
[0045] Electronic device information may include: device type (e.g., in-vehicle terminal, mobile phone, headphones, speaker), audio output channel, Bluetooth or wired connection status, and characteristics of the audio output module. For example, an electronic device will be assigned a lower first weight for headphones, and a higher first weight for speakers.
[0046] In some optional embodiments, multi-dimensional perception information, such as usage scenario information, user information, and electronic device information, can be input into a pre-built prediction model. The prediction model analyzes the multi-dimensional perception information to determine the optimal first weight, thereby achieving adaptive adjustment of the first weight.
[0047] In this embodiment, the first weight can be obtained by the user through the interactive interface of the electronic device, allowing the user to choose between fine-tuning or rapid adjustment. Alternatively, the first weight can be obtained by the central control system acquiring multi-dimensional sensing information, such as usage scenario information, user information, and electronic device information, analyzing this information, and determining a first weight suitable for the current situation. This ensures that the determined target volume adjustment step size meets the user's volume adjustment request and is adapted to the current condition.
[0048] In some embodiments, the volume adjustment method described above may further include the following steps: receiving a preset second weight; or determining the second weight based on at least one of the following: the application type of the application, the audio type of the audio to be adjusted, and user information.
[0049] The application types can include navigation, music, social media, etc. Different application types have different priorities. For example, navigation applications usually have higher priority and will be given greater secondary weight to quickly adjust the volume of the navigation voice.
[0050] The audio type to be adjusted can include: music, voice, navigation, alarms, prompts, etc. For example, alarms can be given a greater secondary weight to adjust the alarm volume quickly and significantly, thus achieving the purpose of warning.
[0051] User information can also be used to determine the second weight, which may include the user's habits or preferences for volume adjustment operations in different applications. For example, if a user usually listens to music at a higher volume, a higher second weight will be given to meet the user's need to adjust the music volume quickly and significantly.
[0052] In some optional embodiments, the multi-dimensional perception information, such as the application type of the application, the audio type of the audio to be adjusted, and the user information input, can be pre-built into a prediction model. The prediction model can then analyze the multi-dimensional perception information to determine the optimal second weight, thereby achieving adaptive adjustment of the second weight.
[0053] In this embodiment, the second weight can be obtained by the user through the interactive interface of the electronic device, allowing the user to choose between fine-tuning or rapid adjustment. Alternatively, the second weight can be obtained by the central control system acquiring multi-dimensional sensing information, such as the application type, the audio type of the audio to be adjusted, and user information. This multi-dimensional sensing information is then analyzed to determine a second weight that fits the current situation, ensuring that the determined target volume adjustment step size satisfies the user's volume adjustment request and adapts to the current conditions.
[0054] In some embodiments, after adjusting the volume based on the target volume adjustment step size in step 106 described above, the method further includes the following steps.
[0055] Step 108: Obtain the adjustment result of the volume.
[0056] The adjustment results of volume control can include: the adjusted volume value, whether the adjustment is in place, and whether the target volume adjustment step size is appropriate. User feedback can be used to determine whether the adjustment is in place and whether the target volume adjustment step size is appropriate.
[0057] Step 110: Optimize the volume adjustment parameters based on the adjustment results.
[0058] Optimizing the volume adjustment parameters may include adjusting at least one of the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight. For example, if user feedback reveals that the volume change of a certain application is not significant enough when adjusting the volume based on the target volume adjustment step size, it may be determined that the second volume adjustment step size and the second weight corresponding to the application are not suitable for the current situation, and it is necessary to adjust the second volume adjustment step size and the second weight by increasing the second volume adjustment step size and / or the second weight.
[0059] In this embodiment of the application, by obtaining the adjustment result of the volume adjustment, the volume adjustment based on the target volume adjustment step size is evaluated, and the volume adjustment parameters are optimized based on the adjustment result, thereby optimizing the target volume adjustment step size used to adjust the volume, so as to deal with the situation where the volume adjustment deviates and improve the accuracy of the volume adjustment.
[0060] In some embodiments, the volume adjustment method described above may further include: storing the target volume adjustment step size, the volume adjustment parameters, and / or the optimized volume adjustment parameters.
[0061] In this embodiment of the application, during the volume adjustment process, the volume adjustment parameters and the determined target volume adjustment step size can be stored. If there are optimized volume adjustment parameters, the volume adjustment parameters, the determined target volume adjustment step size, and the optimized volume adjustment parameters can be stored so that the stored target volume adjustment step size, the volume adjustment parameters, and / or the optimized volume adjustment parameters can be quickly recalled during subsequent volume adjustments, thereby improving the efficiency of volume adjustment.
[0062] Figure 2 A schematic diagram of a volume control system provided in an embodiment of this application is shown below. See also: Figure 2The volume adjustment system 200 may include a data acquisition layer 21, a processing layer 22, and an execution adjustment layer 23. The data acquisition layer 21 may include a user interaction module 211, a data acquisition module 212, and a storage module 213. The processing layer 22 may include a processing module 221. The execution adjustment layer 23 may include a volume execution module 231 and an audio playback module 232.
[0063] In this embodiment, the user interaction module 211 serves as the interface between the user and the volume adjustment system 200. It receives various volume adjustment operations from the user, such as physical button presses, knob rotations, voice control, interface swiping, or input. It also transmits these operations to the processing module 221 to trigger the calculation of the target volume adjustment step size and the execution of volume adjustment. Furthermore, it provides a visual and operable settings entry point for the user, receiving the user's input of a first weight and a second weight. Users can independently set or switch the first and second weights according to their volume adjustment needs, and select or switch between fine-tuned and rapid adjustment modes. This user interaction module 211 can be integrated into the operation panel or interface of various terminals, such as the central control system of an in-vehicle terminal, smart terminal devices, and smart home devices. It is compatible with multimodal input methods, such as physical triggering and voice triggering, adapting to various usage scenarios to ensure convenient user operation and smooth, stable, and timely interaction between the volume adjustment system 200 and the user.
[0064] The data acquisition module 212 is used to acquire volume adjustment parameters, including a first volume adjustment step size corresponding to the central control system, a second volume adjustment step size corresponding to the application, and a first weight and a second weight. The first weight and the second weight can be obtained from the user interaction module 211 and the storage module 213.
[0065] The storage module 213 stores the first volume adjustment step size, the second volume adjustment step size, the first weight, the second weight, and the volume adjustment parameters historically used by the user, providing stable, efficient, and low-latency data reading support for the data acquisition module. This ensures that the processing module 221 can quickly obtain the volume adjustment parameters for determining the target volume adjustment step size from the data acquisition module 212. The storage module 213 also supports real-time updates, dynamic modifications, and persistent storage of various parameters. By acquiring multi-dimensional perception information, such as usage scenario information, user information, electronic device information, application type, and audio type of the audio to be adjusted, it can analyze the multi-dimensional perception information to adaptively determine the first and second weights. Furthermore, it can optimize various parameters by analyzing the adjustment results after volume adjustment, thereby improving the flexibility, scalability, and adaptive adjustment capabilities of the volume adjustment system 200.
[0066] The calculation and processing module 221 is used to process the volume adjustment parameters acquired by the data acquisition module 212 to determine the target volume adjustment step size. The calculation may include multiplying the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight, or performing a weighted summation operation on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight to obtain the target volume adjustment step size, thus achieving the fusion of volume adjustment step sizes at multiple levels and the precision of the target volume adjustment step size. The calculation and processing module 221 can also be used to receive various volume adjustment operations received by the user interaction module 211, convert the determined target volume adjustment step size into an executable volume adjustment command, and transmit it to the volume execution module 231 so that the volume execution module 231 executes the volume adjustment command to achieve volume adjustment.
[0067] The volume execution module 231 receives and executes volume adjustment commands transmitted by the arithmetic processing module 221 to achieve volume adjustment. This volume execution module 231 works in conjunction with the audio playback module 232 to precisely adjust the volume according to the volume adjustment commands, ensuring a smooth, uninterrupted adjustment process and that the adjustment accuracy meets preset requirements. The volume execution module 231 also acquires the adjustment result after volume adjustment and feeds it back to the arithmetic processing module 221. This allows the arithmetic processing module 221 to store various parameters of the volume adjustment in the storage module 213. The storage module 213 then optimizes these parameters based on the adjustment result, achieving closed-loop control to address any deviations in volume adjustment and improve the accuracy of volume adjustment.
[0068] The audio playback module 232 is used to play audio, such as voice, music, prompts, alarms, etc., and works in conjunction with the volume control module 231 to precisely adjust the volume according to volume adjustment commands. This audio playback module 232 is compatible with various audio formats and can be used with the audio hardware of different electronic devices, ensuring clear and stable volume adjustment and providing users with a good listening experience.
[0069] Figure 3 This illustration shows a flowchart of another volume adjustment method provided in an embodiment of this application. This method can be applied to, for example... Figure 2 The volume control system shown is described in the image. Figure 3 The method may include the following steps.
[0070] Step 301: The user interaction module receives and parses the volume adjustment operation sent by the user to increase or decrease the volume, and transmits the signal of the volume adjustment operation to the calculation and processing module to trigger the volume adjustment process.
[0071] Step 302: The data acquisition module responds to the instruction of the arithmetic processing module, acquires or retrieves volume adjustment parameters from the storage module, verifies the volume adjustment parameters, and transmits the volume adjustment parameters to the arithmetic processing module after the verification is successful.
[0072] The processing module receives the volume adjustment signal and starts the volume adjustment process, then sends a command to the data acquisition module to instruct it to acquire the volume adjustment parameters.
[0073] Step 303: The calculation and processing module receives the volume adjustment parameters and determines the target volume adjustment step size through multiplication or weighted summation. The target volume adjustment step size is then converted into a volume adjustment command and transmitted to the volume execution module.
[0074] Step 304: The volume execution module receives the volume adjustment command and adjusts the volume, and the audio playback module responds to the volume adjustment command and outputs the adjusted volume.
[0075] Step 305: The volume execution module feeds back the adjustment result after volume adjustment to the calculation and processing module. The calculation and processing module stores various parameters of this volume adjustment to the storage module. The storage module optimizes and updates various parameters based on the adjustment result.
[0076] The updated parameters can be quickly called up during subsequent volume adjustments to improve the efficiency of volume control.
[0077] The volume adjustment method and system provided in this application can be applied to smartphones or tablets to achieve coordinated and refined adjustment of global volume control of the central control system and local volume control of various applications. They can also be applied to smart vehicle devices to achieve multi-level collaborative control of global volume control of the central control system and applications such as navigation, music, and telephone. Furthermore, they can be applied to smart TVs or projectors to achieve unified volume control of the remote control and local volume control of various applications. They can also be used in personal computers (PCs) to achieve multi-level coordinated control of global volume control of the central control system and applications such as games, audio-visual entertainment, and conferencing. Finally, they can be applied to smart home speakers to achieve global volume control of the central control system and local volume control of music, alarms, and voice assistants.
[0078] This application's embodiments introduce multiple levels of volume adjustment step sizes and their corresponding weights to determine the target volume adjustment step size for volume control. This enables dynamic scaling of the target volume adjustment step size, improving the accuracy of volume adjustment and adapting to various volume adjustment needs. The weights can be dynamically adjusted based on multi-dimensional perception information, achieving coordination and balance among the volume adjustment step sizes at each level. This adapts to various usage scenarios and solves the problems of insufficient volume adjustment accuracy and lack of global consistency caused by single-dimensional control in related technologies. Furthermore, the target volume adjustment step size obtained by integrating multiple levels of volume adjustment step sizes and their weights ensures unified control of the overall central control system while retaining the flexibility for independent, fine-tuned adjustments by each application, effectively improving the accuracy, flexibility, and scenario adaptability of volume adjustment and optimizing the user's interactive experience.
[0079] This application also provides an electronic device. Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown below. Figure 4 The electronic device is used to perform the volume adjustment method described above. Figure 4 This is a schematic diagram of the structure of an electronic device to implement the various embodiments of this application. The electronic device can vary significantly due to differences in configuration or performance, and may include a processor 401, a communications interface 402, a memory 403, and a communication bus 404. The processor 401, communications interface 402, and memory 403 communicate with each other via the communication bus 404. The processor 401 can call a computer program stored in the memory 403 and executable on the processor 401 to perform the various steps of the volume adjustment method embodiments described above, achieving the same technical effects. To avoid repetition, further details are omitted here.
[0080] The above electronic device structure does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or arrange them differently. For example, an input unit may include a Graphics Processing Unit (GPU) and a microphone, and a display unit may use a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar display panels. User input units include at least one of a touch panel and other input devices. A touch panel is also called a touchscreen. Other input devices may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be elaborated further here.
[0081] Memory can be used to store software programs and various data. Memory can primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, memory can include volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM).
[0082] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.
[0083] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the volume adjustment method embodiments described above and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0084] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0085] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described volume adjustment method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0086] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0087] This application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes a program or instructions. When the program or instructions are executed, they implement the various processes of the volume adjustment method embodiments described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0088] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0090] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.
[0091] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A volume adjustment method, characterized in that, include: Obtain volume adjustment parameters; wherein, the volume adjustment parameters include: a first volume adjustment step size and a second volume adjustment step size; The target volume adjustment step size is determined based on the first volume adjustment step size and the second volume adjustment step size; In response to a volume adjustment operation, the volume is adjusted based on the target volume adjustment step size.
2. The method according to claim 1, characterized in that, The volume adjustment parameters further include: a first weight corresponding to the first volume adjustment step size and a second weight corresponding to the second volume adjustment step size; Determining the target volume adjustment step size based on the first volume adjustment step size and the second volume adjustment step size includes: The target volume adjustment step size is determined based on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight.
3. The method according to claim 2, characterized in that, Determining the target volume adjustment step size based on the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight includes: The target volume adjustment step size is obtained by multiplying the first volume adjustment step size, the second volume adjustment step size, the first weight, and the second weight; or, The target volume adjustment step size is obtained by performing a weighted summation operation on the first volume adjustment step size and the first weight, and on the second volume adjustment step size and the second weight.
4. The method according to any one of claims 1 to 3, characterized in that, The first volume adjustment step size is used to indicate the step size by which the central control system adjusts the volume in a single operation; and / or The second volume adjustment step size is used to indicate the step size by which the application adjusts the volume in a single operation.
5. The method according to claim 2 or 3, characterized in that, The method further includes: Receive the preset first weight; or, The first weight is determined based on at least one of the following: usage scenario information, user information, and electronic device information.
6. The method according to claim 2 or 3, characterized in that, The method further includes: Receive the preset second weight; or, The second weight is determined based on at least one of the following: the application type of the application, the audio type of the audio to be adjusted, and user information.
7. The method according to any one of claims 1 to 3, characterized in that, After adjusting the volume based on the target volume adjustment step size, the method further includes: Obtain the adjustment result of the volume; The volume adjustment parameters are optimized based on the adjustment results.
8. The method according to claim 7, characterized in that, The method further includes: Store the target volume adjustment step size, the volume adjustment parameters, and / or the optimized volume adjustment parameters.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the volume adjustment method as described in any one of claims 1 to 8.
10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including programs or instructions that, when executed, implement the steps of the volume adjustment method as described in any one of claims 1 to 8.