Volume adjustment method and device, electronic equipment and computer readable storage medium
By acquiring the volume of the Bluetooth device and identifying the device type, calculating the target weight and volume adjustment method, the problem of sudden volume changes during Bluetooth device connection is solved, ensuring a smooth volume transition and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-26
- Publication Date
- 2026-04-07
AI Technical Summary
Because different Bluetooth devices have different hardware speaker gain and software Bluetooth volume control mechanisms, sudden volume changes may occur when connecting, affecting the smoothness of audio playback and negatively impacting the user's psychology and hearing, thus reducing user satisfaction.
By acquiring the volume of the first and second devices, identifying the device type, determining the target parameter type and calculating the target weight, and adopting the target volume adjustment method, a smooth volume transition is ensured.
It achieves a smooth volume transition during device communication connections, providing a stable and comfortable audio experience, avoiding sudden volume changes, and improving user satisfaction.
Smart Images

Figure CN121815028A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of volume adjustment technology, specifically to a volume adjustment method, device, electronic device, and computer-readable storage medium. Background Technology
[0002] Connecting TVs to Bluetooth speakers and smartphones to TVs via Bluetooth have become commonplace in daily life, leading to increased attention to audio quality and volume balance in these scenarios. However, differences in hardware speaker gain and software volume control mechanisms among various Bluetooth devices can cause sudden volume fluctuations during connection. These fluctuations not only affect the smoothness of audio playback but can also negatively impact user psychology and auditory experience, ultimately reducing user satisfaction with Bluetooth devices. Summary of the Invention
[0003] This application provides a volume adjustment method, apparatus, electronic device, and computer-readable storage medium that can ensure a smooth volume transition when the device is making a communication connection.
[0004] In a first aspect, embodiments of this application provide a volume adjustment method applied to a first device, wherein the first device and the second device are respectively an audio receiving device and an audio transmitting device connected in communication; the method includes: Obtain the first volume of the first device and the second volume of the second device; The parameter type of the first device to be acquired is determined based on whether the first device is the audio receiving device; According to the parameter type, obtain the target parameters of the first device; Determine the target volume adjustment method and target weight corresponding to the target parameters of the first device; Based on the first volume, the second volume, and the target weight, the adjusted volume is determined according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
[0005] In one embodiment, when the first device is not the audio receiving device, the target parameters of the first device include the Bluetooth audio curve; the higher the gain mode of the Bluetooth audio curve, the lower the corresponding target weight. The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the Bluetooth audio curve is in high-gain mode, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the high-gain mode to obtain the first adjustment amount; The sum of the first adjustment amount and the second volume is determined as the adjusted volume.
[0006] In one embodiment, determining the adjusted volume according to the target volume adjustment method based on the first volume, the second volume, and the target weight includes: When the Bluetooth audio curve is in low gain mode, obtain the scaling factor; According to the target weight corresponding to the low gain mode, the product of the second volume and the proportional coefficient is weighted to obtain the second adjustment amount; The sum of the second adjustment amount and the second volume is determined as the adjusted volume.
[0007] In one embodiment, after determining the adjusted volume, the method further includes: The first volume of the first device is adjusted to the adjusted volume, and the adjusted volume is sent to the second device; Audio is sent to the second device so that the second device plays the audio at the adjusted volume.
[0008] In one embodiment, when the first device is the audio receiving device, the target parameters of the first device include: multiple speaker power range intervals and the current speaker power value of the first device; the target weight is the weight corresponding to the current speaker power value of the first device; The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the current speaker power value of the first device falls within the range of the first speaker power, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the current speaker power value to obtain the third adjustment amount; The sum of the third adjustment amount and the first volume is determined as the adjusted volume.
[0009] In one embodiment, determining the adjusted volume according to the target volume adjustment method based on the first volume, the second volume, and the target weight includes: When the current speaker power value of the first device falls within the range of the second speaker power, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the current speaker power value to obtain the fourth adjustment amount; The difference between the second volume and the fourth adjustment amount is determined as the adjusted volume; The value in the second speaker power range is greater than the value in the first speaker power range.
[0010] In one embodiment, after determining the adjusted volume, the method further includes: The first volume of the first device is adjusted to the adjusted volume, and the adjusted volume is sent to the second device; Receive audio transmitted by the second device; Play the audio according to the adjusted volume.
[0011] Secondly, embodiments of this application provide a volume adjustment device applied to a first device, wherein the first device and the second device are respectively an audio receiving device and an audio transmitting device connected in communication; the device includes: A volume acquisition module is used to acquire the first volume of the first device and the second volume of the second device; The type determination module is used to determine the parameter type of the first device to be acquired based on whether the first device is the audio receiving device; The parameter acquisition module is used to acquire the target parameters of the first device according to the parameter type. The weight determination module is used to determine the target volume adjustment method and target weight corresponding to the target parameters of the first device; The volume determination module is used to determine the adjusted volume according to the first volume, the second volume, and the target weight, and according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
[0012] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the volume adjustment method described above.
[0013] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the volume adjustment method described above.
[0014] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.
[0015] The embodiments of this application have the following beneficial effects: When the first device and the second device are connected, the first volume of the first device and the second volume of the second device can be obtained. The type of parameter to be obtained can be determined according to whether the first device is an audio receiving device, thereby obtaining the target parameter of the first device of that type. Based on the target parameter, the target volume adjustment method and target weight can be determined. Then, based on the first volume, the second volume and the target weight, the adjusted volume can be determined according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume. The adjusted volume is a volume determined by combining the first volume and the second volume, which can ensure a smooth volume transition when the devices are connected, thereby solving the problem of sudden volume changes and bringing a good listening experience to the user. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating a sudden change in volume when a TV is connected to a speaker in a related technology. Figure 2 This is a diagram illustrating a sudden change in volume when a mobile phone is connected to a TV in related technologies; Figure 3 This is a schematic diagram of the steps of a volume adjustment method provided in an embodiment of this application; Figure 4 This is a timing diagram of a volume adjustment method for a television connected to a speaker, according to an embodiment of this application. Figure 5 This is a schematic diagram illustrating the principle of a volume adjustment method for a television connected to a speaker, according to an embodiment of this application. Figure 6 This is a timing diagram of a volume adjustment method for a TV connected to a mobile phone according to an embodiment of this application; Figure 7 This is a schematic diagram illustrating the principle of a volume adjustment method for connecting a television to a mobile phone according to an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a volume adjustment device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0019] Figure 1 This is a diagram illustrating a sudden change in volume when connecting a TV to speakers in related technologies; for example... Figure 1 As shown, the TV's local volume is 15, and the speaker's local volume is 50. After the TV and speaker successfully establish a Bluetooth connection, the speaker acts as an audio output device. The TV sends the local volume of 15 as the Bluetooth volume to the speaker, causing the speaker's volume to drop instantly from 50 to 15. This volume is too low for the speaker and may cause the user to not be able to hear clearly.
[0020] Figure 2 This is a diagram illustrating a sudden change in volume when a mobile phone is connected to a TV in related technologies; for example... Figure 2 As shown, the TV's local volume is 15, and the phone's local volume is 50. After the TV and phone successfully establish a Bluetooth connection, the TV acts as an audio output device, and the phone sends a Bluetooth volume of 50 to the TV. The TV's volume instantly increases from 15 to 50, which is too loud for the TV and provides a poor listening experience for the user.
[0021] To address or partially address the aforementioned technical problems, one embodiment of this application proposes a volume adjustment method that, through device type identification, real-time volume acquisition, and dynamic balance calculation, ensures a smooth transition in volume changes when devices are connected, thereby effectively solving the problem of sudden volume changes and providing users with a more stable and comfortable audio experience.
[0022] In one embodiment, such as Figure 3As shown, a volume adjustment method is provided. Although the logical sequence of steps is illustrated in the schematic diagram, in some cases, the steps shown or described can be performed in a different order than those shown in the accompanying drawings. Specifically, this volume adjustment method can be applied to a first device that is communicatively connected to a second device. This communication connection can be a Bluetooth connection, a Starlink connection, or a Wi-Fi connection, etc. The first device can be either an audio receiving device or an audio transmitting device, and the second device can be either an audio receiving device or an audio transmitting device. The audio receiving device can be an audio output device that can receive and play audio transmitted by the audio transmitting device. When the audio receiving device is the first device, the volume used by the audio receiving device to play the audio transmitted by the audio transmitting device can be an adjusted volume calculated by the audio receiving device itself. When the audio receiving device is the second device, the volume used by the audio receiving device to play the audio transmitted by the audio transmitting device can be the volume transmitted by the audio transmitting device to the audio receiving device, which is an adjusted volume calculated by the audio transmitting device.
[0023] The same device can function as both an audio receiver and an audio transmitter; its device type varies depending on the scenario. As in the example mentioned earlier, when a TV and a speaker connect via Bluetooth, the TV acts as the audio transmitter; when a TV and a mobile phone connect via Bluetooth, the TV acts as the audio receiver.
[0024] The first device is a device with computing power, capable of calculating the adjusted volume. When both the audio transmitting and receiving devices have the ability to calculate the adjusted volume, the device with higher computing resources can be designated as the first device, or the audio receiving device can be designated as the first device. In this way, the audio receiving device can directly and quickly play audio according to the adjusted volume without waiting for the audio transmitting device to send the adjusted volume.
[0025] In this connection, when a game console is connected to a TV, the game console acts as both an audio transmitter and a secondary device, while the TV acts as both an audio receiver and a primary device. Similarly, when a mobile phone is connected to a TV, the mobile phone acts as both an audio transmitter and a secondary device, while the TV acts as both an audio receiver and a primary device. When a speaker is connected to a TV, the TV acts as both an audio transmitter and a primary device, while the speaker acts as both an audio receiver and a secondary device. When a speaker is connected to a computer, the computer acts as both an audio transmitter and a primary device, while the speaker acts as both an audio receiver and a secondary device. Finally, when headphones are connected to a mobile phone, the mobile phone acts as both an audio transmitter and a primary device, while the headphones act as both an audio receiver and a secondary device.
[0026] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0027] according to Figure 3 The volume adjustment method shown includes at least steps S310 to S350, which are described in detail below: In step S310, the first volume of the first device and the second volume of the second device are obtained.
[0028] In one embodiment, when the first device and the second device are in a communication connection, the first device may send a volume transmission command to the second device, and the second device, in response to the volume transmission command, sends a second volume of the second device to the first device.
[0029] In another embodiment, when the first device and the second device establish a communication connection, the second device can automatically synchronize the second volume to the first device.
[0030] In step S320, the parameter type of the first device to be acquired is determined based on whether the first device is the audio receiving device.
[0031] In step S330, the target parameters of the first device are obtained according to the parameter type.
[0032] The first device can be either an audio receiving device or an audio transmitting device, and the second device can be either an audio receiving device or an audio transmitting device. Therefore, when the first device is determined to be an audio receiving device, the second device can be determined to be an audio transmitting device; conversely, when the first device is determined to be an audio transmitting device, the second device can be determined to be an audio receiving device.
[0033] When the first device establishes a communication connection with the second device, the system can query the device type and supported services through the protocol to determine whether the first device is an audio receiving device or an audio transmitting device, and thus determine whether the second device is an audio receiving device or an audio transmitting device.
[0034] For example, if the first device is a TV and the other device is a mobile phone, the TV can be set as an A2DP Sink (audio receiving device), and the audio will be played on the TV. If the first device is a TV and the other device is a speaker, the TV can be set as an A2DP Source (audio transmitting device), and the audio will be played on the speaker.
[0035] The parameter type of the first device is determined by its role in the audio interaction link (audio receiving device or audio transmitting device), and is a type of target parameter related to audio playback performance. The parameter type of the first device to be acquired can be determined as the type of the target parameter to be acquired. Therefore, after determining the parameter type of the first device, the corresponding type of target parameter can be obtained according to that parameter type.
[0036] Target parameters are technical parameters related to audio playback performance, and there are various types of target parameters. Target parameters can provide precise device parameter basis for playback performance optimization, prevent sudden volume changes, and provide users with a more stable and comfortable audio experience.
[0037] When the first device is an audio transmitting device, the parameter type to be acquired for the first device is the Bluetooth Audio Curve. Therefore, the Bluetooth audio curve of the first device can be obtained. The Bluetooth audio curve describes the response characteristics of the sound signal (accompaniment) at different frequencies during Bluetooth audio transmission. It mainly reflects how the Bluetooth device processes the various frequency components of the audio signal (such as gain, attenuation, etc.), directly affecting the listening experience. Essentially, the Bluetooth audio curve is a frequency response curve, with the horizontal axis representing the audio frequency (usually 20Hz-20kHz, covering the range of human hearing) and the vertical axis representing the signal gain or attenuation (in dB). The Bluetooth audio curve reflects the Bluetooth device's "reproduction capability" or "tuning tendency" for different frequency sounds during wireless transmission.
[0038] When the first device is an audio receiving device, the parameter type to be acquired for the first device is speaker power parameter. Therefore, the current speaker power value and multiple speaker power ranges of the first device can be obtained. Speaker power is an important parameter for measuring the working capability of a speaker (loudspeaker), reflecting the amount of electrical power the speaker can handle under specific conditions, directly affecting the speaker's volume and sound quality. Speaker power is the electrical power that a speaker can withstand or output during normal operation, measured in watts (W). Essentially, it represents the speaker's ability to process input electrical power during the conversion of electrical energy into sound energy. Insufficient power may lead to insufficient volume or distortion, while excessive power may burn out speaker components (such as voice coils and diaphragms). Multiple speaker power ranges can be pre-configured according to the actual needs of the scenario. For example, multiple speaker power ranges corresponding to a television may include: Range 1 = [8W~10W]; Range 2 = [10W~15W].
[0039] In one embodiment, the communication connection between the first device and the second device may include, but is not limited to, WiFi, Internet of Things (Zigbee), and / or Near Field Communication (NFC). Different target parameters can be used under different connection methods to optimize volume transitions smoothly and avoid abrupt volume changes.
[0040] In step S340, the target volume adjustment method and target weight corresponding to the target parameters of the first device are determined.
[0041] The target weight is a positive number. When the first device is an audio transmitting device and the target parameter of the first device is a Bluetooth audio curve, different target volume adjustment methods and target weights can be determined based on whether the gain mode corresponding to the Bluetooth audio curve is a high-gain mode or a low-gain mode. The higher the gain mode of the Bluetooth audio curve, the lower the corresponding target weight.
[0042] When the Bluetooth audio curve is in high-gain mode, the target volume adjustment method can be: dynamically mapping the difference between the second volume and the first volume through the target weight, adjusting the second volume according to the mapping result, and obtaining the adjusted volume.
[0043] When the Bluetooth audio curve is in low gain mode, the target volume adjustment method can be: appropriately increase the second volume by using the target weight to obtain the adjusted volume.
[0044] When the first device is an audio receiving device, and the target parameters of the first device are the current speaker power value and multiple speaker power ranges, different target volume adjustment methods and target weights can be determined based on the speaker power range in which the current speaker power value falls. The target weight is determined based on the current speaker power value; the higher the current speaker power value, the lower the target weight.
[0045] When the current speaker power value is low within the speaker power range, the target volume adjustment method can be: dynamically proportionally mapping the difference between the second volume and the first volume using a target weight, adjusting the first volume based on the mapping result, and obtaining the adjusted volume.
[0046] When the current speaker power value is relatively high within the speaker power range, the target volume adjustment method can be: reduce the second volume according to the target weight, and increase the first volume according to the target weight. The sum of the reduced second volume and the increased first volume is determined as the adjusted volume.
[0047] In step S350, the adjusted volume is determined according to the first volume, the second volume, and the target weight, and according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
[0048] By substituting the first volume, second volume, and target weight into the predetermined target volume adjustment method, the adjusted volume can be calculated. When the first device is an audio receiving device, it can directly output audio according to the adjusted volume. When the first device is an audio transmitting device, it can send the adjusted volume to the audio receiving device, which then outputs audio according to the received adjusted volume.
[0049] In one embodiment, after determining the adjusted volume, if the first device is an audio receiving device, it can directly output audio according to the adjusted volume and synchronize the adjusted volume to the second device, so that the second device also sets its own volume to the adjusted volume, ensuring that the first and second devices maintain volume synchronization. If the first device is an audio transmitting device, it can send the adjusted volume to the audio receiving device, which outputs audio according to the received adjusted volume, and the first device sets its own volume to the adjusted volume, ensuring that the first and second devices maintain volume synchronization. Maintaining volume synchronization between the first and second devices not only ensures the stability of the audio output volume but also ensures the coordination of volume information between the two devices, thereby achieving the best audio playback effect.
[0050] By employing the technical solution of this application embodiment, when the first device and the second device are connected in communication, the first volume of the first device and the second volume of the second device can be obtained. The type of parameter to be obtained can be determined based on whether the first device is an audio receiving device, thereby obtaining the target parameter of that type for the first device. Based on the target parameter, a target volume adjustment method and a target weight are determined. Then, based on the first volume, the second volume, and the target weight, the adjusted volume is determined according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume. This adjusted volume is a volume determined by combining the first volume and the second volume, ensuring a smooth volume transition when the devices are connected in communication, thereby solving the problem of sudden volume changes and providing users with a good listening experience.
[0051] In one embodiment, a user interface may be provided to the user, which has a control to enable / disable the volume balancing function. The user can operate this control; when the control indicates that the volume balancing function is enabled, the volume adjustment method described herein can be executed; when the control indicates that the volume balancing function is disabled, the volume adjustment method described herein can not be executed, and the native volume processing logic will be returned.
[0052] In one embodiment, if significant fluctuations or anomalies are detected during the communication connection between the first device and the second device (e.g., the volume of the first device and the second device is not synchronized), the difference calculation and synchronization process can be restarted. Based on the current first volume of the first device and the second volume of the second device, the adjusted volume is recalculated, and the volume of the first device and the second device is resynchronized based on the adjusted volume to ensure the synchronization of the volume of the first device and the second device during the communication connection.
[0053] In one embodiment, in response to a user's viewing action, a volume control interface can be displayed to the user, which can show real-time feedback information on volume adjustment to ensure ease of operation.
[0054] Based on the above technical solution, as an embodiment, when the first device is not the audio receiving device, the target parameters of the first device may include the Bluetooth audio curve; as shown in Table 1, the higher the gain mode of the Bluetooth audio curve, the lower the corresponding target weight.
[0055] Table 1
[0056] The gain mode of the Bluetooth audio curve can be obtained from the device settings. If the first device has explicit mode options such as "High Gain" or "Low Gain," you can directly determine the gain mode of the Bluetooth audio curve based on the selected state. If not, you can check the gain values of each frequency band (low frequency, mid frequency, high frequency) to determine it. A positive and relatively large value (value greater than the gain threshold), or a slider biased towards increasing gain, indicates high gain mode; a negative value or close to zero, or a slider biased towards attenuation, indicates low gain mode.
[0057] In one embodiment, determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, may include: when the Bluetooth audio curve is in a high-gain mode, obtaining the difference between the second volume and the first volume; weighting the difference according to the target weight corresponding to the high-gain mode to obtain a first adjustment amount; and determining the sum of the first adjustment amount and the second volume as the adjusted volume.
[0058] The target volume adjustment method is determined based on the gain mode corresponding to the Bluetooth audio curve. When the Bluetooth audio curve is in high-gain mode, the target volume adjustment method can be characterized by the following formula: Adjusted volume = Second volume + Target weight × (Second volume - First volume). Where target weight × (Second volume - First volume) is the first adjustment amount. When the Bluetooth audio curve is in high-gain mode, the corresponding target weight value is relatively low, which can be lower than 0.5, for example, 0.3.
[0059] In one embodiment, the first device is a television, the second device is a speaker, the first volume is 15, the second volume is 50, and the target weight corresponding to the Bluetooth audio curve in high-gain mode is 0.3. Therefore, the adjusted volume = 50 + 0.3 × (50 - 15) = 60.5. The television can set its own volume to 60.5 and send this volume information to the speaker, causing the speaker to also set its own volume to 60.5, thus achieving volume synchronization between the television and the speaker.
[0060] When the Bluetooth audio curve of the first device is in high-gain mode, the second device, as an audio receiving and audio output device, can adjust the difference between the first and second volumes through the target weight and add it to the second volume to make the second volume adapt to the volume requirements of high-gain mode.
[0061] Furthermore, when the Bluetooth audio curve is in high-gain mode, adjusting the volume of the audio receiving device using the above-mentioned target volume adjustment method also has the following advantages: It can optimize audio balance. By adjusting the target volume, the volume of the second device can be adjusted appropriately to compensate for the problem that the sound of the first device may be too prominent in high-gain mode, thereby making the overall audio more balanced.
[0062] It can improve dynamic range adaptability. In high-gain mode, the dynamic range of the audio signal is larger (i.e., the range of sound variation is wider). Adjusting the output volume of the second device through this target volume adjustment method can better adapt to this dynamic range variation, helping to avoid sound distortion or compression caused by excessive dynamic range, and making the audio performance more delicate and layered.
[0063] It can enhance sound consistency. In high-gain mode, there may be a discrepancy between the sound outputs of the first and second devices (e.g., the first device is too loud while the second device is relatively weak). By dynamically adjusting the volume of the second device, the sound performance of both devices can be made more consistent, avoiding auditory fatigue or discomfort caused by sound discrepancies.
[0064] This can reduce the risk of distortion. In high-gain mode, if the audio signal sent by the first device is strong, improperly set output volume of the second device (e.g., too low) may cause distortion when the second device amplifies the signal. Adjusting the output volume of the second device using this target volume adjustment method can increase the volume without significantly increasing internal amplification, thereby reducing the risk of sound distortion due to over-amplification.
[0065] In one embodiment, determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, may include: obtaining a proportional coefficient when the Bluetooth audio curve is in a low-gain mode; weighting the product of the second volume and the proportional coefficient according to the target weight corresponding to the low-gain mode to obtain a second adjustment amount; and determining the sum of the second adjustment amount and the second volume as the adjusted volume.
[0066] The target volume adjustment method is determined based on the gain mode corresponding to the Bluetooth audio curve. When the Bluetooth audio curve is in low gain mode, the target volume adjustment method can be characterized by the following formula: Adjusted volume = Second volume + Target weight × (Second volume × Proportional coefficient). Where target weight × (Second volume × Proportional coefficient) is the second adjustment amount. This proportional coefficient can be preset based on experimental or actual needs, for example, it can be 20%. When the Bluetooth audio curve is in low gain mode, the corresponding target weight value is higher, which can be greater than 0.5, for example, it can be 0.8.
[0067] In one embodiment, the first device is a television, the second device is a speaker, the first volume is 15, the second volume is 50, and the target weight corresponding to the Bluetooth audio curve in low gain mode is 0.8. Therefore, the adjusted volume = 50 + 0.8 × (50 × 20%) = 58. The television can set its own volume to 58 and send this volume information to the speaker, so that the speaker also sets its own volume to 58, thus achieving volume synchronization between the television and the speaker.
[0068] When the Bluetooth audio curve of the first device is in low gain mode, the second device, as an audio receiving and output device, can appropriately increase its volume through the target volume adjustment method. This allows the second device's volume to adapt to the volume requirements of high gain mode, which can compensate for the weak audio signal of the first device. This makes the sound output of the first and second devices more balanced, resulting in a clearer and fuller overall sound performance, and avoiding sound blurring or loss due to excessively low speaker volume.
[0069] This target volume adjustment method can also improve dynamic range. In low gain mode, the dynamic range of the audio signal may be large. Appropriately increasing the volume of the second device can better adapt to changes in dynamic range, ensuring that the treble is not compressed and the bass does not sound too muffled, which helps to optimize sound quality and make the audio sound more delicate and layered.
[0070] This target volume adjustment method also reduces the risk of distortion. In low-gain mode, when the audio signal sent by the first device is weak, the second device in related technologies may attempt to compensate for the insufficient volume by increasing internal amplification; however, this operation may lead to sound distortion. By employing the calculation scheme of this application embodiment, the output volume of the second device is calculated and adjusted using the target volume adjustment method, which can increase the volume without significantly increasing internal amplification, thereby reducing the risk of distortion caused by excessive amplification.
[0071] In one embodiment, when the Bluetooth audio curve is in medium gain mode, the target volume adjustment method corresponding to low gain mode or high gain mode can be used. However, the target weight corresponding to medium gain mode is different from the target weight corresponding to low gain mode and also different from the target weight corresponding to high gain mode. For example, the target weight corresponding to medium gain mode can be 0.5.
[0072] In one embodiment, if the first device is an audio transmitting device, after determining the adjusted volume, the method may further include: adjusting the first volume of the first device to the adjusted volume and sending the adjusted volume to the second device; sending audio to the second device so that the second device plays the audio at the adjusted volume.
[0073] Once the adjusted volume is determined, the first device can adjust its own initial volume to the adjusted volume and send the adjusted volume to the second device, so that the second device can also set its own volume to the adjusted volume. The first device, acting as an audio transmitting device, can send audio to the second device, so that the second device can play the audio at the adjusted volume.
[0074] The first and second devices may play related audio simultaneously. For example, the first device might be a television, and the second a speaker; the first device outputs dialogue, while the second enhances ambient sound effects or background music. If the volumes of the two devices are inconsistent, viewers may experience confusion about the sound sources, affecting their auditory experience. A consistent volume allows viewers to focus more easily on the content itself without having to frequently adjust the volume or switch devices.
[0075] The technical solution adopted in this application provides a volume adjustment that better suits the device's playback needs. This adjustment allows for smooth volume control while preserving overall sound quality. By synchronizing the volumes of the first and second devices, sound imbalance caused by different sound sources can be avoided. In multi-device audio systems (such as a TV with speakers), maintaining consistent volume optimizes the collaborative capabilities of each device, ensuring more coordinated and smooth sound output.
[0076] Based on the above technical solution, as an embodiment, when the first device is the audio receiving device, the target parameters of the first device may include multiple speaker power ranges and the current speaker power value of the first device. The target weight is determined based on the current speaker power value of the first device. A pre-defined correspondence between the current speaker power value and the target weight can be established, and the target weight is determined using the current speaker power value of the first device. As shown in Table 2, the higher the current speaker power value, the lower the corresponding target weight.
[0077] Table 2
[0078] The current speaker power value of the first device can be obtained from the device's system settings. Multiple speaker power ranges can be pre-configured according to actual scenario requirements. For example, the multiple speaker power ranges corresponding to a TV may include: Range 1 = [8W~10W]; Range 2 = [10W~15W].
[0079] In one embodiment, determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, may include: when the current speaker power value of the first device belongs to the first speaker power range, obtaining the difference between the second volume and the first volume; weighting the difference according to the target weight corresponding to the current speaker power value to obtain a third adjustment amount; and determining the sum of the third adjustment amount and the first volume as the adjusted volume.
[0080] Speaker power rating refers to the maximum sound intensity or loudness a loudspeaker can produce. If the speaker power of an audio receiving device is low, problems such as sound distortion and clipping may occur when high volume is required.
[0081] The value in the first speaker power range is less than the value in the second speaker power range. For example, the first speaker power range can be [8W~10W], and the second speaker power range can be [10W~15W].
[0082] The target volume adjustment method is determined based on which speaker power range the current speaker power value of the first device belongs to. When the current speaker power value of the first device belongs to the first speaker power range, the target volume adjustment method can be characterized by the following formula: Adjusted volume = First volume + Target weight × (Second volume - First volume). Wherein, Target weight × (Second volume - First volume) is the third adjustment amount.
[0083] In one embodiment, the first device is a television, the second device is a mobile phone, the first volume is 15, the second volume is 50, the first speaker power range can be [8W~10W], the current speaker power value of the first device is 8W, which falls within the first speaker power range, and the target weight corresponding to the current speaker power value of the first device is 0.8. Therefore, the adjusted volume = 15 + 0.8 × (50 - 15) = 43. The television can set its own volume to 43 and send this volume information to the mobile phone, so that the mobile phone also sets its own volume to 43, thus achieving volume synchronization between the television and the mobile phone.
[0084] When the current speaker power value of the first device falls within the first speaker power range, it indicates that the current speaker power value is relatively low, and therefore the corresponding target weight is high. A low current speaker power value may result in insufficient volume or clarity. Therefore, adjusting the first volume of the first device using this target volume adjustment method can improve audio clarity and ensure that the first and second devices maintain volume synchronization, avoiding inconsistencies in sound.
[0085] In one embodiment, determining the adjusted volume according to the first volume, the second volume, and the target weight, and adjusting it according to the target volume adjustment method, may include: when the current speaker power value of the first device belongs to the range of the second speaker power, obtaining the difference between the second volume and the first volume; weighting the difference according to the target weight corresponding to the current speaker power value to obtain a fourth adjustment amount; and determining the difference between the second volume and the fourth adjustment amount as the adjusted volume.
[0086] The value in the power range of the second speaker is greater than the value in the power range of the first speaker. For example, the power range of the first speaker can be [8W~10W], and the power range of the second speaker can be [10W~15W].
[0087] The target volume adjustment method is determined based on which speaker power range the current speaker power value of the first device belongs to. When the current speaker power value of the first device belongs to the second speaker power range, the target volume adjustment method can be characterized by the following formula: Adjusted volume = Second volume - Target weight × (Second volume - First volume). Wherein, Target weight × (Second volume - First volume) is the fourth adjustment amount.
[0088] In one embodiment, the first device is a television, the second device is a mobile phone, the first volume is 15, the second volume is 50, and the power range of the second speaker can be [10W~15W]. The current speaker power value of the first device is 15W, which falls within the power range of the second speaker. The target weight corresponding to the current speaker power value of the first device is 0.4. Therefore, the adjusted volume = 50 - 0.4 × (50 - 15) = 36. The television can set its own volume to 36 and send the volume information of 36 to the mobile phone, so that the mobile phone can also set its own volume to 36, thereby achieving volume synchronization between the television and the mobile phone.
[0089] When the current speaker power value of the first device falls within the power range of the second speaker, it indicates that the current speaker power value is relatively high, and therefore the corresponding target weight is low. Adjusting the first volume using this target volume adjustment method allows the audio output device to output audio at a higher volume, resulting in clearer audio output. It also ensures that the first and second devices maintain volume synchronization, avoiding inconsistencies in sound.
[0090] In one embodiment, if the first device is an audio receiving device, after determining the adjusted volume, the method may further include: adjusting the first volume of the first device to the adjusted volume and sending the adjusted volume to the second device; receiving the audio transmitted by the second device; and playing the audio according to the adjusted volume.
[0091] Once the adjusted volume is determined, the first device can adjust its own initial volume to the adjusted volume and send the adjusted volume to the second device, so that the second device can also set its own volume to the adjusted volume. The first device, acting as an audio receiving device, can receive the audio sent by the second device and play the audio at the adjusted volume.
[0092] The first and second devices may play related audio simultaneously. For example, the first device might be a television, and the second a mobile phone. The first device might output dialogue, while the second device might enhance ambient sound effects or background music. If the volumes of the two devices are inconsistent, viewers may experience confusion about the sound sources, affecting their auditory experience. A consistent volume allows viewers to focus more easily on the content itself without having to frequently adjust the volume or switch devices.
[0093] The technical solution adopted in this application provides a volume adjustment that better suits the device's playback needs. This adjustment allows for smooth volume control while preserving overall sound quality. By synchronizing the volumes of the first and second devices, sound imbalance caused by different sound sources can be avoided. In multi-device audio systems (such as a TV and a mobile phone), maintaining consistent volume optimizes the collaborative capabilities of each device, ensuring more coordinated and smooth sound output.
[0094] Figure 4 This is a timing diagram of a volume adjustment method for a television connected to speakers, according to an embodiment of this application. (Refer to...) Figure 4 The TV can proactively initiate a connection to the speaker, and the speaker responds with "connection successful," thus establishing a communication link. Upon initial connection, the TV sends a registration notification to the speaker via the "cmd:notify" command. The speaker temporarily responds with "rsp:interim" to acknowledge receipt of the registration. After registration, the speaker can automatically trigger volume synchronization logic, sending the synchronization command again via "cmd:notify." The TV responds with "rsp:interim," completing an interactive loop and achieving state coordination between the TV and the speaker. The TV can detect its local first volume and obtain the second volume sent by the speaker. By comparing the difference between the first and second volumes, it can calculate the adjusted volume. The TV then synchronizes the adjusted volume to the speaker.
[0095] Figure 5 This is a schematic diagram illustrating the principle of a volume adjustment method for connecting a television to speakers, according to an embodiment of this application. (Refer to...) Figure 5 When the TV plays audio, its initial volume is 15. After successfully connecting to the speaker, the speaker can send a second volume of 50 to the TV. The TV identifies the speaker as the audio transmitter based on device type and service, and the audio is played through the speaker. The TV can obtain its local initial volume and the second volume sent by the speaker. By comparing the difference between the two volumes, it can calculate the adjusted volume and dynamically adjust the Bluetooth volume value accordingly, making the Bluetooth volume value closer to the speaker's playback requirements. This not only ensures the stability of the audio output volume but also guarantees that the volume is optimized to suit the speaker's hardware characteristics. Furthermore, the adjusted volume is simultaneously fed back to the Bluetooth speaker to ensure the coordination of the volumes of both devices, thereby achieving the best possible speaker playback volume.
[0096] Figure 6 This is a timing diagram of a volume adjustment method for a television connected to a mobile phone, according to an embodiment of this application. (Refer to...) Figure 6The mobile phone can proactively initiate a connection to the TV, and the TV responds with "connection successful," thus establishing a communication link. Upon initial connection, the mobile phone sends a registration notification to the TV via the "cmd:notify" command, and the TV temporarily responds with "rsp:interim" to confirm receipt of the registration. After registration, the mobile phone can automatically trigger volume synchronization logic, sending a synchronization command via "cmd:control," and the TV replies with "rsp:accepted," completing an interactive loop and achieving state coordination between the mobile phone and the TV. The TV can detect its local first volume and obtain the second volume sent by the mobile phone. By comparing the difference between the first and second volumes, it can calculate the adjusted volume. The TV then synchronizes the adjusted volume to the mobile phone.
[0097] Figure 7 This is a schematic diagram illustrating the principle of a volume adjustment method for connecting a television to a mobile phone, according to an embodiment of this application. (Refer to...) Figure 7 When the TV plays audio, its initial volume is set to 15. After the TV successfully connects to the phone, the phone can send a second volume setting of 50 to the TV. The TV identifies the other device as the phone based on the device type and service, and recognizes the TV as the audio receiver, playing the audio through the TV. The TV can obtain its local initial volume and the second volume sent by the phone. By comparing the difference between the two volumes, it can calculate a more suitable adjusted volume for TV playback, serving as a new reference value for Bluetooth volume adjustment. This new reference value ensures a smooth volume transition without abrupt changes. Furthermore, the second volume sent by the phone does not directly participate in the TV's Bluetooth volume setting; instead, the system returns a calculated adjusted volume, which is then synchronously fed back to the phone to ensure that the volumes of both devices remain synchronized.
[0098] To facilitate better implementation of the volume adjustment method of this application, this application also provides a volume adjustment device based on the above-described volume adjustment method. The meanings of the terms used are the same as in the volume adjustment method described above, and specific implementation details can be found in the description of the method embodiments.
[0099] Please see Figure 8 , Figure 8 This is a schematic diagram of the volume adjustment device provided in an embodiment of this application, wherein the volume adjustment device is applied to a first device, and the first device and the second device are respectively an audio receiving device and an audio transmitting device connected in communication; the device includes: The volume acquisition module 801 is used to acquire the first volume of the first device and the second volume of the second device; The type determination module 802 is used to determine the parameter type of the first device to be acquired based on whether the first device is the audio receiving device; The parameter acquisition module 803 is used to acquire the target parameters of the first device according to the parameter type. The weight determination module 804 is used to determine the target volume adjustment method and target weight corresponding to the target parameters of the first device; The volume determination module 805 is used to determine the adjusted volume according to the first volume, the second volume and the target weight, and according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
[0100] In one embodiment, when the first device is not the audio receiving device, the target parameters of the first device include a Bluetooth audio curve; the higher the gain mode of the Bluetooth audio curve, the lower the corresponding target weight; the volume determination module 805 includes: The first difference acquisition unit is used to acquire the difference between the second volume and the first volume when the Bluetooth audio curve is in high gain mode. The first adjustment amount acquisition unit is used to weight the difference according to the target weight corresponding to the high gain mode to obtain the first adjustment amount; The first volume determining unit is used to determine the sum of the first adjustment amount and the second volume as the adjusted volume.
[0101] In one embodiment, the volume determination module 805 includes: The scaling factor acquisition unit is used to acquire the scaling factor when the Bluetooth audio curve is in low gain mode; The second adjustment amount acquisition unit is used to perform weighted processing on the product of the second volume and the proportional coefficient according to the target weight corresponding to the low gain mode to obtain the second adjustment amount; The second volume determination unit is used to determine the sum of the second adjustment amount and the second volume as the adjusted volume.
[0102] In one embodiment, after determining the adjusted volume, the device further includes: The first volume synchronization module is used to adjust the first volume of the first device to the adjusted volume, and send the adjusted volume to the second device; An audio transmission module is used to send audio to the second device so that the second device plays the audio at the adjusted volume.
[0103] In one embodiment, when the first device is the audio receiving device, the target parameters of the first device include: multiple speaker power range intervals and the current speaker power value of the first device; the target weight is the weight corresponding to the current speaker power value of the first device; the volume determination module 805 includes: The second difference acquisition unit is used to acquire the difference between the second volume and the first volume when the current speaker power value of the first device is within the range of the first speaker power. The third adjustment amount acquisition unit is used to weight the difference according to the target weight corresponding to the current speaker power value to obtain the third adjustment amount; The third volume determination unit is used to determine the sum of the third adjustment amount and the first volume as the adjusted volume.
[0104] In one embodiment, the volume determination module 805 includes: The third difference acquisition unit is used to acquire the difference between the second volume and the first volume when the current speaker power value of the first device is within the range of the second speaker power. The fourth adjustment amount acquisition unit is used to weight the difference according to the target weight corresponding to the current speaker power value to obtain the fourth adjustment amount; The fourth volume determination unit is used to determine the difference between the second volume and the fourth adjustment amount as the adjusted volume; The value in the second speaker power range is greater than the value in the first speaker power range.
[0105] In one embodiment, after determining the adjusted volume, the device further includes: The second volume synchronization module is used to adjust the first volume of the first device to the adjusted volume, and send the adjusted volume to the second device; An audio receiving module is used to receive audio transmitted by the second device; An audio playback module is used to play the audio according to the adjusted volume.
[0106] By employing the technical solution of this application embodiment, when the first device and the second device are connected in communication, the first volume of the first device and the second volume of the second device can be obtained. The type of parameter to be obtained can be determined based on whether the first device is an audio receiving device, thereby obtaining the target parameter of that type for the first device. Based on the target parameter, a target volume adjustment method and a target weight are determined. Then, based on the first volume, the second volume, and the target weight, the adjusted volume is determined according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume. This adjusted volume is a volume determined by combining the first volume and the second volume, ensuring a smooth volume transition when the devices are connected in communication, thereby solving the problem of sudden volume changes and providing users with a good listening experience.
[0107] For specific limitations regarding the volume adjustment device, please refer to the limitations on the volume adjustment method above, which will not be repeated here. Each module in the aforementioned volume adjustment device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0108] In addition, this application also provides an electronic device, such as Figure 9 As shown, it illustrates the structural diagram of the electronic device involved in this application, specifically: The electronic device may include components such as a processor 901 with one or more processing cores and a memory 902 with one or more computer-readable storage media. Those skilled in the art will understand that... Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 901 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 902, and by calling data stored in the memory 902, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 901.
[0109] The memory 902 can be used to store software programs and modules. The processor 901 executes various functional applications and data processing by running the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 with access to the memory 902.
[0110] In one embodiment, the electronic device further includes a power supply 903 that supplies power to the various components. Preferably, the power supply 903 can be logically connected to the processor 901 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 903 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0111] In one embodiment, the electronic device may further include an input unit 904, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0112] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 901 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 902 according to the following instructions, and the processor 901 runs the applications stored in the memory 902, thereby implementing the steps in any of the volume adjustment methods provided in the embodiments of this application.
[0113] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0114] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the methods described in any embodiment of this application.
[0115] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of this application.
[0116] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the methods described in any embodiment of this application.
[0117] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0118] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0119] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to perform the steps of any of the volume adjustment methods provided in this application.
[0120] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0121] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0122] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the volume adjustment methods provided in this application, the beneficial effects that any of the volume adjustment methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0123] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device 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 terminal device. 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 terminal device that includes said element.
[0124] The above provides a detailed description of a volume adjustment method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A volume adjustment method, characterized in that, Applied to a first device, wherein the first device and the second device are respectively an audio receiving device and an audio transmitting device connected in a communication connection; the method includes: Obtain the first volume of the first device and the second volume of the second device; The parameter type of the first device to be acquired is determined based on whether the first device is the audio receiving device; According to the parameter type, obtain the target parameters of the first device; Determine the target volume adjustment method and target weight corresponding to the target parameters of the first device; Based on the first volume, the second volume, and the target weight, the adjusted volume is determined according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
2. The method according to claim 1, characterized in that, When the first device is not the audio receiving device, the target parameters of the first device include the Bluetooth audio curve; the higher the gain mode of the Bluetooth audio curve, the lower the corresponding target weight. The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the Bluetooth audio curve is in high-gain mode, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the high-gain mode to obtain the first adjustment amount; The sum of the first adjustment amount and the second volume is determined as the adjusted volume.
3. The method according to claim 2, characterized in that, The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the Bluetooth audio curve is in low gain mode, obtain the scaling factor; According to the target weight corresponding to the low gain mode, the product of the second volume and the proportional coefficient is weighted to obtain the second adjustment amount; The sum of the second adjustment amount and the second volume is determined as the adjusted volume.
4. The method according to claim 2 or 3, characterized in that, After determining the adjusted volume, the method further includes: The first volume of the first device is adjusted to the adjusted volume, and the adjusted volume is sent to the second device; Audio is sent to the second device so that the second device plays the audio at the adjusted volume.
5. The method according to claim 1, characterized in that, When the first device is the audio receiving device, the target parameters of the first device include: multiple speaker power range intervals and the current speaker power value of the first device; the target weight is the weight corresponding to the current speaker power value of the first device. The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the current speaker power value of the first device falls within the range of the first speaker power, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the current speaker power value to obtain the third adjustment amount; The sum of the third adjustment amount and the first volume is determined as the adjusted volume.
6. The method according to claim 5, characterized in that, The step of determining the adjusted volume according to the first volume, the second volume, and the target weight, and in accordance with the target volume adjustment method, includes: When the current speaker power value of the first device falls within the range of the second speaker power, the difference between the second volume and the first volume is obtained; The difference is weighted according to the target weight corresponding to the current speaker power value to obtain the fourth adjustment amount; The difference between the second volume and the fourth adjustment amount is determined as the adjusted volume; The value in the second speaker power range is greater than the value in the first speaker power range.
7. The method according to claim 5 or 6, characterized in that, After determining the adjusted volume, the method further includes: The first volume of the first device is adjusted to the adjusted volume, and the adjusted volume is sent to the second device; Receive audio transmitted by the second device; Play the audio according to the adjusted volume.
8. A volume control device, characterized in that, Applied to a first device, wherein the first device and the second device are respectively one of an audio receiving device and an audio transmitting device connected in communication; the apparatus includes: A volume acquisition module is used to acquire the first volume of the first device and the second volume of the second device; The type determination module is used to determine the parameter type of the first device to be acquired based on whether the first device is the audio receiving device; The parameter acquisition module is used to acquire the target parameters of the first device according to the parameter type. The weight determination module is used to determine the target volume adjustment method and target weight corresponding to the target parameters of the first device; The volume determination module is used to determine the adjusted volume according to the first volume, the second volume, and the target weight, and according to the target volume adjustment method, so that the audio receiving device outputs audio according to the adjusted volume.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the volume adjustment method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the volume adjustment method as described in any one of claims 1 to 7.