Volume synchronization method, device, electronic device and storage medium

By obtaining volume gain information from the server and adjusting the volume gains at the audio source and audio receiver, the problem of inconsistent volumes at different audio receivers is solved, and the efficiency and consistency of audio playback are improved.

CN115473927BActive Publication Date: 2024-11-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110570013.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-11-12
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

When the audio source is transmitted to different audio receivers through Bluetooth transmission mode, due to the inconsistent setting volume, the volume adjustment is required frequently, which affects the audio playback efficiency.

Method used

By obtaining volume gain information from the server, adjusting the local volume gain of the audio source and audio receiver to maintain a unified volume gain and achieving volume synchronization.

Benefits of technology

Reduces frequent operation of volume adjustment, improves the efficiency of audio playback, and ensures consistency of volume on different audio receiving ends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115473927B_ABST
    Figure CN115473927B_ABST
Patent Text Reader

Abstract

The present application discloses a volume synchronization method, device, electronic device and storage medium. The method includes: obtaining a first volume gain from a server; the first volume gain represents the volume gain corresponding to the account logged in to the audio source end; according to the first volume gain, adjusting the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio playback, and in particular to a volume synchronization method, device, electronic device, and storage medium. Background Art

[0002] In the related art, when an audio source transmits audio to different audio receivers for playback via Bluetooth transmission mode, since the volume settings of different audio receivers are different, it is necessary to readjust the volume on the audio source or the audio receiver to play the audio at an appropriate volume. This operation is cumbersome and affects the audio playback efficiency. Summary of the Invention

[0003] In view of this, embodiments of the present application provide a volume synchronization method, device, electronic device, and storage medium to at least solve the problem of frequent volume adjustment when audio is played on different audio receiving ends in the related art.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] An embodiment of the present application provides a volume synchronization method, the method comprising:

[0006] Obtaining a first volume gain from the server; the first volume gain represents a volume gain corresponding to an account logged into the audio source end;

[0007] According to the first volume gain, a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end are adjusted.

[0008] The present application also provides another volume synchronization method, which includes:

[0009] Obtain volume information uploaded by the audio source, and determine and store a first volume gain; wherein the volume information includes a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; the first volume gain represents the volume gain corresponding to the account logged in to the audio source.

[0010] The embodiment of the present application further provides a volume synchronization device, comprising:

[0011] A first acquiring unit is configured to acquire a first volume gain from a server; the first volume gain represents a volume gain corresponding to an account logged into the audio source terminal;

[0012] An adjusting unit is configured to adjust a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end according to the first volume gain.

[0013] The present application also provides another volume synchronization device, including:

[0014] A second acquisition unit is configured to acquire volume information uploaded by an audio source, determine, and store a first volume gain; wherein the volume information includes a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; and the first volume gain represents a volume gain corresponding to an account logged into the audio source.

[0015] An embodiment of the present application further provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor,

[0016] The processor is configured to execute the steps of any of the above methods when running the computer program.

[0017] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0018] In an embodiment of the present application, a first volume gain is obtained from a server; the first volume gain represents the volume gain corresponding to the account logged in to the audio source end; according to the first volume gain, the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end are adjusted, and according to the corresponding volume gain under the same account, when the audio source end is connected to different audio receiving ends, a unified volume gain can be maintained for audio playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the implementation flow of a volume synchronization method provided in one embodiment of the present application;

[0020] Figure 2 A schematic diagram of an audio source end group under the same account information provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of the implementation flow of a volume synchronization method provided in one embodiment of the present application;

[0022] Figure 4 A schematic diagram of audio gain in absolute volume mode provided by an embodiment of the present application;

[0023] Figure 5 A schematic diagram of audio gain when an audio player is connected and switched to multiple audio source terminals in absolute volume mode according to an embodiment of the present application;

[0024] Figure 6 A schematic diagram of a volume gain flow in a relative volume mode according to an embodiment of the present application;

[0025] Figure 7 A schematic diagram of volume gain when an audio receiving end switches between multiple audio source ends in relative volume mode provided by an embodiment of the present application;

[0026] Figure 8 A schematic structural diagram of a volume synchronization device provided in one embodiment of the present application;

[0027] Figure 9 A schematic structural diagram of a volume synchronization device provided in yet another embodiment of the present application;

[0028] Figure 10 A schematic diagram of the hardware structure of an electronic device is provided for one embodiment of the present application. DETAILED DESCRIPTION

