Volume adjustment method and device, medium and equipment
By establishing a communication connection between devices and using volume conversion rules, the synchronous response problem caused by the adjustable volume range of different devices is solved, and the synchronous adjustment and response of volume is achieved.
Patent Information
- Application Number
- CN202411149338.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-08
AI Technical Summary
Different devices have different volume adjustable ranges, resulting in the problem that when one device adjusts to the maximum or minimum volume, another device fails to respond synchronously.
By establishing a communication connection between two devices, receiving volume adjustment requests, obtaining the adjustment value of the current output volume, and converting it through preset volume conversion rules, ensuring that the adjustment value is synchronously adjusted within the adjustable range of each device, avoiding Response issues when maximum or minimum values.
The volume synchronous adjustment between the two devices is realized, ensuring that the device can respond and adjust in a timely manner in a timely manner when the volume adjustable range is different, avoiding response delays or errors.
Smart Images

Figure CN118915994A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission technology, and in particular to the field of volume adjustment technology, and in particular to a volume adjustment method, device, medium and equipment. Background Art
[0002] At present, most smart devices on the market can communicate with another device through wired or wireless connection to achieve remote control of other connected devices, including controlling volume, turning audio on and off, and other operations. The most common is to connect two devices, one of which is used as the audio output end and the other as the volume control end. For example, the output volume of the TV can be controlled through the mobile phone, and vice versa. However, due to the different adjustable volume ranges of different devices, when one device is adjusted to the maximum or minimum volume, the other device connected to it fails to respond synchronously. Summary of the invention
[0003] The embodiments of the present application provide a volume adjustment method, device, medium and equipment. The volume adjustment method provided in the embodiments of the present application can achieve synchronous adjustment of the output volume between two devices, and can avoid the problem that when the volume adjustable ranges of the two devices are different, one device reaches the maximum or minimum volume while the other device fails to respond synchronously.
[0004] An embodiment of the present application provides a volume adjustment method, which is applied to a first device and includes:
[0005] On the premise that a communication connection is established between the first device and the second device, receiving a volume adjustment request sent by the second device;
[0006] Acquire, according to the volume adjustment request, a first volume adjustment value corresponding to the current output volume of the second device;
[0007] Performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0008] The output volume of the first device is synchronously adjusted according to the second volume adjustment value.
[0009] In the volume adjustment method described in the embodiment of the present application, before receiving the volume adjustment request sent by the second device, the method further includes:
[0010] receiving a communication connection request sent by the second device, establishing a communication connection with the second device according to the communication connection request, and obtaining a first limit adjustment value indicating a maximum adjustable volume of the second device;
[0011] A volume conversion rule for performing a volume conversion operation is determined according to the first limit adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device.
[0012] In the volume adjustment method described in the embodiment of the present application, after obtaining the second volume adjustment value corresponding to the first volume adjustment value, the method further includes:
[0013] Determining whether the second volume adjustment value is a positive integer;
[0014] If not, rounding the second volume adjustment value to obtain a third volume adjustment value;
[0015] The step of synchronously adjusting the output volume of the first device according to the second volume adjustment value includes:
[0016] The output volume of the first device is synchronously adjusted according to the third volume adjustment value.
[0017] In the volume adjustment method described in the embodiment of the present application, before receiving the volume adjustment request sent by the second device, the method further includes:
[0018] Retrieving a list for storing configuration files in the second device;
[0019] Checking whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device;
[0020] If the target configuration file exists in the list, a volume conversion registration operation is performed on the second device, so that the first device can receive the volume adjustment request sent by the second device.
[0021] In the volume adjustment method described in the embodiment of the present application, after performing the volume conversion registration operation on the second device, the method further includes:
[0022] Determining whether a registration success confirmation message returned by the second device is received within a preset time period;
[0023] If the registration success confirmation information is received within the preset time period, allowing the second device to control the output volume of the first device;
[0024] If the registration success confirmation information is not received within the preset time period, the target configuration file is deleted from the list.
[0025] In the volume adjustment method described in the embodiment of the present application, after checking whether there is a target configuration file in the list, the method further includes:
[0026] If the target configuration file does not exist in the list, the target configuration file is added to the list again, and then the step of retrieving the list for storing configuration files in the second device is performed.
[0027] Accordingly, another aspect of the embodiment of the present application further provides a volume adjustment method, which is applied to a second device and includes:
[0028] On the premise that a communication connection is established between the second device and the first device, determining a first volume adjustment value corresponding to a current output volume;
[0029] A volume adjustment request is generated according to the first volume adjustment value, and the volume adjustment request is sent to the first device, so that the first device performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device, and the output volume of the first device is synchronously adjusted according to the second volume adjustment value.
[0030] Accordingly, another aspect of the embodiment of the present application further provides a volume adjustment device, which is applied to a first device, and the volume adjustment device includes:
[0031] A receiving module, configured to receive a volume adjustment request sent by a second device on the premise that a communication connection is established between the first device and the second device;
[0032] an acquisition module, configured to acquire, according to the volume adjustment request, a first volume adjustment value corresponding to a current output volume of the second device;
[0033] a conversion module, configured to perform a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0034] An adjustment module is used to synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0035] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the volume adjustment method as described above.
[0036] Correspondingly, another aspect of the embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the volume adjustment method as described above.
[0037] The embodiment of the present application provides a volume adjustment method, device, medium and equipment. The method receives a volume adjustment request issued by the second device under the premise of establishing a communication connection between the first device and the second device; obtains a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request; performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, and synchronously adjusts the output volume of the first device according to the second volume adjustment value. Using the volume adjustment method provided by the embodiment of the present application, it is possible to achieve synchronous volume adjustment between two devices that establish a communication connection. And because the volume conversion rule defines a first ratio between the first volume adjustment value and the first limit adjustment value indicating the maximum adjustable volume of the second device, which is equal to a second ratio between the second volume adjustment value and the second limit adjustment value indicating the maximum adjustable volume of the first device, it can avoid the problem that when the volume adjustable ranges of the two devices are different, one device reaches the maximum or minimum volume while the other device fails to respond synchronously. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0039] Figure 1 A flow chart of a volume adjustment method provided in an embodiment of the present application.
[0040] Figure 2 A flow chart of a volume adjustment method provided in an embodiment of the present application.
[0041] Figure 3 A flow chart of a volume adjustment method provided in an embodiment of the present application.
[0042] Figure 4A schematic diagram of the structure of a volume adjustment device provided in an embodiment of the present application.
[0043] Figure 5 Another structural schematic diagram of the volume adjustment device provided in an embodiment of the present application.
[0044] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0046] The embodiment of the present application provides a volume adjustment method, by which the volume can be adjusted synchronously between two devices that establish a communication connection. In addition, the problem that one device reaches the maximum or minimum volume value while the other device fails to respond synchronously can be avoided when the volume adjustable ranges of the two devices are different. The following are detailed descriptions.
[0047] The term "and / or" in this application can be a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0048] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0049] The volume adjustment method involved in the embodiment of the present application is mainly applied to electronic devices, which may be televisions, smart phones, tablet computers, laptops, desktop computers, smart speakers, smart watches, smart voice interaction devices, smart home appliances, vehicle-mounted terminals and servers, etc., which are not limited here. Optionally, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or an IoT cloud (Internet of Things cloud) that provides the ability to store, process and manage data generated by IoT devices, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here.
[0050] For ease of understanding, the specific process in the embodiments of the present application is described below. Figure 1 , Figure 1 A flow chart of an embodiment of a volume adjustment method provided in an embodiment of the present application.
[0051] exist Figure 1 In the illustrated embodiment, the method is applied to a first device and may include the following steps:
[0052] S101: On the premise that a communication connection is established between the first device and the second device, a volume adjustment request sent by the second device is received.
[0053] It should be noted that in order to enable data exchange between the first device and the second device, a stable communication connection needs to be established between the first device and the second device, and the communication connection can be achieved through a wired or wireless network. Specifically, the communication connection can be achieved through Wi-Fi, Bluetooth, USB or Ethernet, etc., which is not limited here.
[0054] In this embodiment, after the communication connection is successfully established between the first device and the second device, the user can initiate a volume adjustment operation on the second device to the first device. For example, the user can click a volume adjustment button or slide a volume control slider on the second device, so that while lowering or increasing the current output volume of the second device, a volume adjustment request is initiated to the first device, with the intention of controlling the current output volume of the first device.
[0055] In a specific embodiment, the first device may be a mobile phone, and the second device may be a television. After the mobile phone and the television are connected via Bluetooth, the mobile phone can remotely control the current output volume of the television, and vice versa, the television can also remotely control the current output volume of the mobile phone.
[0056] S102: Acquire, according to the volume adjustment request, a first volume adjustment value corresponding to a current output volume of the second device.
[0057] In this embodiment, after receiving the volume adjustment request sent by the second device, the first device will obtain the first volume adjustment value from the volume adjustment request. For example, after the user clicks a volume adjustment button or slides a volume control slider on the second device, the second device will record the current volume adjustment value corresponding to the volume adjustment button or volume control slider, and send it to the first device as the first volume adjustment value.
[0058] S103, performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating the maximum adjustable volume of the first device.
[0059] In this embodiment, after determining the first volume adjustment value, since the adjustable volume ranges of the first device and the second device are generally different, for example, the adjustable volume range of the first device is 0-10, while the adjustable volume range of the second device is 0-100. At this time, in order to enable the output volume of the first device and the second device to be adjusted synchronously, that is, the output volume corresponding to the first volume adjustment value input by the user on the second device can be equivalent to the output volume of the first device after adjustment. For example, assuming that the current first volume adjustment value of the second device is 80, the adjustable volume range of the second device is 0-100, and the adjustable volume range of the first device is 0-10, at this time, in order to enable the output volume of the first device to be equivalent to the output volume of the second device, the second volume adjustment value of the first device should be adjusted to 8.
[0060] In this embodiment, the first volume adjustment value is converted by using a preset volume conversion rule to directly obtain a second volume adjustment value corresponding to the first volume adjustment value. The volume conversion operation needs to satisfy a first ratio between the first volume adjustment value and a first limit adjustment value indicating the maximum adjustable volume of the second device, which is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating the maximum adjustable volume of the first device.
[0061] For example, assuming that the first limit adjustment value and the second limit adjustment value are A1 and A2 respectively, for any first volume adjustment value a1 input by the second device, the process of converting the first volume adjustment value into the second volume adjustment value of the first device through the volume conversion rule is as follows:
[0062] a2=a1 / A1*A2
[0063] Assuming A1=10, A2=100, a1=8, then a2=a1 / A1*A2=8 / 10*100=80.
[0064] It should be further explained that, in the present embodiment, by limiting the first ratio between the first volume adjustment value and the first limit adjustment value indicating the maximum adjustable volume of the second device to be equal to the second ratio between the second volume adjustment value and the second limit adjustment value indicating the maximum adjustable volume of the first device, not only can the volume be adjusted synchronously between the two devices that establish a communication connection, but also the problem that when the volume adjustable ranges of the two devices are different, one device reaches the maximum or minimum volume while the other device fails to respond synchronously can be avoided.
[0065] S104: synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0066] In this embodiment, after the first volume adjustment value is converted into a second volume adjustment value suitable for the second device, the output volume of the first device can be synchronously adjusted according to the second volume adjustment value, thereby achieving synchronous volume adjustment between the first device and the second device.
[0067] In some embodiments, based on Figure 1 Embodiment, also provides another volume adjustment method, see Figure 2 , the method comprising:
[0068] S201: The first device sends a second limit adjustment value to the second device.
[0069] S202: The first device receives a first limit adjustment value sent by the second device.
[0070] S203: Determine a volume conversion rule for performing a volume conversion operation according to the first limit adjustment value and the second limit adjustment value.
[0071] In this embodiment, since the volume conversion rule is determined based on the first limit adjustment value and the second limit adjustment value, it is necessary to exchange the first limit adjustment value and the second limit adjustment value with each other during the communication connection between the first device and the second device, so that the first device and the second device can locally determine the volume conversion rule according to the required parameters.
[0072] S204: Receive a volume adjustment request sent by the second device.
[0073] This step can be found in Figure 1 The content of step S101 can be understood by referring to the above, and will not be elaborated here.
[0074] S205: Acquire, according to the volume adjustment request, a first volume adjustment value corresponding to the current output volume of the second device.
[0075] This step can be found in Figure 1 The content of step S102 can be understood by referring to the figure, and will not be elaborated here.
[0076] S206: Receive a first volume adjustment value sent by the second device.
[0077] This step can be found in Figure 1 The content of step S102 can be understood by referring to the figure, and will not be elaborated here.
[0078] S207: Perform a volume conversion operation on the first volume adjustment value according to a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value.
[0079] This step can be found in Figure 1The content of step S103 can be understood by referring to the above, and will not be elaborated here.
[0080] S208: Synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0081] This step can be found in Figure 1 The content of step S104 can be understood by referring to the above, and will not be elaborated here.
[0082] In some embodiments, after step S103, the method further includes the following steps:
[0083] Determining whether the second volume adjustment value is a positive integer;
[0084] If not, the second volume adjustment value is rounded to obtain a third volume adjustment value, and the output volume of the first device is synchronously adjusted according to the third volume adjustment value.
[0085] In this embodiment, the main purpose is to deal with the situation where the second volume adjustment value is a non-positive integer during the volume conversion process. For example, after the first volume adjustment value 77 is converted, the second volume adjustment value is 7.7, and the minimum adjustable volume unit of the first device is 1. At this time, a system error may occur, resulting in the inability to normally adjust the output volume of the first device. In order to solve the above problem, when it is determined that the second volume adjustment value is a non-positive integer, the second volume adjustment value is rounded to the integer, and the second volume adjustment value 7.7 is rounded to obtain the third volume adjustment value 8, and then the output volume of the first device is synchronously adjusted according to the third volume adjustment value 8.
[0086] In some embodiments, Figure 3 As shown, before step S101, the method further includes the following steps:
[0087] S301: Retrieve a list for storing configuration files in the second device.
[0088] In this embodiment, it is mainly for special application scenarios. For example, when the first device is a mobile phone, the second device is a TV, and the first device and the second device are connected to each other via Bluetooth, according to the provisions of the Bluetooth Avrcp (audio and video remote control) protocol, if the TV wants to control the mobile phone to adjust the volume, the prerequisite is that the local list of the TV needs to store target-related configuration files that support the TV to control the volume of the mobile phone.
[0089] S302, checking whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device;
[0090] In this embodiment, the mobile phone obtains a list of all relevant configuration files supported by the storage television through the Get_Capabilities command, and checks whether there is a target configuration file in the list.
[0091] S303: If the target configuration file exists in the list, perform a volume conversion registration operation on the second device, so that the first device can receive the volume adjustment request sent by the second device.
[0092] In this embodiment, if it is determined that the target configuration file exists in the list, it means that the second device has the ability to control the volume adjustment of the first device. If the target configuration file does not exist in the list, it means that the second device does not have the ability to control the volume of the first device, and the first device rejects the volume adjustment request initiated by the second device.
[0093] It is necessary to further explain the above special application scenario. When the first device is a mobile phone and the second device is a TV, the mobile phone needs to regularly or irregularly perform volume conversion registration operations with the TV. Only after the volume conversion registration is completed can the mobile phone normally receive the volume adjustment request sent by the TV and accept the volume adjustment control of the TV.
[0094] Based on the above introduction to special application scenarios, it can be seen that in order to avoid the problem that the mobile phone cannot receive the registration success confirmation information in time, thereby automatically deleting the target configuration file, causing the mobile phone to not accept the volume adjustment control from the TV when it receives the volume adjustment request initiated by the TV next time, it is necessary to retrieve the list for storing configuration files in the TV before receiving the volume adjustment request from the TV; check whether there is a target configuration file in the list; if there is a target configuration file in the list, perform a volume conversion registration operation on the TV so that the mobile phone can receive the volume adjustment request sent by the TV.
[0095] In some embodiments, after step S303, the method further includes:
[0096] S304: Determine whether registration success confirmation information returned by the second device is received within a preset time period.
[0097] It should be explained that according to the Bluetooth Avrcp (audio and video remote control) protocol, if the TV wants to control the mobile phone to adjust the volume, in addition to requiring the mobile phone to regularly or irregularly register the volume conversion to the TV, it also needs to be able to receive the registration success confirmation information returned by the TV. Only after completing the volume conversion registration and receiving the registration success confirmation information, can the mobile phone normally receive the volume adjustment request sent by the TV and accept the volume adjustment control of the TV.
[0098] Therefore, in order to determine whether the mobile phone can accept the volume adjustment control of the TV, it is necessary to determine whether the registration success confirmation information returned by the TV is received within a preset time.
[0099] It should be further explained that the purpose of the mobile phone registering the volume conversion to the TV is to enable the mobile phone to normally receive the volume adjustment request initiated by the TV, and the mobile phone can receive the registration success confirmation information sent by the TV within the specified time in order to determine whether the mobile phone can accept the volume adjustment control of the TV.
[0100] S305: If the registration success confirmation information is not received within the preset time period, deleting the target configuration file from the list.
[0101] In this embodiment, if the registration success confirmation message is not received within the preset time, the target configuration file is deleted from the list, so that the mobile phone does not accept the volume adjustment control from the TV when it receives the volume adjustment request initiated by the TV next time. If the registration success confirmation message is received within the preset time, the TV is allowed to control the output volume of the mobile phone.
[0102] S306: Receive a volume adjustment request sent by the second device.
[0103] This step can be found in Figure 1 The content of step S101 can be understood by referring to the above, and will not be elaborated here.
[0104] S307: If the target configuration file does not exist in the list, add the target configuration file to the list again.
[0105] It should be noted that, since there may be data delay in the registration success confirmation information returned by the TV, the mobile phone cannot receive the registration success confirmation information in time, so that the mobile phone automatically deletes the target configuration file from the list, causing the mobile phone to not accept the volume adjustment control of the TV the next time it receives the volume adjustment request initiated by the TV. Therefore, in this embodiment, if the mobile phone can normally receive the volume adjustment request issued by the TV, and the target configuration file does not exist in the list, it means that the TV has the ability to control the volume adjustment of the mobile phone at this time, but because the mobile phone did not receive the registration success confirmation information sent by the TV in time, the target configuration file in the list was deleted. In order to enable the mobile phone to normally accept the volume adjustment control of the TV, the above purpose can be achieved by re-adding the target configuration file to the list, that is, to enable the mobile phone to normally accept the volume adjustment control of the TV.
[0106] S308: Acquire the sent first volume adjustment value, convert the first volume adjustment value into a second volume adjustment value, and then adjust the output volume of the first device.
[0107] This step can be found in Figure 1The contents of steps S102-S104 can be understood by referring to the figure, and will not be elaborated here.
[0108] In another embodiment, the method can also be applied to a second device. Figure 1 In the illustrated embodiment, the method comprises the following steps:
[0109] S401, on the premise that a communication connection is established between the second device and the first device, determine a first volume adjustment value corresponding to a current output volume; generate a volume adjustment request according to the first volume adjustment value, and send the volume adjustment request to the first device, so that the first device performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device, and the output volume of the first device is synchronously adjusted according to the second volume adjustment value.
[0110] This step can be found in Figure 1 The contents of steps S101-S104 can be understood by referring to the figure, and will not be elaborated here.
[0111] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0112] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0113] As can be seen from the above, the volume adjustment method provided in the embodiment of the present application receives a volume adjustment request issued by the second device under the premise of establishing a communication connection between the first device and the second device; according to the volume adjustment request, obtains a first volume adjustment value corresponding to the current output volume of the second device; performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value whose volume adjustment amplitude is consistent with the first volume adjustment value, and synchronously adjusts the output volume of the first device according to the second volume adjustment value. Using the volume adjustment method provided in the embodiment of the present application, it is possible to achieve synchronous volume adjustment between two devices that have established a communication connection. And it can avoid the problem that when the adjustable volume ranges of the two devices are different, one device reaches the maximum or minimum volume value while the other device fails to respond synchronously.
[0114] An embodiment of the present application further provides a volume adjustment device, which can be integrated into an electronic device.
[0115] See also Figure 4 , Figure 4 A schematic diagram of the structure of a volume adjustment device provided in an embodiment of the present application. The volume adjustment device 30 may include:
[0116] The receiving module 31 is used to receive a volume adjustment request sent by the second device on the premise that a communication connection is established between the first device and the second device;
[0117] An acquisition module 32, configured to acquire, according to the volume adjustment request, a first volume adjustment value corresponding to a current output volume of the second device;
[0118] a conversion module 33, configured to perform a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0119] The adjustment module 34 is configured to synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0120] In some embodiments, the device also includes a determination module, which is used to receive a communication connection request sent by the second device, establish a communication connection with the second device according to the communication connection request, and obtain a first limit adjustment value indicating the maximum adjustable volume of the second device; determine a volume conversion rule for performing a volume conversion operation according to the first limit adjustment value and the second limit adjustment value indicating the maximum adjustable volume of the first device.
[0121] In some embodiments, the apparatus further comprises a determination module for determining whether the second volume adjustment value is a positive integer; if not, rounding the second volume adjustment value to obtain a third volume adjustment value for synchronously adjusting the output volume of the first device.
[0122] In some embodiments, the apparatus further includes a viewing module, configured to retrieve a list for storing configuration files in the second device; to check whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device; and if the target configuration file exists in the list, performing a volume conversion registration operation on the second device, so that the first device can receive a volume adjustment request sent by the second device.
[0123] In some embodiments, the device also includes a registration module, which is used to determine whether the registration success confirmation information returned by the second device is received within a preset time period; if the registration success confirmation information is received within the preset time period, the second device is allowed to control the output volume of the first device; if the registration success confirmation information is not received within the preset time period, the target configuration file is deleted from the list.
[0124] In some embodiments, the apparatus further includes an adding module for re-adding the target configuration file to the list if the target configuration file does not exist in the list, and then executing the step of obtaining a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request.
[0125] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0126] As can be seen from the above, the volume adjustment device 30 provided in the embodiment of the present application, wherein the receiving module 31 is used to receive a volume adjustment request issued by the second device on the premise that a communication connection is established between the first device and the second device; the obtaining module 32 is used to obtain a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request; the conversion module 33 is used to perform a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating the maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating the maximum adjustable volume of the first device; and the adjusting module 34 is used to synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0127] See also Figure 5 , Figure 5 Another structural diagram of the volume adjustment device provided in an embodiment of the present application is shown in FIG. 30. The volume adjustment device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a receiving module 31, an acquisition module 32, a conversion module 33, and an adjustment module 34. For example, the structures and connection relationships of the above components may be as follows:
[0128] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0129] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.
[0130] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:
[0131] A receiving instruction is used to receive a volume adjustment request sent by the second device on the premise that a communication connection is established between the first device and the second device;
[0132] An acquisition instruction, used to acquire a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request;
[0133] an adjustment instruction, for performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0134] The adjustment instruction is used to synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0135] In some embodiments, the program also includes a determination instruction for receiving a communication connection request sent by the second device, establishing a communication connection with the second device according to the communication connection request, and obtaining a first limit adjustment value indicating the maximum adjustable volume of the second device; and determining a volume conversion rule for performing a volume conversion operation according to the first limit adjustment value and the second limit adjustment value indicating the maximum adjustable volume of the first device.
[0136] In some embodiments, the program further includes a determination instruction for determining whether the second volume adjustment value is a positive integer; if not, performing a rounding operation on the second volume adjustment value.
[0137] In some embodiments, the program also includes a viewing instruction for retrieving a list for storing configuration files in the second device; checking whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device; if the target configuration file exists in the list, performing a volume conversion registration operation on the second device so that the first device can receive the volume adjustment request sent by the second device.
[0138] In some embodiments, the program further includes an adding instruction for re-adding the target configuration file to the list if the target configuration file does not exist in the list, and then executing the step of obtaining a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request.
[0139] In some embodiments, the program also includes registration instructions for determining whether a registration success confirmation message returned by the second device is received within a preset time period; if the registration success confirmation message is received within the preset time period, the second device is allowed to control the output volume of the first device; if the registration success confirmation message is not received within the preset time period, the target configuration file is deleted from the list.
[0140] The embodiment of the present application also provides an electronic device, which may be a server, a smart phone, a television, a computer, a tablet computer, or other device.
[0141] See also Figure 6 , Figure 6 The electronic device 1200 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the volume adjustment method provided in the above embodiment. The electronic device 1200 can be a television, a smart phone, or a tablet computer.
[0142] like Figure 6As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 6 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.
[0144] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the volume adjustment method in the above embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected to adjust the volume according to the current scene of the electronic device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can perceive incoming calls, thereby improving the intelligence of the electronic device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0145] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0146] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 6 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.
[0147] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.
[0148] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.
[0149] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 6 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0150] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.
[0151] The electronic device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0152] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:
[0153] A receiving instruction is used to receive a volume adjustment request sent by the second device on the premise that a communication connection is established between the first device and the second device;
[0154] An acquisition instruction, used to acquire a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request;
[0155] an adjustment instruction, for performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0156] The adjustment instruction is used to synchronously adjust the output volume of the first device according to the second volume adjustment value.
[0157] In some embodiments, the program also includes a determination instruction for receiving a communication connection request sent by the second device, establishing a communication connection with the second device according to the communication connection request, and obtaining a first limit adjustment value indicating the maximum adjustable volume of the second device; and determining a volume conversion rule for performing a volume conversion operation according to the first limit adjustment value and the second limit adjustment value indicating the maximum adjustable volume of the first device.
[0158] In some embodiments, the program further includes a determination instruction for determining whether the second volume adjustment value is a positive integer; if not, performing a rounding operation on the second volume adjustment value.
[0159] In some embodiments, the program also includes a viewing instruction for retrieving a list for storing configuration files in the second device; checking whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device; if the target configuration file exists in the list, performing a volume conversion registration operation on the second device so that the first device can receive the volume adjustment request sent by the second device.
[0160] In some embodiments, the program further includes an adding instruction for re-adding the target configuration file to the list if the target configuration file does not exist in the list, and then executing the step of obtaining a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request.
[0161] In some embodiments, the program also includes registration instructions for determining whether a registration success confirmation message returned by the second device is received within a preset time period; if the registration success confirmation message is received within the preset time period, the second device is allowed to control the output volume of the first device; if the registration success confirmation message is not received within the preset time period, the target configuration file is deleted from the list.
[0162] The embodiment of the present application also provides an electronic device, which may be a smart phone, a television, a computer, or other device.
[0163] As can be seen from the above, the embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps:
[0164] On the premise that a communication connection is established between the first device and the second device, receiving a volume adjustment request sent by the second device;
[0165] Acquire, according to the volume adjustment request, a first volume adjustment value corresponding to the current output volume of the second device;
[0166] Performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device;
[0167] The output volume of the first device is synchronously adjusted according to the second volume adjustment value.
[0168] In another embodiment, the electronic device 1200 further performs the following steps:
[0169] On the premise that a communication connection is established between the second device and the first device, determining a first volume adjustment value corresponding to a current output volume;
[0170] A volume adjustment request is generated according to the first volume adjustment value, and the volume adjustment request is sent to the first device, so that the first device performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device, and the output volume of the first device is synchronously adjusted according to the second volume adjustment value.
[0171] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the volume adjustment method described in any one of the above embodiments.
[0172] It should be noted that, for the volume adjustment method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the volume adjustment method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the volume adjustment method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0173] For the volume adjustment device of the embodiment of the present application, each functional module thereof can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0174] The volume adjustment method, device, medium and equipment provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A volume adjustment method, applied to a first device, characterized in that: include: On the premise that a communication connection is established between the first device and the second device, receiving a volume adjustment request sent by the second device; Acquire, according to the volume adjustment request, a first volume adjustment value corresponding to the current output volume of the second device; Performing a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device; The output volume of the first device is synchronously adjusted according to the second volume adjustment value.
2. The volume adjustment method according to claim 1, characterized in that: Before receiving the volume adjustment request sent by the second device, the method further includes: receiving a communication connection request sent by the second device, establishing a communication connection with the second device according to the communication connection request, and obtaining a first limit adjustment value indicating a maximum adjustable volume of the second device; A volume conversion rule for performing a volume conversion operation is determined according to the first limit adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device.
3. The volume adjustment method according to claim 2, characterized in that: After obtaining the second volume adjustment value corresponding to the first volume adjustment value, the method further includes: Determining whether the second volume adjustment value is a positive integer; If not, rounding the second volume adjustment value to obtain a third volume adjustment value; The step of synchronously adjusting the output volume of the first device according to the second volume adjustment value includes: The output volume of the first device is synchronously adjusted according to the third volume adjustment value.
4. The volume adjustment method according to claim 1, characterized in that: Before receiving the volume adjustment request sent by the second device, the method further includes: Retrieving a list for storing configuration files in the second device; Checking whether there is a target configuration file in the list, wherein the target configuration file is used to indicate that the second device is allowed to control the output volume of the first device; If the target configuration file exists in the list, a volume conversion registration operation is performed on the second device, so that the first device can receive the volume adjustment request sent by the second device.
5. The volume adjustment method according to claim 4, characterized in that: After performing the volume conversion registration operation on the second device, the method further includes: Determining whether a registration success confirmation message returned by the second device is received within a preset time period; If the registration success confirmation information is received within the preset time period, allowing the second device to control the output volume of the first device; If the registration success confirmation information is not received within the preset time period, the target configuration file is deleted from the list.
6. The volume adjustment method according to claim 5, characterized in that: After receiving the volume adjustment request sent by the second device, the method further includes: If the target configuration file does not exist in the list, the target configuration file is added to the list again, and then the step of acquiring a first volume adjustment value corresponding to the current output volume of the second device according to the volume adjustment request is performed.
7. A volume adjustment method, applied to a second device, characterized in that: include: On the premise that a communication connection is established between the second device and the first device, determining a first volume adjustment value corresponding to a current output volume; A volume adjustment request is generated according to the first volume adjustment value, and the volume adjustment request is sent to the first device, so that the first device performs a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device, and the output volume of the first device is synchronously adjusted according to the second volume adjustment value.
8. A volume adjustment device, applied to a first device, characterized in that: The volume adjustment device comprises: A receiving module, configured to receive a volume adjustment request sent by a second device on the premise that a communication connection is established between the first device and the second device; an acquisition module, configured to acquire, according to the volume adjustment request, a first volume adjustment value corresponding to a current output volume of the second device; a conversion module, configured to perform a volume conversion operation on the first volume adjustment value through a preset volume conversion rule to obtain a second volume adjustment value corresponding to the first volume adjustment value, wherein a first ratio between the first volume adjustment value and a first limit adjustment value indicating a maximum adjustable volume of the second device is equal to a second ratio between the second volume adjustment value and a second limit adjustment value indicating a maximum adjustable volume of the first device; An adjustment module is used to synchronously adjust the output volume of the first device according to the second volume adjustment value.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the volume adjustment method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The device comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the volume adjustment method according to any one of claims 1 to 7.
Citation Information
Cited By
Audio playing method, device and system, storage medium and sound box equipment
CN120512635A
