WO2022247533A1 - 一种音量同步方法、装置、电子设备及存储介质 - Google Patents

一种音量同步方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2022247533A1
WO2022247533A1 PCT/CN2022/088160 CN2022088160W WO2022247533A1 WO 2022247533 A1 WO2022247533 A1 WO 2022247533A1 CN 2022088160 W CN2022088160 W CN 2022088160W WO 2022247533 A1 WO2022247533 A1 WO 2022247533A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume gain
volume
local
gain
audio
Prior art date
Application number
PCT/CN2022/088160
Other languages
English (en)
French (fr)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022247533A1 publication Critical patent/WO2022247533A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the present application relates to the field of audio playback, in particular to a volume synchronization method, device, electronic equipment and storage medium.
  • embodiments of the present application provide a volume synchronization method, device, electronic equipment, and storage medium.
  • the embodiment of the present application provides a volume synchronization method, including:
  • the first volume gain represents the volume gain corresponding to the account logged into the audio source
  • the embodiment of the present application also provides another volume synchronization method, including:
  • the volume information uploaded by the audio source end, determine and store the first volume gain; wherein, the volume information is the first local volume gain of the audio source end, the second local volume gain of the audio receiver end, the audio source end and the audio receiver end
  • the volume gain mode used; the first volume gain represents the volume gain corresponding to the account logged into the audio source.
  • the embodiment of the present application also provides a volume synchronization device, including:
  • the first obtaining unit is configured to obtain a first volume gain from the server; the first volume gain represents the volume gain corresponding to the account logged into the audio source;
  • the adjusting unit is configured to adjust the first local volume gain of the audio source end and/or the second local volume gain of the audio receiving end according to the first volume gain.
  • the embodiment of the present application also provides another volume synchronization device, including:
  • the second acquiring unit is configured to acquire the volume information uploaded by the audio source end, determine and store the first volume gain; wherein, the volume information is the first local volume gain of the audio source end, the second local volume gain of the audio receiving end, the audio The volume gain mode used by the source end and the audio receiver end; the first volume gain represents the volume gain corresponding to the account logged into the audio source end.
  • An embodiment of the present application also provides an electronic device, including: a processor and a memory configured to store a computer program that can run on the processor,
  • the processor is configured to execute the steps of any one of the above methods when running the computer program.
  • the embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
  • FIG. 1 is a schematic diagram of the implementation flow of a volume synchronization method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an audio source group under the same account information provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of the implementation flow of a volume synchronization method provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of audio gain in absolute volume mode provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of the audio gain when the audio playback end is connected and switched with multiple audio source ends in the absolute volume mode provided by an embodiment of the present application;
  • FIG. 6 is a schematic flow chart of a volume gain in a relative volume mode provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the volume gain when the audio receiver and multiple audio sources are switched in the relative volume mode provided by an embodiment of the present application;
  • FIG. 8 is a schematic structural diagram of a volume synchronization device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a volume synchronization device provided in another embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hardware composition structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of the volume synchronization method in the embodiment of the present application. As shown in Figure 1, the method includes:
  • S101 Obtain a first volume gain from a server; the first volume gain represents a volume gain corresponding to an account logged into an audio source.
  • the first volume gain corresponding to different account information is stored in the server.
  • the audio source terminal logged into the same account is connected to the audio receiver, the first volume gain corresponding to the account logged into the audio source terminal is obtained from the server.
  • the first volume gain can be regarded as the volume gain adapted by the user in the process of playing audio. In practical applications, different users have different adapted volume gains, and different users can be distinguished by account information.
  • S102 Adjust the first local volume gain of the audio source end and/or the second local volume gain of the audio receiving end according to the first volume gain.
  • the first volume gain adjust the first local volume gain of the audio source end and/or the second local volume gain of the audio receiving end.
  • only the first local volume gain can be adjusted, or only the second local volume gain can be adjusted.
  • Volume gain you can also adjust the first local volume gain and the second local volume gain at the same time, so that the volume gain of the final played audio is the first volume gain, because the first volume gain is the volume adapted by the user during audio playback Gain, when playing audio with the first volume gain, the user will most likely not adjust the audio volume.
  • the audio source end can directly adjust the second local volume gain of the audio receiving end through the Bluetooth connection.
  • the audio source when the audio source is connected to multiple audio receivers 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 receivers uniformly use the first volume gain Play the corresponding audio so that the volume gain of the audio heard by the user is uniform.
  • Figure 2 shows an audio source group under the same account information. Binding, when any audio source under the same account information is connected to any audio receiver for audio playback, the connected audio receiver can be finally played based on the first volume gain corresponding to the account information stored in the server The audio volume gain of the set is uniformly set to the volume gain commonly used by the user.
  • the first volume gain is obtained from the server; the first volume gain represents the volume gain corresponding to the account logged in the audio source end; according to the first volume gain, the first local volume of the audio source end is adjusted
  • the gain and/or the second local volume gain of the audio receiving end can adjust the audio gain through the user-adapted volume gain stored in the cloud, so that the audio played between different audio source ends and audio connection ends under the same user
  • the volume gain is unified, which maintains the uniqueness of the volume gain of the audio output, and allows users to listen to the audio with the volume gain adapted to them.
  • 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:
  • S301 Determine volume gain modes used by the audio source and the audio receiver.
  • different audio sources may adopt different volume gain modes during audio playback after they are connected to different audio receivers.
  • the volume gain modes used by the audio source and the audio receiver may be determined by the audio source For example, select the corresponding volume gain mode in the playback settings, or it can be determined by the volume gain mode supported by the audio source and audio receiver, for example, when the audio source and audio receiver only support When one of the volume gain modes is selected, the supported volume gain mode will eventually be adopted.
  • the volume gain mode will affect the mode of adjusting the volume gain, so it is necessary to determine the volume gain mode used by the audio source and audio receiver.
  • the volume gain mode can be confirmed interactively during the connection between the audio source and the audio receiver, and the volume gain mode used when playing audio can be confirmed through prompt information.
  • 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.
  • 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 adjusted target volume gain.
  • the first local volume gain And/or the second local volume gain is adjusted accordingly, so that the final volume gain of the adjusted audio is the first volume gain.
  • different volume gain modes correspond to different volume gain adjustment strategies. For example, by simultaneously changing the first local volume gain of the audio source end and the local volume gain of the second audio receiving end, the adjusted volume gain For the first volume gain, the adjusted volume gain may also be the first volume gain by changing the first local volume gain at the audio source end or by changing the second local volume gain at the audio receiving end.
  • the 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:
  • both the first local volume gain and the second local volume gain are adjusted to the first volume gain.
  • Figure 4 shows a schematic diagram of the audio gain in absolute volume mode
  • the audio source end first decodes the audio source data to generate audio data in PCM format
  • the audio source end encodes the audio data in PCM format so that
  • 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 receiver through the Bluetooth channel
  • the audio receiver will receive the audio data
  • the audio receiving end will perform gain processing when playing audio data in PCM format.
  • FIG. 5 shows the absolute volume mode of the audio player. Schematic diagram of audio gain when switching between multiple audio sources.
  • the local volume gain of the first audio source is A
  • the local volume gain of the second audio source is B.
  • the final volume gain of the audio is A.
  • the second audio source is connected to the audio player
  • the final volume gain of the audio is B.
  • the first local volume gain and the second local volume gain are adjusted to the first volume gain at the same time, so that the volume gain of the final played audio can be the second. - Volume gain.
  • both the first local volume gain and the second local volume gain are adjusted to the first volume gain, and the local volume gain at the audio source end It is set at the same time as the local volume gain of the audio receiver, so that the audio source and the audio player output audio with a uniform volume gain in absolute volume mode.
  • the 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:
  • the volume gain mode is the relative volume mode
  • adjust the first local volume gain and/or the second local volume gain wherein, the volume obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain
  • the gain is the first volume gain
  • FIG. 6 shows a schematic flow chart of the volume gain in the relative volume mode.
  • the local volume gain of the audio source and the local volume gain of the audio receiver are relatively independent, and the audio source first Decode the audio source data to generate audio data in PCM format.
  • the default volume gain of audio data in PCM format is 1.
  • the audio data in PCM format performs the gain operation of the local volume gain of the audio source.
  • the audio in PCM format The volume gain of the data is A, and the supported Bluetooth audio encoding operation is performed on the audio data in the PCM format after gain, and converted into Bluetooth encoding formats such as SBC or ACC, and the volume is increased to A through the Bluetooth channel between the audio source and the audio receiver.
  • the audio data in the Bluetooth encoding format is transmitted to the audio receiving end.
  • the audio receiving end decodes the audio data in the Bluetooth encoding format into PCM format audio data with a volume gain of A.
  • the audio receiving end will adjust the audio data according to the local volume gain before playing the audio. Gain operation is performed on the data, and 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.
  • the volume gain after gain superposition can be determined according to the 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 audio Volume gain, wherein, the volume gain of the audio data played finally is f(A, A'), wherein, f(A, A') corresponds to the volume gain superposition algorithm in the case of the relative volume mode, through f (A, A') perform corresponding algorithmic calculations to obtain the final volume gain.
  • FIG 7 shows a schematic diagram of the volume gain when the audio receiver and multiple audio sources are switched in the relative volume mode.
  • the local volume gain of the first audio source is A
  • the local volume gain of the second audio source is A.
  • B the local volume gain of the audio receiver is C
  • the volume gain of the final played audio is f(A, C)
  • the volume gain of the final played audio is f(B, C)
  • the audio receiving end switches the connection between audio sources with different local volume gains, it will result in the audio being played.
  • the volume gain is not the same, and 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 be the first volume gain , the first local volume gain and/or the second local volume gain may 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.
  • the volume gain mode is the relative volume mode
  • the first local volume gain and/or the second local volume gain are adjusted; wherein, the adjusted first local volume gain and the adjusted second local volume gain
  • the volume gain obtained by superimposing the volume gain is the first volume gain, which can adjust the local volume gain of the audio source end and/or the local volume gain of the audio receiving end according to the relative volume mode, so that the volume gain of the finally played audio is the user's Adapted volume, so that when switching between different audio sources and different audio playback ends, audio with uniform volume gain can be output.
  • the adjusting the first local volume gain and/or the second local volume gain includes:
  • the volume gain obtained by superimposing the first local volume gain and the second local volume gain is the final volume gain of the audio, therefore, in order to ensure that the final volume gain of the audio is equal to the volume gain of the first volume gain.
  • the second local volume gain of the audio receiving end can be kept unchanged, and the first local volume gain can be adjusted, wherein the volume gain obtained by superimposing the adjusted first local volume gain and the second local volume gain is the first Volume gain.
  • the first local volume gain can also be kept unchanged, and the second local volume gain can be adjusted, wherein the volume obtained by superimposing the first local volume gain and the adjusted second local volume gain The gain is the first volume gain.
  • first local volume gain and the second local volume gain may also be adjusted simultaneously, and the volume gain obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain is the first volume gain.
  • the first local volume gain is adjusted according to the current second local volume gain and the first volume gain; the second local volume is adjusted according to the current first local volume gain and the first volume gain Gain; or, adjust the first local volume gain and the second local volume gain at the same time, according to the relationship between the local gain of the audio source and the local gain of the audio receiver and the final volume gain of the audio in the case of the relative volume mode , there may be a variety of adjustment methods, so as to meet different application scenarios, so that different audio sources and different audio receivers can also output audio with a uniform volume gain when switching.
  • the method also includes: .
  • the volume information includes the current first local volume gain, the second local volume gain and the volume gain mode .
  • the server needs to record the changed volume gain so that it can
  • the user's adaptive volume gain is accurately known, so that the volume gain of the audio played when the audio source terminal is connected to the audio receiving terminal is a volume gain suitable for the user's needs.
  • the audio receiving end 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 according to the reported volume information.
  • the changed volume information when it is detected that the first local volume gain or the second local volume gain changes, 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 volume gain mode, so that the change of volume gain can be recorded to the server in real time, so that the volume gain of the audio played after the audio source is connected to the audio receiver can be adjusted according to the user's situation.
  • the embodiment of the present application also provides another volume synchronization method, including:
  • the volume information uploaded by the audio source end, determine and store the first volume gain; wherein, the volume information is the first local volume gain of the audio source end, the second local volume gain of the audio receiver end, the audio source end and the audio receiver end
  • the volume gain mode used; the first volume gain represents the volume gain corresponding to the account logged into the audio source.
  • the server can store the final volume gain of the audio, so that when the audio source is connected to the audio receiver, the first local volume gain of the audio source and the second local volume gain of the audio receiver can be adjusted based on the stored final volume gain of the audio.
  • Local volume gain so that end users can hear audio with a uniform volume gain.
  • the first volume gain stored in the server is calculated from the volume information uploaded by the audio source.
  • the volume information uploaded by the audio source includes the first local volume gain of the audio source, the second local volume gain of the audio receiver, and the The volume gain mode used by the end and the audio receiver.
  • what the server finally receives is the volume information last adjusted by the user, so that the corresponding audio can be determined based on the volume information last adjusted. of the first volume gain.
  • the volume information uploaded by the audio source end is acquired, and the first volume gain is determined and stored; wherein, the volume information is the first local volume gain of the audio source end, the second local volume gain of the audio receiving end, the audio source The volume gain mode used by the end and the audio receiving end; the first volume gain represents the volume gain corresponding to the account number logged into the audio source end, and the final volume gain of the audio corresponding to the account is stored by the server, so that multiple When switching connections between the audio source and multiple audio receivers, it can maintain a uniform volume gain for audio playback, preventing users from frequently adjusting the volume gain.
  • the embodiment of the present application also provides a volume synchronization device, as shown in Figure 8, the device includes:
  • the first obtaining unit 801 is configured to obtain a first volume gain from the server; the first volume gain represents the volume gain corresponding to the account logged into the audio source;
  • the adjusting unit 802 is configured to adjust the first local volume gain of the audio source end and/or the second local volume gain of the audio receiving end according to the first volume gain.
  • the adjusting unit 802 when 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, it is further configured to:
  • the adjustment unit 802 when the adjustment 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, it is further configured to:
  • both the first local volume gain and the second local volume gain are adjusted to the first volume gain.
  • the adjustment unit 802 when the adjustment 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, it is further configured to:
  • the volume gain mode is the relative volume mode
  • adjust the first local volume gain and/or the second local volume gain wherein, the volume obtained by superimposing the adjusted first local volume gain and the adjusted second local volume gain
  • the gain is the first volume gain
  • the adjustment unit 802 when the adjustment unit 802 adjusts the first local volume gain and/or the second local volume gain, it is further configured to:
  • the device is further configured to:
  • the transmission unit is configured to upload the changed volume information to the server when it is detected that the first local volume gain or the second local volume gain changes; the volume information includes the current first local volume gain, the second local volume gain Gain and volume gain modes.
  • the first obtaining unit 801 and the adjusting unit 802 may be implemented by a processor in the volume synchronization device.
  • the processor needs to run the programs stored in the memory to realize the functions of the above-mentioned program modules.
  • volume synchronization device provided in the embodiment of FIG. 8 performs volume synchronization
  • the division of the above-mentioned program modules is used as an example for illustration. In practical applications, the above-mentioned processing can be assigned to different program modules as required. Completion means that the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
  • the volume synchronization device provided in the above embodiments and the volume synchronization method embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
  • the embodiment of the present application also provides another volume synchronization device, as shown in Figure 9, the device includes:
  • the second acquiring unit 901 is configured to acquire the volume information uploaded by the audio source end, determine and store the first volume gain; wherein, the volume information is the first local volume gain of the audio source end, the second local volume gain of the audio receiving end, The volume gain mode used by the audio source and the audio receiver; the first volume gain represents the volume gain corresponding to the account logged into the audio source.
  • the second acquiring unit 901 may be implemented by a processor in the volume synchronization device.
  • the processor needs to run the programs stored in the memory to realize the functions of the above-mentioned program modules.
  • volume synchronization device when the volume synchronization device provided in the embodiment of FIG. 9 performs volume synchronization, the division of the above-mentioned program modules is used as an example for illustration. In practical applications, the above-mentioned processing can be allocated to different program modules as required. Completion means that the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
  • the volume synchronization device provided in the above embodiments and the volume synchronization method embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
  • FIG. 10 is a schematic diagram of the hardware composition structure of the electronic device of the embodiment of the present application, as shown in FIG. 10 , the electronic equipment includes:
  • Communication interface 1 which can exchange information with other devices such as network devices;
  • the processor 2 is connected to the communication interface 1 to realize information interaction with other devices, and is configured to execute the volume synchronization method provided by one or more of the above technical solutions when running a computer program. Instead, the computer program is stored on the memory 3 .
  • bus system 4 is configured to realize connection communication between these components.
  • bus system 4 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 4 in FIG. 10 .
  • the memory 3 in the embodiment of the present application is configured to store various types of data to support the operation of the electronic device.
  • Examples of such data include: any computer program configured to operate on an electronic device.
  • the memory 3 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • RAM Random Access Memory
  • many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory ).
  • the memory 3 described in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.
  • Processor 2 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 2 or instructions in the form of software.
  • the aforementioned processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor 2 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in the storage medium, and the storage medium is located in the memory 3, and the processor 2 reads the program in the memory 3, and completes the steps of the foregoing method in combination with its hardware.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory 3 storing a computer program, and the above-mentioned computer program can be executed by the processor 2, To complete the steps described in the aforementioned method.
  • the computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
  • the disclosed device, electronic equipment and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • 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 to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
  • 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.
  • the computer software product is stored in a storage medium and includes several instructions for Make an electronic device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本申请公开了一种音量同步方法、装置、电子设备及存储介质。其中,方法包括:从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。

Description

一种音量同步方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请基于申请号为202110570013.2,申请日为2021年5月25日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及音频播放领域,具体涉及一种音量同步方法、装置、电子设备及存储介质。
背景技术
相关技术中,当音频源端通过蓝牙传输模式将音频传输至不同的音频接收端上播放的时候,由于不同的音频接收端设置的音量不相同,因此需要在音频源端或者音频接收端上重新进行音量调节,以使音频在合适的音量下播放,操作繁琐,影响了音频的播放效率。
发明内容
为解决相关技术问题,本申请实施例提供了一种音量同步方法、装置、电子设备及存储介质。
本申请实施例提供了一种音量同步方法,包括:
从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
本申请实施例还提供了另一种音量同步方法,包括:
获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益。
本申请实施例还提供了一种音量同步装置,包括:
第一获取单元,配置为从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
调整单元,配置为根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
本申请实施例还提供了另一种音量同步装置,包括:
第二获取单元,配置为获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益。
本申请实施例还提供了一种电子设备,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
其中,所述处理器配置为运行所述计算机程序时,执行上述任一方法的步骤。
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一方法的步骤。
附图说明
图1为本申请一实施例提供的音量同步方法的实现流程示意图;
图2为本申请一实施例提供的同一账号信息下的音频源端组示意图;
图3为本申请一实施例提供的音量同步方法的实现流程示意图;
图4为本申请一实施例提供的绝对音量模式的音频增益示意图;
图5为本申请一实施例提供的绝对音量模式下音频播放端与多个音频源端连接切换时的音频增益示意图;
图6为本申请一实施例提供的相对音量模式的音量增益流程示意图;
图7为本申请一实施例提供的相对音量模式下音频接收端与多个音频源端切换时的音量增益示意图;
图8为本申请一实施例提供的音量同步装置的结构示意图;
图9为本申请又一实施例提供的音量同步装置的结构示意图;
图10为本申请一实施例提供电子设备的硬件组成结构示意图。
具体实施方式
下面结合附图及具体实施例对本申请作进一步详细的说明。
本申请实施例提供了一种音量同步方法,图1为本申请实施例的音量同步方法的一种流程示意图。如图1所示,所述方法包括:
S101:从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益。
这里,服务器中存储了不同账号信息下对应的第一音量增益,当登录同一个账号的音频源端与音频接收端连接的时候,从服务器中获取登录音 频源端的账号对应的第一音量增益,第一音量增益可以看作为用户在播放音频的过程中适配的音量增益,在实际应用中,不同的用户所对应的适配的音量增益是不同的,不同的用户可以通过账号信息进行区分。
S102:根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
这里,根据第一音量增益,调整音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益,在实际应用中,可以仅调整第一本地音量增益,也可以仅调整第二本地音量增益,还可以同时调整第一本地音量增益与第二本地音量增益,使得最终播放的音频的音量增益为第一音量增益,由于第一音量增益为用户在播放音频的过程中适配的音量增益,当以第一音量增益播放音频的时候,用户很大几率不会再对音频音量进行调整。
在对第二本地音量增益进行调节的时候,音频源端可以直接通过蓝牙连接对音频接收端的第二本地音量增益进行调节。
在实际应用中,当音频源端与多个音频接收端同时连接的时候,同样地,需要调整第一本地音量增益和/或第二本地音量增益,使得不同音频接收端统一使用第一音量增益播放对应的音频,使得用户听到的音频音量增益是统一的,此外,当出现同一账号信息下多个音频源端与多个音频接收端连接的时候,也同样适用根据第一音量增益对第一本地音量增益与第二本地音量增益进行调整。
在实际应用中,如图2所示,图2示出了同一账号信息下的音频源端组,音频源端组可以包括多个不同的音频源端,不同的音频源端是通过账号信息进行绑定的,当同一账号信息下的任意音频源端与任意的音频接收端连接进行音频播放的时候,可以基于服务器存储的账号信息对应的第一音量增益,将连接后的音频接收端最终播放的音频音量增益统一设置为用户常用的音量增益。
在上述实施例中,从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益,能够通过存储在云端的用户适配的音量增益对音频增益进行调整,使得在同一用户下的不同音频源端与音频连接端之间播放的音频的音量增益是统一的,保持音频输出的音量增益的唯一性,并使得用户在适配自己的音量增益下收听音频。
在一实施例中,如图3所示,所述根据所述第一音量增益,调整音频源端的第一本地音量增益和/或第二音频接收端的本地音量增益,包括:
S301:确定所述音频源端与所述音频接收端所使用的音量增益模式。
这里,不同的音频源端与不同的音频接收端连接后进行音频播放的过程中,可能采取不同的音量增益模式,示例地,音频源端与音频接收端所使用的音量增益模式可以由音频源端进行调整,例如,在播放设置中选择 对应的音量增益模式,也可以通过音频源端与音频接收端所支持的音量增益模式而确定,例如,当音频源端和音频接收端中存在只支持音量增益模式中的一种音量增益模式的时候,则最终会采取支持的音量增益模式。音量增益模式会影响调整音量增益的模式,因此需要确定音频源端与音频接收端所使用的音量增益模式。在实际应用中,音量增益模式可以通过音频源端与音频接收端进行连接过程中进行交互确认,通过提示信息而确认在播放音频的时候所使用的音量增益模式。
S302:基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益。
这里,音量增益模式确定了调整第一本地音量增益和第二本地音量增益的不同方案,第一音量增益为调整的目标音量增益,根据音量增益模式和第一音量增益,对第一本地音量增益和/或第二本地音量增益进行相应的调整,使得调整后的音频的最终音量增益为第一音量增益。在实际应用中,不同的音量增益模式对应不同的音量增益的调整策略,示例地,可以通过同时改变音频源端的第一本地音量增益和第二音频接收端的本地音量增益,使得调整后的音量增益为第一音量增益,也可以通过改变音频源端的第一本地音量增益或通过改变音频接收端的第二本地音量增益,使得调整后的音量增益为第一音量增益。
在上述实施例中,确定所述音频源端与所述音频接收端所使用的音量增益模式;基于所述音量增益模式和所述第一音量增益,调整音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益,能够根据不同的音量增益模式对音频源端的本地音量增益和/或音频接收端的本地音量增益进行调整,从而能够更精准地使得音频能够基于用户适配的音量进行输出。
在一实施例中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益。
这里,如图4所示,图4示出了绝对音量模式的音频增益示意图,音频源端首先对音频源数据进行解码生成PCM格式的音频数据,音频源端对PCM格式的音频数据进行编码使得音频数据转成SBC或AAC等支持蓝牙传输的编码格式,在对音频源数据进行解码生成PCM格式的音频数据,以及在对PCM格式的音频数据进行编码生成蓝牙传输的编码格式的音频数据的过程中,音频数据的音量增益为1,也就是音频源端没有对音频数据进行音量增益处理,音频源端通过蓝牙通路,将音频数据传输到音频接收端,音频接收端会将接收到的音频数据进行解码得到PCM格式的音频数据,音频接收端在播放PCM格式的音频数据的时候会进行增益处理,示例地,当音频源端与音频接收端的本地音量增益为A,那么最终播放的音频数据的音量增益为A,当音频源端或音频接收端的本地音量增益发生改变的时候, 彼此会同步设定相同的本地音量增益,如图5所示,图5示出了绝对音量模式下音频播放端与多个音频源端连接切换时的音频增益示意图,第一音频源端的本地音量增益为A,第二音频源端的本地音量增益为B,当第一音频源端与音频播放端连接的时候,音频的最终音量增益为A,当第二音频源端与音频播放端连接的时候,音频的最终音量增益为B,在这种情况下,当音频播放端切换连接的音频源端时,输出的音频的音量增益都会不相同,为了保证能够以统一的音量增益输出音频,将第一本地音量增益与第二本地音量增益同时调整为第一音量增益,能够使最终播放的音频的音量增益为第一音量增益。
在上述实施例中,在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益,通过对音频源端的本地音量增益与音频接收端的本地音量增益同时设置,使得音频源端与音频播放端在绝对音量模式的情况下,输出统一音量增益的音频。
在一实施例中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益。
这里,如图6所示,图6示出了相对音量模式的音量增益流程示意图,在相对音量模式中,音频源端的本地音量增益与音频接收端的本地音量增益是相对独立的,音频源端首先对音频源数据进行解码生成PCM格式的音频数据,这时候默认PCM格式的音频数据的音量增益为1,将PCM格式的音频数据执行音频源端的本地音量增益的增益操作,此时PCM格式的音频数据的音量增益为A,对增益后的PCM格式的音频数据做支持的蓝牙音频编码操作,转换为SBC或者ACC等蓝牙编码格式,通过音频源端与音频接收端的蓝牙通路,将音量增益为A的蓝牙编码格式的音频数据传输到音频接收端,音频接收端将蓝牙编码格式的音频数据解码成音量增益为A的PCM格式的音频数据,音频接收端在音频播放前会根据本地音量增益对音频数据进行增益操作,音频接收端输出的音频的音量增益是由音频源端的本地音量增益与音频接收端的本地音量增益进行叠加得到的。
在实际应用中,可以根据设定的算法确定增益叠加之后的音量增益,示例地,将音频源端的本地音量增益A与音频接收端的本地增益A'根据一定的算法进行叠加处理,得到音频的最终音量增益,其中,最终播放的音频数据的音量增益为f(A,A'),其中,f(A,A')所对应的是在相对音量模式的情况下的音量增益叠加算法,通过f(A,A')进行相应的算法计算,能够得到最终的音量增益。
当在相对音量模式的情况下,音频接收端的本地音量增益是固定的, 但最终的播放的音频数据的音量增益会由于不同的音频源端的本地音量增益而导致最终输出的音频数据的音量增益发生变化。如图7所示,图7示出了相对音量模式下音频接收端与多个音频源端切换时的音量增益示意图,第一音频源端的本地音量增益为A,第二音频源端的本地音量增益为B,音频接收端的本地音量增益为C,当第一音频源端与音频接收端连接的时候,最终播放的音频的音量增益为f(A,C),当第二音频源端与音频接收端连接的时候,最终播放的音频的音量增益为f(B,C),在这种情况下,当音频接收端在不同本地音量增益的音频源端之间切换连接,会导致播放的音频的音量增益不相同,并且,由于音频最终的音量增益是由音频源端的本地音量增益与音频接收端的本地音量增益叠加得到的,在这种情况下,为了使音频最终的音量增益为第一音量增益,可以调整第一本地音量增益和/或第二本地音量增益,使得调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为第一本地音量。
在上述实施例中,在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益,能够根据相对音量模式,对音频源端的本地音量增益和/或音频接收端的本地音量增益进行调整,使得最终播放的音频的音量增益为用户适配的音量,从而能够使得在不同音频源端与不同音频播放端之间切换播放的时候能够输出音量增益统一的音频。
在一实施例中,所述调整第一本地音量增益和/或第二本地音量增益,包括:
根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;
根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,
同时调整第一本地音量增益和第二本地音量增益。
这里,由于在相对音量模式的情况下,由第一本地音量增益与第二本地音量增益叠加得到的音量增益为音频最终的音量增益,因此,为了保证音频最终的音量增益为第一音量增益的时候,对第一本地音量增益与第二本地音量增益有多种调整方案。
第一种,可以保持音频接收端的第二本地音量增益不变,对第一本地音量增益进行调整,其中,调整后的第一本地音量增益与第二本地音量增益叠加得到的音量增益为第一音量增益。
此外,在相对音量模式的情况下,还可以保持第一本地音量增益不变,对第二本地音量增益进行调整,其中,第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为第一音量增益。
另外,还可以同时调整第一本地音量增益与第二本地音量增益,调整 后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为第一音量增益。
在上述实施例中,根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,同时调整第一本地音量增益和第二本地音量增益,根据在相对音量模式的情况下,音频源端的本地增益和音频接收端的本地增益之间与音频最终的音量增益之间的关系,可以存在多种调整方式,从而能够满足不同的应用场景,使得不同音频源端与不同音频接收端在切换的时候也能够输出具备统一的音量增益的音频。
在一实施例中,所述方法还包括:.
当检测到第一本地音量增益或第二本地音量增益发生变化时,将变化后的音量信息上传到服务器;所述音量信息包括当前的第一本地音量增益、第二本地音量增益和音量增益模式。
这里,当第一本地音量增益或第二本地音量增益发生变化,会导致音频的最终音量增益发生变化,也就是说用户的适配音量增益发生改变,服务器需要将改变的音量增益进行记录从而能够准确地获知用户的适应性音量增益,使得音频源端与音频接收端连接的时候所播放的音频的音量增益为适合用户需求的音量增益。当检测到第一本地音量增益或第二本地音量增益发生变化时,音频接收端会将变化后的音量信息上传到服务器,包括当前的第一本地音量增益、第二本地音量增以及音量增益模式,从而能够使服务器根据上报的音量信息确定当前的音量增益。
在上述实施例中,当检测到第一本地音量增益或第二本地音量增益发生变化时,将变化后的音量信息上传到服务器;所述音量信息包括当前的第一本地音量增益、第二本地音量增益和音量增益模式,从而能够将音量增益改变的情况实时记录到服务器,从而能够根据用户的情况调整音频源端与音频接收端连接之后播放的音频的音量增益。
本申请实施例还提供了另一种音量同步方法,包括:
获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益。
这里,服务器能够将音频的最终音量增益进行存储,从而能够在音频源端与音频接收端连接的时候,基于存储的音频的最终音量增益调整音频源端的第一本地音量增益与音频接收端的第二本地音量增益,使得最终用户能够听到统一的音量增益的音频。
服务器存储的第一音量增益是通过音频源端上传的音量信息计算得到的,音频源端上传的音量信息包括了音频源端的第一本地音量增益、音频接收端的第二本地音量增益,以及音频源端与音频接收端所使用的音量增 益模式。在实际应用中,当同一账号下使用一个或多个音频源端连接多个音频接收端的时候,服务器最终接收到的是用户最后调整采用的音量信息,从而能够基于最后调整采用的音量信息确定对应的第一音量增益。
在上述实施例中,获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益,通过服务器存储账号对应的音频的最终音量增益,从而能够通过服务器实现多个音频源端与多个音频接收端之间切换连接的时候,能够保持统一的音量增益进行音频的播放,避免用户频繁调整音量增益。
为实现本申请实施例的方法,本申请实施例还提供了一种音量同步装置,如图8所示,该装置包括:
第一获取单元801,配置为从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
调整单元802,配置为根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
在一实施例中,所述调整单元802在根据所述第一音量增益,调整音频源端的第一本地音量增益和/或第二音频接收端的本地音量增益时,还配置为:
确定所述音频源端与所述音频接收端所使用的音量增益模式;
基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益。
在一实施例中,所述调整单元802在基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益时,还配置为:
在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益。
在一实施例中,所述调整单元802在基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益时,还配置为:
在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益。
在一实施例中,所述调整单元802在调整第一本地音量增益和/或第二本地音量增益时,还配置为:
根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;
根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,
同时调整第一本地音量增益和第二本地音量增益。
在一实施例中,所述装置还配置为:
传输单元,配置为当检测到第一本地音量增益或第二本地音量增益发生变化时,将变化后的音量信息上传到服务器;所述音量信息包括当前的第一本地音量增益、第二本地音量增益和音量增益模式。
实际应用时,第一获取单元801、调整单元802可由音量同步装置中的处理器来实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。
需要说明的是,上述图8实施例提供的音量同步装置在进行音量同步时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的音量同步装置与音量同步方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本申请实施例还提供了另一种音量同步装置,如图9所示,该装置包括:
第二获取单元901,配置为获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益。
实际应用时,第二获取单元901可由音量同步装置中的处理器来实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。
需要说明的是,上述图9实施例提供的音量同步装置在进行音量同步时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的音量同步装置与音量同步方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备,图10为本申请实施例电子设备的硬件组成结构示意图,如图10所示,电子设备包括:
通信接口1,能够与其它设备比如网络设备等进行信息交互;
处理器2,与通信接口1连接,以实现与其它设备进行信息交互,配置为运行计算机程序时,执行上述一个或多个技术方案提供的音量同步方法。而所述计算机程序存储在存储器3上。
当然,实际应用时,电子设备中的各个组件通过总线系统4耦合在一起。可理解,总线系统4配置为实现这些组件之间的连接通信。总线系统4除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统4。
本申请实施例中的存储器3配置为存储各种类型的数据以支持电子设备的操作。这些数据的示例包括:配置为在电子设备上操作的任何计算机程序。
可以理解,存储器3可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器3旨在包括但不限于这些和任意其它适合类型的存储器。
上述本申请实施例揭示的方法可以应用于处理器2中,或者由处理器2实现。处理器2可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器2可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器3,处理器2读取存储器3中的程序,结合其硬件完成前述方法的步骤。
处理器2执行所述程序时实现本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器3,上述计算机程序可由处理器2执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、电子设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
另外,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局 限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种音量同步方法,包括:
    从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
    根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
  2. 根据权利要求1所述的音量同步方法,其中,所述根据所述第一音量增益,调整音频源端的第一本地音量增益和/或第二音频接收端的本地音量增益,包括:
    确定所述音频源端与所述音频接收端所使用的音量增益模式;
    基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益。
  3. 根据权利要求2所述的音量同步方法,其中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
    在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益。
  4. 根据权利要求2所述的音量同步方法,其中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
    在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益。
  5. 根据权利要求4所述的音量同步方法,其中,所述调整第一本地音量增益和/或第二本地音量增益,包括:
    根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;
    根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,
    同时调整第一本地音量增益和第二本地音量增益。
  6. 根据权利要求1所述的音量同步方法,其中,所述方法还包括:
    当检测到第一本地音量增益或第二本地音量增益发生变化时,将变化后的音量信息上传到服务器以更新所述服务器中存储的音量信息;所述音量信息包括当前的第一本地音量增益、第二本地音量增益和音量增益模式。
  7. 一种音量同步方法,包括:
    获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量增益。
  8. 一种音量同步装置,包括:
    第一获取单元,配置为从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
    调整单元,配置为根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
  9. 根据权利要求8所述的音量同步装置,其中,所述调整单元在根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益时,还配置为:
    确定所述音频源端与所述音频接收端所使用的音量增益模式;
    基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益。
  10. 根据权利要求9所述的音量同步装置,其中,所述调整单元在基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益时,还配置为:
    在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益。
  11. 根据权利要求9所述的音量同步装置,其中,所述调整单元在基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益时,还配置为:
    在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益。
  12. 根据权利要求11所述的音量同步装置,其中,所述调整单元在调整第一本地音量增益和/或第二本地音量增益时,还配置为:
    根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;
    根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,
    同时调整第一本地音量增益和第二本地音量增益。
  13. 一种音量同步装置,包括:
    第二获取单元,配置为获取音频源端上传的音量信息,确定并存储第一音量增益;其中,所述音量信息为音频源端的第一本地音量增益、音频接收端的第二本地音量增益、音频源端与音频接收端所使用的音量增益模式;所述第一音量增益表征登录所述音频源端的账号对应的音量 增益。
  14. 一种电子设备,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
    其中,所述处理器配置为运行所述计算机程序时,执行以下步骤:
    从服务器中获取第一音量增益;所述第一音量增益表征登录音频源端的账号对应的音量增益;
    根据所述第一音量增益,调整所述音频源端的第一本地音量增益和/或音频接收端的第二本地音量增益。
  15. 根据权利要求14所述的电子设备,其中,所述根据所述第一音量增益,调整音频源端的第一本地音量增益和/或第二音频接收端的本地音量增益,包括:
    确定所述音频源端与所述音频接收端所使用的音量增益模式;
    基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益。
  16. 根据权利要求15所述的电子设备,其中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
    在所述音量增益模式为绝对音量模式的情况下,将第一本地音量增益与第二本地音量增益均调整为所述第一音量增益。
  17. 根据权利要求15所述的电子设备,其中,所述基于所述音量增益模式和所述第一音量增益,调整第一本地音量增益和/或第二本地音量增益,包括:
    在音量增益模式为相对音量模式的情况下,调整第一本地音量增益和/或第二本地音量增益;其中,调整后的第一本地音量增益与调整后的第二本地音量增益叠加得到的音量增益为所述第一音量增益。
  18. 根据权利要求17所述的电子设备,其中,所述调整第一本地音量增益和/或第二本地音量增益,包括:
    根据当前的第二本地音量增益与所述第一音量增益,调整第一本地音量增益;
    根据当前的第一本地音量增益与所述第一音量增益,调整第二本地音量增益;或者,
    同时调整第一本地音量增益和第二本地音量增益。
  19. 根据权利要求14所述的电子设备,其中,所述处理器还执行以下步骤:
    当检测到第一本地音量增益或第二本地音量增益发生变化时,将变化后的音量信息上传到服务器以更新所述服务器中存储的音量信息;所述音量信息包括当前的第一本地音量增益、第二本地音量增益和音量增益模式。
  20. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至6或7任一项所述方法的步骤。
PCT/CN2022/088160 2021-05-25 2022-04-21 一种音量同步方法、装置、电子设备及存储介质 WO2022247533A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110570013.2A CN115473927A (zh) 2021-05-25 2021-05-25 音量同步方法、装置、电子设备及存储介质
CN202110570013.2 2021-05-25

Publications (1)

Publication Number Publication Date
WO2022247533A1 true WO2022247533A1 (zh) 2022-12-01

Family

ID=84229489

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088160 WO2022247533A1 (zh) 2021-05-25 2022-04-21 一种音量同步方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN115473927A (zh)
WO (1) WO2022247533A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117687595B (zh) * 2024-01-30 2024-05-28 知鱼智联科技股份有限公司 一种基于物联网的音量调整方法及装置

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130136277A1 (en) * 2011-11-28 2013-05-30 Kabushiki Kaisha Toshiba Volume controller, volume control method and electronic device
CN106535031A (zh) * 2016-11-01 2017-03-22 奇瑞汽车股份有限公司 车载音响控制方法、装置和系统
CN108200486A (zh) * 2017-12-25 2018-06-22 出门问问信息科技有限公司 一种音量的动态调整方法及装置
CN109471608A (zh) * 2018-10-31 2019-03-15 北京羽扇智信息科技有限公司 一种音量的调整方法及装置
CN109508169A (zh) * 2018-11-08 2019-03-22 湖南众从视频加信息科技有限公司 一种音乐播放器智能播放方法
CN109739463A (zh) * 2018-12-05 2019-05-10 上海博泰悦臻电子设备制造有限公司 多媒体音量调节方法及终端
CN110764731A (zh) * 2019-10-24 2020-02-07 北京声智科技有限公司 一种多媒体文件播放控制方法、智能终端及服务器
CN111198669A (zh) * 2019-12-30 2020-05-26 绍兴文理学院 一种用于计算机的音量调节系统
US20200174739A1 (en) * 2018-12-04 2020-06-04 International Business Machines Corporation Conference system volume control
US20200382866A1 (en) * 2019-06-01 2020-12-03 Apple Inc. User interfaces for managing audio exposure

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010239458A (ja) * 2009-03-31 2010-10-21 Nippon Telegr & Teleph Corp <Ntt> 音量調整装置、方法、プログラム及び記録媒体
CN102999492A (zh) * 2011-09-08 2013-03-27 百度在线网络技术(北京)有限公司 一种调整媒体文件音量的方法与设备
CN106060261B (zh) * 2016-06-22 2020-03-27 努比亚技术有限公司 音频播放装置及方法
CN106792386B (zh) * 2016-12-05 2020-03-10 青岛海信电器股份有限公司 一种终端音量调节方法及装置
CN107633849B (zh) * 2017-09-30 2021-04-27 Oppo广东移动通信有限公司 蓝牙设备音量调整方法、设备及计算机可读存储介质
CN107645721B (zh) * 2017-09-30 2020-06-09 Oppo广东移动通信有限公司 蓝牙设备音量调整方法、设备及计算机可读存储介质
CN111918174B (zh) * 2019-05-08 2022-04-01 阿里巴巴集团控股有限公司 音量增益平衡的方法、设备、电子设备及交通工具
CN110312146B (zh) * 2019-06-06 2021-11-09 百度在线网络技术(北京)有限公司 音频处理方法、装置、电子设备和存储介质
CN111163226B (zh) * 2019-12-27 2021-06-08 华为技术有限公司 音量调节方法、设备和系统

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130136277A1 (en) * 2011-11-28 2013-05-30 Kabushiki Kaisha Toshiba Volume controller, volume control method and electronic device
CN106535031A (zh) * 2016-11-01 2017-03-22 奇瑞汽车股份有限公司 车载音响控制方法、装置和系统
CN108200486A (zh) * 2017-12-25 2018-06-22 出门问问信息科技有限公司 一种音量的动态调整方法及装置
CN109471608A (zh) * 2018-10-31 2019-03-15 北京羽扇智信息科技有限公司 一种音量的调整方法及装置
CN109508169A (zh) * 2018-11-08 2019-03-22 湖南众从视频加信息科技有限公司 一种音乐播放器智能播放方法
US20200174739A1 (en) * 2018-12-04 2020-06-04 International Business Machines Corporation Conference system volume control
CN109739463A (zh) * 2018-12-05 2019-05-10 上海博泰悦臻电子设备制造有限公司 多媒体音量调节方法及终端
US20200382866A1 (en) * 2019-06-01 2020-12-03 Apple Inc. User interfaces for managing audio exposure
CN110764731A (zh) * 2019-10-24 2020-02-07 北京声智科技有限公司 一种多媒体文件播放控制方法、智能终端及服务器
CN111198669A (zh) * 2019-12-30 2020-05-26 绍兴文理学院 一种用于计算机的音量调节系统