[0029] The present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0031] It should be noted that the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0032] In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0033] The embodiment of the present application provides a volume synchronization method. Figure 1 This is a flow chart of the volume synchronization method according to an embodiment of the present application. Figure 1 As shown, the method includes:

[0034] S101: Obtain a first volume gain from a server; the first volume gain represents the volume gain corresponding to the account logged into the audio source end.

[0035] Here, the server stores the first volume gain corresponding to different account information. When the audio source end logged in to the same account is connected to the audio receiving end, the first volume gain corresponding to the account logged in to the audio source end is obtained from the server. The first volume can be regarded as the volume gain adapted by the user during the audio playback process. In actual applications, the adapted volume gain corresponding to different users is different, and different users can be distinguished by account information.

[0036] S102: Adjust a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end according to the first volume gain.

[0037] Here, according to the first volume gain, the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end are adjusted. In actual applications, only the first local volume gain can be adjusted, or only the second local volume gain can be adjusted, or the first local volume gain and the second local volume gain can be adjusted at the same time, so that the volume gain of the audio finally played is the first volume gain. Since the first volume gain is the volume gain adapted by the user during the audio playback process, when the audio is played with the first volume gain, the user is very likely not to adjust the audio volume again. When adjusting the second local volume gain, the audio source end can directly adjust the second local volume gain of the audio receiving end through the Bluetooth connection. In actual applications, when the audio source end is connected to multiple audio receiving ends at the same time, it is also necessary to adjust the first local volume gain and / or the second local volume gain so that different audio receiving ends uniformly use the first volume gain to play the corresponding audio, so that the audio volume gain heard by the user is uniform. In addition, when multiple audio sources are connected to multiple audio receiving ends under the same account information, it is also applicable to adjust the first local volume gain and the second local volume gain according to the first volume gain. In actual applications, such as Figure 2 As shown, Figure 2 An audio source end group under the same account information is shown. The audio source end group may include multiple different audio source ends. Different audio source ends are bound through account information. When any audio source end under the same account information is connected to any audio receiving end for audio playback, the audio volume gain finally played by the connected audio receiving end can be uniformly set to the user's commonly used volume gain based on the first volume gain corresponding to the account information stored in the server.

[0038] In the above embodiment, a first volume gain is obtained from the server; the first volume gain represents the volume gain corresponding to the account logged in to the audio source end; according to the first volume gain, the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end are adjusted, and the audio gain can be adjusted by the user-adapted volume gain stored in the cloud, so that the volume gain of the audio played between different audio source ends and audio connection ends under the same user is unified, the uniqueness of the volume gain of the audio output is maintained, and the user listens to the audio at the volume gain adapted to his own.

[0039] In one embodiment, if Figure 3 As shown, adjusting the first local volume gain of the audio source end and / or the local volume gain of the second audio receiving end according to the first volume gain includes:

[0040] S301: Determine the volume gain mode used by the audio source and the audio sink.

[0041] Here, different volume gain modes may be adopted during the audio playback after different audio source ends are connected to different audio receiving ends. For example, the volume gain mode used by the audio source end and the audio receiving end can be adjusted by the audio source end, for example, by selecting the corresponding volume gain mode in the playback settings, or it can be determined by the volume gain mode supported by the audio source end and the audio receiving end. For example, when there is an audio source end and an audio receiving end that only supports one of the volume gain modes, the supported volume gain mode will eventually be adopted. The volume gain mode will affect the mode for adjusting the volume gain, so it is necessary to determine the volume gain mode used by the audio source end and the audio receiving end. In actual applications, the volume gain mode can be interactively confirmed during the connection process between the audio source end and the audio receiving end, and the volume gain mode used when playing audio can be confirmed through prompt information.

[0042] S302: Adjust a first local volume gain and / or a second local volume gain based on the volume gain mode and the first volume gain.

[0043] Here, the volume gain mode determines different schemes for adjusting the first local volume gain and the second local volume gain. The first volume gain is the target volume gain for adjustment. According to the volume gain mode and the first volume gain, the first local volume gain and / or the second local volume gain are adjusted accordingly so that the final volume gain of the adjusted audio is the first volume gain. In actual applications, different volume gain modes correspond to different volume gain adjustment strategies. For example, the adjusted volume gain can be the first volume gain by simultaneously changing the first local volume gain of the audio source end and the local volume gain of the second audio receiving end. Alternatively, the adjusted volume gain can be the first volume gain by changing the first local volume gain of the audio source end or by changing the second local volume gain of the audio receiving end.

