WO2023071425A1 - Volume control method and apparatus, and electronic device and storage medium - Google Patents

Volume control method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2023071425A1
WO2023071425A1 PCT/CN2022/112719 CN2022112719W WO2023071425A1 WO 2023071425 A1 WO2023071425 A1 WO 2023071425A1 CN 2022112719 W CN2022112719 W CN 2022112719W WO 2023071425 A1 WO2023071425 A1 WO 2023071425A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
volume
processed
amplitude
playback
Prior art date
Application number
PCT/CN2022/112719
Other languages
French (fr)
Chinese (zh)
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 WO2023071425A1 publication Critical patent/WO2023071425A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Definitions

  • the present application relates to the technical field of equipment control, and more specifically, to a volume control method and device, electronic equipment, and a storage medium.
  • volume balance function With the development of smart terminal technology, more and more smart terminals are equipped with a volume balance function, so that when playing songs through audio player software, all songs can be played at a similar volume, bringing users a high-quality listening experience .
  • the related volume balance function is still not smart enough.
  • the present application proposes a volume control method and device, electronic equipment and a storage medium.
  • the embodiment of the present application provides a volume control method, which is applied to electronic equipment, and the method includes: acquiring the amplitude gear to which the signal amplitude of the audio to be processed belongs, and acquiring the volume corresponding to the amplitude gear. Adjusting the volume of the volume; adjusting the playback volume of the audio to be processed by the volume adjustment, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  • an embodiment of the present application provides a volume control device that runs on an electronic device, and the device includes: an amplitude gear acquisition module, configured to acquire the amplitude gear to which the signal amplitude of the audio to be processed belongs;
  • the volume adjustment acquisition module is used to acquire the volume adjustment corresponding to the amplitude gear;
  • the volume control module is used to adjust the playback volume of the audio to be processed according to the volume adjustment, so that the audio to be processed
  • the playback volume of the audio is close to the target volume, and the target volume is a value determined according to user habits.
  • an embodiment of the present application provides an electronic device, the electronic device includes one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more A plurality of processors are executed, and the one or more programs are configured to execute the method described in the first aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the method of the above-mentioned first aspect is executed when the program code is running.
  • an embodiment of the present application provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the method described in the above-mentioned first aspect are implemented.
  • FIG. 1 shows a method flow chart of a volume control method provided by an embodiment of the present application
  • FIG. 2 shows a method flowchart of a volume control method provided by another embodiment of the present application
  • Fig. 3 shows a method flow chart of a volume control method provided by another embodiment of the present application
  • Fig. 4 shows a structural block diagram of a volume control device provided by an embodiment of the present application
  • Fig. 5 shows a structural block diagram of a volume control device provided by another embodiment of the present application.
  • Fig. 6 shows a structural block diagram of a volume control device provided by another embodiment of the present application.
  • FIG. 7 shows a structural block diagram of an electronic device for performing a volume control method according to an embodiment of the present application
  • Fig. 8 is a storage unit for storing or carrying program codes for realizing a volume control method according to an embodiment of the present application according to an embodiment of the present application.
  • the smart device can be configured with a volume balance function, so that the audio playback volume can be automatically balanced.
  • the principle of volume balance is to scan the volume information of all audios to calculate the average volume. For loud audio, the sound is reduced to approach the average value, and for the low-sound audio, the sound is increased to approach the average value, so that achieve volume balance.
  • the related volume balance function has a limited scope of use (for example, it can only be applied to local audio sources, and needs to be connected to specific software to use), and it is not smart enough.
  • the embodiment of the present application proposes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is equal to the target volume Approximate to improve the intelligence of the volume control volume control method and device, electronic equipment and storage media.
  • FIG. 1 shows a method flowchart of a volume control method provided by an embodiment of the present application.
  • the volume control method provided by this embodiment can be applied to electronic devices, and the method includes:
  • Step S110 Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
  • the audio to be processed in the embodiment of the present application is the audio to be played online in real time (for example, it can be the audio to be played after buffering), and the audio to be processed in this way can come from video, short video or audio on the network .
  • the audio to be processed may be audio to be played, and the audio to be processed in this manner may originate locally.
  • the content form of the audio to be processed may not be limited.
  • the audio to be processed may be music, movie dubbing, recitation program audio, or radio program audio.
  • the amplitude of the audio to be processed represents the maximum absolute value of the alternating current instantaneously within one cycle, and the maximum absolute value can be understood as the distance from the peak to the trough in the audio signal sine wave diagram of the audio to be processed, and can also be understood as expressing A value for the loudness of the signal.
  • a piece of audio to be processed can have multiple amplitudes.
  • the signal amplitude of the audio to be processed in the embodiment of the present application represents the average value of the signal amplitude of the audio to be processed. As a way, it can be detected by detecting Multiple amplitudes of the audio are processed to calculate the average signal amplitude of the audio to be processed, and different audios to be processed correspond to their own average signal amplitudes.
  • the magnitude of the signal amplitude of the audio to be processed will affect the degree of gain to the sound source in the way of balancing the volume. For example, if the signal amplitude of the audio to be processed is higher than the average value of the signal amplitude, the audio source corresponding to the audio needs to be negatively adjusted. Gain processing; if the signal amplitude of the audio to be processed is lower than the average value of the signal amplitude, it is necessary to perform positive gain processing on the audio source corresponding to the audio.
  • the audio signal amplitude is divided into gears (abbreviated as binning), and at least two amplitude gears are obtained, and each amplitude gear can include the same number of signal amplitudes, and the specific value of the number It may not be limited, for example, each amplitude level may include 10 signal amplitudes or 100 signal amplitudes. Among them, the amplitude gears corresponding to different audio signal amplitudes can be different, or the amplitude gears corresponding to audio with different signal amplitudes can be the same.
  • the signal amplitude -15db belongs to the amplitude gear -20db ⁇ -10db
  • the signal amplitude -5db belongs to the amplitude gear -10db ⁇ -0db
  • the signal amplitude -8db and -6db All belong to the range of amplitude -10db ⁇ -0db.
  • the amplitude gear to which the average signal amplitude value belongs can be determined, and then the gain degree of the audio to be processed can be determined according to the amplitude gear.
  • Realizing the volume balance avoids realizing the volume balance by comparing the magnitude of each signal amplitude of the audio to be processed with the average value of the signal amplitude, thereby reducing the complexity of the volume balance processing.
  • Step S120 Obtain the volume adjustment amount corresponding to the amplitude level.
  • different amplitude gears correspond to different volume adjustment amounts, that is, signal amplitude mean values of different amplitude gears correspond to different volume adjustment amounts.
  • Step S130 Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  • the target volume is a value determined according to the user's habits.
  • the target volume can be understood as the user's preferred volume under the current type of audio to be processed.
  • the type of audio to be processed is different, and the corresponding target volume can be different, or the content of the audio to be processed.
  • the corresponding target volumes may be different.
  • the average signal amplitude of the audio to be processed in the embodiment of the present application corresponds to an amplitude level, and in order to meet the user's preferred loudness when the audio to be processed starts to play, you can start the audio to be processed During playback, the playback volume of the audio to be processed is adjusted with the obtained volume adjustment amount, so that by adjusting the playback volume once, the playback volume of the audio to be processed during the entire playback process can meet the user's preferred loudness.
  • adjusting the playback volume of the audio to be processed refers to adjusting the volume of the electronic device to play the audio to be processed.
  • the electronic device can use the volume adjusted by the user to play the audio to be processed. to resume playback.
  • the volume adjustment method in this embodiment can be executed when the audio to be played is switched from other audio to audio to be processed, or can be executed when the audio to be played is switched from audio to be processed to other audio.
  • the volume adjustment amount corresponding to the bit adjusts the playback volume of the audio to be processed, so that the electronic device can automatically adjust the playback volume of the audio to be processed in a targeted manner, thereby improving the intelligence of the volume control.
  • a volume control method provided by the present application obtains the amplitude gear to which the signal amplitude of the audio to be processed belongs, and then obtains the volume adjustment amount corresponding to the amplitude gear, and different amplitude gears correspond to different volume adjustment amounts, and then adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume.
  • This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
  • FIG. 2 shows a method flowchart of a volume control method provided in another embodiment of the present application.
  • the volume control method provided in this embodiment can be applied to electronic devices, and the method includes:
  • Step S210 Obtain the average value of the amplitude corresponding to each of the plurality of audio samples.
  • the multiple sample audios may be audios of different content types, may be audios of the same content type, or may be a combination of audios of the same content type and audios of different content types.
  • the source of sample audio may not be limited, for example, it may come from video, short video or audio played online in real time.
  • the signal amplitude of each audio in multiple sample audios can be obtained, wherein a sample audio includes multiple frames of audio, each frame of audio corresponds to a signal amplitude, and then calculated according to the respective signal amplitudes The average value of the audio amplitude for each sample.
  • Step S220 Obtain a designated volume level corresponding to each audio in the plurality of audio samples.
  • volume level represents the playback volume
  • specified volume level represents the user's usual (or preferred) playback volume
  • specified volume levels corresponding to different sample audios may be different.
  • the volume level of each of the multiple sample audios at the end of playback can be obtained, where the end of playback can be understood as the moment when the last frame of audio is played, and the volume level at the end of playback can be understood as To play the volume level of the last frame of audio, the volume level at the end of playback can be defaulted to the volume level preferred by the user, then the volume level of the audio at the end of playback can be used as the specified volume level corresponding to the audio.
  • the volume level of the audio at the end of playback can be detected first, if the volume level of the audio at the end of playback is lower than the preset volume level (at this time, the volume level can be 0, that is, the mute state , for example, if the user turns down the volume when listening to a song and gets sleepy, the music will play at the lowered volume until it finishes playing, or if the user turns the volume of the phone to silent mode while in a meeting, then The music will be played in silent mode until the end of the playback, at this time even if the music is playing, no sound can be heard), the preset volume level can be the critical volume level that allows the user to hear the sound, in this way, in order to ensure that the The user plays the sample audio at the customary playback volume, and can obtain the specified volume level corresponding to each of the multiple sample audios in a full sampling manner. Specifically, the volume level corresponding to the sample audio in any playback period may be acquired, and then the average of all acquired volume levels may be obtained
  • Step S230 Obtain a target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level.
  • the user preference volume may be constructed based on the amplitude mean value and the specified volume level as the target volume corresponding to the audio to be processed.
  • the volume of audio A played by the user at different time periods can be recorded.
  • the volume of audio A played by the user in the morning can be recorded as a1
  • the volume of audio A played by the user at noon can be recorded.
  • the volume of audio A is a2.
  • Record the volume of audio A played by the user at night is a3, and the average amplitude of audio A is B.
  • the user portrait can be constructed based on a1, a2, a3, and B.
  • a1, a2, a3, and B are input to the machine learning model to learn the user's preferred volume. In this way, the user's preferred volume can be used as the target volume corresponding to the audio to be processed.
  • Step S240 Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
  • Step S250 Obtain the volume adjustment amount corresponding to the amplitude gear.
  • the amplitude gear in order to facilitate the playback volume of the audio to be processed in the loudness range preferred by the user, when obtaining the volume adjustment corresponding to the amplitude gear, the amplitude gear can be determined based on the target volume
  • the corresponding volume adjustment amount specifically, the volume adjustment amount corresponding to the signal amplitude mean value of the amplitude gear can be determined based on the target volume (in this way, the volume adjustment amount corresponding to the signal amplitude mean value of the amplitude gear can be Volume adjustment amount, as the volume adjustment amount corresponding to the amplitude level), so that the adjusted playback volume of the audio to be processed can be close to the target volume.
  • the signal amplitude of the audio to be processed is divided into 6 gears, which are: -60db ⁇ -50db, -50db ⁇ -40db, -40db ⁇ -30db, -30db ⁇ -20db, -20db ⁇ -10db, -10db ⁇ 0db
  • the average signal amplitudes of the signal amplitudes of the 6 gears are -55db, -45db, -35db, -25db, -15db , -5db
  • the volume adjustments corresponding to the mean values of the six signal amplitudes are +15db, +5db, -5db, -15db, -25db, -35db, where the signal amplitude
  • the average value of -55db can be understood as the current reference playback volume of the audio to be processed is -55db (it should be
  • the playback of the adjusted audio to be processed can also be adjusted.
  • the volume is the same as or close to the target volume, which will not be repeated here. It should be noted that the value of the target volume in this embodiment can be changed, and as the target volume changes, the electronic device in this embodiment can determine the volume adjustment corresponding to the amplitude level based on the target volume in real time.
  • the volume adjustment amount corresponding to the amplitude level can be obtained from a preset table, wherein the preset table is determined according to the target volume.
  • the corresponding volume adjustment amount can be configured for the signal amplitude mean value of each amplitude gear, and the corresponding relationship between the amplitude gear and the volume adjustment amount can be stored in the form of a table.
  • the volume adjustment corresponding to the average value of the signal amplitude of the amplitude range can be used as the volume adjustment corresponding to the signal amplitude, that is, it can be selected from the preset table Find the volume adjustment amount corresponding to the amplitude gear to which the signal amplitude belongs.
  • the association relationship between the target volume, the amplitude level and the volume adjustment amount can be established, and the related amplitude determined based on the target volume can be calculated in real time.
  • the volume adjustment amount corresponding to the value gear is stored in the form of a preset table.
  • the volume adjustment amount corresponding to the amplitude gear determined based on the target volume of various values can be stored in the preset table, and then When obtaining the volume adjustment amount corresponding to the amplitude gear, the volume adjustment amount corresponding to the amplitude gear can be obtained directly from the preset table by looking up the table, that is, the volume adjustment amount acquisition process in this way It is static, and does not need to calculate the volume adjustment corresponding to the amplitude gear based on the target volume each time, thereby saving the power consumption of the electronic device.
  • Step S260 Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  • a volume control method provided by the present application is obtained by obtaining the respective amplitude mean values corresponding to a plurality of sample audios; obtaining the specified volume level corresponding to each audio in the plurality of sample audios; based on the amplitude mean value and the Specify the volume level to obtain the target volume corresponding to the audio to be processed; obtain the amplitude gear to which the signal amplitude of the audio to be processed belongs; obtain the volume adjustment corresponding to the amplitude gear; adjust the volume with the volume adjustment The playback volume of the audio to be processed, so that the playback volume of the audio to be processed is close to the target volume.
  • This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
  • FIG. 3 shows a method flowchart of a volume control method provided in another embodiment of the present application.
  • the volume control method provided in this embodiment can be applied to electronic devices, and the method includes:
  • Step S310 Obtain scene information to which the audio to be processed belongs.
  • the scene information may be understood as a usage scene of the audio to be processed.
  • the scene information of the audio to be processed can be a music festival scene; if the audio to be processed is light music, the scene information to which the audio to be processed can be a learning scene; music, then the scene information to which the audio to be processed belongs may be a sleep scene.
  • the scene information corresponding to the audio to be processed of different content types may be pre-configured, then the scene information to which the audio to be processed belongs may be acquired according to the content type of the audio to be processed.
  • the scene information to which the audio to be processed belongs may be determined according to the location of the electronic device, wherein the electronic device may determine its location in combination with the location information and the camera. For example, when it is detected that the electronic device is in public places such as hospitals and subways (in public places, it is recommended not to play the volume of the electronic device outside, so as not to disturb other users in private), it can be determined that the scene information of the audio to be processed belongs to the earphone wearing and playing scene. If it is detected that the electronic device is in a place such as a museum, then it may be determined that the scene information to which the audio to be processed belongs is a silent scene.
  • Step S320 Use the volume corresponding to the scene information as the target volume corresponding to the audio to be processed.
  • Different scene information may be correspondingly configured with different volumes. After determining the scene information to which the audio to be processed belongs, the volume corresponding to the scene information may be used as the target volume corresponding to the audio to be processed.
  • Step S330 Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
  • Step S340 Determine a volume adjustment amount corresponding to the amplitude level based on the target volume.
  • Step S350 Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  • a volume control method provided by the present application by obtaining the scene information to which the audio to be processed belongs; using the volume corresponding to the scene information as the target volume corresponding to the audio to be processed; obtaining the signal of the audio to be processed The amplitude gear to which the amplitude belongs; determine the volume adjustment amount corresponding to the amplitude gear based on the target volume; then adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the pending The playback volume of the processed audio is close to the target volume.
  • This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
  • FIG. 4 shows a structural block diagram of a volume control device provided by an embodiment of the present application.
  • the volume control device 400 provided in this embodiment can run on electronic equipment, and the device 400 includes amplitude gear acquisition Module 410, volume adjustment amount acquisition module 420 and volume control module 430:
  • the amplitude gear acquisition module 410 is configured to acquire the amplitude gear to which the audio signal amplitude to be processed belongs.
  • the volume adjustment amount acquisition module 420 is configured to acquire the volume adjustment amount corresponding to the amplitude gear.
  • the volume control module 430 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
  • FIG. 5 shows a structural block diagram of a volume control device provided in another embodiment of the present application.
  • the volume control device 500 provided in this embodiment can run on electronic equipment, and the device 500 includes amplitude and mean acquisition Unit 510, volume level acquisition unit 520, target volume acquisition unit 530, amplitude gear acquisition unit 540, volume adjustment determination unit 550 and volume control unit 560:
  • the amplitude mean value acquisition unit 510 is configured to acquire the corresponding amplitude mean values of the plurality of audio samples.
  • the volume level acquiring unit 520 is configured to acquire a specified volume level corresponding to each audio in the plurality of sample audios.
  • the volume level acquisition unit 520 can be specifically configured to acquire the volume level of each audio in the plurality of audio samples at the end of playing; the volume level at the end of playing is used as the corresponding The specified volume level.
  • the volume level acquisition unit 520 can be specifically configured to acquire the audio corresponding to each of the multiple sample audios in a full sampling manner if the volume level at the end of the sample audio playback is lower than the preset volume level. specified volume level.
  • a target volume acquiring unit 530 configured to acquire a target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level.
  • the target volume acquiring unit 530 may be specifically configured to construct a user preferred volume based on the amplitude mean value and the specified volume level as the target volume corresponding to the audio to be processed.
  • the amplitude scale obtaining unit 540 is configured to obtain the amplitude scale to which the signal amplitude of the audio to be processed belongs.
  • the volume adjustment amount determination unit 550 is configured to acquire the volume adjustment amount corresponding to the amplitude gear.
  • the volume adjustment amount determining unit 550 may be specifically configured to determine a volume adjustment amount corresponding to the amplitude gear based on the target volume.
  • the volume adjustment amount determining unit 550 may be specifically configured to obtain the volume adjustment amount corresponding to the amplitude gear from a preset table, which is determined according to the target volume.
  • the volume control unit 560 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
  • FIG. 6 shows a structural block diagram of a volume control device provided in another embodiment of the present application.
  • the volume control device 600 provided in this embodiment can run on electronic equipment, and the device 600 includes a scene acquisition unit 610 , the target volume acquisition unit 620, the amplitude gear acquisition unit 630, the volume adjustment amount determination unit 640 and the volume control unit 650:
  • the scene obtaining unit 610 is configured to obtain scene information to which the audio to be processed belongs.
  • the target volume acquiring unit 620 is configured to acquire the volume corresponding to the scene information as the target volume corresponding to the audio to be processed.
  • the amplitude level acquiring unit 630 is configured to acquire the amplitude level to which the signal amplitude of the audio to be processed belongs.
  • a volume adjustment amount determining unit 640 configured to determine a volume adjustment amount corresponding to the amplitude gear based on the target volume.
  • the volume control unit 650 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the embodiment of the present application also provides an electronic device 100 capable of executing the above volume control method and device.
  • the electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processors 104 are connected by communication lines.
  • the program stored in the memory 102 can execute the content in the foregoing embodiments, and the processor 104 can execute the program stored in the memory 102 .
  • the processor 104 may include one or more processing cores.
  • the processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 102, and calls data stored in the memory 102 to execute Various functions of the electronic device 100 and processing data.
  • the processor 104 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 104 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 104, but implemented by a communication chip alone.
  • the memory 102 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 102 may be used to store instructions, programs, codes, code sets or instruction sets, for example, a volume control device may be stored in the memory 102 .
  • the volume control device may be the aforementioned volume control device 400 , volume control device 500 or volume control device 600 .
  • the memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for realizing the foregoing embodiments, and the like.
  • the storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
  • FIG. 8 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable storage medium 700, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 700 has a storage space for program code 710 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • Program code 710 may, for example, be compressed in a suitable form.
  • the embodiment of the present application also provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the methods described in the foregoing method embodiments are implemented.
  • the present application provides a volume control method and device, electronic equipment, and storage medium.
  • the method includes: obtaining the amplitude gear to which the signal amplitude of the audio to be processed belongs; A corresponding volume adjustment amount: adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  • This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in the embodiments of the present application are a volume control method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring an amplitude gear to which a signal amplitude of audio to be processed belongs; acquiring a volume adjustment amount which corresponds to the amplitude gear; and adjusting the playing volume of said audio according to the volume adjustment amount, such that the playing volume of said audio is close to a target volume, wherein the target volume is a value determined according to user habits. By means of the method, the playing volume of audio to be processed can be adaptively adjusted according to an amplitude gear to which a signal amplitude of said audio belongs, such that the playing volume of said audio is close to a target volume, thereby improving the intelligence of volume control.

Description

音量控制方法及装置、电子设备及存储介质Volume control method and device, electronic device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年10月25日提交的申请号为202111242630.6的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese Application No. 202111242630.6 filed on October 25, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及设备控制技术领域,更具体地,涉及一种音量控制方法及装置、电子设备及存储介质。The present application relates to the technical field of equipment control, and more specifically, to a volume control method and device, electronic equipment, and a storage medium.
背景技术Background technique
随着智能终端技术的发展,越来越多的智能终端配置有音量平衡功能,使得在通过音频播放软件播放歌曲时,可以让所有歌曲以音量相近的声音播放,给用户带来优质的听觉体验。然而,相关的音量平衡功能仍不够智能。With the development of smart terminal technology, more and more smart terminals are equipped with a volume balance function, so that when playing songs through audio player software, all songs can be played at a similar volume, bringing users a high-quality listening experience . However, the related volume balance function is still not smart enough.
发明内容Contents of the invention
本申请提出了一种音量控制方法及装置、电子设备及存储介质。The present application proposes a volume control method and device, electronic equipment and a storage medium.
第一方面,本申请实施例提供了一种音量控制方法,应用于电子设备,所述方法包括:获取待处理音频的信号幅值所属的幅值档位,获取与所述幅值档位对应的音量调整量;以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习惯确定的值。In the first aspect, the embodiment of the present application provides a volume control method, which is applied to electronic equipment, and the method includes: acquiring the amplitude gear to which the signal amplitude of the audio to be processed belongs, and acquiring the volume corresponding to the amplitude gear. Adjusting the volume of the volume; adjusting the playback volume of the audio to be processed by the volume adjustment, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
第二方面,本申请实施例提供了一种音量控制装置,运行于电子设备,所述装置包括:幅值档位获取模块,用于获取待处理音频的信号幅值所属的幅值档位;音量调整量获取模块,用于获取与所述幅值档位对应的音量调整 量;音量控制模块,用于以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与所述目标音量相接近,所述目标音量为根据用户习惯确定的值。In a second aspect, an embodiment of the present application provides a volume control device that runs on an electronic device, and the device includes: an amplitude gear acquisition module, configured to acquire the amplitude gear to which the signal amplitude of the audio to be processed belongs; The volume adjustment acquisition module is used to acquire the volume adjustment corresponding to the amplitude gear; the volume control module is used to adjust the playback volume of the audio to be processed according to the volume adjustment, so that the audio to be processed The playback volume of the audio is close to the target volume, and the target volume is a value determined according to user habits.
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面所述的方法。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more A plurality of processors are executed, and the one or more programs are configured to execute the method described in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the method of the above-mentioned first aspect is executed when the program code is running.
第五方面,本申请实施例提供了一种计算机程序产品,包括确定机程序/指令,该确定机程序/指令被处理器执行时实现上述第一方面所述的方法的步骤。In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the method described in the above-mentioned first aspect are implemented.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请一实施例提供的一种音量控制方法的方法流程图;FIG. 1 shows a method flow chart of a volume control method provided by an embodiment of the present application;
图2示出了本申请另一实施例提供的一种音量控制方法的方法流程图;FIG. 2 shows a method flowchart of a volume control method provided by another embodiment of the present application;
图3示出了本申请又一实施例提供的一种音量控制方法的方法流程图;Fig. 3 shows a method flow chart of a volume control method provided by another embodiment of the present application;
图4示出了本申请一实施例提供的一种音量控制装置的结构框图;Fig. 4 shows a structural block diagram of a volume control device provided by an embodiment of the present application;
图5示出了本申请另一实施例提供的一种音量控制装置的结构框图;Fig. 5 shows a structural block diagram of a volume control device provided by another embodiment of the present application;
图6示出了本申请又一实施例提供的一种音量控制装置的结构框图;Fig. 6 shows a structural block diagram of a volume control device provided by another embodiment of the present application;
图7示出了本申请的用于执行根据本申请实施例的一种音量控制方法的电子设备的结构框图;FIG. 7 shows a structural block diagram of an electronic device for performing a volume control method according to an embodiment of the present application;
图8是本申请实施例的用于保存或者携带实现根据本申请实施例的一种音量控制方法的程序代码的存储单元。Fig. 8 is a storage unit for storing or carrying program codes for realizing a volume control method according to an embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
近年来,随着智能终端技术的不断发展以及互联网技术的发展,越来越多的用户通过手机等智能设备观看短视频,短视频的内容涵盖了生活的方方面面,极大地丰富了人们的业余生活以及视野。然而,短视频的音源音量大小通常参差不齐,导致用户在刷短视频的过程中需要反复调节音量,用户体验不佳。In recent years, with the continuous development of smart terminal technology and the development of Internet technology, more and more users watch short videos through smart devices such as mobile phones. The content of short videos covers all aspects of life and greatly enriches people's spare time. and field of view. However, the volume of the sound source of the short video is usually uneven, causing the user to repeatedly adjust the volume while viewing the short video, resulting in a poor user experience.
作为一种调节音量的方式,可以给智能设备配置音量平衡功能,使得可以自动的平衡音频的播放音量。其中,音量平衡的原理就是把所有音频的音量信息都扫描一遍,计算出平均音量,对于声音大的音频通过减声贝接近平均值,而对于声音小的音频通过加声贝接近平均值,从而达到音量平衡的效果。然而,发明人经过长期的研究发现,相关的音量平衡功能使用范围有限(例如,只能应用于本地音源,且需要连接特定的软件才能使用),且不够智能。As a way to adjust the volume, the smart device can be configured with a volume balance function, so that the audio playback volume can be automatically balanced. Among them, the principle of volume balance is to scan the volume information of all audios to calculate the average volume. For loud audio, the sound is reduced to approach the average value, and for the low-sound audio, the sound is increased to approach the average value, so that achieve volume balance. However, the inventor has found through long-term research that the related volume balance function has a limited scope of use (for example, it can only be applied to local audio sources, and needs to be connected to specific software to use), and it is not smart enough.
为了优化上述问题,本申请实施例提出了可以根据待处理音频的信号幅值所属的幅值档位,自适应地对待处理音频的播放音量进行调整,进而使得待处理音频的播放音量与目标音量接近,从而提升音量控制的智能性的音量控制方法及装置、电子设备及存储介质。In order to optimize the above problems, the embodiment of the present application proposes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is equal to the target volume Approximate to improve the intelligence of the volume control volume control method and device, electronic equipment and storage media.
下面将结合附图具体描述本申请的各实施例。Various embodiments of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图1,示出了本申请一实施例提供的一种音量控制方法的方法流程图,本实施例提供的音量控制方法,可应用于电子设备,所述方法包括:Please refer to FIG. 1 , which shows a method flowchart of a volume control method provided by an embodiment of the present application. The volume control method provided by this embodiment can be applied to electronic devices, and the method includes:
步骤S110:获取待处理音频的信号幅值所属的幅值档位。Step S110: Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
本申请实施例中的待处理音频为实时在线待播放的音频(例如,可以为缓冲好后即将播放的音频),该种方式下的待处理音频可以来源于网络上的视频、短视频或音频。可选的,在其他实施方式中,待处理音频可以为待播放的音频,该种方式下的待处理音频可以来源于本地。本申请实施例中,待处理音频的内容形式可以不作限定,例如,待处理音频可以为音乐、电影配音、朗诵节目音频或者是电台节目音频等。The audio to be processed in the embodiment of the present application is the audio to be played online in real time (for example, it can be the audio to be played after buffering), and the audio to be processed in this way can come from video, short video or audio on the network . Optionally, in other implementation manners, the audio to be processed may be audio to be played, and the audio to be processed in this manner may originate locally. In this embodiment of the present application, the content form of the audio to be processed may not be limited. For example, the audio to be processed may be music, movie dubbing, recitation program audio, or radio program audio.
其中,待处理音频的幅值表征在一个周期内,交流电瞬时出现的最大绝对值,该最大绝对值可以理解为待处理音频的音频信号正弦波图中波峰到波谷的距离,也可以理解为表示信号声音大小的一个值。一段待处理音频可以有多个幅值,对于一段待处理音频而言,本申请实施例中待处理音频的信号幅值表征待处理音频的信号幅值均值,作为一种方式,可以通过检测待处理音频的多个幅值来计算待处理音频的信号幅值均值,不同的待处理音频均对应有各自的信号幅值均值。Among them, the amplitude of the audio to be processed represents the maximum absolute value of the alternating current instantaneously within one cycle, and the maximum absolute value can be understood as the distance from the peak to the trough in the audio signal sine wave diagram of the audio to be processed, and can also be understood as expressing A value for the loudness of the signal. A piece of audio to be processed can have multiple amplitudes. For a piece of audio to be processed, the signal amplitude of the audio to be processed in the embodiment of the present application represents the average value of the signal amplitude of the audio to be processed. As a way, it can be detected by detecting Multiple amplitudes of the audio are processed to calculate the average signal amplitude of the audio to be processed, and different audios to be processed correspond to their own average signal amplitudes.
待处理音频的信号幅值的大小会影响相关平衡音量的方式中对音源的增益程度,例如,若待处理音频的信号幅值高于信号幅值均值,则需要对该音频对应的音源做负增益处理;若待处理音频的信号幅值低于信号幅值均值,则需要对该音频对应的音源做正增益处理,如此,在对每一段音频进行音量平衡时,需要比较信号幅值与信号幅值均值的大小,并根据比较结果做出相应的增益处理,增加了音量平衡处理的复杂度,且降低了音量调整过程的智能性。The magnitude of the signal amplitude of the audio to be processed will affect the degree of gain to the sound source in the way of balancing the volume. For example, if the signal amplitude of the audio to be processed is higher than the average value of the signal amplitude, the audio source corresponding to the audio needs to be negatively adjusted. Gain processing; if the signal amplitude of the audio to be processed is lower than the average value of the signal amplitude, it is necessary to perform positive gain processing on the audio source corresponding to the audio. In this way, when balancing the volume of each audio segment, it is necessary to compare the signal amplitude with the signal The magnitude of the average value of the amplitude, and corresponding gain processing is performed according to the comparison result, which increases the complexity of the volume balance processing and reduces the intelligence of the volume adjustment process.
本申请实施例会对音频的信号幅值进行档位划分(简称为分档),得到至少两个幅值档位,每个幅值档位可以包括相同数量的信号幅值,该数量的具体数值可以不作限定,例如,每个幅值档位可以均包括10个信号幅值或者是均包括100个信号幅值。其中,音频的信号幅值不同对应的幅值档位可以不同,或者,不同信号幅值的音频对应的幅值档位可以相同,例如,假设分档后得到的幅值档位包括-20db~-10db以及-10db~0db,那么信号幅值-15db属于幅值档位-20db~-10db,而信号幅值-5db属于幅值档位-10db~-0db;信号幅值-8db以及 -6db均属于幅值档位-10db~-0db。In the embodiment of the present application, the audio signal amplitude is divided into gears (abbreviated as binning), and at least two amplitude gears are obtained, and each amplitude gear can include the same number of signal amplitudes, and the specific value of the number It may not be limited, for example, each amplitude level may include 10 signal amplitudes or 100 signal amplitudes. Among them, the amplitude gears corresponding to different audio signal amplitudes can be different, or the amplitude gears corresponding to audio with different signal amplitudes can be the same. For example, suppose the amplitude gears obtained after binning include -20db~ -10db and -10db~0db, then the signal amplitude -15db belongs to the amplitude gear -20db~-10db, and the signal amplitude -5db belongs to the amplitude gear -10db~-0db; the signal amplitude -8db and -6db All belong to the range of amplitude -10db~-0db.
在这种方式下,对于本申请所获得的待处理音频的信号幅值均值,可以确定该信号幅值均值所属的幅值档位,进而根据该幅值档位确定对待处理音频的增益程度而实现音量平衡,避免了通过比较待处理音频的每一信号幅值与信号幅值均值的大小的方式来实现音量平衡,从而降低了音量平衡处理的复杂度。In this way, for the average signal amplitude value of the audio to be processed obtained in this application, the amplitude gear to which the average signal amplitude value belongs can be determined, and then the gain degree of the audio to be processed can be determined according to the amplitude gear. Realizing the volume balance avoids realizing the volume balance by comparing the magnitude of each signal amplitude of the audio to be processed with the average value of the signal amplitude, thereby reducing the complexity of the volume balance processing.
步骤S120:获取与所述幅值档位对应的音量调整量。Step S120: Obtain the volume adjustment amount corresponding to the amplitude level.
本申请实施例中,不同的幅值档位对应不同的音量调整量,即不同幅值档位的信号幅值均值对应不同的音量调整量。通过获取与幅值档位对应的音量调整量,使得可以更加智能的根据待处理音频的信号幅值均值所在的幅值档位所对应的音量调整量对待处理音频的播放音量进行调整。In the embodiment of the present application, different amplitude gears correspond to different volume adjustment amounts, that is, signal amplitude mean values of different amplitude gears correspond to different volume adjustment amounts. By acquiring the volume adjustment amount corresponding to the amplitude gear, the playback volume of the audio to be processed can be adjusted more intelligently according to the volume adjustment amount corresponding to the amplitude gear where the average signal amplitude of the audio to be processed is located.
步骤S130:以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习惯确定的值。Step S130: Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
其中,目标音量为根据用户习惯确定的值,目标音量可以理解为当前类型的待处理音频下的用户偏好音量,待处理音频的类型不同,对应的目标音量可以不同,或者是待处理音频的内容不同,对应的目标音量可以不同。通过以与待处理音频的信号幅值所属的幅值档位对应的音量调整量调整待处理音频的播放音量,可以使调整后的待处理音频的播放音量与目标音量相接近。Among them, the target volume is a value determined according to the user's habits. The target volume can be understood as the user's preferred volume under the current type of audio to be processed. The type of audio to be processed is different, and the corresponding target volume can be different, or the content of the audio to be processed. The corresponding target volumes may be different. By adjusting the playback volume of the audio to be processed with the volume adjustment amount corresponding to the amplitude level to which the signal amplitude of the audio to be processed belongs, the adjusted playback volume of the audio to be processed can be made close to the target volume.
需要说明的是,本申请实施例中的待处理音频的信号幅值均值对应一个幅值档位,而为了便于待处理音频一开始播放时就能满足用户的偏好响度,可以在待处理音频开始播放时以获取的所述音量调整量调整待处理音频的播放音量,使得通过调整一次播放音量,即可实现使待处理音频的整个播放过程中的播放音量均能满足用户偏好响度。其中,调整待处理音频的播放音量指的是调整电子设备播放待处理音频的音量。It should be noted that the average signal amplitude of the audio to be processed in the embodiment of the present application corresponds to an amplitude level, and in order to meet the user's preferred loudness when the audio to be processed starts to play, you can start the audio to be processed During playback, the playback volume of the audio to be processed is adjusted with the obtained volume adjustment amount, so that by adjusting the playback volume once, the playback volume of the audio to be processed during the entire playback process can meet the user's preferred loudness. Wherein, adjusting the playback volume of the audio to be processed refers to adjusting the volume of the electronic device to play the audio to be processed.
可选的,通过本实施方式中的音量控制方式对待处理音频的播放音量进行调整后,若用户自行又调整了待处理音频的播放音量,那么电子设备可以以用户调整后的播放音量对待处理音频进行继续播放。Optionally, after the playback volume of the audio to be processed is adjusted through the volume control method in this embodiment, if the user adjusts the playback volume of the audio to be processed by himself, the electronic device can use the volume adjusted by the user to play the audio to be processed. to resume playback.
本实施方式中的音量调整方法可以在当前待播放的音频由其他音频切换为待处理音频时执行,也可以在当前待播放的音频由待处理音频切换为其他音频时执行,通过以幅值档位对应的音量调整量调整待处理音频的播放音量,使得电子设备可以自动地有针对性的对待处理音频的播放音量进行调整,提升音量控制的智能性。The volume adjustment method in this embodiment can be executed when the audio to be played is switched from other audio to audio to be processed, or can be executed when the audio to be played is switched from audio to be processed to other audio. The volume adjustment amount corresponding to the bit adjusts the playback volume of the audio to be processed, so that the electronic device can automatically adjust the playback volume of the audio to be processed in a targeted manner, thereby improving the intelligence of the volume control.
本申请提供的一种音量控制方法,通过获取所述待处理音频的信号幅值所属的幅值档位,继而获取与所述幅值档位对应的音量调整量,不同的幅值档位对应不同的音量调整量,然后以所述音量调整量调整待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近。本方法实现了可以根据待处理音频的信号幅值所属的幅值档位,自适应地对待处理音频的播放音量进行调整,进而使得待处理音频的播放音量与目标音量接近,提升了音量控制的智能性。A volume control method provided by the present application obtains the amplitude gear to which the signal amplitude of the audio to be processed belongs, and then obtains the volume adjustment amount corresponding to the amplitude gear, and different amplitude gears correspond to different volume adjustment amounts, and then adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume. This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
请参阅图2,示出了本申请另一实施例提供的一种音量控制方法的方法流程图,本实施例提供的音量控制方法,可应用于电子设备,所述方法包括:Please refer to FIG. 2 , which shows a method flowchart of a volume control method provided in another embodiment of the present application. The volume control method provided in this embodiment can be applied to electronic devices, and the method includes:
步骤S210:获取多个样本音频各自对应的幅值均值。Step S210: Obtain the average value of the amplitude corresponding to each of the plurality of audio samples.
其中,多个样本音频可以是不同内容类型的音频,可以是相同内容类型的音频,或者可以是相同内容类型的音频与不同内容类型的音频的组合。样本音频的来源可以不作限定,例如,可以来源于在线实时播放的视频、短视频或者音频等。Wherein, the multiple sample audios may be audios of different content types, may be audios of the same content type, or may be a combination of audios of the same content type and audios of different content types. The source of sample audio may not be limited, for example, it may come from video, short video or audio played online in real time.
作为一种方式,可以获取多个样本音频中的每一个音频的信号幅值,其中,一个样本音频包括多帧音频,每一帧音频对应有一个信号幅值,再根据各自的信号幅值计算每一个样本音频的幅值均值。As a way, the signal amplitude of each audio in multiple sample audios can be obtained, wherein a sample audio includes multiple frames of audio, each frame of audio corresponds to a signal amplitude, and then calculated according to the respective signal amplitudes The average value of the audio amplitude for each sample.
步骤S220:获取所述多个样本音频中的每一个音频对应的指定音量等级。Step S220: Obtain a designated volume level corresponding to each audio in the plurality of audio samples.
其中,音量等级表征播放音量大小,指定音量等级表征用户常用的(或偏好的)播放音量大小,不同的样本音频对应的指定音量等级可以不同。Wherein, the volume level represents the playback volume, and the specified volume level represents the user's usual (or preferred) playback volume, and the specified volume levels corresponding to different sample audios may be different.
在一种实现方式中,可以获取多个样本音频中的每一个音频在播放结束时刻的音量等级,其中,播放结束时刻可以理解为播放最后一帧音频的时刻,播 放结束时刻的音量等级可以理解为播放音频最后一帧的音量大小,可以将播放结束时刻的音量等级默认为用户偏好的音量等级,那么,可以将音频在播放结束时刻的音量等级作为该音频对应的指定音量等级。In one implementation, the volume level of each of the multiple sample audios at the end of playback can be obtained, where the end of playback can be understood as the moment when the last frame of audio is played, and the volume level at the end of playback can be understood as To play the volume level of the last frame of audio, the volume level at the end of playback can be defaulted to the volume level preferred by the user, then the volume level of the audio at the end of playback can be used as the specified volume level corresponding to the audio.
在另一种实现方式中,可以先对音频在播放结束时刻的音量等级进行检测,若音频在播放结束时刻的音量等级低于预设音量等级(此时该音量等级可以为0,即静音状态,例如,当用户在听歌的过程中犯困时会将音量调小,那么音乐会以调小后的音量播放直至播放结束,或者是当用户在开会时会将手机音量设为静音模式,那么音乐会以静音模式播放直至播放结束,此时即便在播放音乐也听不到声音),预设音量等级可以为能够使用户听到声音的临界音量等级,此种方式下,为了确保能够以符合用户使用习惯的播放音量播放样本音频,可以按照全采样的方式获取多个样本音频中的每一个音频对应的指定音量等级。具体的,可以获取在任意播放时段内样本音频对应的音量等级,再将所有获取到的音量等级求均值,得到指定音量等级。In another implementation, the volume level of the audio at the end of playback can be detected first, if the volume level of the audio at the end of playback is lower than the preset volume level (at this time, the volume level can be 0, that is, the mute state , for example, if the user turns down the volume when listening to a song and gets sleepy, the music will play at the lowered volume until it finishes playing, or if the user turns the volume of the phone to silent mode while in a meeting, then The music will be played in silent mode until the end of the playback, at this time even if the music is playing, no sound can be heard), the preset volume level can be the critical volume level that allows the user to hear the sound, in this way, in order to ensure that the The user plays the sample audio at the customary playback volume, and can obtain the specified volume level corresponding to each of the multiple sample audios in a full sampling manner. Specifically, the volume level corresponding to the sample audio in any playback period may be acquired, and then the average of all acquired volume levels may be obtained to obtain the specified volume level.
可选的,若用户在播放音乐的过程中突然将播放音量调得很低,那么可以获取该音频的播放音量首次被调低的时刻及之前的每一个时刻对应的音量大小,再按照全采样的方式获取音频对应的指定音量等级,具体获取原理与上述实现方式类似,在此不再赘述。Optionally, if the user suddenly lowers the playback volume during music playback, you can obtain the moment when the audio playback volume was lowered for the first time and the volume corresponding to each previous moment, and then follow the full sampling The specified volume level corresponding to the audio is acquired in a manner, and the specific acquisition principle is similar to the above-mentioned implementation manner, and will not be repeated here.
步骤S230:基于所述幅值均值和所述指定音量等级获取待处理音频对应的目标音量。Step S230: Obtain a target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level.
作为一种方式,可以基于幅值均值和指定音量等级构建用户偏好音量,作为待处理音频对应的目标音量。在一个具体的应用场景中,假设待处理音频为音频A,可以记录用户在不同时段播放音频A的音量大小,例如,可以记录用户在早上播放音频A的音量大小为a1,记录用户在中午播放音频A的音量大小为a2,记录用户在晚上播放音频A的音量大小为a3,而音频A的幅值均值为B,那么可以基于a1、a2、a3以及B构建用户画像,具体的,可以将a1、a2、a3以及B输入到机器学习模型,学习得到用户偏好音量,在该种方式下,可以将用户偏好音量作为待处理音频对应的目标音量。As a manner, the user preference volume may be constructed based on the amplitude mean value and the specified volume level as the target volume corresponding to the audio to be processed. In a specific application scenario, assuming that the audio to be processed is audio A, the volume of audio A played by the user at different time periods can be recorded. For example, the volume of audio A played by the user in the morning can be recorded as a1, and the volume of audio A played by the user at noon can be recorded. The volume of audio A is a2. Record the volume of audio A played by the user at night is a3, and the average amplitude of audio A is B. Then the user portrait can be constructed based on a1, a2, a3, and B. Specifically, a1, a2, a3, and B are input to the machine learning model to learn the user's preferred volume. In this way, the user's preferred volume can be used as the target volume corresponding to the audio to be processed.
步骤S240:获取待处理音频的信号幅值所属的幅值档位。Step S240: Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
步骤S250:获取与所述幅值档位对应的音量调整量。Step S250: Obtain the volume adjustment amount corresponding to the amplitude gear.
作为一种实施方式,为了便于待处理音频播放过程中的播放音量处于用户偏好的响度范围,在获取与所述幅值档位对应的音量调整量时,可以基于目标音量确定与幅值档位对应的音量调整量,具体的,可以基于目标音量确定与幅值档位的信号幅值均值对应的音量调整量(在该种方式下,可以将与幅值档位的信号幅值均值对应的音量调整量,作为与该幅值档位对应的音量调整量),以使得调整后的待处理音频的播放音量可以与目标音量相接近。As an implementation, in order to facilitate the playback volume of the audio to be processed in the loudness range preferred by the user, when obtaining the volume adjustment corresponding to the amplitude gear, the amplitude gear can be determined based on the target volume The corresponding volume adjustment amount, specifically, the volume adjustment amount corresponding to the signal amplitude mean value of the amplitude gear can be determined based on the target volume (in this way, the volume adjustment amount corresponding to the signal amplitude mean value of the amplitude gear can be Volume adjustment amount, as the volume adjustment amount corresponding to the amplitude level), so that the adjusted playback volume of the audio to be processed can be close to the target volume.
例如,在一个具体的应用场景中,假设目标音量为-40db,待处理音频的信号幅值分档为6个档位,分别为:-60db~-50db,-50db~-40db,-40db~-30db,-30db~-20db,-20db~-10db,-10db~0db,该6个档位的信号幅值各自的信号幅值均值为-55db,-45db,-35db,-25db,-15db,-5db,那么,结合目标音量可以确定出与该6个信号幅值均值各自对应的音量调整量为+15db,+5db,-5db,-15db,-25db,-35db,其中,信号幅值均值为-55db可以理解为待处理音频当前的参考播放音量为-55db(需要说明的是,这里的参考播放音量可以理解为近似播放音量,假设待处理音频的信号幅值为-52db,因-52db落在幅值档位-60db~-50db内,那么也可以将幅值档位-60db~-50db的信号幅值均值为-55db对应的音量调整量作为信号幅值-52db对应的音量调整量),为了便于使待处理音频的播放音量与目标音量相接近,可以控制将待处理音频的播放音量调整+15db,使得调整后的待处理音频的播放音量为-55db+15db=-40db,上述所例举的数值仅作为示例进行说明,并不构成对本方案的限定,实际实现时可以采用其他数值。同理,当待处理音频的信号幅值落在其他档位时,通过以与其他幅值档位对应的音量调整量调整待处理音频的播放音量,也可以使调整后的待处理音频的播放音量与目标音量相同或者接近,在此不再赘述。需要说明的是,本实施方式中的目标音量的值可以变化,并且,随着目标音量的变化,本实施方式中的电子设备可以实时基于目标音量确定与幅值档位对应的音量调整量。For example, in a specific application scenario, assuming that the target volume is -40db, the signal amplitude of the audio to be processed is divided into 6 gears, which are: -60db~-50db, -50db~-40db, -40db~ -30db, -30db~-20db, -20db~-10db, -10db~0db, the average signal amplitudes of the signal amplitudes of the 6 gears are -55db, -45db, -35db, -25db, -15db , -5db, then, combined with the target volume, it can be determined that the volume adjustments corresponding to the mean values of the six signal amplitudes are +15db, +5db, -5db, -15db, -25db, -35db, where the signal amplitude The average value of -55db can be understood as the current reference playback volume of the audio to be processed is -55db (it should be noted that the reference playback volume here can be understood as an approximate playback volume, assuming that the signal amplitude of the audio to be processed is -52db, because- If 52db falls within the amplitude range -60db~-50db, then the volume adjustment corresponding to the average signal amplitude of the amplitude range -60db~-50db -55db can also be used as the volume adjustment corresponding to the signal amplitude -52db Volume), in order to make the playback volume of the audio to be processed close to the target volume, the playback volume of the audio to be processed can be controlled to be adjusted by +15db, so that the playback volume of the audio to be processed after adjustment is -55db+15db=-40db, The numerical values cited above are only used as examples for illustration, and do not constitute a limitation to this solution, and other numerical values may be used in actual implementation. Similarly, when the signal amplitude of the audio to be processed falls in other gears, by adjusting the playback volume of the audio to be processed with the volume adjustment corresponding to other amplitude gears, the playback of the adjusted audio to be processed can also be adjusted. The volume is the same as or close to the target volume, which will not be repeated here. It should be noted that the value of the target volume in this embodiment can be changed, and as the target volume changes, the electronic device in this embodiment can determine the volume adjustment corresponding to the amplitude level based on the target volume in real time.
作为另一种实施方式,可以从预设表格中获取与幅值档位对应的音量调整 量,其中,预设表格为根据目标音量确定。具体的,可以为每个幅值档位的信号幅值均值配置对应的音量调整量,并将幅值档位与音量调整量建立对应关系后以表格的形式存储,在这种方式下,当某个信号幅值落在一个幅值档位时,可以将与该幅值档位的信号幅值均值对应的音量调整量作为该信号幅值对应的音量调整量,即可以从预设表格中查找得到与信号幅值所属的幅值档位对应的音量调整量。需要说明的是,相对于前一实施方式,本实施方式中在获取音量调整量时,可以建立目标音量、幅值档位以及音量调整量的关联关系,并将实时基于目标音量确定的与幅值档位对应的音量调整量以预设表格的形式存储下来,在该种方式下,预设表格中可以存储基于多种值的目标音量确定的与幅值档位对应的音量调整量,进而在获取与幅值档位对应的音量调整量时,可以直接从预设表格中通过查表的方式获得与幅值档位对应的音量调整量,即该种方式下的音量调整量的获取过程是静态的,而不需要每次都基于目标音量计算得到与幅值档位对应的音量调整量,从而节省了电子设备的功耗。As another implementation manner, the volume adjustment amount corresponding to the amplitude level can be obtained from a preset table, wherein the preset table is determined according to the target volume. Specifically, the corresponding volume adjustment amount can be configured for the signal amplitude mean value of each amplitude gear, and the corresponding relationship between the amplitude gear and the volume adjustment amount can be stored in the form of a table. In this way, when When a certain signal amplitude falls in an amplitude range, the volume adjustment corresponding to the average value of the signal amplitude of the amplitude range can be used as the volume adjustment corresponding to the signal amplitude, that is, it can be selected from the preset table Find the volume adjustment amount corresponding to the amplitude gear to which the signal amplitude belongs. It should be noted that, compared with the previous embodiment, when obtaining the volume adjustment amount in this embodiment, the association relationship between the target volume, the amplitude level and the volume adjustment amount can be established, and the related amplitude determined based on the target volume can be calculated in real time. The volume adjustment amount corresponding to the value gear is stored in the form of a preset table. In this way, the volume adjustment amount corresponding to the amplitude gear determined based on the target volume of various values can be stored in the preset table, and then When obtaining the volume adjustment amount corresponding to the amplitude gear, the volume adjustment amount corresponding to the amplitude gear can be obtained directly from the preset table by looking up the table, that is, the volume adjustment amount acquisition process in this way It is static, and does not need to calculate the volume adjustment corresponding to the amplitude gear based on the target volume each time, thereby saving the power consumption of the electronic device.
步骤S260:以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习惯确定的值。Step S260: Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
本申请提供的一种音量控制方法,通过获取多个样本音频各自对应的幅值均值;获取所述多个样本音频中的每一个音频对应的指定音量等级;基于所述幅值均值和所述指定音量等级获取待处理音频对应的目标音量;获取待处理音频的信号幅值所属的幅值档位;获取与所述幅值档位对应的音量调整量;以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近。本方法实现了可以根据待处理音频的信号幅值所属的幅值档位,自适应地对待处理音频的播放音量进行调整,进而使得待处理音频的播放音量与目标音量接近,提升了音量控制的智能性。A volume control method provided by the present application is obtained by obtaining the respective amplitude mean values corresponding to a plurality of sample audios; obtaining the specified volume level corresponding to each audio in the plurality of sample audios; based on the amplitude mean value and the Specify the volume level to obtain the target volume corresponding to the audio to be processed; obtain the amplitude gear to which the signal amplitude of the audio to be processed belongs; obtain the volume adjustment corresponding to the amplitude gear; adjust the volume with the volume adjustment The playback volume of the audio to be processed, so that the playback volume of the audio to be processed is close to the target volume. This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
请参阅图3,示出了本申请又一实施例提供的一种音量控制方法的方法流程图,本实施例提供的音量控制方法,可应用于电子设备,所述方法包括:Please refer to FIG. 3 , which shows a method flowchart of a volume control method provided in another embodiment of the present application. The volume control method provided in this embodiment can be applied to electronic devices, and the method includes:
步骤S310:获取所述待处理音频所属的场景信息。Step S310: Obtain scene information to which the audio to be processed belongs.
其中,待处理音频的内容类型可以有多种,不同内容类型的待处理音频所属的场景信息不同,场景信息可以理解为待处理音频的使用场景。例如,若待处理音频为摇滚音乐,那么待处理音频所属的场景信息可以为音乐节场景,若待处理音频为轻音乐,那么待处理音频所属的场景信息可以为学习场景,若待处理音频为催眠曲,那么待处理音频所属的场景信息可以为睡眠场景。作为一种方式,可以预先配置不同内容类型的待处理音频对应的场景信息,那么,可以根据待处理音频的内容类型获取待处理音频所属的场景信息。There may be multiple content types of the audio to be processed, and different content types of the audio to be processed belong to different scene information, and the scene information may be understood as a usage scene of the audio to be processed. For example, if the audio to be processed is rock music, the scene information of the audio to be processed can be a music festival scene; if the audio to be processed is light music, the scene information to which the audio to be processed can be a learning scene; music, then the scene information to which the audio to be processed belongs may be a sleep scene. As one manner, the scene information corresponding to the audio to be processed of different content types may be pre-configured, then the scene information to which the audio to be processed belongs may be acquired according to the content type of the audio to be processed.
作为另一种方式,可以根据电子设备的位置确定待处理音频所属的场景信息,其中,电子设备可以结合位置信息以及摄像头确定其所在的位置。例如,当检测出电子设备处于医院、地铁等公共场所(公共场所提倡不外放电子设备的音量,以免私扰其他用户)时,可以确定待处理音频所属的场景信息为耳机佩戴播放场景,若检测出电子设备处于博物馆等位置,那么可以确定待处理音频所属的场景信息为静音场景。As another manner, the scene information to which the audio to be processed belongs may be determined according to the location of the electronic device, wherein the electronic device may determine its location in combination with the location information and the camera. For example, when it is detected that the electronic device is in public places such as hospitals and subways (in public places, it is recommended not to play the volume of the electronic device outside, so as not to disturb other users in private), it can be determined that the scene information of the audio to be processed belongs to the earphone wearing and playing scene. If it is detected that the electronic device is in a place such as a museum, then it may be determined that the scene information to which the audio to be processed belongs is a silent scene.
步骤S320:将与所述场景信息对应的音量作为所述待处理音频对应的目标音量。Step S320: Use the volume corresponding to the scene information as the target volume corresponding to the audio to be processed.
不同的场景信息可以对应配置不同的音量,在确定了待处理音频的所属场景信息后,可以,将与所述场景信息对应的音量作为待处理音频对应的目标音量。Different scene information may be correspondingly configured with different volumes. After determining the scene information to which the audio to be processed belongs, the volume corresponding to the scene information may be used as the target volume corresponding to the audio to be processed.
步骤S330:获取待处理音频的信号幅值所属的幅值档位。Step S330: Obtain the amplitude level to which the signal amplitude of the audio to be processed belongs.
步骤S340:基于所述目标音量确定与所述幅值档位对应的音量调整量。Step S340: Determine a volume adjustment amount corresponding to the amplitude level based on the target volume.
其中,基于目标音量确定与幅值档位对应的音量调整量的具体实现过程可以参考前述实施例中的相关描述,在此不再赘述。Wherein, for the specific implementation process of determining the volume adjustment amount corresponding to the amplitude gear based on the target volume, reference may be made to the relevant descriptions in the foregoing embodiments, which will not be repeated here.
步骤S350:以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习惯确定的值。Step S350: Adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
本申请提供的一种音量控制方法,通过获取所述待处理音频所属的场景信息;将与所述场景信息对应的音量作为所述待处理音频对应的目标音量;获取 所述待处理音频的信号幅值所属的幅值档位;基于所述目标音量确定与所述幅值档位对应的音量调整量;继而以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近。本方法实现了可以根据待处理音频的信号幅值所属的幅值档位,自适应地对待处理音频的播放音量进行调整,进而使得待处理音频的播放音量与目标音量接近,提升了音量控制的智能性。A volume control method provided by the present application, by obtaining the scene information to which the audio to be processed belongs; using the volume corresponding to the scene information as the target volume corresponding to the audio to be processed; obtaining the signal of the audio to be processed The amplitude gear to which the amplitude belongs; determine the volume adjustment amount corresponding to the amplitude gear based on the target volume; then adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the pending The playback volume of the processed audio is close to the target volume. This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
请参阅图4,示出了本申请一实施例提供的一种音量控制装置的结构框图,本实施例提供的音量控制装置400,可运行于电子设备,所述装置400包括幅值档位获取模块410、音量调整量获取模块420以及音量控制模块430:Please refer to FIG. 4 , which shows a structural block diagram of a volume control device provided by an embodiment of the present application. The volume control device 400 provided in this embodiment can run on electronic equipment, and the device 400 includes amplitude gear acquisition Module 410, volume adjustment amount acquisition module 420 and volume control module 430:
幅值档位获取模块410,用于获取待处理音频的信号幅值所属的幅值档位。The amplitude gear acquisition module 410 is configured to acquire the amplitude gear to which the audio signal amplitude to be processed belongs.
音量调整量获取模块420,用于获取与所述幅值档位对应的音量调整量。The volume adjustment amount acquisition module 420 is configured to acquire the volume adjustment amount corresponding to the amplitude gear.
音量控制模块430,用于以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与所述目标音量相接近,所述目标音量为根据用户习惯确定的值。The volume control module 430 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
请参阅图5,示出了本申请另一实施例提供的一种音量控制装置的结构框图,本实施例提供的音量控制装置500,可运行于电子设备,所述装置500包括幅值均值获取单元510、音量等级获取单元520、目标音量获取单元530、幅值档位获取单元540、音量调整量确定单元550以及音量控制单元560:Please refer to FIG. 5 , which shows a structural block diagram of a volume control device provided in another embodiment of the present application. The volume control device 500 provided in this embodiment can run on electronic equipment, and the device 500 includes amplitude and mean acquisition Unit 510, volume level acquisition unit 520, target volume acquisition unit 530, amplitude gear acquisition unit 540, volume adjustment determination unit 550 and volume control unit 560:
幅值均值获取单元510,用于获取多个样本音频各自对应的幅值均值。The amplitude mean value acquisition unit 510 is configured to acquire the corresponding amplitude mean values of the plurality of audio samples.
音量等级获取单元520,用于获取所述多个样本音频中的每一个音频对应的指定音量等级。The volume level acquiring unit 520 is configured to acquire a specified volume level corresponding to each audio in the plurality of sample audios.
作为一种实施方式,音量等级获取单元520具体可以用于获取所述多个样本音频中的每一个音频在播放结束时刻的音量等级;将所述播放结束时刻的音量等级作为每一个音频对应的所述指定音量等级。As an implementation, the volume level acquisition unit 520 can be specifically configured to acquire the volume level of each audio in the plurality of audio samples at the end of playing; the volume level at the end of playing is used as the corresponding The specified volume level.
作为另一种实施方式,音量等级获取单元520具体可以用于若样本音频播放结束时刻的音量等级低于预设音量等级,按照全采样的方式获取所述多 个样本音频中的每一个音频对应的指定音量等级。As another implementation manner, the volume level acquisition unit 520 can be specifically configured to acquire the audio corresponding to each of the multiple sample audios in a full sampling manner if the volume level at the end of the sample audio playback is lower than the preset volume level. specified volume level.
目标音量获取单元530,用于基于所述幅值均值和所述指定音量等级获取待处理音频对应的目标音量。A target volume acquiring unit 530, configured to acquire a target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level.
其中,目标音量获取单元530具体可以用于基于所述幅值均值和所述指定音量等级构建用户偏好音量,作为所述待处理音频对应的目标音量。Wherein, the target volume acquiring unit 530 may be specifically configured to construct a user preferred volume based on the amplitude mean value and the specified volume level as the target volume corresponding to the audio to be processed.
幅值档位获取单元540,用于获取待处理音频的信号幅值所属的幅值档位。The amplitude scale obtaining unit 540 is configured to obtain the amplitude scale to which the signal amplitude of the audio to be processed belongs.
音量调整量确定单元550,用于获取与所述幅值档位对应的音量调整量。The volume adjustment amount determination unit 550 is configured to acquire the volume adjustment amount corresponding to the amplitude gear.
在一种实施方式中,音量调整量确定单元550具体可以用于基于所述目标音量确定与所述幅值档位对应的音量调整量。In an implementation manner, the volume adjustment amount determining unit 550 may be specifically configured to determine a volume adjustment amount corresponding to the amplitude gear based on the target volume.
在另一种实施方式中,音量调整量确定单元550具体可以用于从预设表格中获取与所述幅值档位对应的音量调整量,预设表格为根据所述目标音量确定。In another implementation manner, the volume adjustment amount determining unit 550 may be specifically configured to obtain the volume adjustment amount corresponding to the amplitude gear from a preset table, which is determined according to the target volume.
音量控制单元560,用于以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与所述目标音量相接近,所述目标音量为根据用户习惯确定的值。The volume control unit 560 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
请参阅图6,示出了本申请又一实施例提供的一种音量控制装置的结构框图,本实施例提供的音量控制装置600,可运行于电子设备,所述装置600包括场景获取单元610、目标音量获取单元620、幅值档位获取单元630、音量调整量确定单元640以及音量控制单元650:Please refer to FIG. 6 , which shows a structural block diagram of a volume control device provided in another embodiment of the present application. The volume control device 600 provided in this embodiment can run on electronic equipment, and the device 600 includes a scene acquisition unit 610 , the target volume acquisition unit 620, the amplitude gear acquisition unit 630, the volume adjustment amount determination unit 640 and the volume control unit 650:
场景获取单元610,用于获取所述待处理音频所属的场景信息。The scene obtaining unit 610 is configured to obtain scene information to which the audio to be processed belongs.
目标音量获取单元620,用于将与所述场景信息对应的音量获取作为所述待处理音频对应的目标音量。The target volume acquiring unit 620 is configured to acquire the volume corresponding to the scene information as the target volume corresponding to the audio to be processed.
幅值档位获取单元630,用于获取待处理音频的信号幅值所属的幅值档位。The amplitude level acquiring unit 630 is configured to acquire the amplitude level to which the signal amplitude of the audio to be processed belongs.
音量调整量确定单元640,用于基于所述目标音量确定与所述幅值档位对应的音量调整量。A volume adjustment amount determining unit 640, configured to determine a volume adjustment amount corresponding to the amplitude gear based on the target volume.
音量控制单元650,用于以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与所述目标音量相接近,所述目标音量为根据用户习惯确定的值。The volume control unit 650 is configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
请参阅图7,基于上述的音量控制方法及装置,本申请实施例还提供了一种可以执行前述音量控制方法及装置的电子设备100。电子设备100包括存储器102以及相互耦合的一个或多个(图中仅示出一个)处理器104,存储器102以及处理器104之间通信线路连接。存储器102中存储有可以执行前述实施例中内容的程序,而处理器104可以执行存储器102中存储的程序。Referring to FIG. 7 , based on the above volume control method and device, the embodiment of the present application also provides an electronic device 100 capable of executing the above volume control method and device. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processors 104 are connected by communication lines. The program stored in the memory 102 can execute the content in the foregoing embodiments, and the processor 104 can execute the program stored in the memory 102 .
其中,处理器104可以包括一个或者多个处理核。处理器104利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器102内的指令、程序、代码集或指令集,以及调用存储在存储器102内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器104可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器104可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。 可以理解的是,上述调制解调器也可以不集成到处理器104中,单独通过一块通信芯片进行实现。Wherein, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 102, and calls data stored in the memory 102 to execute Various functions of the electronic device 100 and processing data. Optionally, the processor 104 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 104 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 104, but implemented by a communication chip alone.
存储器102可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器102可用于存储指令、程序、代码、代码集或指令集,例如,存储器102中可以存储有音量控制装置。该音量控制装置可以为前述的音量控制装置400、音量控制装置500或音量控制装置600。存储器102可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现前述各个实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 102 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets, for example, a volume control device may be stored in the memory 102 . The volume control device may be the aforementioned volume control device 400 , volume control device 500 or volume control device 600 . The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for realizing the foregoing embodiments, and the like. The storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
请参考图8,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质700中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable storage medium 700, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质700可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质700包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质700具有执行上述方法中的任何方法步骤的程序代码710的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码710可以例如以适当形式进行压缩。The computer readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 700 has a storage space for program code 710 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. Program code 710 may, for example, be compressed in a suitable form.
本申请实施例还提供了计算机程序产品,包括确定机程序/指令,该确定机程序/指令被处理器执行时实现上述各方法实施例中所述的方法的步骤。The embodiment of the present application also provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the methods described in the foregoing method embodiments are implemented.
综上所述,本申请提供的一种音量控制方法及装置、电子设备及存储介质,本方法包括:获取待处理音频的信号幅值所属的幅值档位;获取与所述幅值档位对应的音量调整量;以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习 惯确定的值。本方法实现了可以根据待处理音频的信号幅值所属的幅值档位,自适应地对待处理音频的播放音量进行调整,进而使得待处理音频的播放音量与目标音量接近,提升了音量控制的智能性。To sum up, the present application provides a volume control method and device, electronic equipment, and storage medium. The method includes: obtaining the amplitude gear to which the signal amplitude of the audio to be processed belongs; A corresponding volume adjustment amount: adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits. This method realizes that the playback volume of the audio to be processed can be adaptively adjusted according to the amplitude gear to which the signal amplitude of the audio to be processed belongs, so that the playback volume of the audio to be processed is close to the target volume, and the efficiency of volume control is improved. intelligence.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (20)

  1. 一种音量控制方法,其特征在于,应用于电子设备,所述方法包括:A volume control method, characterized in that it is applied to electronic equipment, the method comprising:
    获取待处理音频的信号幅值所属的幅值档位;Obtain the amplitude gear to which the signal amplitude of the audio to be processed belongs;
    获取与所述幅值档位对应的音量调整量;Acquiring the volume adjustment amount corresponding to the amplitude gear;
    以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与目标音量相接近,所述目标音量为根据用户习惯确定的值。The playback volume of the audio to be processed is adjusted by the volume adjustment amount, so that the playback volume of the audio to be processed is close to a target volume, and the target volume is a value determined according to user habits.
  2. 根据权利要求1所述的方法,其特征在于,所述获取与所述幅值档位对应的音量调整量,包括:The method according to claim 1, wherein said obtaining the volume adjustment amount corresponding to the amplitude gear comprises:
    基于所述目标音量确定与所述幅值档位对应的音量调整量。A volume adjustment amount corresponding to the amplitude gear is determined based on the target volume.
  3. 根据权利要求1所述的方法,其特征在于,所述获取与所述幅值档位对应的音量调整量,包括:The method according to claim 1, wherein said obtaining the volume adjustment amount corresponding to the amplitude gear comprises:
    从预设表格中获取与所述幅值档位对应的音量调整量,所述预设表格为根据所述目标音量确定。The volume adjustment amount corresponding to the amplitude gear is obtained from a preset table determined according to the target volume.
  4. 根据权利要求1所述的方法,其特征在于,所述获取待处理音频的信号幅值所属的幅值档位之前,还包括:The method according to claim 1, characterized in that before acquiring the amplitude gear to which the signal amplitude of the audio to be processed belongs, further comprising:
    获取多个样本音频各自对应的幅值均值;Obtain the mean value of the corresponding amplitudes of multiple sample audios;
    获取所述多个样本音频中的每一个音频对应的指定音量等级;Obtain a specified volume level corresponding to each audio in the plurality of sample audios;
    基于所述幅值均值和所述指定音量等级获取待处理音频对应的目标音量。Acquiring a target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level.
  5. 根据权利要求4所述的方法,其特征在于,所述获取所述多个样本音频中的每一个音频对应的指定音量等级,包括:The method according to claim 4, wherein the obtaining the specified volume level corresponding to each audio in the plurality of audio samples comprises:
    获取所述多个样本音频中的每一个音频在播放结束时刻的音量等级;Obtain the volume level of each audio in the plurality of audio samples at the end of playing;
    将所述播放结束时刻的音量等级作为每一个音频对应的所述指定音量等级。The volume level at the end of the playback is used as the specified volume level corresponding to each audio.
  6. 根据权利要求4所述的方法,其特征在于,所述获取所述多个样本音频中的每一个音频对应的指定音量等级,包括:The method according to claim 4, wherein the obtaining the specified volume level corresponding to each audio in the plurality of audio samples comprises:
    若样本音频播放结束时刻的音量等级低于预设音量等级,按照全采样的方式获取所述多个样本音频中的每一个音频对应的指定音量等级。If the volume level at the end of the playback of the sample audio is lower than the preset volume level, the specified volume level corresponding to each audio in the plurality of sample audios is acquired in a full sampling manner.
  7. 根据权利要求6所述的方法,其特征在于,所述预设音量等级表征能够使用户听到声音的临界音量等级。The method according to claim 6, wherein the preset volume level represents a critical volume level enabling the user to hear sound.
  8. 根据权利要求4所述的方法,其特征在于,所述基于所述幅值均值和所述指定音量等级获取待处理音频对应的目标音量,包括:The method according to claim 4, wherein the obtaining the target volume corresponding to the audio to be processed based on the amplitude mean value and the specified volume level comprises:
    基于所述幅值均值和所述指定音量等级构建用户偏好音量,作为所述待处理音频对应的目标音量。Constructing a user preferred volume based on the amplitude mean value and the specified volume level as the target volume corresponding to the audio to be processed.
  9. 根据权利要求1所述的方法,其特征在于,所述获取待处理音频的信号幅值所属的幅值档位之前,还包括:The method according to claim 1, characterized in that before acquiring the amplitude gear to which the signal amplitude of the audio to be processed belongs, further comprising:
    获取所述待处理音频所属的场景信息;Obtaining scene information to which the audio to be processed belongs;
    将与所述场景信息对应的音量作为所述待处理音频对应的目标音量。The volume corresponding to the scene information is used as the target volume corresponding to the audio to be processed.
  10. 根据权利要求9所述的方法,其特征在于,所述获取所述待处理音频所属的场景信息,包括:The method according to claim 9, wherein the acquiring scene information to which the audio to be processed belongs comprises:
    根据所述待处理音频的内容类型获取所述待处理音频所属的场景信息。The scene information to which the audio to be processed belongs is acquired according to the content type of the audio to be processed.
  11. 根据权利要求9所述的方法,其特征在于,所述获取所述待处理音频所属的场景信息,包括:The method according to claim 9, wherein the acquiring scene information to which the audio to be processed belongs comprises:
    根据所述电子设备的位置确定所述待处理音频所属的场景信息。Determine the scene information to which the audio to be processed belongs according to the position of the electronic device.
  12. 根据权利要求1所述的方法,其特征在于,所述以所述音量调整量调整所述待处理音频的播放音量,包括:The method according to claim 1, wherein the adjusting the playback volume of the audio to be processed by the volume adjustment amount comprises:
    在所述待处理音频开始播放时以获取的所述音量调整量调整所述待处理音频的播放音量。When the audio to be processed starts to play, the playback volume of the audio to be processed is adjusted with the acquired volume adjustment amount.
  13. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    根据所述幅值档位确定对所述待处理音频的增益程度;determining the degree of gain for the audio to be processed according to the amplitude gear;
    根据所述增益程度对所述待处理音频对应的音源做增益处理。Perform gain processing on the sound source corresponding to the audio to be processed according to the gain degree.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述以所述音量调整量调整所述待处理音频的播放音量,包括:The method according to any one of claims 1-13, wherein the adjusting the playback volume of the audio to be processed by the volume adjustment amount comprises:
    以所述音量调整量调整所述电子设备播放所述待处理音频的音量。Adjusting the volume of the electronic device playing the audio to be processed by the volume adjustment amount.
  15. 根据权利要求1-13任一项所述的方法,其特征在于,所述待处理音频为实时在线待播放的音频或待播放的音频。The method according to any one of claims 1-13, wherein the audio to be processed is audio to be played online in real time or audio to be played.
  16. 根据权利要求1所述的方法,其特征在于,所述待处理音频的类型不同,对应的目标音量可以不同,或所述待处理音频的内容不同,对应的目标音量不同。The method according to claim 1, wherein the types of the audio to be processed are different, and the corresponding target volumes may be different, or the content of the audio to be processed is different, and the corresponding target volumes are different.
  17. 一种音量控制装置,其特征在于,运行于电子设备,所述装置包括:A volume control device is characterized in that it operates on electronic equipment, and the device includes:
    幅值档位获取模块,用于获取待处理音频的信号幅值所属的幅值档位;The amplitude gear acquisition module is used to acquire the amplitude gear to which the signal amplitude of the audio to be processed belongs;
    音量调整量获取模块,用于获取与所述幅值档位对应的音量调整量;A volume adjustment acquisition module, configured to acquire the volume adjustment corresponding to the amplitude gear;
    音量控制模块,用于以所述音量调整量调整所述待处理音频的播放音量,以使所述待处理音频的播放音量与所述目标音量相接近,所述目标音量为根据用户习惯确定的值。A volume control module, configured to adjust the playback volume of the audio to be processed by the volume adjustment amount, so that the playback volume of the audio to be processed is close to the target volume, and the target volume is determined according to user habits value.
  18. 一种电子设备,其特征在于,包括一个或多个处理器以及存储器;An electronic device, characterized in that it includes one or more processors and memory;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-16任一所述的方法。One or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any one of claims 1-16.
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-16任一所述的方法。A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, wherein the method according to any one of claims 1-16 is executed when the program code is run by a processor.
  20. 一种计算机程序产品,包括确定机程序/指令,其特征在于,该确定机程序/指令被处理器执行时实现权利要求1-16任一所述的方法的步骤。A computer program product, comprising a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in any one of claims 1-16 are implemented.
PCT/CN2022/112719 2021-10-25 2022-08-16 Volume control method and apparatus, and electronic device and storage medium WO2023071425A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111242630.6 2021-10-25
CN202111242630.6A CN113824835A (en) 2021-10-25 2021-10-25 Volume control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023071425A1 true WO2023071425A1 (en) 2023-05-04

Family

ID=78919063

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112719 WO2023071425A1 (en) 2021-10-25 2022-08-16 Volume control method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113824835A (en)
WO (1) WO2023071425A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium
CN116866472A (en) * 2022-03-28 2023-10-10 华为技术有限公司 Volume control method and electronic equipment
CN117998257A (en) * 2022-11-07 2024-05-07 Oppo广东移动通信有限公司 Audio processing method and device and electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089535A1 (en) * 2006-10-09 2008-04-17 Lg Electronics Inc. Method and device for adjusting audio volume level
CN103929140A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Method and device for pre-processing voice frequency
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting
CN107124149A (en) * 2017-05-05 2017-09-01 北京小鱼在家科技有限公司 A kind of method for regulation of sound volume, device and equipment
CN107479852A (en) * 2017-08-18 2017-12-15 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN107807809A (en) * 2017-10-26 2018-03-16 努比亚技术有限公司 A kind of terminal volume adjusting method, terminal and computer-readable recording medium
CN108521521A (en) * 2018-04-19 2018-09-11 Oppo广东移动通信有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN109996143A (en) * 2019-03-07 2019-07-09 上海蔚来汽车有限公司 Volume adjusting method, device, system and audio-frequence player device and vehicle
CN110308888A (en) * 2019-06-28 2019-10-08 Oppo广东移动通信有限公司 A kind of method for controlling volume, electronic equipment and computer readable storage medium
CN110312146A (en) * 2019-06-06 2019-10-08 百度在线网络技术(北京)有限公司 Audio-frequency processing method, device, electronic equipment and storage medium
CN111580778A (en) * 2020-05-11 2020-08-25 潍坊歌尔电子有限公司 Volume correction method and device, audio playing device and readable storage medium
CN113422866A (en) * 2021-06-17 2021-09-21 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and electronic equipment
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5269175B2 (en) * 2011-11-28 2013-08-21 株式会社東芝 Volume control device, voice control method, and electronic device
CN107526568A (en) * 2017-08-18 2017-12-29 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN113055786A (en) * 2021-03-30 2021-06-29 联想(北京)有限公司 Volume control method and device and electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089535A1 (en) * 2006-10-09 2008-04-17 Lg Electronics Inc. Method and device for adjusting audio volume level
CN103929140A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Method and device for pre-processing voice frequency
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting
CN107124149A (en) * 2017-05-05 2017-09-01 北京小鱼在家科技有限公司 A kind of method for regulation of sound volume, device and equipment
CN107479852A (en) * 2017-08-18 2017-12-15 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN107807809A (en) * 2017-10-26 2018-03-16 努比亚技术有限公司 A kind of terminal volume adjusting method, terminal and computer-readable recording medium
CN108521521A (en) * 2018-04-19 2018-09-11 Oppo广东移动通信有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN109996143A (en) * 2019-03-07 2019-07-09 上海蔚来汽车有限公司 Volume adjusting method, device, system and audio-frequence player device and vehicle
CN110312146A (en) * 2019-06-06 2019-10-08 百度在线网络技术(北京)有限公司 Audio-frequency processing method, device, electronic equipment and storage medium
CN110308888A (en) * 2019-06-28 2019-10-08 Oppo广东移动通信有限公司 A kind of method for controlling volume, electronic equipment and computer readable storage medium
CN111580778A (en) * 2020-05-11 2020-08-25 潍坊歌尔电子有限公司 Volume correction method and device, audio playing device and readable storage medium
CN113422866A (en) * 2021-06-17 2021-09-21 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and electronic equipment
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113824835A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
WO2023071425A1 (en) Volume control method and apparatus, and electronic device and storage medium
US9466300B2 (en) User profile based audio adjustment techniques
US8165321B2 (en) Intelligent clip mixing
US20210286586A1 (en) Sound effect adjustment method, device, electronic device and storage medium
CN110876180B (en) Power consumption processing method and device, electronic equipment and computer readable medium
WO2019033438A1 (en) Audio signal adjustment method and device, storage medium, and terminal
WO2017215653A1 (en) Volume processing method and user terminal
JP2019175455A (en) Method and device for switching play modes of wireless speaker, and wireless speaker
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN107526568A (en) volume adjusting method, device, terminal device and storage medium
WO2023131155A1 (en) Wireless earphone control method and apparatus, and electronic device
WO2019033943A1 (en) Volume adjusting method and device, mobile terminal and storage medium
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
TWM526238U (en) Electronic device capable of adjusting settings of equalizer according to user's age and audio playing device thereof
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
WO2019061292A1 (en) Noise reduction method for terminal and terminal
US11695379B2 (en) Apparatus and method for automatic volume control with ambient noise compensation
WO2019033939A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN113660599B (en) Speaker control method and device, mobile terminal and storage medium
CN111739496A (en) Audio processing method, device and storage medium
CN112187204A (en) Electronic device and equalizer adjusting method thereof according to volume
CN112019972A (en) Electronic device and equalizer adjusting method thereof

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: 22885325

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE