WO2021203906A1 - 自动音量调整方法、装置、介质和设备 - Google Patents
自动音量调整方法、装置、介质和设备 Download PDFInfo
- Publication number
- WO2021203906A1 WO2021203906A1 PCT/CN2021/080304 CN2021080304W WO2021203906A1 WO 2021203906 A1 WO2021203906 A1 WO 2021203906A1 CN 2021080304 W CN2021080304 W CN 2021080304W WO 2021203906 A1 WO2021203906 A1 WO 2021203906A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- energy
- noise
- noise energy
- terminal
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000009499 grossing Methods 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 10
- 230000009471 action Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 6
- 230000007613 environmental effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000000644 propagated effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
- H03G3/32—Automatic control in amplifiers having semiconductor devices the control being dependent upon ambient noise level or sound level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2227/00—Details of public address [PA] systems covered by H04R27/00 but not provided for in any of its subgroups
- H04R2227/001—Adaptation of signal processing in PA systems in dependence of presence of noise
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R25/00—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception
- H04R25/50—Customised settings for obtaining desired overall acoustical characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S2400/00—Details of stereophonic systems covered by H04S but not provided for in its groups
- H04S2400/13—Aspects of volume control, not necessarily automatic, in stereophonic sound systems
Definitions
- the present disclosure relates to the field of computer technology, and in particular, to an automatic volume adjustment method, device, medium, and equipment.
- the present disclosure provides an automatic volume adjustment method, including: acquiring a noise signal outside the terminal when the terminal does not emit sound; determining noise energy based on the noise signal; and adjusting based on the noise energy The playback volume of audio or video on the terminal.
- the present disclosure provides an automatic volume adjustment device, including: a noise signal acquisition module for acquiring a noise signal outside the terminal when the terminal does not emit sound; a noise energy determination module for The noise signal determines noise energy; a volume adjustment module is used to adjust the audio or video playback volume based on the noise energy.
- the present disclosure provides a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processing device, the steps of the method described in the first aspect of the present disclosure are implemented.
- the present disclosure provides an electronic device, including: a storage device on which a computer program is stored; a processing device, configured to execute the computer program in the storage device to implement the first aspect of the present disclosure Method steps.
- the present disclosure provides a computer program product, which includes a computer program carried on a computer-readable medium, and when the computer program is executed by a processor, the steps of the method described in the first aspect of the present disclosure are implemented.
- the present disclosure provides a computer program that, when run on an electronic device, causes the electronic device to implement the steps of the method described in the first aspect of the present disclosure.
- the terminal can obtain the noise signal external to the terminal without external sound, and then determine the noise energy based on the noise signal, and then adjust the audio or video playback volume on the terminal based on the noise energy, it is able to Realize the automatic adjustment of the playback volume, avoid the user from manually adjusting the playback volume, and eliminate the interference of the sound played by the terminal itself on the noise of the terminal's external environment during the process of automatically adjusting the playback volume, so that it can be based only on the noise of the terminal's external environment itself To automatically adjust the playback volume more accurately.
- Fig. 1 is an exemplary schematic diagram of the terminal having no external sound when the audio or video is played externally.
- Fig. 2 is a flowchart of an automatic volume adjustment method according to an embodiment of the present disclosure.
- Fig. 3 is a schematic block diagram of an automatic volume adjustment device according to an embodiment of the present disclosure.
- Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- the inventor of the present disclosure found that when using an external amplifier to play audio or video, the external sound of the terminal includes not only the sound of the external environment of the terminal, but also the sound of the audio or video played by the terminal itself.
- Fig. 1 is an exemplary schematic diagram of the terminal having no external sound when the audio or video is played externally. The position marked by the box in Figure 1 is the period when the terminal does not play any external sound.
- the inventor of the present disclosure also found that if the external noise signal of the terminal can be collected during the period when the terminal does not play the audio or video externally, then the sound played by the terminal itself can be excluded from affecting the external environment of the terminal. Due to the interference of its own noise signal, only the noise signal of the external environment of the terminal can be collected, and then only the noise energy of the external environment of the terminal can be obtained.
- Fig. 2 is a flowchart of an automatic volume adjustment method according to an embodiment of the present disclosure. As shown in FIG. 2, the automatic volume adjustment method may include the following steps S11 to S13.
- step S11 in the case where the terminal does not emit any external sound, a noise signal outside the terminal is acquired.
- the terminal can be a handheld terminal such as a mobile phone or a tablet computer, or a terminal such as a smart TV, or a smart audio playback terminal such as a small speaker.
- the application on the terminal can return to the current playing state in real time to determine whether the terminal is currently in a period when there is no sound from the terminal.
- the built-in microphone of the terminal can be used to obtain the noise signal outside the terminal.
- step S12 the noise energy is determined based on the noise signal.
- step S13 the playback volume of the audio or video on the terminal is adjusted based on the noise energy.
- the terminal can obtain the noise signal external to the terminal without external sound, and then determine the noise energy based on the noise signal, and then adjust the audio or video playback volume on the terminal based on the noise energy, it is able to Realize the automatic adjustment of the playback volume, avoid the user from manually adjusting the playback volume, and eliminate the interference of the sound played by the terminal itself on the noise of the terminal's external environment during the process of automatically adjusting the playback volume, so that it can be based only on the noise of the terminal's external environment itself To automatically adjust the playback volume more accurately.
- the determination of noise energy based on the noise signal described in step S12 may be implemented in multiple ways. Here are just a few of these implementations.
- the first implementation manner may include determining the signal energy of a frame signal last acquired in the noise signal as the noise energy.
- the duration of each frame of signal can be set according to actual conditions, for example, it can be set to 10ms, 8ms, 15ms, etc., which is not limited in the present disclosure.
- the calculation method of the signal energy of the noise signal can be calculated by using the existing signal energy calculation method, which is not limited in the present disclosure. By adopting this implementation method, the current noise energy of the external environment of the terminal can be determined.
- the second implementation can be described as follows.
- the signal energy of the previous N frames of signals in the noise signal is smoothed to obtain the smooth energy of the previous N frames of signals;
- the previous N frames of signals are the N frames of signals before the last one acquired in the noise signal, and N is greater than A positive integer equal to 1.
- the duration of each frame of signal can be set according to the actual situation, and this disclosure does not limit this; the calculation method of the signal energy of each frame of signal can be calculated by using the existing signal energy calculation method, which is in this disclosure. No restrictions.
- the signal energy of the last obtained frame of signal is smoothed to obtain the smoothed energy of the last obtained frame of signal. For example, you can use the following formula to achieve smoothing:
- E_smoothed(t) a1*E_smoothed(t-1)+a2*E_smoothed(t-2)+...+aN*E_smoothed(t-N)+b1*E(t)
- E_smoothed(t) represents the smooth energy of the last obtained frame of signal
- E_smoothed(t-1), E_smoothed(t-2),..., E_smoothed(tN) represents the smooth energy of the previous N frames of signal
- E( t) represents the signal energy of the last frame of signal acquired
- a1, a2,..., aN, b1 represent coefficients, and the sum of these coefficients is equal to 1
- t represents time.
- E_smoothed(t) a1*E_smoothed(t-1)+b1*E(t), where the value of a1 can be 0.7 ⁇ 0.95, for example, it can be 0.9, b1
- the value can be 0.05 to 0.3, for example, the value can be 0.1.
- E_smoothed(t) which is the smoothing energy of the last obtained frame of signal, is determined as the noise energy.
- the detected external environmental noise of the terminal can be made
- the energy is relatively smooth, which in turn makes the adjustment of the playback volume smoother, avoiding a large increase or decrease in the playback volume, thereby bringing a better user experience to the user.
- the third implementation can be described as follows.
- the signal energy of the previous N frames of signals in the noise signal is smoothed to obtain the smooth energy of the previous N frames of signals;
- the previous N frames of signals are the N frames of signals before the last one acquired in the noise signal, and N is greater than A positive integer equal to 1.
- the duration of each frame of signal can be set according to the actual situation, and this disclosure does not limit this; the calculation method of the signal energy of each frame of noise signal can be calculated by using the existing signal energy calculation method. There is no restriction on this.
- the signal energy of the last obtained frame of signal is smoothed to obtain the smoothed energy of the last obtained frame of signal.
- E_smoothed(t) a1*E_smoothed(t-1)+a2*E_smoothed(t-2)+...+aN*E_smoothed(t-N)+b1*E(t)
- E_smoothed(t) represents the smooth energy of the last obtained frame of signal
- E_smoothed(t-1), E_smoothed(t-2),..., E_smoothed(tN) represents the smooth energy of the previous N frames of signal
- E( t) represents the signal energy of the last frame of signal acquired
- a1, a2,..., aN, b1 represent coefficients, and the sum of these coefficients is equal to 1
- t represents time.
- E_smoothed(t) a1*E_smoothed(t-1)+b1*E(t), where the value of a1 can be 0.7 ⁇ 0.95, for example, it can be 0.9, b1
- the value can be 0.05 to 0.3, for example, the value can be 0.1.
- the smooth energy of the last obtained frame of signal namely E_smoothed(t) is compared with the previously updated noise energy N and the previously updated noise energy .
- the smoothed energy E_smoothed(1) of the noise signal of the first frame may be compared with the preset initial noise energy N.
- the predetermined initial noise energy N is a preset initial noise energy is normally set to a value relatively quiet environments, for example, the initial preset value of the initial preset noise energy N noise energy may be in the range -120dBFS ⁇ 170dBFS, for example, can be Set to -96dBFS.
- the previously updated noise energy is updated based on the comparison result to obtain the updated noise energy.
- N updated noise energy (a*E_smoothed(t)+b*N previously updated noise energy)*c
- noise energy smoothed energy E_smoothed (t) to obtain a final signal is greater than the previous update noise energy N previous update
- using the following equation to update the previous noise energy N previously updated noise energy is updated:
- the updated noise energy of N represents the updated noise energy, that is, the current noise energy outside the terminal;
- a, b, c, and d are coefficients, and the sum of coefficients a and b is equal to 1, and coefficients c and d can be located Within the range of 1 to 1.1, for example, c and d can both be set to 1.0002; t represents time.
- the adjustment of the audio or video playback volume based on the noise energy in step S13 can also be implemented in multiple ways.
- One of the implementation manners may be to use a preset correspondence table to determine the target volume corresponding to the noise energy, and then determine the audio or video playback volume based on the target volume.
- Another implementation manner may be to calculate the target volume corresponding to the noise energy by using a preset function relationship, where the target volume and the noise energy satisfy the preset function relationship, and then the audio or video playback volume is determined based on the target volume.
- the preset correspondence table, preset function relations, etc. can be obtained through experiments.
- the adjustment of the playback volume can also be performed continuously during the period when the terminal does not emit sound. of.
- the automatic volume adjustment method according to an embodiment of the present disclosure will always be executed during the user's audio or video swiping. For example, if a user walks from a quiet home to a noisy street and has been watching a short video during this process, the automatic volume adjustment method according to the embodiment of the present disclosure is also executed during this period. For another example, a user watches a short video at home, then closes the terminal application, and then opens the terminal application again to watch the short video on a noisy street. When the user opens the terminal application twice to watch the short video, the automatic The volume adjustment method has been implemented separately.
- Fig. 3 is a schematic block diagram of an automatic volume adjustment device according to an embodiment of the present disclosure.
- the automatic volume adjustment device includes: a noise signal acquisition module 31, used to acquire a noise signal outside the terminal when the terminal does not emit sound; a noise energy determination module 32, used to determine a noise signal based on the noise signal Noise energy:
- the volume adjustment module 33 is used to adjust the audio or video playback volume based on the noise energy.
- the terminal can obtain the noise signal external to the terminal without external sound, and then determine the noise energy based on the noise signal, and then adjust the audio or video playback volume on the terminal based on the noise energy, it is able to Realize the automatic adjustment of the playback volume, avoid the user from manually adjusting the playback volume, and eliminate the interference of the sound played by the terminal itself on the noise of the terminal's external environment during the process of automatically adjusting the playback volume, so that it can be based only on the noise of the terminal's external environment itself To automatically adjust the volume more precisely.
- the noise energy determining module 32 is configured to determine the signal energy of a frame of signal last acquired in the noise signal as the noise energy.
- the noise energy determination module 32 is configured to: smooth the signal energy of the previous N frames of signals in the noise signal to obtain the smooth energy of the previous N frames of signals; the previous N frames of signals are the last acquired frame of the noise signal N frames of signal before the signal, N is a positive integer greater than or equal to 1; based on the smoothing energy of the previous N frames of signal and the signal energy of the last acquired frame of signal, the signal energy of the last acquired frame of signal is smoothed Processing to obtain the smoothing energy of the last obtained frame of signal; determining the smoothing energy of the last obtained frame of signal as the noise energy.
- the noise energy determination module 32 is configured to: smooth the signal energy of the previous N frames of signals in the noise signal to obtain the smooth energy of the previous N frames of signals; the previous N frames of signals are the last acquired frame of the noise signal For the N frames of signal before the signal, N is a positive integer greater than or equal to 1. Based on the smoothing energy of the previous N frames of signal and the signal energy of the last acquired frame of signal, the signal energy of the last acquired frame of signal is smoothed, Obtain the smoothing energy of the last obtained frame of signal; compare the smoothing energy of the last obtained frame of signal with the previously updated noise energy; update the previously updated noise energy based on the comparison result to obtain the updated noise energy .
- the noise energy determination module 32 is also used to:
- N updated noise energy (a*E_smoothed(t)+b*N previously updated noise energy )*c
- the updated noise energy of N represents the updated noise energy
- E_smoothed(t) represents the smoothing energy of the last obtained frame of signal
- the previously updated noise energy of N represents the previously updated noise energy
- a, b, c and d is the coefficient
- t is the time.
- the volume adjustment module 33 is configured to: determine the target volume corresponding to the noise energy by using a preset correspondence table; and determine the audio or video playback volume based on the target volume.
- the volume adjustment module 33 is configured to: use a preset function relationship to calculate a target volume corresponding to the noise energy, where the target volume and the noise energy satisfy the preset function relationship; and to determine the audio or video playback volume based on the target volume.
- Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs and desktop computers.
- PDAs personal digital assistants
- PADs tablets
- PMPs portable multimedia players
- vehicle-mounted terminals e.g. Mobile terminals such as car navigation terminals
- fixed terminals such as digital TVs and desktop computers.
- the electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
- the program in the memory (RAM) 603 executes various appropriate actions and processing.
- various programs and data required for the operation of the electronic device 600 are also stored.
- the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibration An output device 607 such as a device; a storage device 608 such as a magnetic tape, a hard disk, etc.; and a communication device 609.
- the communication device 609 may allow the electronic device 600 to perform wireless or wired communication with other devices to exchange data.
- FIG. 4 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
- the processing device 601 When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the embodiments of the present disclosure also include a computer program that, when run on an electronic device, executes the above-mentioned functions defined in the methods of some embodiments of the present disclosure.
- the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
- Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
- This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the client and server can communicate with any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
- Communication e.g., communication network
- Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future research and development network of.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: when the terminal does not emit sound, acquire the noise signal outside the terminal ; Determine noise energy based on the noise signal; adjust the audio or video playback volume on the terminal based on the noise energy.
- the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function.
- Executable instructions can also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- the modules involved in the embodiments described in the present disclosure can be implemented in software or hardware. Among them, the name of the module does not constitute a limitation on the module itself under certain circumstances.
- exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
- FPGA Field Programmable Gate Array
- ASIC Application Specific Integrated Circuit
- ASSP Application Specific Standard Product
- SOC System on Chip
- CPLD Complex Programmable Logical device
- Example 1 provides an automatic volume adjustment method, including: acquiring a noise signal outside the terminal when the terminal does not emit sound; and determining the noise based on the noise signal. Energy; adjust the audio or video playback volume on the terminal based on the noise energy.
- Example 2 provides the method of Example 1, and further includes: determining the signal energy of a frame signal last acquired in the noise signal as the noise energy.
- Example 3 provides the method of Example 1, and further includes: smoothing the signal energy of the previous N frame signal in the noise signal to obtain the smoothing energy of the previous N frame signal
- the previous N frame signal is the N frame signal before the last one frame signal acquired in the noise signal, and the N is a positive integer greater than or equal to 1; based on the smooth energy of the previous N frame signal and the The signal energy of the last obtained frame of signal is smoothed on the signal energy of the last obtained frame of signal to obtain the smoothed energy of the last obtained frame of signal; and the last obtained frame of signal
- the smoothing energy of the signal is determined as the noise energy.
- Example 4 provides the method of Example 1, and further includes: smoothing the signal energy of the previous N frame signal in the noise signal to obtain the smoothing energy of the previous N frame signal
- the previous N frame signal is the N frame signal before the last one frame signal acquired in the noise signal, and the N is a positive integer greater than or equal to 1; based on the smooth energy of the previous N frame signal and the The signal energy of the last obtained frame of signal is smoothed on the signal energy of the last obtained frame of signal to obtain the smoothed energy of the last obtained frame of signal; and the last obtained frame of signal
- the smoothing energy of the signal is compared with the previously updated noise energy; the previously updated noise energy is updated based on the comparison result to obtain the updated noise energy amount.
- Example 5 provides the method of Example 1, and further includes: in the case that the smoothing energy of the last acquired frame of signal is less than the previously updated noise energy, using the following formula Update the previously updated noise energy:
- N updated noise energy (a*E_smoothed(t)+b*N previously updated noise energy )*c
- the updated noise energy of N represents the updated noise energy
- E_smoothed(t) represents the smoothing energy of the last obtained frame of signal
- the previously updated noise energy of N represents the previously updated noise energy
- a, b, c and d are coefficients
- t represents time.
- Example 6 provides the method of Example 1, and further includes: using a preset correspondence table to determine the target volume corresponding to the noise energy; and determining the audio or video based on the target volume Playback volume.
- Example 7 provides the method of Example 1, and further includes: calculating a target volume corresponding to the noise energy by using a preset function relationship; and the target volume and the noise energy satisfy all requirements.
- the preset function relationship; the playback volume of the audio or video is determined based on the target volume.
- Example 8 provides the method of Example 1, and further includes: during the audio or video switching interval, acquiring a noise signal outside the terminal.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Otolaryngology (AREA)
- Circuit For Audible Band Transducer (AREA)
- Television Receiver Circuits (AREA)
- Control Of Amplification And Gain Control (AREA)
Abstract
Description
Claims (13)
- 一种自动音量调整方法,其特征在于,包括:在终端没有外放声音的情况下,获取所述终端外部的噪声信号;基于所述噪声信号确定噪声能量;基于所述噪声能量调整所述终端上音频或视频的播放音量。
- 根据权利要求1所述的方法,其特征在于,所述基于所述噪声信号确定噪声能量,包括:将所述噪声信号中最后获取到的一帧信号的信号能量确定为所述噪声能量。
- 根据权利要求1或2所述的方法,其特征在于,所述基于所述噪声信号确定噪声能量,包括:对所述噪声信号中先前N帧信号的信号能量进行平滑处理,得到所述先前N帧信号的平滑能量;所述先前N帧信号为所述噪声信号中最后获取到的一帧信号之前的N帧信号,所述N为大于等于1的正整数;基于所述先前N帧信号的平滑能量和所述最后获取到的一帧信号的信号能量对所述最后获取到的一帧信号的信号能量进行平滑处理,得到所述最后获取到的一帧信号的平滑能量;将所述最后获取到的一帧信号的平滑能量确定为所述噪声能量。
- 根据权利要求1-3中任一项权利要求所述的方法,其特征在于,所述基于所述噪声信号确定噪声能量,包括:对所述噪声信号中先前N帧信号的信号能量进行平滑处理,得到所述先前N帧信号的平滑能量;所述先前N帧信号为所述噪声信号中最后获取到的一帧信号之前的N帧信号,所述N为大于等于1的正整数;基于所述先前N帧信号的平滑能量和所述最后获取到的一帧信号的信号能量对所述最后获取到的一帧信号的信号能量进行平滑处理,得到所述最后获取到的一帧信号的平滑能量;将所述最后获取到的一帧信号的平滑能量与先前更新的噪声能量进行比较;基于比较结果对所述先前更新的噪声能量进行更新,得到更新后的噪声能量。
- 根据权利要求4所述的方法,其特征在于,所述基于比较结果对先前更新的噪声能量进行更新,包括:在所述最后获取到的一帧信号的平滑能量小于所述先前更新的噪声能量的情况下,利 用下述公式对所述先前更新的噪声能量进行更新:N 更新后的噪声能量=(a*E_smoothed(t)+b*N 先前更新的噪声能量)*c在所述最后获取到的一帧信号的平滑能量大于所述先前更新的噪声能量的情况下,利用下述公式对所述先前更新的噪声能量进行更新:N 更新后的噪声能量=N 先前更新的噪声能量*d其中,N 更新后的噪声能量表示所述更新后的噪声能量,E_smoothed(t)表示所述最后获取到的一帧信号的平滑能量,N 先前更新的噪声能量表示所述先前更新的噪声能量,a、b、c和d是系数,t表示时间。
- 根据权利要求1-5中任一项权利要求所述的方法,其特征在于,所述基于所述噪声能量调整所述音频或视频的播放音量,包括:利用预设对应表,确定所述噪声能量对应的目标音量;基于所述目标音量确定所述音频或视频的播放音量。
- 根据权利要求1-6中任一项权利要求所述的方法,其特征在于,所述基于所述噪声能量调整所述音频或视频的播放音量,包括:利用预设函数关系,计算所述噪声能量对应的目标音量;所述目标音量与所述噪声能量满足所述预设函数关系;基于所述目标音量确定所述音频或视频的播放音量。
- 根据权利要求1-7中任一项权利要求所述的方法,其特征在于,所述在终端没有外放声音的情况下,获取所述终端外部的噪声信号,包括:在所述音频或视频切换的间隔期期间,获取所述终端外部的噪声信号。
- 一种自动音量调整装置,其特征在于,包括:噪声信号获取模块,用于在终端没有外放声音的情况下,获取所述终端外部的噪声信号;噪声能量确定模块,用于基于所述噪声信号确定噪声能量;音量调整模块,用于基于所述噪声能量调整音频或视频的播放音量。
- 一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-8中任一项权利要求所述方法的步骤。
- 一种电子设备,其特征在于,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求1-8中任一 项权利要求所述方法的步骤。
- 一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,所述计算机程序被处理器执行时,实现权利要求1-8中任一项权利要求所述的方法。
- 一种计算机程序,当其在电子设备上运行时,使得所述电子设备实现权利要求1-8中任一项权利要求所述的方法。
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020227035412A KR20220154176A (ko) | 2020-04-07 | 2021-03-11 | 자동 볼륨 조정 방법, 장치, 매체 및 기기 |
BR112022020251A BR112022020251A2 (pt) | 2020-04-07 | 2021-03-11 | Método e aparelho de ajuste de volume automático, meio e dispositivo |
EP21785113.8A EP4135304A4 (en) | 2020-04-07 | 2021-03-11 | METHOD AND APPARATUS FOR AUTOMATIC VOLUME ADJUSTMENT, AS WELL AS SUPPORT AND DEVICE |
JP2022560858A JP2023520570A (ja) | 2020-04-07 | 2021-03-11 | 音量自動調整方法、装置、媒体及び機器 |
US17/820,472 US11822854B2 (en) | 2020-04-07 | 2022-08-17 | Automatic volume adjustment method and apparatus, medium, and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010266544.8A CN113497852A (zh) | 2020-04-07 | 2020-04-07 | 自动音量调整方法、装置、介质和设备 |
CN202010266544.8 | 2020-04-07 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/820,472 Continuation US11822854B2 (en) | 2020-04-07 | 2022-08-17 | Automatic volume adjustment method and apparatus, medium, and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021203906A1 true WO2021203906A1 (zh) | 2021-10-14 |
Family
ID=77994710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/080304 WO2021203906A1 (zh) | 2020-04-07 | 2021-03-11 | 自动音量调整方法、装置、介质和设备 |
Country Status (7)
Country | Link |
---|---|
US (1) | US11822854B2 (zh) |
EP (1) | EP4135304A4 (zh) |
JP (1) | JP2023520570A (zh) |
KR (1) | KR20220154176A (zh) |
CN (1) | CN113497852A (zh) |
BR (1) | BR112022020251A2 (zh) |
WO (1) | WO2021203906A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114596871B (zh) * | 2022-03-22 | 2023-03-28 | 镁佳(北京)科技有限公司 | 一种车机音量调整方法、装置及电子设备 |
CN114885256A (zh) * | 2022-05-13 | 2022-08-09 | 福建慧捷通科技有限公司 | 一种根据使用环境自动调整播报音量的方法及收款云音箱 |
CN116156048B (zh) * | 2023-04-23 | 2023-12-08 | 恩平市华电电子有限公司 | 基于人工智能的音量调整方法、系统、设备和介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030123680A1 (en) * | 2002-01-03 | 2003-07-03 | Samsung Electronics Co., Ltd. | Volume control system and method of volume control for portable computer |
CN104427083A (zh) * | 2013-08-19 | 2015-03-18 | 腾讯科技(深圳)有限公司 | 调节音量的方法和装置 |
CN105791530A (zh) * | 2014-12-26 | 2016-07-20 | 联芯科技有限公司 | 输出音量调节方法和装置 |
CN106161781A (zh) * | 2016-06-22 | 2016-11-23 | 北京小米移动软件有限公司 | 音量调整方法及装置 |
CN108845787A (zh) * | 2018-06-11 | 2018-11-20 | 北京小米移动软件有限公司 | 音频调节的方法、装置、终端及存储介质 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI274472B (en) * | 2005-11-25 | 2007-02-21 | Hon Hai Prec Ind Co Ltd | System and method for managing volume |
US8306235B2 (en) * | 2007-07-17 | 2012-11-06 | Apple Inc. | Method and apparatus for using a sound sensor to adjust the audio output for a device |
US8977974B2 (en) | 2008-12-08 | 2015-03-10 | Apple Inc. | Ambient noise based augmentation of media playback |
KR101035726B1 (ko) * | 2008-12-23 | 2011-05-19 | 한국전자통신연구원 | 오디오 출력 신호 이득 조정 방법 |
US9251787B1 (en) * | 2012-09-26 | 2016-02-02 | Amazon Technologies, Inc. | Altering audio to improve automatic speech recognition |
CN107124149B (zh) * | 2017-05-05 | 2020-12-01 | 北京小鱼在家科技有限公司 | 一种音量调整方法、装置和设备 |
CN107526570B (zh) | 2017-08-18 | 2020-01-14 | Oppo广东移动通信有限公司 | 音量调节方法、装置、终端设备及存储介质 |
CN108831498B (zh) * | 2018-05-22 | 2020-01-24 | 出门问问信息科技有限公司 | 多波束波束成形的方法、装置及电子设备 |
US11295718B2 (en) * | 2018-11-02 | 2022-04-05 | Bose Corporation | Ambient volume control in open audio device |
-
2020
- 2020-04-07 CN CN202010266544.8A patent/CN113497852A/zh active Pending
-
2021
- 2021-03-11 JP JP2022560858A patent/JP2023520570A/ja active Pending
- 2021-03-11 EP EP21785113.8A patent/EP4135304A4/en active Pending
- 2021-03-11 KR KR1020227035412A patent/KR20220154176A/ko active IP Right Grant
- 2021-03-11 WO PCT/CN2021/080304 patent/WO2021203906A1/zh unknown
- 2021-03-11 BR BR112022020251A patent/BR112022020251A2/pt unknown
-
2022
- 2022-08-17 US US17/820,472 patent/US11822854B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030123680A1 (en) * | 2002-01-03 | 2003-07-03 | Samsung Electronics Co., Ltd. | Volume control system and method of volume control for portable computer |
CN104427083A (zh) * | 2013-08-19 | 2015-03-18 | 腾讯科技(深圳)有限公司 | 调节音量的方法和装置 |
CN105791530A (zh) * | 2014-12-26 | 2016-07-20 | 联芯科技有限公司 | 输出音量调节方法和装置 |
CN106161781A (zh) * | 2016-06-22 | 2016-11-23 | 北京小米移动软件有限公司 | 音量调整方法及装置 |
CN108845787A (zh) * | 2018-06-11 | 2018-11-20 | 北京小米移动软件有限公司 | 音频调节的方法、装置、终端及存储介质 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4135304A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP4135304A4 (en) | 2023-09-20 |
US20220391163A1 (en) | 2022-12-08 |
CN113497852A (zh) | 2021-10-12 |
KR20220154176A (ko) | 2022-11-21 |
EP4135304A1 (en) | 2023-02-15 |
JP2023520570A (ja) | 2023-05-17 |
BR112022020251A2 (pt) | 2022-11-22 |
US11822854B2 (en) | 2023-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021203906A1 (zh) | 自动音量调整方法、装置、介质和设备 | |
CN114040285B (zh) | 耳机的前馈滤波器参数生成方法、设备、耳机及存储介质 | |
CN109582274B (zh) | 音量调节方法、装置、电子设备及计算机可读存储介质 | |
CN112634872A (zh) | 语音设备唤醒方法及装置 | |
KR102226817B1 (ko) | 콘텐츠 재생 방법 및 그 방법을 처리하는 전자 장치 | |
CN114845212A (zh) | 音量优化方法、装置、电子设备及可读存储介质 | |
WO2021114981A1 (zh) | 视频播放页面显示方法、装置、电子设备和介质 | |
CN109889665B (zh) | 一种音量调节方法、移动终端及存储介质 | |
WO2020062743A1 (zh) | 视频码率调整方法以及装置、终端及存储介质 | |
CN104038626B (zh) | 移动计算装置与配件装置的通信方法 | |
CN106293607B (zh) | 自动切换音频输出模式的方法及系统 | |
CN112307161B (zh) | 用于播放音频的方法和装置 | |
WO2021042538A1 (zh) | 一种音频处理方法、装置及计算机存储介质 | |
CN112954524A (zh) | 降噪方法、系统、车载终端及计算机存储介质 | |
CN113495712A (zh) | 自动音量调整方法、装置、介质和设备 | |
WO2021120247A1 (zh) | 听力补偿方法、装置及计算机可读存储介质 | |
CN111145793B (zh) | 音频处理方法和装置 | |
CN113452839A (zh) | 自动音量调整方法、装置、介质和设备 | |
CN114449341B (zh) | 音频处理方法、装置、可读介质及电子设备 | |
CN114615609B (zh) | 助听器控制方法、助听器设备、装置、设备和计算机介质 | |
WO2023134328A1 (zh) | 一种电子设备控制方法、装置及电子设备 | |
CN116156390B (zh) | 一种音频处理方法和电子设备 | |
WO2024027315A1 (zh) | 音频处理方法、装置、电子设备、存储介质和程序产品 | |
CN111048108B (zh) | 音频处理方法和装置 | |
CN117348836A (zh) | 音频调整方法、装置、介质以及电子设备 |
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: 21785113 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022560858 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20227035412 Country of ref document: KR Kind code of ref document: A |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112022020251 Country of ref document: BR |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2021785113 Country of ref document: EP Effective date: 20221107 |
|
ENP | Entry into the national phase |
Ref document number: 112022020251 Country of ref document: BR Kind code of ref document: A2 Effective date: 20221006 |