[0044] In the above embodiment, the volume gain mode used by the audio source end and the audio receiving end is determined; based on the volume gain mode and the first volume gain, the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end is adjusted. The local volume gain of the audio source end and / or the local volume gain of the audio receiving end can be adjusted according to different volume gain modes, so that the audio can be output more accurately based on the volume adapted by the user.

[0045] In one embodiment, adjusting the first local volume gain and / or the second local volume gain based on the volume gain mode and the first volume gain includes:

[0046] When the volume gain mode is the absolute volume mode, both the first local volume gain and the second local volume gain are adjusted to the first volume gain.

[0047] Here, as Figure 4 As shown, Figure 4The figure shows an audio gain diagram of the absolute volume mode. The audio source first decodes the audio source data to generate audio data in PCM format. The audio source encodes the audio data in PCM format so that the audio data is converted into a coding format such as SBC or AAC that supports Bluetooth transmission. In the process of decoding the audio source data to generate audio data in PCM format and encoding the audio data in PCM format to generate audio data in a coding format for Bluetooth transmission, the volume gain of the audio data is 1, that is, the audio source does not perform volume gain processing on the audio data. The audio source transmits the audio data to the audio receiving end through the Bluetooth channel. The audio receiving end decodes the received audio data to obtain audio data in PCM format. The audio receiving end performs gain processing when playing audio data in PCM format. For example, when the local volume gain of the audio source and the audio receiving end is A, the volume gain of the audio data finally played is A. When the local volume gain of the audio source or the audio receiving end changes, the same local volume gain will be set synchronously with each other, such as Figure 5 As shown, Figure 5 A schematic diagram of audio gain when the audio playback end is connected and switched with multiple audio source ends in absolute volume mode is shown. The local volume gain of the first audio source end is A, and the local volume gain of the second audio source end is B. When the first audio source end is connected to the audio playback end, the final volume gain of the audio is A. When the second audio source end is connected to the audio playback end, the final volume gain of the audio is B. In this case, when the audio playback end switches the connected audio source end, the volume gain of the output audio will be different. In order to ensure that the audio can be output with a uniform volume gain, the first local volume gain and the second local volume gain are simultaneously adjusted to the first volume gain, so that the volume gain of the audio finally played can be the first volume gain.

[0048] In the above embodiment, when the volume gain mode is the absolute volume mode, the first local volume gain and the second local volume gain are both adjusted to the first volume gain. By setting the local volume gain of the audio source end and the local volume gain of the audio receiving end at the same time, the audio source end and the audio playback end output audio with a uniform volume gain in the absolute volume mode.

[0049] In one embodiment, adjusting the first local volume gain and / or the second local volume gain based on the volume gain mode and the first volume gain includes:

[0050] When the volume gain mode is the relative volume mode, the first local volume gain and / or the second local volume gain is adjusted; wherein the volume gain obtained by adding the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

[0051] Here, as Figure 6 As shown, Figure 6 The figure shows a volume gain flow chart of the relative volume mode. In the relative volume mode, the local volume gain of the audio source end and the local volume gain of the audio receiving end are relatively independent. The audio source end first decodes the audio source data to generate audio data in PCM format. At this time, the volume gain of the default PCM format audio data is 1. The gain operation of the local volume gain of the audio source end is performed on the PCM format audio data. At this time, the volume gain of the PCM format audio data is A. The supported Bluetooth audio encoding operation is performed on the gained PCM format audio data, and it is converted into Bluetooth encoding formats such as SBC or ACC. The audio data in Bluetooth encoding format with a volume gain of A is transmitted to the audio receiving end through the Bluetooth channel between the audio source end and the audio receiving end. The audio receiving end decodes the audio data in Bluetooth encoding format into audio For audio data in PCM format with a volume gain of A, the audio receiving end will perform a gain operation on the audio data according to the local volume gain before the audio is played. The volume gain of the audio output by the audio receiving end is obtained by superimposing the local volume gain of the audio source end and the local volume gain of the audio receiving end. In practical applications, the volume gain after the gain superposition can be determined according to a set algorithm. For example, the local volume gain A of the audio source end and the local gain A' of the audio receiving end are superimposed according to a certain algorithm to obtain the final volume gain of the audio, wherein the volume gain of the audio data finally played is f(A, A'), wherein f(A, A') corresponds to the volume gain superposition algorithm in the relative volume mode. The final volume gain can be obtained by performing the corresponding algorithm calculation using f(A, A'). When in the relative volume mode, the local volume gain of the audio receiving end is fixed, but the volume gain of the final played audio data will change due to the local volume gain of different audio source ends. As Figure 7 As shown, Figure 7A volume gain diagram is shown when an audio receiving end switches with multiple audio source ends in relative volume mode. The local volume gain of the first audio source end is A, the local volume gain of the second audio source end is B, and the local volume gain of the audio receiving end is C. When the first audio source end is connected to the audio receiving end, the volume gain of the audio played is f(A, C). When the second audio source end is connected to the audio receiving end, the volume gain of the audio played is f(B, C). In this case, when the audio receiving end switches the connection between audio source ends with different local volume gains, the volume gain of the played audio will be different. Moreover, since the final volume gain of the audio is obtained by superimposing the local volume gain of the audio source end and the local volume gain of the audio receiving end, in this case, in order to make the final volume gain of the audio the first volume gain, the first local volume gain and / or the second local volume gain can be adjusted so that the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first local volume.