Also Published As

Publication number Publication date
CN115473927A (zh) 2022-12-13

Similar Documents

Publication Publication Date Title
US10992276B2 (en) Metadata for ducking control
JP6945092B2 (ja) 効率的なdrcプロファイル伝送
EP2205007B1 (en) Method and apparatus for three-dimensional acoustic field encoding and optimal reconstruction
BR112021002326A2 (pt) um processador de áudio e um método para prover os sinais de alto-falante
CN104956689A (zh) 用于个性化音频虚拟化的方法和装置
WO2022247533A1 (zh) 一种音量同步方法、装置、电子设备及存储介质
US20070297624A1 (en) Digital audio encoding
JP2008547142A (ja) 記録媒体、オーディオデータミキシング装置及びミキシング方法
TW201723801A (zh) 音訊播放裝置及方法
WO2022213712A1 (zh) 音量同步方法、装置、电子设备及存储介质
JP2016174226A (ja) 音声無線伝送システム、スピーカ機器、及びソース機器
JP2008312034A (ja) 音声信号再生装置、および音声信号再生システム
CN113963722B (zh) 控制多个设备同时播放不同音频的方法、装置和终端设备
WO2022129487A1 (en) Personalised audio output
US20060245305A1 (en) System comprising sound reproduction means and ear microphones
CN117119369A (zh) 音频生成方法、计算机设备和计算机可读存储介质
KR20240138108A (ko) 오디오 처리 방법 및 단말들
JP2009020922A (ja) 再生装置、プログラム、及び再生方法
JP2005341186A (ja) 音質調整装置、音質調整装置の制御方法、制御プログラム及び記録媒体
KR20060068380A (ko) 음향 재생 시스템의 2채널 출력 보강 장치 및 방법
RU2005113439A (ru) Способ автоматического управления тембром и автоматический регулятор

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22810266

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22810266

Country of ref document: EP

Kind code of ref document: A1