WO2019033439A1 - Volume adjustment method, apparatus, storage medium, and mobile terminal - Google Patents
Volume adjustment method, apparatus, storage medium, and mobile terminal Download PDFInfo
- Publication number
- WO2019033439A1 WO2019033439A1 PCT/CN2017/098174 CN2017098174W WO2019033439A1 WO 2019033439 A1 WO2019033439 A1 WO 2019033439A1 CN 2017098174 W CN2017098174 W CN 2017098174W WO 2019033439 A1 WO2019033439 A1 WO 2019033439A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- adjustment
- curve
- frequency
- human ear
- frequency response
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Definitions
- Embodiments of the present invention relate to the field of computers, and in particular, to a volume adjustment method, apparatus, storage medium, and mobile terminal.
- the embodiment of the invention provides a volume adjustment method, device, storage medium and mobile terminal, which can optimize the volume adjustment mode of the mobile terminal.
- an embodiment of the present invention provides a volume adjustment method, where the method includes:
- an embodiment of the present invention provides a volume adjustment apparatus, the apparatus comprising:
- a spectrum curve obtaining module configured to acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected
- An adjustment parameter determining module configured to determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear
- a spectrum curve adjustment module configured to adjust a spectrum curve of the sound source file according to the adjustment parameter.
- an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the program is executed by the processor, the volume adjustment method according to the embodiment of the present invention is implemented.
- an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program
- the volume adjustment method as described in the embodiment of the present invention is implemented in sequence.
- the volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve.
- the adjustment parameter adjusts a spectrum curve of the sound source file.
- FIG. 1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present invention
- 1b is a schematic diagram of a spectrum curve according to an embodiment of the present invention.
- 1c is a schematic diagram of a human ear frequency response curve according to an embodiment of the present invention.
- FIG. 2a is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention.
- 2b is a schematic diagram of a frequency adjustment magnification curve according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention.
- FIG. 3b is a schematic diagram of a frequency adjustment amplitude value curve according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure.
- FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure.
- FIG. 6 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present invention.
- the method may be implemented by a volume adjustment apparatus provided by an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be integrated into a mobile terminal. in.
- the method includes:
- the audio source file may be an audio and video file, such as a ringtone, a prompt tone, a music, and a video file of the mobile terminal.
- the playing trigger event may be a start playing operation clicked by the user, clicking a music and a video file, etc., or the mobile terminal may detect that the communication information is received, and monitoring the system time to reach a preset alarm time.
- the spectral curve of the source file may be the relationship between frequency and amplitude or the relationship between frequency and decibel in the sound information of the source file.
- FIG. 1b is a schematic diagram of a spectrum curve according to an embodiment of the present invention. As shown in FIG. 1b, the abscissa may be the frequency of the sound information of the sound source file, and the ordinate may be the volume information corresponding to each frequency, and may be decibel. Said. In the example of Figure Ib, the spectral curve exhibits a relatively uniform amplitude level after the frequency exceeds 40 Hz.
- the hearing range of the human ear is between 20 Hz and 20 kHz, and there is a normal auditory response after the frequency exceeds 40-50 Hz, that is, when the frequency is less than 40 Hz, the user is not sensitive to the hearing of the sound. Moreover, for the sound source file, if the frequency range exceeds the range of 20 Hz to 20 kHz, the human ear is inaudible, although it can be set, but it is of little significance for the ears to hear.
- the frequency response curve of the human ear is the response curve of the human ear to different frequencies, that is, even if the sound emitted by the mobile terminal is constant at each frequency, the volume of the human ear sounds gradually with frequency. The change is roughly manifested by the relatively low volume of the low frequency and the relatively high volume of the high frequency.
- FIG. 1c is a schematic diagram of a human ear frequency response curve according to an embodiment of the present invention. As shown in FIG. 1c, for a frequency range between 40 Hz and 300 Hz, the response of the human ear to the frequency is relatively low, and the frequency range is 300 Hz. Between 2 kHz, the human ear's response to frequency is relatively stable.
- the human ear's response is relatively reduced, but between 3 kHz and 10 kHz, the human ear responds rapidly to frequency. Raise, that is, if the human ear hears a constant amplitude of the sound frequency from 3 kHz to 10 kHz, it will sound louder and louder.
- the response of the human ear to different frequencies can be up to nearly 30 Db, so that the solution for adjusting the volume of the mobile terminal according to the human ear curve according to the embodiment of the present invention can solve this technology. problem.
- the adjustment parameter of the spectrum curve may include a frequency interval parameter, and may also include an adjustment parameter corresponding to each frequency interval.
- the frequency interval parameter may be to divide the spectrum curve into at least one Frequency range. For the above example, according to the frequency response curve of the human ear, 40Hz-200Hz can be divided into one frequency interval, 200Hz-2kHz is divided into one frequency interval, and 2kHz-10kHz is divided into one frequency interval, thus dividing three frequencies. Interval. If the current design requirement is to reduce the response of the high frequency interval, then only one frequency interval of 4 kHz - 10 kHz can be divided.
- the adjustment coefficient can be determined as follows: if a frequency interval of 200 Hz - 2 kHz can be determined as a frequency interval without adjustment, since the frequency response curve is basically within the frequency interval range Smooth fluctuations within a certain range, it can be considered that the human ear has a substantially consistent sound frequency response within the frequency range.
- the spectral curve of the sound source file is increased by 10Db; or multiplied by the adjustment coefficient, for example, the spectral curve of the sound source file can be multiplied by the adjustment factor of 1.2 on the basis of the frequency interval.
- the mean frequency coefficient may be divided or subtracted, and the third frequency interval is divided or subtracted from the mean value coefficient, and the obtained is not completely close to the second frequency.
- the frequency response level of the interval can be a coefficient within a range that is substantially imperceptible to the human ear.
- a dynamic adjustment coefficient can also be determined according to the curve of the human ear, so that the human ear has the same level of response to the spectral curve of the adjusted source file.
- the spectral curve of the sound source file is adjusted accordingly, thereby obtaining a volume level that the human ear can respond to the frequency response in the entire audible range.
- the volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve.
- the adjustment parameter adjusts a spectrum curve of the sound source file.
- determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear including: determining at least one adjustment frequency interval according to a frequency response curve of the human ear; determining the The adjustment parameter of the adjusted frequency interval of the spectral curve.
- the number of division adjustment frequency intervals can be determined according to the user's accuracy requirement for the volume response. The more the frequency interval, the more accurate the spectrum curve of the obtained source file in the human ear is.
- the advantage of this setting is that Different adjustment frequency intervals can be determined according to different needs of users in response to the needs of different users.
- determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear including: determining the adjustment of the spectrum curve according to a frequency response curve of a human ear Adjusting the frequency interval; correspondingly, adjusting the spectrum curve according to the adjusting parameter, comprising: adjusting the adjusting frequency interval according to the adjusting magnification.
- FIG. 2 is a schematic flowchart of another volume adjustment method according to an embodiment of the present invention.
- the volume adjustment method is further optimized based on the foregoing technical solution.
- the volume adjustment method includes:
- Determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear comprises: determining an adjustment magnification of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear.
- Adjusting the spectrum curve according to the adjustment parameter comprising: adjusting the adjustment frequency interval according to the adjustment magnification.
- the frequency adjustment magnification curve may be determined only according to the frequency response curve of the human ear, and the frequency adjustment magnification curve may be within a frequency range that can be heard by the human ear, and any sound information may be adjusted according to the curve.
- FIG. 2b is a schematic diagram of a frequency adjustment magnification curve according to an embodiment of the present invention. As shown in FIG. 2b, the abscissa is the same as the abscissa of the human ear frequency response curve, and the ordinate is the adjustment magnification.
- the response of the human ear to the frequency is a relatively low frequency range between 40 Hz and 300 Hz, and the magnification can be nearly 1.2 times; the response of the human ear to the frequency is relatively stable.
- the magnification can be close to 1.0 times; the response of the human ear to the frequency is a frequency interval between 2 kHz and 10 kHz, and the magnification can be increased first and then decreased. It is reduced to nearly 0.7 times at 10 kHz.
- the above frequency multiplication adjustment curve can be used to adjust the spectrum curve of the sound source file, and the spectral curve of the adjusted sound source file may have a certain difference from the original spectral curve when outputting.
- the amplitude is gradual with frequency, but when the human ear hears the sound, it will feel the volume of any frequency is consistent, which improves the user experience.
- the technical solution provides a method for determining a frequency adjustment magnification curve according to a human ear frequency response curve on the basis of the above technical solutions.
- the technical solution can adjust the spectrum curve of any sound source file of the mobile terminal, so that The volume of the ear is close to the same at any frequency, which improves the user experience.
- determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear including: determining the spectrum curve according to a frequency response curve of the human ear Adjusting the amplitude value of the frequency interval; correspondingly, adjusting the spectrum curve according to the adjustment parameter, comprising: adjusting the adjustment frequency interval according to the adjustment amplitude value.
- the adjustment amplitude value may be based on the amplitude of the original spectral curve, increasing or decreasing a certain amplitude, so that the human ear's response to the audio source file at any frequency is close to the same, and the user's auditory feeling is improved.
- FIG. 3 is a schematic flowchart of another volume adjustment method according to an embodiment of the present invention.
- the volume adjustment method is further optimized based on the foregoing technical solution.
- the volume adjustment method includes:
- Determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear comprises: determining an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear.
- Adjusting the spectrum curve according to the adjustment parameter comprising: adjusting the adjustment frequency interval according to the adjustment amplitude value.
- FIG. 3b is a schematic diagram of a frequency adjustment amplitude value curve according to an embodiment of the present invention.
- the abscissa is the same as the abscissa of the human ear frequency response curve, and the ordinate is an adjustment amplitude value.
- the frequency adjustment amplitude value curve that the response of the human ear to the frequency is a relatively low frequency range between 40 Hz and 300 Hz, and the amplitude value may be +10 Db; the response of the human ear to the frequency is relatively stable.
- the response of the human ear to the frequency is a frequency interval between 2 kHz and 10 kHz where the change is more obvious.
- the amplitude value may be first plus or minus, and the amplitude value approaches -15 Db when approaching 10 kHz.
- the frequency amplitude value adjustment curve may be used to adjust the spectrum curve of the sound source file, and the spectral curve of the adjusted sound source file may have a certain difference from the original spectral curve when outputting.
- the amplitude is gradual with frequency, but when the human ear hears the sound, it will feel the volume of any frequency is consistent, which improves the user experience.
- the technical solution provides another method for determining a frequency adjustment amplitude value curve according to a human ear frequency response curve in addition to the magnification adjustment, and the technical solution can implement a spectrum of any sound source file for the mobile terminal.
- the curve is adjusted so that the volume of the human ear hears almost the same frequency, which improves the user experience.
- the adjustment method for the human ear curve does not adjust the frequency interval between 300 Hz and 2 kHz. In actual use, it can be adjusted according to requirements and adjusted appropriately. Other frequency intervals to achieve the technical effects achieved by the present application.
- the volume adjustment method further includes: storing an adjustment parameter of the spectrum curve; and when detecting that the sounding device of the mobile terminal plays a sound, according to the playing sound, Adjust the parameters to adjust. After the adjustment parameters are stored, they can be adjusted for any other audio and video files as described above.
- the advantage of this setting is that the calculation amount can be reduced, the operation speed of the mobile terminal for the volume adjustment can be improved, and the operation load of the mobile terminal can be alleviated.
- FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention.
- the volume adjustment method is further optimized based on the foregoing technical solution.
- the volume adjustment method includes:
- S402. Determine, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average value of a frequency response curve of the human ear.
- the target decibel can be used as a standard value of the adjustment.
- the target decibel includes a decibel average of the frequency response curve of the human ear.
- the target decibel combined with the decibel value of the human ear frequency response curve corresponding to each frequency, it can be determined The adjustment magnification and/or the adjustment amplitude value corresponding to each frequency.
- a dynamic adjustment curve After determining the adjustment magnification and/or adjusting the amplitude value, a dynamic adjustment curve can be obtained.
- the technical solution provides a method for adjusting each frequency on the basis of the foregoing technical solutions, and the method can adjust the amplitude of each frequency of the sound source file played by the mobile terminal to achieve Every frequency heard by the human ear will produce a consistent response, avoiding the phenomenon that the sound is too loud when the high sound is heard.
- FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention.
- the volume adjustment method is further optimized based on the foregoing technical solution.
- the volume adjustment method includes:
- the ambient noise volume may be a decibel value of the ambient noise, such as the current ambient noise is 40 Db.
- the frequency decibel of the ambient noise may be the volume or amplitude corresponding to each frequency in obtaining ambient noise.
- S503. Determine an adjustment manner of the playing sound according to the volume and frequency distribution of the ambient noise.
- the adjustment manner includes: a frequency adjustment magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
- the adjustment mode of the playback sound can be determined according to the volume of the ambient noise and the frequency distribution. If the ambient noise volume is large and the volume of the sound in the high frequency interval is high, the frequency adjustment amplitude value curve adjustment can be adopted; if the current ambient noise is small, and the volume of the sound in the middle and low frequency intervals is high, The frequency adjustment magnification curve can be adjusted. It is also possible to set a special adjustment mode for the frequency interval where the environmental noise is concentrated, so as to suppress the influence of the environmental noise on the sound information played by the human ear to the mobile terminal.
- an adjustment mode may be determined according to the volume and frequency distribution of the current environmental noise, and then the adjustment frequency interval and the specific parameters of the adjustment are calculated according to the adjustment mode.
- the technical solution provides a suitable adjustment mode according to the volume and frequency distribution of the current environmental noise, and then calculates a specific adjustment parameter of the spectrum curve according to the adjustment mode, and thus is set.
- the advantage is that the interference caused by the environmental noise can be avoided.
- a special adjustment mode can also be set to adjust, so as to suppress the influence of the environmental noise on the sound information played by the human ear to listen to the mobile terminal, and improve the influence. User experience.
- FIG. 6 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention.
- the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and the volume of the mobile terminal may be adjusted by performing a volume adjustment method.
- the device includes:
- the spectrum curve obtaining module 601 is configured to acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
- the adjustment parameter determining module 602 is configured to determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear;
- the spectrum curve adjustment module 603 is configured to adjust a spectrum curve of the sound source file according to the adjustment parameter.
- the volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve.
- the adjustment parameter adjusts a spectrum curve of the sound source file.
- the adjustment parameter determining module 602 includes:
- An adjustment frequency interval determining unit configured to determine at least one adjustment frequency interval according to a frequency response curve of the human ear
- An adjustment parameter determining unit is configured to determine an adjustment parameter of the adjustment frequency interval of the spectrum curve.
- the adjustment parameter determining module 602 includes:
- a adjustment magnification determining unit configured to determine an adjustment magnification of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;
- the spectrum curve adjustment module 603 includes:
- the first spectral curve adjustment unit is configured to adjust the adjustment frequency interval according to the adjustment magnification.
- the device further includes:
- a magnification curve determining module configured to determine a frequency adjustment magnification curve corresponding to the frequency response curve of the human ear according to a frequency response curve of the human ear;
- the magnification curve adjustment module is configured to adjust a frequency curve of the sound source file according to the frequency adjustment magnification curve.
- the adjustment parameter determining module 602 includes:
- the adjustment amplitude value determining unit is configured to determine an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;
- the spectrum curve adjustment module 603 includes:
- a second spectral curve adjustment unit configured to adjust the adjusted frequency interval according to the adjusted amplitude value.
- the device further includes:
- the amplitude value curve determining module is configured to determine a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear according to the frequency response curve of the human ear;
- the amplitude value curve adjustment module is configured to adjust the amplitude curve of the sound source file according to the frequency adjustment amplitude value curve.
- the device further includes:
- Adjusting a parameter storage module configured to store an adjustment parameter of the spectrum curve
- the adjustment parameter adjustment module is configured to adjust the play sound according to the adjustment parameter when detecting that the sounding device of the mobile terminal plays a sound.
- the adjustment parameter determining module 602 is specifically configured to:
- a target decibel of a frequency response curve of the human ear Determining, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average of a frequency response curve of the human ear;
- the device further includes:
- An environmental noise information acquisition module configured to acquire a volume and a frequency distribution of ambient noise
- the adjustment parameter determination module 602 is further configured to:
- Determining a manner of adjusting the playing sound according to the volume and frequency distribution of the ambient noise comprises: a frequency adjusting magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
- Embodiments of the present invention also provide a storage medium including computer executable instructions for performing a volume adjustment method when executed by a computer processor, the method comprising:
- Storage media any of a variety of types of memory devices or storage devices.
- the term "storage medium” is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.
- Non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
- the storage medium may also include other types of memory or a combination thereof.
- the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet.
- the second computer system can provide program instructions to the first computer for execution.
- the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
- a storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
- the storage medium containing the computer executable instructions provided by the embodiment of the present invention is not limited to the volume adjustment method as described above, and may also be implemented in the volume adjustment method provided by any embodiment of the present invention. Related operations.
- FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
- the mobile terminal may include: a memory 701, a central processing unit (CPU) 702 (also referred to as a processor, hereinafter referred to as a CPU), a circuit board (not shown), and a power supply circuit ( Not shown in the figure).
- CPU central processing unit
- FIG. 7 the mobile terminal may include: a memory 701, a central processing unit (CPU) 702 (also referred to as a processor, hereinafter referred to as a CPU), a circuit board (not shown), and a power supply circuit ( Not shown in the figure).
- CPU central processing unit
- the circuit board is disposed inside a space enclosed by the casing; the CPU 702 and the memory 701 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the mobile terminal
- the memory 701 is configured to store executable program code; the CPU 702 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 701 to implement the following steps:
- the mobile terminal further includes: a peripheral interface 703, an RF (Radio Frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, a touch screen 712, and others.
- Input/control device 710 and external port 704 are communicated via one or more communication buses or signal lines 707.
- the illustrated mobile terminal 700 is merely one example of a mobile terminal, and that the mobile terminal 700 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations.
- the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
- the mobile terminal for volume adjustment provided by this embodiment is described in detail below.
- the mobile terminal takes a mobile phone as an example.
- the memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., and the memory 701 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- Peripheral interface 703, which can connect the input and output peripherals of the device to CPU 702 and memory 701.
- the I/O subsystem 709 can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710, to peripheral interface 703.
- the I/O subsystem 709 can include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710.
- one or more input controllers 7092 receive electrical signals from other input/control devices 710 or transmit electrical signals to other input/control devices 710, and other input/control devices 710 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
- the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
- the touch screen 712 is an input interface and an output interface between the user mobile terminal and the user, and displays the visual output to the user.
- the visual output may include graphics, text, icons, videos, and the like.
- Display controller 7091 in I/O subsystem 709 receives an electrical signal from touch screen 712 or an electrical signal to touch screen 712.
- the touch screen 712 detects the contact on the touch screen, and the display controller 7091 will detect
- the resulting contact is converted into interaction with a user interface object displayed on the touch screen 712, ie, human-computer interaction is achieved, and the user interface object displayed on the touch screen 712 can be an icon that runs the game, an icon that is networked to the corresponding network, and the like.
- the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
- the RF circuit 705 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 705 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 705 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
- an RF signal which is also referred to as an electromagnetic signal
- RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
- an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
- CODEC COder-DECoder, codec
- SIM Subscriber Identity Module
- the audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 711.
- the speaker 711 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 to sound and play the sound to the user.
- the power management chip 708 is used for power supply and power management of the hardware connected to the CPU 702, the I/O subsystem, and the peripheral interface.
- the mobile terminal provided by the embodiment of the invention can optimize the volume adjustment mode of the mobile terminal.
- the volume adjustment device, the storage medium, and the mobile terminal provided in the foregoing embodiments may perform the volume adjustment method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for performing the method.
- the volume adjustment method provided by any embodiment of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
Disclosed by the embodiments of the present invention are a volume adjustment method, apparatus, storage medium, and mobile terminal. The method comprises: if an audio source file playback trigger event is detected, then obtaining the frequency spectrum curve of said audio source file; according to the frequency response curve of the human ear, determining the adjustment parameters of said frequency spectrum curve; according to said adjustment parameters, adjusting the frequency spectrum curve of the audio source file. The volume adjustment method provided by the embodiments of the present invention achieves the effect of adjusting the frequency spectrum curve of an audio source file played by a mobile terminal according to the frequency response curve of the human ear.
Description
本发明实施例涉及计算机领域,尤其涉及一种音量调节方法、装置、存储介质及移动终端。Embodiments of the present invention relate to the field of computers, and in particular, to a volume adjustment method, apparatus, storage medium, and mobile terminal.
目前,移动终端的功能日趋丰富,也越来越智能,各种声音播放软件(如音乐及人声读书等软件)应运而生。用户在使用移动终端过程中由于自身需求的不同,需要对移动终端的音量大小进行调节,然而现有的音量调节方式过于单一,需要改进。At present, the functions of mobile terminals are becoming more and more abundant, and more and more intelligent, and various sound playing softwares (such as music and vocal reading software) have emerged. In the process of using the mobile terminal, the user needs to adjust the volume of the mobile terminal due to different needs of the mobile terminal. However, the existing volume adjustment mode is too single and needs to be improved.
发明内容Summary of the invention
本发明实施例提供一种音量调节方法、装置、存储介质及移动终端,可以优化移动终端的音量调节方式。The embodiment of the invention provides a volume adjustment method, device, storage medium and mobile terminal, which can optimize the volume adjustment mode of the mobile terminal.
第一方面,本发明实施例提供了一种音量调节方法,该方法包括:In a first aspect, an embodiment of the present invention provides a volume adjustment method, where the method includes:
当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;Obtaining a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
根据人耳的频响曲线,确定所述频谱曲线的调节参数;Determining an adjustment parameter of the spectral curve according to a frequency response curve of the human ear;
根据所述调节参数,对所述音源文件的频谱曲线进行调节。Adjusting the spectrum curve of the sound source file according to the adjustment parameter.
第二方面,本发明实施例提供了一种音量调节装置,该装置包括:In a second aspect, an embodiment of the present invention provides a volume adjustment apparatus, the apparatus comprising:
频谱曲线获取模块,用于当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;a spectrum curve obtaining module, configured to acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
调节参数确定模块,用于根据人耳的频响曲线,确定所述频谱曲线的调节参数;An adjustment parameter determining module, configured to determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear;
频谱曲线调节模块,用于根据所述调节参数,对所述音源文件的频谱曲线进行调节。And a spectrum curve adjustment module, configured to adjust a spectrum curve of the sound source file according to the adjustment parameter.
第三方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例所述的音量调节方法。In a third aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the program is executed by the processor, the volume adjustment method according to the embodiment of the present invention is implemented.
第四方面,本发明实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程
序时实现如本发明实施例所述的音量调节方法。In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program
The volume adjustment method as described in the embodiment of the present invention is implemented in sequence.
本发明实施例中提供的音量调节方案,通过检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线,并根据人耳的频响曲线,确定所述频谱曲线的调节参数,再根据所述调节参数,对所述音源文件的频谱曲线进行调节。本发明实施例所提供的技术方案,可以实现根据人耳的频响曲线,对移动终端播放的音源文件频谱曲线进行调节的效果。The volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve. The adjustment parameter adjusts a spectrum curve of the sound source file. The technical solution provided by the embodiment of the invention can realize the effect of adjusting the spectrum curve of the sound source file played by the mobile terminal according to the frequency response curve of the human ear.
图1a为本发明实施例提供的一种音量调节方法的流程示意图;FIG. 1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present invention;
图1b为本发明实施例提供的一种频谱曲线示意图;1b is a schematic diagram of a spectrum curve according to an embodiment of the present invention;
图1c为本发明实施例提供的人耳频响曲线的示意图;1c is a schematic diagram of a human ear frequency response curve according to an embodiment of the present invention;
图2a为本发明实施例提供的另一种音量调节方法的流程示意图;2a is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention;
图2b为本发明实施例提供的频率调节倍率曲线的示意图;2b is a schematic diagram of a frequency adjustment magnification curve according to an embodiment of the present invention;
图3a为本发明实施例提供的另一种音量调节方法的流程示意图;FIG. 3 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention;
图3b为本发明实施例提供的频率调节幅度值曲线的示意图;FIG. 3b is a schematic diagram of a frequency adjustment amplitude value curve according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的另一种音量调节方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图5为本发明实施例提供的另一种音量调节方法的流程示意图;FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种音量调节装置的结构框图;FIG. 6 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention;
图7为本发明实施例提供的一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe the various steps as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. In addition, the order of the steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
图1a为本发明实施例提供的一种音量调节方法的流程示意图,该方法可以由本发明实施例所提供的音量调节装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1a所示,该方法包括:FIG. 1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present invention. The method may be implemented by a volume adjustment apparatus provided by an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be integrated into a mobile terminal. in. As shown in Figure 1a, the method includes:
S101、当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线。S101. Acquire a spectrum curve of the sound source file when a sound source file playback trigger event is detected.
其中,音源文件可以是音视频文件,如移动终端的铃声、提示音、音乐以及视频文件等。播放触发事件可以是用户点击的开始播放操作,点击音乐及视频文件等,还可以是移动终端检测到接收到通信信息,以及监测到系统时间到达预设的闹钟时间等。The audio source file may be an audio and video file, such as a ringtone, a prompt tone, a music, and a video file of the mobile terminal. The playing trigger event may be a start playing operation clicked by the user, clicking a music and a video file, etc., or the mobile terminal may detect that the communication information is received, and monitoring the system time to reach a preset alarm time.
音源文件的频谱曲线可以是音源文件的声音信息中,频率与振幅之间的关系或者频率与分贝之间的关系。图1b为本发明实施例提供的一种频谱曲线示意图,如图1b所示,横坐标可以是音源文件的声音信息的频率,纵坐标可以是对应于每个频率下的音量信息,可以用分贝表示。在图1b的示例中,频谱曲线在频率超过40Hz之后,表现出比较均匀的振幅水平。由于人耳的听觉范围在20Hz到20kHz之间,而且在频率超过40-50Hz之后会有正常的听觉反应,即在频率小于40Hz时,用户对于声音的听觉时并不敏感的。并且,对于音源文件来说,如果频率范围超过了20Hz到20kHz这一范围,人耳是听不到的,虽然可以设置,但是对于为了让人耳能够听到来说,意义不大。The spectral curve of the source file may be the relationship between frequency and amplitude or the relationship between frequency and decibel in the sound information of the source file. FIG. 1b is a schematic diagram of a spectrum curve according to an embodiment of the present invention. As shown in FIG. 1b, the abscissa may be the frequency of the sound information of the sound source file, and the ordinate may be the volume information corresponding to each frequency, and may be decibel. Said. In the example of Figure Ib, the spectral curve exhibits a relatively uniform amplitude level after the frequency exceeds 40 Hz. Since the hearing range of the human ear is between 20 Hz and 20 kHz, and there is a normal auditory response after the frequency exceeds 40-50 Hz, that is, when the frequency is less than 40 Hz, the user is not sensitive to the hearing of the sound. Moreover, for the sound source file, if the frequency range exceeds the range of 20 Hz to 20 kHz, the human ear is inaudible, although it can be set, but it is of little significance for the ears to hear.
S102、根据人耳的频响曲线,确定所述频谱曲线的调节参数。S102. Determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear.
其中,人耳的频响曲线是人耳对于不同频率的响应曲线,也就是即便移动终端发出的声音在每个频率下振幅都是恒定不变的,在人耳听起来音量使随着频率逐渐变化的,大致表现为低频率的音量相对较低,高频率的音量相对较高。图1c为本发明实施例提供的人耳频响曲线的示意图,如图1c所示,对于频率范围在40Hz至300Hz之间,人耳对频率的响应是相对较低的,对于频率范围在300Hz至2kHz之间,人耳对频率的响应是相对稳定的,在频率范围在2kHz至3kHz之间,人耳的反应相对有所降低,但是在3kHz至10kHz之间,人耳对频率的响应迅速升高,也就是说,如果人耳听到恒定振幅的声音频率由3kHz变为10kHz时,听起来音量会越来越大。另外,由图1c中还可以看出,人耳对于不同频率的响应相差最多可以达到近30Db,所以,本发明实施例提出的根据人耳曲线对移动终端进行音量调节的方案可以解决这一技术问题。Among them, the frequency response curve of the human ear is the response curve of the human ear to different frequencies, that is, even if the sound emitted by the mobile terminal is constant at each frequency, the volume of the human ear sounds gradually with frequency. The change is roughly manifested by the relatively low volume of the low frequency and the relatively high volume of the high frequency. FIG. 1c is a schematic diagram of a human ear frequency response curve according to an embodiment of the present invention. As shown in FIG. 1c, for a frequency range between 40 Hz and 300 Hz, the response of the human ear to the frequency is relatively low, and the frequency range is 300 Hz. Between 2 kHz, the human ear's response to frequency is relatively stable. In the frequency range between 2 kHz and 3 kHz, the human ear's response is relatively reduced, but between 3 kHz and 10 kHz, the human ear responds rapidly to frequency. Raise, that is, if the human ear hears a constant amplitude of the sound frequency from 3 kHz to 10 kHz, it will sound louder and louder. In addition, it can be seen from FIG. 1c that the response of the human ear to different frequencies can be up to nearly 30 Db, so that the solution for adjusting the volume of the mobile terminal according to the human ear curve according to the embodiment of the present invention can solve this technology. problem.
其中,所述频谱曲线的调节参数可以包括频率区间参数,也可以包括每个频率区间对应的调节参数。其中频率区间参数可以是将频谱曲线至少划分一个
频率区间。如对于上述示例中,根据人耳的频响曲线,可以将40Hz-200Hz划分为一个频率区间,200Hz-2kHz划分为一个频率区间,2kHz-10kHz划分为一个频率区间这样就划分出了三个频率区间。如果当前设计的要求是把高频率区间的响应降下来,则可以只划分4kHz-10kHz这一个频率区间。The adjustment parameter of the spectrum curve may include a frequency interval parameter, and may also include an adjustment parameter corresponding to each frequency interval. The frequency interval parameter may be to divide the spectrum curve into at least one
Frequency range. For the above example, according to the frequency response curve of the human ear, 40Hz-200Hz can be divided into one frequency interval, 200Hz-2kHz is divided into one frequency interval, and 2kHz-10kHz is divided into one frequency interval, thus dividing three frequencies. Interval. If the current design requirement is to reduce the response of the high frequency interval, then only one frequency interval of 4 kHz - 10 kHz can be divided.
在将该频率区间内的频谱曲线乘以某调节系数,或者加上某调节系数。结合上述划分为三个频率区间的示例,说明调节系数可以按照如下方式确定:如可以把200Hz-2kHz这一个频率区间确定为无需调节的频率区间,因为在此频率区间范围内,频响曲线基本在一定范围内平滑波动,可以认为人耳对此频率区间范围内的声音频率响应基本一致。则在三个频率区间中,可以只针对第一个频率区间和第三个频率区间进行调节即可,而在40Hz-200Hz这一频率区间,可以根据其与第二频率区间的差距,如可以在此频率区间的基础上,对音源文件的频谱曲线增加10Db;或者乘以调节系数,如可以在此频率区间的基础上,对音源文件的频谱曲线乘以调节系数1.2。对于第三频率区间,可以根据其与第二频率区间的差距,除以或者减去某均值系数,第三频率区间除以或者减去该均值系数后,得到的并不是完全接近与第二频率区间的频率响应水平,但是可以是在人耳基本无法察觉的范围内的系数。另外,也可以根据人耳曲线,确定一个动态调节系数,使人耳对调整后的音源文件的频谱曲线响应水平一致。Multiply the spectral curve in the frequency interval by a certain adjustment factor, or add a certain adjustment factor. Combined with the above example of dividing into three frequency intervals, it is explained that the adjustment coefficient can be determined as follows: if a frequency interval of 200 Hz - 2 kHz can be determined as a frequency interval without adjustment, since the frequency response curve is basically within the frequency interval range Smooth fluctuations within a certain range, it can be considered that the human ear has a substantially consistent sound frequency response within the frequency range. In the three frequency intervals, it is only necessary to adjust for the first frequency interval and the third frequency interval, and in the frequency range of 40 Hz-200 Hz, according to the difference between the frequency interval and the second frequency interval, for example, On the basis of this frequency interval, the spectral curve of the sound source file is increased by 10Db; or multiplied by the adjustment coefficient, for example, the spectral curve of the sound source file can be multiplied by the adjustment factor of 1.2 on the basis of the frequency interval. For the third frequency interval, according to the difference between the second frequency interval and the second frequency interval, the mean frequency coefficient may be divided or subtracted, and the third frequency interval is divided or subtracted from the mean value coefficient, and the obtained is not completely close to the second frequency. The frequency response level of the interval, but can be a coefficient within a range that is substantially imperceptible to the human ear. In addition, a dynamic adjustment coefficient can also be determined according to the curve of the human ear, so that the human ear has the same level of response to the spectral curve of the adjusted source file.
S103、根据所述调节参数,对所述音源文件的频谱曲线进行调节。S103. Adjust a spectrum curve of the sound source file according to the adjustment parameter.
根据所述调节参数,包括调节区间以及调节系数,对音源文件的频谱曲线进行相应的调节,进而得到一个人耳可以对整个可听范围内的频率响应后的音量水平接近一致。According to the adjustment parameters, including the adjustment interval and the adjustment coefficient, the spectral curve of the sound source file is adjusted accordingly, thereby obtaining a volume level that the human ear can respond to the frequency response in the entire audible range.
本发明实施例中提供的音量调节方案,通过检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线,并根据人耳的频响曲线,确定所述频谱曲线的调节参数,再根据所述调节参数,对所述音源文件的频谱曲线进行调节。本发明实施例所提供的技术方案,可以实现根据人耳的频响曲线,对移动终端播放的音源文件频谱曲线进行调节的效果。The volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve. The adjustment parameter adjusts a spectrum curve of the sound source file. The technical solution provided by the embodiment of the invention can realize the effect of adjusting the spectrum curve of the sound source file played by the mobile terminal according to the frequency response curve of the human ear.
在上述技术方案的基础上,可选的,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:根据人耳的频响曲线确定至少一个调节频率区间;确定所述频谱曲线的所述调节频率区间的调节参数。其中,可以根据用户对于音量响应的精准度需求,确定划分调节频率区间的个数,频率区间越多,调节后得到的音源文件的频谱曲线在人耳中的响应更加精准。这样设置的好处是,
可以根据用户的需求不同,确定不同的调节频率区间,以响应不同用户的需求。On the basis of the above technical solution, optionally, determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, including: determining at least one adjustment frequency interval according to a frequency response curve of the human ear; determining the The adjustment parameter of the adjusted frequency interval of the spectral curve. Among them, the number of division adjustment frequency intervals can be determined according to the user's accuracy requirement for the volume response. The more the frequency interval, the more accurate the spectrum curve of the obtained source file in the human ear is. The advantage of this setting is that
Different adjustment frequency intervals can be determined according to different needs of users in response to the needs of different users.
在上述技术方案的基础上,可选的,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节倍率;相应的,根据所述调节参数,对所述频谱曲线进行调节,包括:对所述调节频率区间按照所述调节倍率进行调节。这样设置的好处是可以根据人耳曲线中,人耳对频率的响应水平,确定不同频率区间的调节倍数,进而对该频率区间的频谱曲线进行调节,可以在分频率区间进行调节的过程中,增加计算速度,减少移动终端的计算量,进而提高移动终端的响应速度。On the basis of the foregoing technical solution, optionally, determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, including: determining the adjustment of the spectrum curve according to a frequency response curve of a human ear Adjusting the frequency interval; correspondingly, adjusting the spectrum curve according to the adjusting parameter, comprising: adjusting the adjusting frequency interval according to the adjusting magnification. The advantage of this setting is that the adjustment factor of different frequency intervals can be determined according to the response level of the human ear to the frequency in the human ear curve, and then the spectrum curve of the frequency interval is adjusted, which can be adjusted in the frequency division interval. Increasing the calculation speed and reducing the calculation amount of the mobile terminal, thereby improving the response speed of the mobile terminal.
图2a为本发明实施例提供的另一种音量调节方法的流程示意图,在上述技术方案的基础上,对所述音量调节方法进行了进一步的优化。FIG. 2 is a schematic flowchart of another volume adjustment method according to an embodiment of the present invention. The volume adjustment method is further optimized based on the foregoing technical solution.
如图2a所示,所述音量调节方法包括:As shown in FIG. 2a, the volume adjustment method includes:
S201、当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线。S201. Acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected.
S202、根据人耳的频响曲线,确定所述频谱曲线的调节参数。S202. Determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear.
根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节倍率。Determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear comprises: determining an adjustment magnification of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear.
S203、根据所述调节参数,对所述音源文件的频谱曲线进行调节。S203. Adjust a spectrum curve of the sound source file according to the adjustment parameter.
根据所述调节参数,对所述频谱曲线进行调节,包括:对所述调节频率区间按照所述调节倍率进行调节。Adjusting the spectrum curve according to the adjustment parameter, comprising: adjusting the adjustment frequency interval according to the adjustment magnification.
S204、根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节倍率曲线。S204. Determine a frequency adjustment magnification curve corresponding to the frequency response curve of the human ear according to a frequency response curve of the human ear.
其中,频率调节倍率曲线可以是只根据人耳的频响曲线确定的,频率调节倍率曲线可以是在人耳能够听到的频率范围内,针对任何声音信息都可以依照此曲线进行调节。示例性的,图2b为本发明实施例提供的频率调节倍率曲线的示意图,如图2b所示,横坐标与上述人耳频响曲线的横坐标相同,纵坐标可以是调节倍率。从频率调节倍率曲线中可以看出,在人耳对频率的响应是相对较低的40Hz至300Hz之间的频率区间,其倍率可以是接近1.2倍;在人耳对频率的响应是相对稳定的300Hz至2kHz之间的频率区间,其倍率可以是接近1.0倍的;在人耳对频率的响应是变化较为明显的2kHz至10kHz之间的频率区间,其倍率可以是先增高再降低,在接近10kHz时降低到接近0.7倍。The frequency adjustment magnification curve may be determined only according to the frequency response curve of the human ear, and the frequency adjustment magnification curve may be within a frequency range that can be heard by the human ear, and any sound information may be adjusted according to the curve. Illustratively, FIG. 2b is a schematic diagram of a frequency adjustment magnification curve according to an embodiment of the present invention. As shown in FIG. 2b, the abscissa is the same as the abscissa of the human ear frequency response curve, and the ordinate is the adjustment magnification. It can be seen from the frequency adjustment magnification curve that the response of the human ear to the frequency is a relatively low frequency range between 40 Hz and 300 Hz, and the magnification can be nearly 1.2 times; the response of the human ear to the frequency is relatively stable. In the frequency range between 300 Hz and 2 kHz, the magnification can be close to 1.0 times; the response of the human ear to the frequency is a frequency interval between 2 kHz and 10 kHz, and the magnification can be increased first and then decreased. It is reduced to nearly 0.7 times at 10 kHz.
S205、根据所述频率调节倍率曲线,对所述音源文件的频谱曲线进行调节。
S205. Adjust a frequency curve of the sound source file according to the frequency adjustment magnification curve.
当检测到任何音源文件播放触发事件时,都可以采用上述频率倍率调节曲线,对音源文件的频谱曲线进行调节,调节后音源文件的频谱曲线在输出时可能会与原始频谱曲线存在一定差别,表现为振幅随频率渐变的,但是在人耳收听到该声音时,会感觉任何频率的音量都是一致的,提高了用户的体验。When any sound source file playback trigger event is detected, the above frequency multiplication adjustment curve can be used to adjust the spectrum curve of the sound source file, and the spectral curve of the adjusted sound source file may have a certain difference from the original spectral curve when outputting. The amplitude is gradual with frequency, but when the human ear hears the sound, it will feel the volume of any frequency is consistent, which improves the user experience.
本技术方案在上述各技术方案的基础上,提供了一种根据人耳频响曲线确定频率调节倍率曲线的方法,本技术方案可以实现对于移动终端的任意音源文件的频谱曲线进行调节,使人耳听到任何频率的音量都接近一致,提高了用户的体验。The technical solution provides a method for determining a frequency adjustment magnification curve according to a human ear frequency response curve on the basis of the above technical solutions. The technical solution can adjust the spectrum curve of any sound source file of the mobile terminal, so that The volume of the ear is close to the same at any frequency, which improves the user experience.
在上述各技术方案的基础上,可选的,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节幅度值;相应的,根据所述调节参数,对所述频谱曲线进行调节,包括:对所述调节频率区间按照所述调节幅度值进行调节。其中,调节幅度值可以是在原有的频谱曲线振幅的基础上,增加或减小一定振幅,使人耳对于音源文件的在任何频率上的响应接近一致,提高用户的听觉感受。On the basis of the above technical solutions, optionally, determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, including: determining the spectrum curve according to a frequency response curve of the human ear Adjusting the amplitude value of the frequency interval; correspondingly, adjusting the spectrum curve according to the adjustment parameter, comprising: adjusting the adjustment frequency interval according to the adjustment amplitude value. Wherein, the adjustment amplitude value may be based on the amplitude of the original spectral curve, increasing or decreasing a certain amplitude, so that the human ear's response to the audio source file at any frequency is close to the same, and the user's auditory feeling is improved.
图3a为本发明实施例提供的另一种音量调节方法的流程示意图,在上述技术方案的基础上,对所述音量调节方法进行了进一步的优化。FIG. 3 is a schematic flowchart of another volume adjustment method according to an embodiment of the present invention. The volume adjustment method is further optimized based on the foregoing technical solution.
如图3a所示,所述音量调节方法包括:As shown in FIG. 3a, the volume adjustment method includes:
S301、当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线。S301. Acquire a spectrum curve of the sound source file when a sound source file playback trigger event is detected.
S302、根据人耳的频响曲线,确定所述频谱曲线的调节参数。S302. Determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear.
根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节幅度值。Determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear comprises: determining an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear.
S303、根据所述调节参数,对所述音源文件的频谱曲线进行调节。S303. Adjust a spectrum curve of the sound source file according to the adjustment parameter.
根据所述调节参数,对所述频谱曲线进行调节,包括:对所述调节频率区间按照所述调节幅度值进行调节。Adjusting the spectrum curve according to the adjustment parameter, comprising: adjusting the adjustment frequency interval according to the adjustment amplitude value.
S304、根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节幅度值曲线。S304. Determine a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear according to a frequency response curve of the human ear.
示例性的,图3b为本发明实施例提供的频率调节幅度值曲线的示意图,如图3b所示,横坐标与上述人耳频响曲线的横坐标相同,纵坐标可以是调节幅度值。从频率调节幅度值曲线中可以看出,在人耳对频率的响应是相对较低的40Hz至300Hz之间的频率区间,其幅度值可以是+10Db;在人耳对频率的响应是相对稳定的300Hz至2kHz之间的频率区间,其幅度值可以是0Db,既无需做出调
节;在人耳对频率的响应是变化较为明显的2kHz至10kHz之间的频率区间,其幅度值可以是先加高减,在接近10kHz时幅度值达到接近-15Db。Exemplarily, FIG. 3b is a schematic diagram of a frequency adjustment amplitude value curve according to an embodiment of the present invention. As shown in FIG. 3b, the abscissa is the same as the abscissa of the human ear frequency response curve, and the ordinate is an adjustment amplitude value. It can be seen from the frequency adjustment amplitude value curve that the response of the human ear to the frequency is a relatively low frequency range between 40 Hz and 300 Hz, and the amplitude value may be +10 Db; the response of the human ear to the frequency is relatively stable. The frequency range between 300Hz and 2kHz, the amplitude value can be 0Db, no need to make a tone
The response of the human ear to the frequency is a frequency interval between 2 kHz and 10 kHz where the change is more obvious. The amplitude value may be first plus or minus, and the amplitude value approaches -15 Db when approaching 10 kHz.
S305、根据所述频率调节幅度值曲线,对所述音源文件的频谱曲线进行调节。S305. Adjust a spectrum curve of the sound source file according to the frequency adjustment amplitude value curve.
当检测到任何音源文件播放触发事件时,都可以采用上述频率幅度值调节曲线,对音源文件的频谱曲线进行调节,调节后音源文件的频谱曲线在输出时可能会与原始频谱曲线存在一定差别,表现为振幅随频率渐变的,但是在人耳收听到该声音时,会感觉任何频率的音量都是一致的,提高了用户的体验。When any sound source file playback trigger event is detected, the frequency amplitude value adjustment curve may be used to adjust the spectrum curve of the sound source file, and the spectral curve of the adjusted sound source file may have a certain difference from the original spectral curve when outputting. The amplitude is gradual with frequency, but when the human ear hears the sound, it will feel the volume of any frequency is consistent, which improves the user experience.
本技术方案在上述各技术方案的基础上,提供了除倍率调节的另一种根据人耳频响曲线确定频率调节幅度值曲线的方法,本技术方案可以实现对于移动终端的任意音源文件的频谱曲线进行调节,使人耳听到任何频率的音量都接近一致,提高了用户的体验。Based on the above technical solutions, the technical solution provides another method for determining a frequency adjustment amplitude value curve according to a human ear frequency response curve in addition to the magnification adjustment, and the technical solution can implement a spectrum of any sound source file for the mobile terminal. The curve is adjusted so that the volume of the human ear hears almost the same frequency, which improves the user experience.
值得说明的是,上述技术方案中,针对人耳曲线做出调节的方式均没有对300Hz至2kHz之间的频率区间做出调节,在实际使用中,可以根据需求对其进行调节,并适当调节其它频率区间,以达到本申请所达到的技术效果。It should be noted that in the above technical solution, the adjustment method for the human ear curve does not adjust the frequency interval between 300 Hz and 2 kHz. In actual use, it can be adjusted according to requirements and adjusted appropriately. Other frequency intervals to achieve the technical effects achieved by the present application.
在上述各技术方案的基础上,可选的,所述音量调节方法还包括:存储所述频谱曲线的调节参数;当检测到移动终端的发声器件播放声音时,对所述播放声音按照所述调节参数进行调节。存储调节参数之后,可以针对任何其它音视频等文件按照上述内容进行调节。这样设置的好处是可以减少计算量,提高移动终端对于音量调节的运算速度,减轻移动终端的运行负担。On the basis of the foregoing technical solutions, the volume adjustment method further includes: storing an adjustment parameter of the spectrum curve; and when detecting that the sounding device of the mobile terminal plays a sound, according to the playing sound, Adjust the parameters to adjust. After the adjustment parameters are stored, they can be adjusted for any other audio and video files as described above. The advantage of this setting is that the calculation amount can be reduced, the operation speed of the mobile terminal for the volume adjustment can be improved, and the operation load of the mobile terminal can be alleviated.
图4为本发明实施例提供的另一种音量调节方法的流程示意图,在上述技术方案的基础上,对所述音量调节方法进行了进一步的优化。FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. The volume adjustment method is further optimized based on the foregoing technical solution.
如图4所示,所述音量调节方法包括:As shown in FIG. 4, the volume adjustment method includes:
S401、当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线。S401. Acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected.
S402、根据人耳的频响曲线,确定所述人耳的频响曲线的目标分贝;其中,所述目标分贝包括所述人耳的频响曲线的分贝平均值。S402. Determine, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average value of a frequency response curve of the human ear.
目标分贝可以作为调节的一个标准值,本发明实施例中,可选的,所述目标分贝包括所述人耳的频响曲线的分贝平均值。The target decibel can be used as a standard value of the adjustment. In the embodiment of the present invention, optionally, the target decibel includes a decibel average of the frequency response curve of the human ear.
S403、根据所述人耳的频响曲线与所述目标分贝,确定与每个频率对应的调节倍率和/或调节幅度值。S403. Determine, according to the frequency response curve of the human ear and the target decibel, an adjustment magnification and/or an adjustment amplitude value corresponding to each frequency.
根据目标分贝,并结合每个频率对应的人耳频响曲线的分贝值,可以确定
每个频率对应的调节倍率和/或调节幅度值。According to the target decibel, combined with the decibel value of the human ear frequency response curve corresponding to each frequency, it can be determined
The adjustment magnification and/or the adjustment amplitude value corresponding to each frequency.
S404、根据所述与每个频率对应的调节倍率和/或调节幅度值,确定与所述人耳的频响曲线对应的频率调节倍率曲线和/或频率调节幅度值曲线。S404. Determine, according to the adjustment magnification and/or the adjustment amplitude value corresponding to each frequency, a frequency adjustment magnification curve and/or a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear.
在确定调节倍率和/或调节幅度值之后,可以得到动态的调节曲线。After determining the adjustment magnification and/or adjusting the amplitude value, a dynamic adjustment curve can be obtained.
S405、根据所述调节参数,对所述音源文件的频谱曲线进行调节。S405. Adjust a spectrum curve of the sound source file according to the adjustment parameter.
本技术方案在上述各技术方案的基础上,提供了一种针对每个频率都做出调节的方法,本方法在可以实现对移动终端播放的音源文件的每个频率的振幅做出调节,达到了人耳听到的每个频率都会做出一致的响应的效果,避免了高音时会觉得声音过大的现象出现。The technical solution provides a method for adjusting each frequency on the basis of the foregoing technical solutions, and the method can adjust the amplitude of each frequency of the sound source file played by the mobile terminal to achieve Every frequency heard by the human ear will produce a consistent response, avoiding the phenomenon that the sound is too loud when the high sound is heard.
图5为本发明实施例提供的另一种音量调节方法的流程示意图,在上述技术方案的基础上,对所述音量调节方法进行了进一步的优化。FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. The volume adjustment method is further optimized based on the foregoing technical solution.
如图5所示,所述音量调节方法包括:As shown in FIG. 5, the volume adjustment method includes:
S501、当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线。S501. Acquire a spectrum curve of the sound source file when a sound source file playback trigger event is detected.
S502、获取环境噪声的音量及频率分布。S502. Acquire a volume and a frequency distribution of ambient noise.
其中,环境噪声音量可以是环境噪声的分贝值,如当前环境噪声为40Db。环境噪声的频率分贝可以是获得环境噪声中,每个频率所对应的音量或者振幅。The ambient noise volume may be a decibel value of the ambient noise, such as the current ambient noise is 40 Db. The frequency decibel of the ambient noise may be the volume or amplitude corresponding to each frequency in obtaining ambient noise.
S503、根据所述环境噪声的音量及频率分布,确定所述播放声音的调节方式。S503. Determine an adjustment manner of the playing sound according to the volume and frequency distribution of the ambient noise.
其中,所述调节方式包括:频率调节倍率曲线调节和频率调节幅度值曲线调节。The adjustment manner includes: a frequency adjustment magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
可以根据环境噪声的音量大小,以及频率分布,确定播放声音的调节方式。如环境噪声音量较大,且高频率区间的声音的音量较高时,则可以采用频率调节幅度值曲线调节;如当前环境噪声较小,且中、低频率区间的声音的音量较高时则可以采用频率调节倍率曲线调节。还可以针对环境噪声较为集中的频率区间,设置一个特殊的调节方式进行调节,以压制环境噪声对人耳听取移动终端播放的声音信息的影响。The adjustment mode of the playback sound can be determined according to the volume of the ambient noise and the frequency distribution. If the ambient noise volume is large and the volume of the sound in the high frequency interval is high, the frequency adjustment amplitude value curve adjustment can be adopted; if the current ambient noise is small, and the volume of the sound in the middle and low frequency intervals is high, The frequency adjustment magnification curve can be adjusted. It is also possible to set a special adjustment mode for the frequency interval where the environmental noise is concentrated, so as to suppress the influence of the environmental noise on the sound information played by the human ear to the mobile terminal.
S504、根据人耳的频响曲线,确定所述频谱曲线的调节参数。S504. Determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear.
相应的,在根据人耳的频响曲线确定频谱曲线的调节参数时,可以根据当前环境噪声的音量及频率分布确定一种调节方式,再按照该调节方式计算调节频率区间以及调节的具体参数。Correspondingly, when the adjustment parameter of the spectrum curve is determined according to the frequency response curve of the human ear, an adjustment mode may be determined according to the volume and frequency distribution of the current environmental noise, and then the adjustment frequency interval and the specific parameters of the adjustment are calculated according to the adjustment mode.
S505、根据所述调节参数,对所述音源文件的频谱曲线进行调节。
S505. Adjust a spectrum curve of the sound source file according to the adjustment parameter.
本技术方案在上述各技术方案的基础上,提供了一种根据当前环境噪声的音量及频率分布确定一种较为合适的调节方式,再根据该调节方式计算频谱曲线的具体调节参数,这样设置的好处在于可以避免环境噪声带来的干扰,针对环境噪声较为集中的频率区间,还可以设置一个特殊的调节方式进行调节,以压制环境噪声对人耳听取移动终端播放的声音信息的影响,提高了用户的使用体验。Based on the foregoing technical solutions, the technical solution provides a suitable adjustment mode according to the volume and frequency distribution of the current environmental noise, and then calculates a specific adjustment parameter of the spectrum curve according to the adjustment mode, and thus is set. The advantage is that the interference caused by the environmental noise can be avoided. For the frequency interval where the environmental noise is concentrated, a special adjustment mode can also be set to adjust, so as to suppress the influence of the environmental noise on the sound information played by the human ear to listen to the mobile terminal, and improve the influence. User experience.
图6为本发明实施例提供的一种音量调节装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行音量调节方法来对移动终端的音量进行调节。如图6所示,该装置包括:FIG. 6 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention. The apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and the volume of the mobile terminal may be adjusted by performing a volume adjustment method. As shown in Figure 6, the device includes:
频谱曲线获取模块601,用于当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;The spectrum curve obtaining module 601 is configured to acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
调节参数确定模块602,用于根据人耳的频响曲线,确定所述频谱曲线的调节参数;The adjustment parameter determining module 602 is configured to determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear;
频谱曲线调节模块603,用于根据所述调节参数,对所述音源文件的频谱曲线进行调节。The spectrum curve adjustment module 603 is configured to adjust a spectrum curve of the sound source file according to the adjustment parameter.
本发明实施例中提供的音量调节方案,通过检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线,并根据人耳的频响曲线,确定所述频谱曲线的调节参数,再根据所述调节参数,对所述音源文件的频谱曲线进行调节。本发明实施例所提供的技术方案,可以实现根据人耳的频响曲线,对移动终端播放的音源文件频谱曲线进行调节的效果。The volume adjustment scheme provided in the embodiment of the present invention obtains a spectrum curve of the sound source file by detecting a sound source file playing trigger event, and determines an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear, and then according to the adjustment parameter of the spectrum curve. The adjustment parameter adjusts a spectrum curve of the sound source file. The technical solution provided by the embodiment of the invention can realize the effect of adjusting the spectrum curve of the sound source file played by the mobile terminal according to the frequency response curve of the human ear.
在上述各技术方案的基础上,可选的,所述调节参数确定模块602包括:On the basis of the foregoing technical solutions, optionally, the adjustment parameter determining module 602 includes:
调节频率区间确定单元,用于根据人耳的频响曲线确定至少一个调节频率区间;An adjustment frequency interval determining unit, configured to determine at least one adjustment frequency interval according to a frequency response curve of the human ear;
调节参数确定单元,用于确定所述频谱曲线的所述调节频率区间的调节参数。An adjustment parameter determining unit is configured to determine an adjustment parameter of the adjustment frequency interval of the spectrum curve.
在上述各技术方案的基础上,可选的,所述调节参数确定模块602包括:On the basis of the foregoing technical solutions, optionally, the adjustment parameter determining module 602 includes:
调节倍率确定单元,用于根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节倍率;a adjustment magnification determining unit, configured to determine an adjustment magnification of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;
相应的,所述频谱曲线调节模块603包括:Correspondingly, the spectrum curve adjustment module 603 includes:
第一频谱曲线调节单元,用于对所述调节频率区间按照所述调节倍率进行调节。
The first spectral curve adjustment unit is configured to adjust the adjustment frequency interval according to the adjustment magnification.
在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the foregoing technical solutions, optionally, the device further includes:
倍率曲线确定模块,用于根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节倍率曲线;a magnification curve determining module, configured to determine a frequency adjustment magnification curve corresponding to the frequency response curve of the human ear according to a frequency response curve of the human ear;
倍率曲线调节模块,用于根据所述频率调节倍率曲线,对所述音源文件的频谱曲线进行调节。The magnification curve adjustment module is configured to adjust a frequency curve of the sound source file according to the frequency adjustment magnification curve.
在上述各技术方案的基础上,可选的,所述调节参数确定模块602包括:On the basis of the foregoing technical solutions, optionally, the adjustment parameter determining module 602 includes:
调节幅度值确定单元,用于根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节幅度值;The adjustment amplitude value determining unit is configured to determine an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;
相应的,所述频谱曲线调节模块603包括:Correspondingly, the spectrum curve adjustment module 603 includes:
第二频谱曲线调节单元,用于对所述调节频率区间按照所述调节幅度值进行调节。a second spectral curve adjustment unit configured to adjust the adjusted frequency interval according to the adjusted amplitude value.
在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the foregoing technical solutions, optionally, the device further includes:
幅度值曲线确定模块,用于根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节幅度值曲线;The amplitude value curve determining module is configured to determine a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear according to the frequency response curve of the human ear;
幅度值曲线调节模块,用于根据所述频率调节幅度值曲线,对所述音源文件的频谱曲线进行调节。The amplitude value curve adjustment module is configured to adjust the amplitude curve of the sound source file according to the frequency adjustment amplitude value curve.
在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the foregoing technical solutions, optionally, the device further includes:
调节参数存储模块,用于存储所述频谱曲线的调节参数;Adjusting a parameter storage module, configured to store an adjustment parameter of the spectrum curve;
调节参数调节模块,用于当检测到移动终端的发声器件播放声音时,对所述播放声音按照所述调节参数进行调节。The adjustment parameter adjustment module is configured to adjust the play sound according to the adjustment parameter when detecting that the sounding device of the mobile terminal plays a sound.
在上述各技术方案的基础上,可选的,所述调节参数确定模块602具体用于:On the basis of the foregoing technical solutions, the adjustment parameter determining module 602 is specifically configured to:
根据人耳的频响曲线,确定所述人耳的频响曲线的目标分贝;其中,所述目标分贝包括所述人耳的频响曲线的分贝平均值;Determining, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average of a frequency response curve of the human ear;
根据所述人耳的频响曲线与所述目标分贝,确定与每个频率对应的调节倍率和/或调节幅度值;Determining an adjustment magnification and/or an adjustment amplitude value corresponding to each frequency according to a frequency response curve of the human ear and the target decibel;
根据所述与每个频率对应的调节倍率和/或调节幅度值,确定与所述人耳的频响曲线对应的频率调节倍率曲线和/或频率调节幅度值曲线。And determining, according to the adjustment magnification and/or the adjustment amplitude value corresponding to each frequency, a frequency adjustment magnification curve and/or a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear.
在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the foregoing technical solutions, optionally, the device further includes:
环境噪声信息获取模块,用于获取环境噪声的音量及频率分布;An environmental noise information acquisition module, configured to acquire a volume and a frequency distribution of ambient noise;
相应的,所述调节参数确定模块602还用于:
Correspondingly, the adjustment parameter determination module 602 is further configured to:
根据所述环境噪声的音量及频率分布,确定播放声音的调节方式;其中,所述调节方式包括:频率调节倍率曲线调节和频率调节幅度值曲线调节。Determining a manner of adjusting the playing sound according to the volume and frequency distribution of the ambient noise; wherein the adjusting manner comprises: a frequency adjusting magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种音量调节方法,该方法包括:Embodiments of the present invention also provide a storage medium including computer executable instructions for performing a volume adjustment method when executed by a computer processor, the method comprising:
当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;Obtaining a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
根据人耳的频响曲线,确定所述频谱曲线的调节参数;Determining an adjustment parameter of the spectral curve according to a frequency response curve of the human ear;
根据所述调节参数,对所述音源文件的频谱曲线进行调节。Adjusting the spectrum curve of the sound source file according to the adjustment parameter.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage media - any of a variety of types of memory devices or storage devices. The term "storage medium" is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. Non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like. The storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network). A storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量调节方法,还可以执行本发明任意实施例所提供的音量调节方法中的相关操作。Of course, the storage medium containing the computer executable instructions provided by the embodiment of the present invention is not limited to the volume adjustment method as described above, and may also be implemented in the volume adjustment method provided by any embodiment of the present invention. Related operations.
本发明实施例提供了一种移动终端,该移动终端中可集成本发明实施例提供的音量调节装置。图7为本发明实施例提供的一种移动终端的结构示意图。如图7所示,该移动终端可以包括:存储器701、中央处理器(Central Processing Unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:The embodiment of the invention provides a mobile terminal, and the volume adjustment device provided by the embodiment of the invention can be integrated into the mobile terminal. FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 7, the mobile terminal may include: a memory 701, a central processing unit (CPU) 702 (also referred to as a processor, hereinafter referred to as a CPU), a circuit board (not shown), and a power supply circuit ( Not shown in the figure). The circuit board is disposed inside a space enclosed by the casing; the CPU 702 and the memory 701 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the mobile terminal The memory 701 is configured to store executable program code; the CPU 702 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 701 to implement the following steps:
当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;
Obtaining a spectrum curve of the sound source file when a sound source file playing trigger event is detected;
根据人耳的频响曲线,确定所述频谱曲线的调节参数;Determining an adjustment parameter of the spectral curve according to a frequency response curve of the human ear;
根据所述调节参数,对所述音源文件的频谱曲线进行调节。Adjusting the spectrum curve of the sound source file according to the adjustment parameter.
所述移动终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The mobile terminal further includes: a peripheral interface 703, an RF (Radio Frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, a touch screen 712, and others. Input/control device 710 and external port 704 are communicated via one or more communication buses or signal lines 707.
应该理解的是,图示移动终端700仅仅是移动终端的一个范例,并且移动终端700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal, and that the mobile terminal 700 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于音量调节的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal for volume adjustment provided by this embodiment is described in detail below. The mobile terminal takes a mobile phone as an example.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., and the memory 701 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。 Peripheral interface 703, which can connect the input and output peripherals of the device to CPU 702 and memory 701.
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 709, which can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710, to peripheral interface 703. The I/O subsystem 709 can include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Wherein, one or more input controllers 7092 receive electrical signals from other input/control devices 710 or transmit electrical signals to other input/control devices 710, and other input/control devices 710 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏712,所述触摸屏712是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 712 is an input interface and an output interface between the user mobile terminal and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, videos, and the like.
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测
到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。 Display controller 7091 in I/O subsystem 709 receives an electrical signal from touch screen 712 or an electrical signal to touch screen 712. The touch screen 712 detects the contact on the touch screen, and the display controller 7091 will detect
The resulting contact is converted into interaction with a user interface object displayed on the touch screen 712, ie, human-computer interaction is achieved, and the user interface object displayed on the touch screen 712 can be an icon that runs the game, an icon that is networked to the corresponding network, and the like. It is worth noting that the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 705 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 705 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 711.
扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 to sound and play the sound to the user.
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management of the hardware connected to the CPU 702, the I/O subsystem, and the peripheral interface.
本发明实施例提供的移动终端,可以优化移动终端的音量调节方式。The mobile terminal provided by the embodiment of the invention can optimize the volume adjustment mode of the mobile terminal.
上述实施例中提供的音量调节装置、存储介质及移动终端可执行本发明任意实施例所提供的音量调节方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的音量调节方法。The volume adjustment device, the storage medium, and the mobile terminal provided in the foregoing embodiments may perform the volume adjustment method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for performing the method. For details of the techniques not described in detail in the above embodiments, reference may be made to the volume adjustment method provided by any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。
Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.
Claims (20)
- 一种音量调节方法,其特征在于,包括:A volume adjustment method, comprising:当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;Obtaining a spectrum curve of the sound source file when a sound source file playing trigger event is detected;根据人耳的频响曲线,确定所述频谱曲线的调节参数;Determining an adjustment parameter of the spectral curve according to a frequency response curve of the human ear;根据所述调节参数,对所述音源文件的频谱曲线进行调节。Adjusting the spectrum curve of the sound source file according to the adjustment parameter.
- 根据权利要求1所述的音量调节方法,其特征在于,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:The volume adjustment method according to claim 1, wherein the determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear comprises:根据人耳的频响曲线确定至少一个调节频率区间;Determining at least one adjustment frequency interval according to a frequency response curve of the human ear;确定所述频谱曲线的所述调节频率区间的调节参数。An adjustment parameter of the adjusted frequency interval of the spectral curve is determined.
- 根据权利要求2所述的音量调节方法,其特征在于,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:The volume adjustment method according to claim 2, wherein the determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear comprises:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节倍率;Determining an adjustment ratio of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;相应的,根据所述调节参数,对所述频谱曲线进行调节,包括:Correspondingly, adjusting the spectrum curve according to the adjustment parameter, including:对所述调节频率区间按照所述调节倍率进行调节。The adjustment frequency interval is adjusted according to the adjustment magnification.
- 根据权利要求3所述的音量调节方法,其特征在于,还包括:The volume adjustment method according to claim 3, further comprising:根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节倍率曲线;Determining, according to a frequency response curve of the human ear, a frequency adjustment magnification curve corresponding to the frequency response curve of the human ear;根据所述频率调节倍率曲线,对所述音源文件的频谱曲线进行调节。Adjusting the spectral curve of the sound source file according to the frequency adjustment magnification curve.
- 根据权利要求2所述的音量调节方法,其特征在于,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:The volume adjustment method according to claim 2, wherein the determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear comprises:根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节幅度值;Determining an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;相应的,根据所述调节参数,对所述频谱曲线进行调节,包括:Correspondingly, adjusting the spectrum curve according to the adjustment parameter, including:对所述调节频率区间按照所述调节幅度值进行调节。The adjustment frequency interval is adjusted according to the adjustment amplitude value.
- 根据权利要求5所述的音量调节方法,其特征在于,还包括:The volume adjustment method according to claim 5, further comprising:根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节幅度值曲线;Determining, according to a frequency response curve of the human ear, a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear;根据所述频率调节幅度值曲线,对所述音源文件的频谱曲线进行调节。Adjusting the spectral curve of the sound source file according to the frequency adjustment amplitude value curve.
- 根据权利要求1所述的音量调节方法,其特征在于,还包括:The volume adjustment method according to claim 1, further comprising:存储所述频谱曲线的调节参数;Storing adjustment parameters of the spectral curve;当检测到移动终端的发声器件播放声音时,对所述播放声音按照所述调节参数进行调节。 When it is detected that the sounding device of the mobile terminal plays a sound, the playback sound is adjusted according to the adjustment parameter.
- 根据权利要求1所述的音量调节方法,其特征在于,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,包括:The volume adjustment method according to claim 1, wherein the determining the adjustment parameter of the spectrum curve according to a frequency response curve of the human ear comprises:根据人耳的频响曲线,确定所述人耳的频响曲线的目标分贝;其中,所述目标分贝包括所述人耳的频响曲线的分贝平均值;Determining, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average of a frequency response curve of the human ear;根据所述人耳的频响曲线与所述目标分贝,确定与每个频率对应的调节倍率和/或调节幅度值;Determining an adjustment magnification and/or an adjustment amplitude value corresponding to each frequency according to a frequency response curve of the human ear and the target decibel;根据所述与每个频率对应的调节倍率和/或调节幅度值,确定与所述人耳的频响曲线对应的频率调节倍率曲线和/或频率调节幅度值曲线。And determining, according to the adjustment magnification and/or the adjustment amplitude value corresponding to each frequency, a frequency adjustment magnification curve and/or a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear.
- 根据权利要求8所述的音量调节方法,其特征在于,在根据人耳的频响曲线,确定所述频谱曲线的调节参数之前,还包括:The volume adjustment method according to claim 8, wherein before determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear, the method further includes:获取环境噪声的音量及频率分布;Obtaining the volume and frequency distribution of ambient noise;相应的,所述根据人耳的频响曲线,确定所述频谱曲线的调节参数,还包括:Correspondingly, determining the adjustment parameter of the spectrum curve according to the frequency response curve of the human ear, further comprising:根据所述环境噪声的音量及频率分布,确定播放声音的调节方式;其中,所述调节方式包括:频率调节倍率曲线调节和频率调节幅度值曲线调节。Determining a manner of adjusting the playing sound according to the volume and frequency distribution of the ambient noise; wherein the adjusting manner comprises: a frequency adjusting magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
- 一种音量调节装置,其特征在于,包括:A volume adjustment device, comprising:频谱曲线获取模块,用于当检测到音源文件播放触发事件时,获取所述音源文件的频谱曲线;a spectrum curve obtaining module, configured to acquire a spectrum curve of the sound source file when a sound source file playing trigger event is detected;调节参数确定模块,用于根据人耳的频响曲线,确定所述频谱曲线的调节参数;An adjustment parameter determining module, configured to determine an adjustment parameter of the spectrum curve according to a frequency response curve of the human ear;频谱曲线调节模块,用于根据所述调节参数,对所述音源文件的频谱曲线进行调节。And a spectrum curve adjustment module, configured to adjust a spectrum curve of the sound source file according to the adjustment parameter.
- 根据权利要求10所述的音量调节装置,其特征在于,所述调节参数确定模块包括:The volume adjustment device according to claim 10, wherein the adjustment parameter determination module comprises:调节频率区间确定单元,用于根据人耳的频响曲线确定至少一个调节频率区间;An adjustment frequency interval determining unit, configured to determine at least one adjustment frequency interval according to a frequency response curve of the human ear;调节参数确定单元,用于确定所述频谱曲线的所述调节频率区间的调节参数。An adjustment parameter determining unit is configured to determine an adjustment parameter of the adjustment frequency interval of the spectrum curve.
- 根据权利要求11所述的音量调节装置,其特征在于,所述调节参数确定模块包括:The volume adjustment device according to claim 11, wherein the adjustment parameter determination module comprises:调节倍率确定单元,用于根据人耳的频响曲线,确定所述频谱曲线的所述 调节频率区间的调节倍率;Adjusting the magnification determining unit, configured to determine the spectral curve according to a frequency response curve of the human ear Adjust the adjustment ratio of the frequency interval;相应的,所述频谱曲线调节模块包括:Correspondingly, the spectrum curve adjustment module comprises:第一频谱曲线调节单元,用于对所述调节频率区间按照所述调节倍率进行调节。The first spectral curve adjustment unit is configured to adjust the adjustment frequency interval according to the adjustment magnification.
- 根据权利要求12所述的音量调节装置,其特征在于,还包括:The volume adjustment device according to claim 12, further comprising:倍率曲线确定模块,用于根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节倍率曲线;a magnification curve determining module, configured to determine a frequency adjustment magnification curve corresponding to the frequency response curve of the human ear according to a frequency response curve of the human ear;倍率曲线调节模块,用于根据所述频率调节倍率曲线,对所述音源文件的频谱曲线进行调节。The magnification curve adjustment module is configured to adjust a frequency curve of the sound source file according to the frequency adjustment magnification curve.
- 根据权利要求11所述的音量调节装置,其特征在于,所述调节参数确定模块包括:The volume adjustment device according to claim 11, wherein the adjustment parameter determination module comprises:调节幅度值确定单元,用于根据人耳的频响曲线,确定所述频谱曲线的所述调节频率区间的调节幅度值;The adjustment amplitude value determining unit is configured to determine an adjustment amplitude value of the adjustment frequency interval of the spectrum curve according to a frequency response curve of the human ear;相应的,所述频谱曲线调节模块包括:Correspondingly, the spectrum curve adjustment module comprises:第二频谱曲线调节单元,用于对所述调节频率区间按照所述调节幅度值进行调节。a second spectral curve adjustment unit configured to adjust the adjusted frequency interval according to the adjusted amplitude value.
- 根据权利要求14所述的音量调节装置,其特征在于,还包括:The volume adjustment device according to claim 14, further comprising:幅度值曲线确定模块,用于根据人耳的频响曲线,确定与所述人耳的频响曲线对应的频率调节幅度值曲线;The amplitude value curve determining module is configured to determine a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear according to the frequency response curve of the human ear;幅度值曲线调节模块,用于根据所述频率调节幅度值曲线,对所述音源文件的频谱曲线进行调节。The amplitude value curve adjustment module is configured to adjust the amplitude curve of the sound source file according to the frequency adjustment amplitude value curve.
- 根据权利要求10所述的音量调节装置,其特征在于,还包括:The volume adjustment device according to claim 10, further comprising:调节参数存储模块,用于存储所述频谱曲线的调节参数;Adjusting a parameter storage module, configured to store an adjustment parameter of the spectrum curve;调节参数调节模块,用于当检测到移动终端的发声器件播放声音时,对所述播放声音按照所述调节参数进行调节。The adjustment parameter adjustment module is configured to adjust the play sound according to the adjustment parameter when detecting that the sounding device of the mobile terminal plays a sound.
- 根据权利要求10所述的音量调节装置,其特征在于,所述调节参数确定模块具体用于:The volume adjustment device according to claim 10, wherein the adjustment parameter determination module is specifically configured to:根据人耳的频响曲线,确定所述人耳的频响曲线的目标分贝;其中,所述目标分贝包括所述人耳的频响曲线的分贝平均值;Determining, according to a frequency response curve of the human ear, a target decibel of a frequency response curve of the human ear; wherein the target decibel includes a decibel average of a frequency response curve of the human ear;根据所述人耳的频响曲线与所述目标分贝,确定与每个频率对应的调节倍率和/或调节幅度值; Determining an adjustment magnification and/or an adjustment amplitude value corresponding to each frequency according to a frequency response curve of the human ear and the target decibel;根据所述与每个频率对应的调节倍率和/或调节幅度值,确定与所述人耳的频响曲线对应的频率调节倍率曲线和/或频率调节幅度值曲线。And determining, according to the adjustment magnification and/or the adjustment amplitude value corresponding to each frequency, a frequency adjustment magnification curve and/or a frequency adjustment amplitude value curve corresponding to the frequency response curve of the human ear.
- 根据权利要求17所述的音量调节装置,其特征在于,还包括:The volume adjustment device according to claim 17, further comprising:环境噪声信息获取模块,用于获取环境噪声的音量及频率分布;An environmental noise information acquisition module, configured to acquire a volume and a frequency distribution of ambient noise;相应的,所述调节参数确定模块还用于:Correspondingly, the adjustment parameter determination module is further configured to:根据所述环境噪声的音量及频率分布,确定播放声音的调节方式;其中,所述调节方式包括:频率调节倍率曲线调节和频率调节幅度值曲线调节。Determining a manner of adjusting the playing sound according to the volume and frequency distribution of the ambient noise; wherein the adjusting manner comprises: a frequency adjusting magnification curve adjustment and a frequency adjustment amplitude value curve adjustment.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9中任一所述的音量调节方法。A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the volume adjustment method of any of claims 1-9.
- 一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-9中任一所述的音量调节方法。 A mobile terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement any of claims 1-9 The volume adjustment method described.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780092121.5A CN110753919B (en) | 2017-08-18 | 2017-08-18 | Volume adjustment method, device, storage medium and mobile terminal |
PCT/CN2017/098174 WO2019033439A1 (en) | 2017-08-18 | 2017-08-18 | Volume adjustment method, apparatus, storage medium, and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/098174 WO2019033439A1 (en) | 2017-08-18 | 2017-08-18 | Volume adjustment method, apparatus, storage medium, and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019033439A1 true WO2019033439A1 (en) | 2019-02-21 |
Family
ID=65362594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/098174 WO2019033439A1 (en) | 2017-08-18 | 2017-08-18 | Volume adjustment method, apparatus, storage medium, and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110753919B (en) |
WO (1) | WO2019033439A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954115A (en) * | 2021-03-16 | 2021-06-11 | 腾讯音乐娱乐科技(深圳)有限公司 | Volume adjusting method and device, electronic equipment and storage medium |
CN119835577A (en) * | 2025-03-17 | 2025-04-15 | 东莞市金文华数码科技有限公司 | Audio detection-based sound playing mode adjustment method and system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119420305B (en) * | 2024-12-11 | 2025-07-29 | 深圳市万里眼技术有限公司 | Parameter adjusting device, method, equipment, high-frequency radio frequency system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020111795A1 (en) * | 1999-08-26 | 2002-08-15 | Norris Joseph O. | System for playback of pre-encoded signals through a parametric loudspeaker system |
CN101465625A (en) * | 2007-12-20 | 2009-06-24 | 瑞昱半导体股份有限公司 | Device and method for automatically adjusting gain |
CN104135705A (en) * | 2014-06-24 | 2014-11-05 | 惠州Tcl移动通信有限公司 | Method and system for automatically adjusting multimedia volume according to different scene modes |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2465434Y (en) * | 1999-08-02 | 2001-12-12 | 广东爱浪数字技术有限公司 | Frequency equalizing automatic regulator |
US8682462B2 (en) * | 2011-08-13 | 2014-03-25 | Colin M. Leonard | Systems and methods for dynamic audio processing |
CN102436821B (en) * | 2011-12-02 | 2013-06-12 | 海能达通信股份有限公司 | Method for adaptively adjusting sound effect and equipment thereof |
CN105262452A (en) * | 2015-10-29 | 2016-01-20 | 小米科技有限责任公司 | Method and apparatus for adjusting volume, and terminal |
CN106341535B (en) * | 2016-08-31 | 2019-08-20 | 维沃移动通信有限公司 | An audio playback control method and mobile terminal |
-
2017
- 2017-08-18 WO PCT/CN2017/098174 patent/WO2019033439A1/en active Application Filing
- 2017-08-18 CN CN201780092121.5A patent/CN110753919B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020111795A1 (en) * | 1999-08-26 | 2002-08-15 | Norris Joseph O. | System for playback of pre-encoded signals through a parametric loudspeaker system |
CN101465625A (en) * | 2007-12-20 | 2009-06-24 | 瑞昱半导体股份有限公司 | Device and method for automatically adjusting gain |
CN104135705A (en) * | 2014-06-24 | 2014-11-05 | 惠州Tcl移动通信有限公司 | Method and system for automatically adjusting multimedia volume according to different scene modes |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954115A (en) * | 2021-03-16 | 2021-06-11 | 腾讯音乐娱乐科技(深圳)有限公司 | Volume adjusting method and device, electronic equipment and storage medium |
CN114979363A (en) * | 2021-03-16 | 2022-08-30 | 腾讯音乐娱乐科技(深圳)有限公司 | Volume adjusting method and device, electronic equipment and storage medium |
CN119835577A (en) * | 2025-03-17 | 2025-04-15 | 东莞市金文华数码科技有限公司 | Audio detection-based sound playing mode adjustment method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110753919B (en) | 2024-06-07 |
CN110753919A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
CN107580113B (en) | Prompting method, prompting device, storage medium and terminal | |
CN107509153B (en) | Detection method and device of sound playing device, storage medium and terminal | |
US11201598B2 (en) | Volume adjusting method and mobile terminal | |
EP3444718A1 (en) | Method and apparatus for adjusting volume, terminal device and storage medium | |
CN110799936B (en) | Volume adjusting method, volume adjusting device, terminal equipment and storage medium | |
CN108418968B (en) | Voice call data processing method and device, storage medium and mobile terminal | |
CN107526569B (en) | Volume adjusting method and device, storage medium and mobile terminal | |
WO2019033943A1 (en) | Volume adjusting method and device, mobile terminal and storage medium | |
EP4462807A1 (en) | Wireless earphone control method and apparatus, and electronic device | |
CN107506168B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN107526570B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
WO2019033942A1 (en) | Volume adjustment method and apparatus, terminal device, and storage medium | |
CN107508983B (en) | Volume adjusting method and device, storage medium and terminal equipment | |
WO2019033439A1 (en) | Volume adjustment method, apparatus, storage medium, and mobile terminal | |
WO2019033436A1 (en) | Volume adjustment method, device, storage medium and mobile terminal | |
CN107479852B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN107483732A (en) | Volume control method, device and storage medium of mobile terminal and mobile terminal | |
CN107479851B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN110731087B (en) | Volume adjusting method and device, mobile terminal and storage medium | |
WO2019033938A1 (en) | Sound volume adjustment method and apparatus, storage medium, and mobile terminal | |
WO2019033434A1 (en) | Volume control method and apparatus, storage medium, and mobile terminal | |
CN107506170A (en) | Volume adjustment method, device, terminal equipment and storage medium | |
HK1247683A1 (en) | Volume adjustment method and apparatus, terminal device and storage medium | |
CN107506169A (en) | Volume adjustment method, device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17922060 Country of ref document: EP Kind code of ref document: A1 |