[0052] In the above embodiment, when the volume gain mode is the relative volume mode, the first local volume gain and / or the second local volume gain is adjusted; wherein, the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain, and the local volume gain of the audio source end and / or the local volume gain of the audio receiving end can be adjusted according to the relative volume mode, so that the volume gain of the audio finally played is the volume adapted by the user, so that audio with a uniform volume gain can be output when switching between different audio source ends and different audio playback ends.

[0053] In one embodiment, adjusting the first local volume gain and / or the second local volume gain includes:

[0054] adjusting the first local volume gain according to the current second local volume gain and the first volume gain;

[0055] adjusting the second local volume gain according to the current first local volume gain and the first volume gain; or,

[0056] Adjust the first local volume gain and the second local volume gain simultaneously.

[0057] Here, since, in relative volume mode, the volume gain obtained by adding the first and second local volume gains is the final audio volume gain, multiple adjustment schemes are available for the first and second local volume gains to ensure that the final audio volume gain is the first volume gain. First, the second local volume gain at the audio receiving end can be maintained unchanged while the first local volume gain is adjusted. The first volume gain is obtained by adding the adjusted first and second local volume gains. Alternatively, in relative volume mode, the first local volume gain can be maintained unchanged while the second local volume gain is adjusted. The first volume gain is obtained by adding the adjusted first and second local volume gains. Furthermore, the first and second local volume gains can be adjusted simultaneously. The first volume gain is obtained by adding the adjusted first and second local volume gains.

[0058] In the above embodiment, the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; the second local volume gain is adjusted according to the current first local volume gain and the first volume gain; or the first local volume gain and the second local volume gain are adjusted simultaneously. According to the relationship between the local gain of the audio source end and the local gain of the audio receiving end and the final volume gain of the audio in the relative volume mode, there can be multiple adjustment methods, thereby meeting different application scenarios, so that different audio source ends and different audio receiving ends can also output audio with a uniform volume gain when switching.

[0059] In one embodiment, the method further comprises:

[0060] When a change in the first local volume gain or the second local volume gain is detected, the changed volume information is uploaded to the server; the volume information includes the current first local volume gain, the second local volume gain and the volume gain mode.

[0061] Here, when the first local volume gain or the second local volume gain changes, the final volume gain of the audio changes, that is, the user's adaptive volume gain changes. The server needs to record the changed volume gain so that it can accurately determine the user's adaptive volume gain, so that the volume gain of the audio played when the audio source and the audio sink are connected is the volume gain that suits the user's needs. When a change in the first local volume gain or the second local volume gain is detected, the audio sink will upload the changed volume information to the server, including the current first local volume gain, the second local volume gain, and the volume gain mode, so that the server can determine the current volume gain based on the reported volume information.

[0062] In the above embodiment, when a change in the first local volume gain or the second local volume gain is detected, the changed volume information is uploaded to the server; the volume information includes the current first local volume gain, the second local volume gain and the volume gain mode, so that the volume gain change can be recorded in real time to the server, so that the volume gain of the audio played after the audio source end and the audio receiving end are connected can be adjusted according to the user's situation.

[0063] The present application also provides another volume synchronization method, including:

[0064] Obtain volume information uploaded by the audio source, and determine and store a first volume gain; wherein the volume information includes a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; the first volume gain represents the volume gain corresponding to the account logged in to the audio source.

[0065] Here, the server can store the final volume gain of the audio, so that when the audio source end is connected to the audio receiving end, the first local volume gain of the audio source end and the second local volume gain of the audio receiving end can be adjusted based on the stored final volume gain of the audio, so that the end user can hear audio with a uniform volume gain. The first volume gain stored by the server is calculated based on the volume information uploaded by the audio source end. The volume information uploaded by the audio source end includes the first local volume gain of the audio source end, the second local volume gain of the audio receiving end, and the volume gain mode used by the audio source end and the audio receiving end. In actual applications, when one or more audio source ends are used to connect to multiple audio receiving ends under the same account, the server ultimately receives the volume information last adjusted by the user, so that the corresponding first volume gain can be determined based on the volume information last adjusted.

[0066] In the above embodiment, volume information uploaded by the audio source is obtained, and a first volume gain is determined and stored; wherein, the volume information is the first local volume gain of the audio source, the second local volume gain of the audio receiving end, and the volume gain mode used by the audio source and the audio receiving end; the first volume gain represents the volume gain corresponding to the account logged in to the audio source, and the final volume gain of the audio corresponding to the account is stored by the server, so that when switching connections between multiple audio source ends and multiple audio receiving ends through the server, a uniform volume gain can be maintained for audio playback, thereby avoiding frequent adjustment of the volume gain by the user.

[0067] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a volume synchronization device, such as Figure 8 As shown, the device includes:

[0068] The first acquisition unit 801 is configured to acquire a first volume gain from the server; the first volume gain represents the volume gain corresponding to the account logged into the audio source terminal;

[0069] The adjusting unit 802 is configured to adjust a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end according to the first volume gain.

[0070] In one embodiment, the adjusting unit 802 adjusts the first local volume gain of the audio source end and / or the local volume gain of the second audio receiving end according to the first volume gain, including:

[0071] Determining a volume gain mode used by the audio source and the audio sink;

[0072] Based on the volume gain mode and the first volume gain, a first local volume gain and / or a second local volume gain is adjusted.

[0073] In one embodiment, the adjusting unit 802 adjusts the first local volume gain and / or the second local volume gain based on the volume gain mode and the first volume gain, including:

[0074] When the volume gain mode is the absolute volume mode, both the first local volume gain and the second local volume gain are adjusted to the first volume gain.

[0075] In one embodiment, the adjusting unit 802 adjusts the first local volume gain and / or the second local volume gain in the volume gain mode and the first volume gain, including:

[0076] When the volume gain mode is the relative volume mode, the first local volume gain and / or the second local volume gain is adjusted; wherein the volume gain obtained by adding the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

[0077] In one embodiment, the adjusting unit 802 adjusts the first local volume gain and / or the second local volume gain, including:

[0078] adjusting the first local volume gain according to the current second local volume gain and the first volume gain;

[0079] adjusting the second local volume gain according to the current first local volume gain and the first volume gain; or,

[0080] Adjust the first local volume gain and the second local volume gain simultaneously.

[0081] In one embodiment, the apparatus further comprises:

[0082] The transmission unit is configured to upload the changed volume information to the server when a change is detected in the first local volume gain or the second local volume gain; the volume information includes the current first local volume gain, the second local volume gain, and the volume gain mode.

[0083] In actual application, the first acquisition unit 801 and the adjustment unit 802 can be implemented by a processor in the volume synchronization device. Of course, the processor needs to run the program stored in the memory to implement the functions of the above program modules.

[0084] It should be noted that the above Figure 8 The volume synchronization device provided in the embodiments is illustrated by the division of the aforementioned program modules. In actual applications, the aforementioned processing can be assigned to different program modules as needed, i.e., the internal structure of the device can be divided into different program modules to complete all or part of the aforementioned processing. Furthermore, the volume synchronization device provided in the aforementioned embodiments and the volume synchronization method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be further described here.

[0085] The present application also provides another volume synchronization device, such as Figure 9 As shown, the device includes:

[0086] The second acquisition unit 901 is used to obtain volume information uploaded by the audio source and determine and store a first volume gain; wherein the volume information includes a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; the first volume gain represents the volume gain corresponding to the account logged in to the audio source.

[0087] In actual application, the second acquisition unit 901 can be implemented by a processor in the volume synchronization device. Of course, the processor needs to run the program stored in the memory to implement the functions of the above program modules.

[0088] It should be noted that the above Figure 9 The volume synchronization device provided in the embodiments is illustrated by the division of the aforementioned program modules. In actual applications, the aforementioned processing can be assigned to different program modules as needed, i.e., the internal structure of the device can be divided into different program modules to complete all or part of the aforementioned processing. Furthermore, the volume synchronization device provided in the aforementioned embodiments and the volume synchronization method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be further described here.

[0089] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device, Figure 10 This is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. Figure 10 As shown, the electronic equipment includes:

[0090] Communication interface 1, capable of exchanging information with other devices such as network devices;

[0091] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the volume synchronization method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the memory 3.

[0092] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 10 Various buses are labeled as bus system 4.

[0093] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0094] It is understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 3 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0095] The method disclosed in the above-mentioned embodiment of the present application can be applied to processor 2 or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above-mentioned method can be completed by the integrated logic circuit of the hardware in processor 2 or instructions in the form of software. The above-mentioned processor 2 can be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the above-mentioned method in combination with its hardware.

[0096] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present application are implemented. For the sake of brevity, they are not repeated here.

[0097] In an exemplary embodiment, the present application also provides a storage medium, namely, a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 storing a computer program. The computer program can be executed by a processor 2 to perform the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed devices, terminals and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0099] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0100] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0101] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, ROM, RAM, disks or optical disks, etc. Various media that can store program codes.

[0102] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0103] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A volume synchronization method, characterized in that: include: Obtaining a first volume gain from the server; the first volume gain represents a volume gain corresponding to an account logged into the audio source end; Determining a volume gain mode used by the audio source and the audio sink; Based on the volume gain mode and the first volume gain, adjusting a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end; Wherein, adjusting the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end based on the volume gain mode and the first volume gain includes: When the volume gain mode is the relative volume mode, the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; or, the second local volume gain is adjusted according to the current first local volume gain and the first volume gain; or, the first local volume gain and the second local volume gain are adjusted at the same time; wherein the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

2. The volume synchronization method according to claim 1, characterized in that: The adjusting, based on the volume gain mode and the first volume gain, the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end includes: When the volume gain mode is the absolute volume mode, both the first local volume gain and the second local volume gain are adjusted to the first volume gain.

3. The volume synchronization method according to claim 1, characterized in that: The method further comprises: When a change in the first local volume gain or the second local volume gain is detected, the changed volume information is uploaded to the server to update the volume information stored in the server; the volume information includes the current first local volume gain, the second local volume gain and the volume gain mode.

4. A volume synchronization method, characterized in that: include: Obtain volume information uploaded by the audio source, determine and store a first volume gain; wherein the volume information is a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; the first volume gain represents the volume gain corresponding to the account logged in to the audio source; The first local volume gain, the second local volume gain, and the volume gain mode are determined as follows: when the volume gain mode is the relative volume mode, the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; or, the second local volume gain is adjusted according to the current first local volume gain and the first volume gain; or, the first local volume gain and the second local volume gain are adjusted simultaneously; wherein the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

5. A volume synchronization device, characterized in that: include: A first obtaining unit, configured to obtain a first volume gain from a server; The first volume gain represents the volume gain corresponding to the account logged in to the audio source end; An adjustment unit, configured to determine a volume gain mode used by the audio source end and the audio receiving end; and based on the volume gain mode and the first volume gain, adjust a first local volume gain of the audio source end and / or a second local volume gain of the audio receiving end; When the adjustment unit adjusts the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end based on the volume gain mode and the first volume gain, the adjustment unit is further used to: When the volume gain mode is the relative volume mode, the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; or, the second local volume gain is adjusted according to the current first local volume gain and the first volume gain; or, the first local volume gain and the second local volume gain are adjusted at the same time; wherein the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

6. The volume synchronization device according to claim 5, characterized in that: When the adjustment unit adjusts the first local volume gain of the audio source end and / or the second local volume gain of the audio receiving end based on the volume gain mode and the first volume gain, the adjustment unit is further used to: When the volume gain mode is the absolute volume mode, both the first local volume gain and the second local volume gain are adjusted to the first volume gain.

7. A volume synchronization device, characterized in that: include: A second acquisition unit is used to acquire volume information uploaded by an audio source, determine and store a first volume gain; wherein the volume information is a first local volume gain of the audio source, a second local volume gain of the audio receiving end, and a volume gain mode used by the audio source and the audio receiving end; the first volume gain represents a volume gain corresponding to an account logged into the audio source; wherein the first local volume gain, the second local volume gain, and the volume gain mode are determined in the following manner: when the volume gain mode is a relative volume mode, the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; or, the second local volume gain is adjusted according to the current first local volume gain and the first volume gain; or, the first local volume gain and the second local volume gain are adjusted simultaneously; wherein the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.

8. An electronic device, characterized in that: include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 3 or 4.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 or 4 are implemented.