CN109217834A - Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing - Google Patents
Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109217834A CN109217834A CN201811226398.5A CN201811226398A CN109217834A CN 109217834 A CN109217834 A CN 109217834A CN 201811226398 A CN201811226398 A CN 201811226398A CN 109217834 A CN109217834 A CN 109217834A
- Authority
- CN
- China
- Prior art keywords
- value
- gain
- calculated
- average power
- adjustment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 2
- 206010049712 Dysacusis Diseases 0.000 description 1
- 208000016621 Hearing disease Diseases 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
- H03G3/3005—Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
- H03G3/3026—Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers the gain being discontinuously variable, e.g. controlled by switching
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
- H03G3/3089—Control of digital or coded signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses a kind of gain adjusting methods, comprising: obtains the predetermined power value under average power content and every rank volume of the audio file based on time-domain signal;According to the average power content and the predetermined power value, expected yield value is calculated;According to the average power content, the expected yield value and preset reference power value, pre-adjustment performance number is calculated;Gain adjustment is carried out to the audio file according to the pre-adjustment performance number.The invention also discloses a kind of audio frequency apparatus and computer readable storage mediums.The present invention can often manually adjust volume not hear audio file or cause auditory system to be damaged since loudness increases suddenly, to improve the hearing effect of user to avoid user.
Description
Technical field
The present invention relates to Audiotechnica field more particularly to a kind of gain adjusting methods, audio frequency apparatus and computer-readable
Storage medium.
Background technique
When user by audio frequency apparatus for example player listens to music when, it will usually the sound for encountering certain songs is less than normal, needs
The case where increasing volume manually, when being played to next song automatically, sound can become larger suddenly again, cause loudness excessive and draw
Play dysacusis.Especially in the available sources disunity of source of sound or playout software difference, need often to manually adjust volume,
It is not only inconvenient in this way but also the auditory system of user may be caused to damage.In addition, if merely by volume "+" key come
Increase volume, may cause to overload due to the mutation of individual big signals, lead to non-linear distortion, to influence the audition of user
Effect.
Summary of the invention
The main purpose of the present invention is to provide a kind of gain adjusting method, audio frequency apparatus and computer-readable storage mediums
Matter, it is intended to solve the loudness sense of hearing caused by the audio file power difference of source of sound source or the introducing of playout software difference
Difference problem avoids user from often manually adjusting volume not hear audio file or lead to auditory system since loudness increases suddenly
It damages, to improve the hearing effect of user.
To achieve the above object, the present invention provides a kind of gain adjusting method, and the gain adjusting method includes following step
It is rapid:
Obtain the predetermined power value under average power content and every rank volume of the audio file based on time-domain signal;
According to the average power content and the predetermined power value, expected yield value is calculated;
According to the average power content, the expected yield value and preset reference power value, pre-adjustment is calculated
Performance number;
Gain adjustment is carried out to the audio file according to the pre-adjustment performance number.
Preferably, described according to the average power content and the predetermined power value, expected yield value is calculated
Step includes:
Calculate the absolute difference between the predetermined power value and the average power content;
According to the absolute difference and the preset reference power value, the expected yield value is calculated.
Preferably, described according to the average power content, the expected yield value and preset reference power value, it calculates
The step of obtaining pre-adjustment performance number include:
Calculate the quotient between the average power content and the preset reference power value;
According to the quotient and the expected yield value, target gain is calculated;
According to the target gain and the preset reference power value, the pre-adjustment performance number is calculated.
Preferably, described according to the quotient and the expected yield value, the step of target gain is calculated, includes:
Take the logarithm of the prearranged multiple of the quotient;
Compare the size relation between the average power content and the predetermined power value;
When the average power content is less than or equal to the predetermined power value, calculate the logarithm of the prearranged multiple with
Between the expected yield value and value regard described and value as the target gain;
When the average power content is greater than the predetermined power value, calculate the logarithm of the prearranged multiple with it is described pre-
Difference between phase yield value takes the difference as the target gain.
Preferably, described according to the average power content, the expected yield value and preset reference power value, it calculates
After the step of obtaining pre-adjustment performance number further include:
Judge whether the pre-adjustment performance number corresponds in the presence of the frequency range point for being more than predetermined threshold value;
If it exists, then corresponding time-domain signal is limited by automatic gain controller;
If it does not exist, then the step of gain adjustment is carried out to the audio file according to the pre-adjustment performance number is executed.
Preferably, the step of average power content for obtaining audio file based on time-domain signal includes:
Obtain the duration and amplitude of the audio file;
According to the duration and the amplitude, the average power content is calculated.
Preferably, after described the step of carrying out gain adjustment to the audio file according to the pre-adjustment performance number also
Include:
By the electric signal after gain adjustment, be decoded through decoder and switch to acoustical signal, and input audio equipment with
It is played out in the audio frequency apparatus.
Preferably, described to obtain presetting under average power content and every rank volume of the audio file based on time-domain signal
Before the step of performance number further include:
The audio file of acquisition is stored in advance.
To achieve the above object, the present invention also provides a kind of audio frequency apparatus, the audio frequency apparatus includes processor and deposits
Store up the gain adjustment procedure that can be run in the processor and on the processor, wherein the gain adjustment procedure quilt
The step of processor realizes gain adjusting method as described above when executing.
Gain adjusting method, audio frequency apparatus and computer readable storage medium provided by the invention, by obtaining audio text
Predetermined power value under average power content and every rank volume of the part based on time-domain signal, then according to the average power content
And the predetermined power value, expected yield value is calculated, further according to the average power content, the expected yield value and
Pre-adjustment performance number is calculated in preset reference power value, finally according to the pre-adjustment performance number to the audio file
Carry out gain adjustment.In this way, can solve the audio file power difference due to source of sound source or the introducing of playout software difference
Caused loudness sense of hearing difference problem, avoids user from manually adjusting volume often not hear audio file or since loudness is unexpected
Increase causes auditory system to be damaged, to improve the hearing effect of user.
Detailed description of the invention
Fig. 1 is the functional block diagram for one embodiment of audio frequency apparatus that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of gain adjusting method first embodiment of the present invention;
Fig. 3 is the refinement flow diagram of step S2 in Fig. 2;
Fig. 4 is the refinement flow diagram of step S3 in Fig. 2;
Fig. 5 is the refinement flow diagram of step S32 in Fig. 4;
Fig. 6 is the flow diagram of gain adjusting method second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, audio frequency apparatus of the invention includes: processor 1001, such as CPU, user interface 1002, memory
1003, communication bus 1004 and loudspeaker 1005.Wherein, communication bus 1004 is logical for realizing the connection between these components
Letter.User interface 1002 may include input unit.Loudspeaker 1005 are for playing audio file.
Memory 1003 can be high speed RAM memory, be also possible to stable memory (non-volatile
), such as magnetic disk storage memory.Memory 1003 optionally can also be the storage dress independently of aforementioned processor 1001
It sets.
It will be understood by those skilled in the art that audio frequency apparatus shown in Fig. 1 does not constitute the restriction to audio frequency apparatus, it can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As may include operating system, network communication module, use in a kind of memory 1003 of computer storage medium
Family interface module and gain adjustment procedure.
User interface 1002 is mainly used for reception user and passes through input unit input instruction triggers user instruction;Processor
1001 for calling the gain adjustment procedure stored in memory 1003, and executes following operation:
Obtain the predetermined power value under average power content and every rank volume of the audio file based on time-domain signal;
According to the average power content and the predetermined power value, expected yield value is calculated;
According to the average power content, the expected yield value and preset reference power value, pre-adjustment is calculated
Performance number;
Gain adjustment is carried out to the audio file according to the pre-adjustment performance number.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
Calculate the absolute difference between the predetermined power value and the average power content;
According to the absolute difference and the preset reference power value, the expected yield value is calculated.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
Calculate the quotient between the average power content and the preset reference power value;
According to the quotient and the expected yield value, target gain is calculated;
According to the target gain and the preset reference power value, the pre-adjustment performance number is calculated.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
Take the logarithm of the prearranged multiple of the quotient;
Compare the size relation between the average power content and the predetermined power value;
When the average power content is less than or equal to the predetermined power value, calculate the logarithm of the prearranged multiple with
Between the expected yield value and value regard described and value as the target gain;
When the average power content is greater than the predetermined power value, calculate the logarithm of the prearranged multiple with it is described pre-
Difference between phase yield value takes the difference as the target gain.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
Judge whether the pre-adjustment performance number corresponds in the presence of the frequency range point for being more than predetermined threshold value;
If it exists, then corresponding time-domain signal is limited by automatic gain controller;
If it does not exist, then the step of gain adjustment is carried out to the audio file according to the pre-adjustment performance number is executed.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
Obtain the duration and amplitude of the audio file;
According to the duration and the amplitude, the average power content is calculated.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
By the electric signal after gain adjustment, be decoded through decoder and switch to acoustical signal, and input audio equipment with
It is played out in the audio frequency apparatus.
Further, processor 1001 can call the gain adjustment procedure stored in memory 1003, also execute following
Operation:
The audio file of acquisition is stored in advance.
Referring to Fig. 2, in the first embodiment, the present invention provides a kind of gain adjusting method, comprising the following steps:
Step S1, the predetermined power under average power content and every rank volume of the audio file based on time-domain signal is obtained
Value;
In the present embodiment, the received audio file such as audio frequency apparatus such as mobile phone, Baffle Box of Bluetooth can be stored in advance in memory,
Preferably, next audio file to be played can be stored in advance in the memory, to handle for subsequent analysis.
The signal of the audio file can be time-domain signal or frequency-region signal, when the signal of the audio file is time domain
When signal, independent variable is the time, i.e., horizontal axis is time t, and the longitudinal axis is the variation of signal, and Dynamic Signal is description signal not
The function dt of value in the same time;When the signal of the audio file is frequency-region signal, independent variable is frequency, i.e., horizontal axis is frequency
Rate, the longitudinal axis are the amplitude namely spectrogram of the frequency signal.In the present embodiment, the signal of the audio file is preferably time domain
Signal.
The volume order of the audio file can be rationally arranged according to actual needs, but excessive, such as 30 sections should not be arranged.
Excessive volume order can allow the adjustment of sound size to become imperceptible and cumbersome.Preparatory, it is arranged under every rank volume corresponding
Predetermined power value.
Wherein, the acquisition of the average power content can use following methods: obtain the duration T of the audio file with
And amplitude A;According to the duration T and the amplitude A, it is calculated by the following formula to obtain the average power content P:
Wherein, T is the duration of audio file, and A is the amplitude of audio signal, and t is the time, and dt is audio signal when different
Carve the function of value.Certainly, in other embodiments, can also be calculated using other formula, the present invention is not done specifically
It limits.
Step S2, according to the average power content and the predetermined power value, expected yield value is calculated;
In the present embodiment, according to corresponding predetermined power under the average power content P and every rank volume being calculated
Value P0, it can be calculated by the following formula to obtain expected yield value G:
Wherein, PrefIt can be 1W with value for preset reference power value.
It is understood that predetermined power value P can be combined in this preferred embodiment0, the average function that is calculated
The rate value P and preset reference power value Pref, the expected yield value is calculated with above-mentioned formula.Certainly, at it
In his embodiment, the expected yield value can also be calculated by other formula or algorithm, such as according to average power content P with
And predetermined power value P0The expected yield value is calculated.Other are suitable for switching to performance number the mode of decibel value,
The present invention is to this and is not specifically limited.
Step S3, it according to the average power content, the expected yield value and preset reference power value, is calculated
Pre-adjustment performance number;
In the present embodiment, according to the average power content P, the expected yield value G and preset reference power value P0,
Pre-adjustment performance number Pend is calculated, specifically can refer to following formula:
Wherein, PrefFor preset reference power value, g is according to the average power content P, preset reference power value
PrefAnd the target gain that the expected yield value G is calculated.
Step S4, gain adjustment is carried out to the audio file according to the pre-adjustment performance number.
In the present embodiment, whole gain adjustment is carried out to the audio file according to pre-adjustment performance number Pend, is such as mentioned
Rise gain or reduce gain, it is specific increase or reduce depend primarily on the average power content P and described preset with reference to function
Rate value P0Size relation.When the average power content P is less than the preset reference power value P0When, show to be calculated
The corresponding performance number of the audio file is relatively low, and therefore, it is necessary to carry out promotion gain adjustment to the audio file;Conversely, table
The bright corresponding performance number of the audio file being calculated is higher, and therefore, it is necessary to carry out reduction gain to the audio file
Adjustment.Namely the present invention can be corresponding to carry out gain adjustment according to the corresponding performance number of different audio files, so that different audios
When file plays, it can be played out with suitable volume, so that user be avoided often to manually adjust player volume.
Further, it by the electric signal after gain adjustment, is decoded through decoder and switchs to acoustical signal, and input sound
Frequency equipment in the audio frequency apparatus to play out.
Gain adjusting method provided by the invention, by obtaining average power content of the audio file based on time-domain signal, with
And the predetermined power value under every rank volume is calculated pre- then according to the average power content and the predetermined power value
Phase yield value is calculated presetting further according to the average power content, the expected yield value and preset reference power value
Whole performance number finally carries out gain adjustment to the audio file according to the pre-adjustment performance number.In this way, can solve due to
Loudness sense of hearing difference problem caused by the audio file power difference that source of sound source or playout software difference introduce, avoids using
Family often manually adjusts volume not hear audio file or cause auditory system to be damaged since loudness increases suddenly, to mention
The hearing effect of high user.
Referring to Fig. 3, in a second embodiment, it is based on first embodiment, the step S2 includes:
Step S21, the absolute difference between the predetermined power value and the average power content is calculated;
Step S22, according to the absolute difference and the preset reference power value, the expected gain is calculated
Value.
In the present embodiment, the predetermined power value P can be first calculated0Difference between the average power content P is absolute
Value | P0- P |, then according to the absolute difference | P0- P |, calculate the absolute difference | P0- P | with the preset reference
Quotient between performance number Pref:
The quotient is taken into logarithm again, and takes 10 times of logarithm, namely:
Wherein, PrefIt can be 1W with value for preset reference power value.
When the absolute difference | P0- P | when >=0, show P0The power of >=P, i.e., presently described audio file are less than normal, after
It is continuous that whole promotion gain adjustment will be carried out to the audio file;Work as absolute difference | P0- P | when < 0, show P0< P, i.e.,
The power of presently described audio file is bigger than normal, subsequent that whole reduction gain adjustment will be carried out to the audio file.Certainly, exist
In other embodiments, the expected yield value can also be calculated by other formula or algorithm, other are suitable for power
Value switchs to the mode of decibel value, and the present invention is to this and is not specifically limited.
The present embodiment is obtained between the power of current audio file and preset performance number by calculating difference absolute value
Size relation, consequently facilitating judge that presently described audio file is to promote gain adjustment, or lower gain adjustment, so as to
Specific aim solves the sound caused by the audio file power difference of different source of sound sources or the introducing of playout software difference
The problem of spending sense of hearing difference.
Referring to Fig. 4, in the third embodiment, first or second embodiments are based on, the step S3 includes:
Step S31, the quotient between the average power content and the preset reference power value is calculated;
In the present embodiment, the average power content P and preset reference power value P is calculatedrefBetween quotient:
Step S32, according to the quotient and the expected yield value, target gain is calculated;
In the present embodiment, referring to Fig. 5, the step S32 further comprises:
Step S321, the logarithm of the prearranged multiple of the quotient is taken;
Step S322, the size relation between average power content described in comparison and the predetermined power value;
Step S323, when the average power content is less than or equal to the predetermined power value, the prearranged multiple is calculated
Logarithm and the expected yield value between and value, regard described and value as the target gain;
Step S324, when the average power content is greater than the predetermined power value, the logarithm of the prearranged multiple is calculated
Difference between value and the expected yield value, takes the difference as the target gain.
In the present embodiment, the quotient is taken into logarithm, and take 10 times of logarithm, namely:
Then value above-mentioned formula being calculated carries out gain adjustment, obtains target gain g, specifically:
Compare the average power content P and the predetermined power value P0Between size relation, work as P0When >=P, i.e., current institute
The power for stating audio file is less than normal, needs to carry out the audio file whole promotion gain adjustment, calculates the prearranged multiple
Such as between 10 times of logarithms and the expected yield value and value, it regard described and value as the target gain.It can basis
Following formula promotes gain:
Work as P0When < P, i.e., the power of presently described audio file is bigger than normal, needs to carry out the audio file whole reduction
Gain adjustment calculates the difference between such as 10 times of the prearranged multiple of logarithm and the expected yield value, by the difference
As the target gain.Gain can be reduced according to the following formula:
It is understood that the promotion or reduction processing that other formula carry out gain also can be used in the present invention, it such as can be
In the above-mentioned formula for promoting gain or reducing gain enumerated, coefficient before the expected yield value G and described is changedThe coefficient of front.
Step S33, according to the target gain and the preset reference power value, the pre-adjustment function is calculated
Rate value.
In the present embodiment, according to the target gain g and preset reference power value P0, pre-adjustment is calculated
Performance number Pend specifically can refer to following formula:
Certainly, the calculation of the target gain g is not limited to a kind of above-mentioned calculation enumerated, similarly,
The pre-adjustment performance number Pend is also not limited to a kind of above-mentioned calculation formula, other reasonable formula can also, the present invention is to this
And it is not specifically limited.
The present embodiment passes through in conjunction with the average power content P and the predetermined power value P0Between size relation, calculate
Target gain value is obtained, the target gain is then switched into performance number, the convenient adjustment to the audio file entire gain.
Referring to Fig. 6, in the 5th embodiment, it is based on first embodiment, after the step S3 further include:
Step S5, judge whether the pre-adjustment performance number corresponds in the presence of the frequency range point for being more than predetermined threshold value;
It is whole when being carried out to the audio file since different audio files has different frequency ranges in the present embodiment
Promoted gain or reduce gain adjustment after, pre-adjustment performance number there may be more than predetermined threshold value frequency range point, therefore, it is necessary to
Judge to carry out the audio file performance number after gain adjustment, if having the frequency range point more than predetermined threshold value.
Step S6, if it exists, then corresponding time-domain signal is limited by automatic gain controller;
In the present embodiment, the corresponding frequency range point more than predetermined threshold value, then pass through automatic gain controller and limit if it exists
Corresponding time-domain signal makes its corresponding performance number in the predetermined threshold value, then executes according to the pre-adjustment power
The step of value carries out gain adjustment to the audio file.In this way, the non-linear mistake of the overload generated after gain adjustment can be prevented
True phenomenon.
Step S7, it if it does not exist, then executes and gain adjustment is carried out to the audio file according to the pre-adjustment performance number
The step of.
In the present embodiment, the corresponding frequency range point more than predetermined threshold value, then directly executed according to described presetting if it does not exist
The step of whole performance number carries out gain adjustment to the audio file.
The present embodiment judges whether the pre-adjustment performance number corresponds in the presence of more than default by setting predetermined threshold value
The frequency range point of threshold value decides whether to execute the step for carrying out gain adjustment to the audio file according to the pre-adjustment performance number
Suddenly, it can be further improved the gain effect to audio file, prevent from overloading so as to limit strong signal, avoid big signal
Under non-linear distortion guarantee sense of hearing and to protect auditory system.
The present invention also provides a kind of audio frequency apparatus, the audio frequency apparatus includes processor and is stored in the processor
And the gain adjustment procedure that can be run on the processor, wherein when the gain adjustment procedure is executed by the processor
The step of realizing gain adjusting method as described above.
The present invention also provides a kind of computer readable storage medium, gain is stored on the computer readable storage medium
Adjustment programme, the gain adjustment procedure are executed by processor the step of realizing gain adjusting method as described above.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, controlled terminal or network equipment etc.) execute method described in each embodiment of the present invention.
Claims (10)
1. a kind of gain adjusting method, which is characterized in that the described method includes:
Obtain the predetermined power value under average power content and every rank volume of the audio file based on time-domain signal;
According to the average power content and the predetermined power value, expected yield value is calculated;
According to the average power content, the expected yield value and preset reference power value, pre-adjustment power is calculated
Value;
Gain adjustment is carried out to the audio file according to the pre-adjustment performance number.
2. gain adjusting method as described in claim 1, which is characterized in that described according to the average power content and described
Predetermined power value, the step of expected yield value is calculated include:
Calculate the absolute difference between the predetermined power value and the average power content;
According to the absolute difference and the preset reference power value, the expected yield value is calculated.
3. gain adjusting method as claimed in claim 1 or 2, which is characterized in that it is described according to the average power content, it is described
It is expected that yield value and preset reference power value, the step of pre-adjustment performance number is calculated, includes:
Calculate the quotient between the average power content and the preset reference power value;
According to the quotient and the expected yield value, target gain is calculated;
According to the target gain and the preset reference power value, the pre-adjustment performance number is calculated.
4. gain adjusting method as claimed in claim 3, which is characterized in that described according to the quotient and the expected gain
Value, the step of target gain is calculated include:
Take the logarithm of the prearranged multiple of the quotient;
Compare the size relation between the average power content and the predetermined power value;
When the average power content is less than or equal to the predetermined power value, calculate the logarithm of the prearranged multiple with it is described
It is expected that between yield value and value, regard described and value as the target gain;
When the average power content is greater than the predetermined power value, the logarithm and the expected increasing of the prearranged multiple are calculated
Difference between benefit value, takes the difference as the target gain.
5. gain adjusting method as described in claim 1, which is characterized in that it is described according to the average power content, it is described pre-
Phase yield value and preset reference power value, after the step of pre-adjustment performance number is calculated further include:
Judge whether the pre-adjustment performance number corresponds in the presence of the frequency range point for being more than predetermined threshold value;
If it exists, then corresponding time-domain signal is limited by automatic gain controller;
If it does not exist, then the step of gain adjustment is carried out to the audio file according to the pre-adjustment performance number is executed.
6. gain adjusting method as described in claim 1, which is characterized in that the acquisition audio file is based on time-domain signal
The step of average power content includes:
Obtain the duration and amplitude of the audio file;
According to the duration and the amplitude, the average power content is calculated.
7. gain adjusting method as described in claim 1, which is characterized in that it is described according to the pre-adjustment performance number to described
Audio file carried out after the step of gain adjustment further include:
It by the electric signal after gain adjustment, is decoded through decoder and switchs to acoustical signal, and input audio equipment is in institute
Audio frequency apparatus is stated to play out.
8. gain adjusting method as described in claim 1, which is characterized in that the acquisition audio file is based on time-domain signal
Before the step of predetermined power value under average power content and every rank volume further include:
The audio file of acquisition is stored in advance.
9. a kind of audio frequency apparatus, which is characterized in that the audio frequency apparatus includes processor and is stored in the processor simultaneously
The gain adjustment procedure that can be run on the processor, wherein real when the gain adjustment procedure is executed by the processor
Now the step of gain adjusting method described in any item of the claim 1 to 8 as above.
10. a kind of computer readable storage medium, which is characterized in that be stored with gain tune on the computer readable storage medium
Whole program, the gain adjustment procedure are executed by processor realization such as gain adjustment side described in any item of the claim 1 to 8
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811226398.5A CN109217834B (en) | 2018-10-19 | 2018-10-19 | Gain adjustment method, audio device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811226398.5A CN109217834B (en) | 2018-10-19 | 2018-10-19 | Gain adjustment method, audio device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109217834A true CN109217834A (en) | 2019-01-15 |
CN109217834B CN109217834B (en) | 2022-06-21 |
Family
ID=64981307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811226398.5A Active CN109217834B (en) | 2018-10-19 | 2018-10-19 | Gain adjustment method, audio device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109217834B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995941A (en) * | 2019-03-27 | 2019-07-09 | 腾讯音乐娱乐科技(深圳)有限公司 | A kind of data adjustment method, equipment and storage medium |
CN112199070A (en) * | 2020-10-14 | 2021-01-08 | 展讯通信(上海)有限公司 | Audio processing method and device, storage medium and computer equipment |
CN112333534A (en) * | 2020-09-17 | 2021-02-05 | 深圳Tcl新技术有限公司 | Noise elimination method and device, smart television system and readable storage medium |
CN112511123A (en) * | 2020-11-30 | 2021-03-16 | 广州朗国电子科技有限公司 | Sound effect customizing method and device, electronic equipment and storage medium |
CN113015059A (en) * | 2021-02-23 | 2021-06-22 | 歌尔科技有限公司 | Audio optimization method, device, equipment and readable storage medium |
CN113099352A (en) * | 2021-03-25 | 2021-07-09 | 维沃移动通信有限公司 | Audio signal processing method, audio signal processing device, electronic equipment and storage medium |
WO2023070792A1 (en) * | 2021-10-26 | 2023-05-04 | 歌尔科技有限公司 | Volume balancing method and device for talk-on doorbell, and readable storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1238652A (en) * | 1998-02-20 | 1999-12-15 | 日本电气株式会社 | Mobile radio communication equipment |
CN1592094A (en) * | 2003-09-05 | 2005-03-09 | 日本电气株式会社 | Automatic gain control method for radio communication mobile station |
US20130329912A1 (en) * | 2012-06-08 | 2013-12-12 | Apple Inc. | Systems and methods for adjusting automatic gain control |
US20140185831A1 (en) * | 2012-12-28 | 2014-07-03 | Hon Hai Precision Industry Co., Ltd. | Volume control method and system |
CN103929140A (en) * | 2014-04-30 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method and device for pre-processing voice frequency |
CN104410379A (en) * | 2014-10-29 | 2015-03-11 | 深圳市金立通信设备有限公司 | A volume adjusting method |
US20150332685A1 (en) * | 2013-01-28 | 2015-11-19 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Method and apparatus for normalized audio playback of media with and without embedded loudness metadata on new media devices |
CN105450193A (en) * | 2014-08-28 | 2016-03-30 | 深圳Tcl新技术有限公司 | Volume adjusting method and volume adjusting device |
CN107018563A (en) * | 2017-02-22 | 2017-08-04 | 中国人民解放军信息工程大学 | For the digital auto gain control method of narrow band signal after broadband system channelizing |
CN107994879A (en) * | 2017-12-04 | 2018-05-04 | 北京小米移动软件有限公司 | Volume control method and device |
CN108174031A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of volume adjusting method, terminal device and computer readable storage medium |
-
2018
- 2018-10-19 CN CN201811226398.5A patent/CN109217834B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1238652A (en) * | 1998-02-20 | 1999-12-15 | 日本电气株式会社 | Mobile radio communication equipment |
CN1592094A (en) * | 2003-09-05 | 2005-03-09 | 日本电气株式会社 | Automatic gain control method for radio communication mobile station |
US20130329912A1 (en) * | 2012-06-08 | 2013-12-12 | Apple Inc. | Systems and methods for adjusting automatic gain control |
US20140185831A1 (en) * | 2012-12-28 | 2014-07-03 | Hon Hai Precision Industry Co., Ltd. | Volume control method and system |
US20150332685A1 (en) * | 2013-01-28 | 2015-11-19 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Method and apparatus for normalized audio playback of media with and without embedded loudness metadata on new media devices |
CN103929140A (en) * | 2014-04-30 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method and device for pre-processing voice frequency |
CN105450193A (en) * | 2014-08-28 | 2016-03-30 | 深圳Tcl新技术有限公司 | Volume adjusting method and volume adjusting device |
CN104410379A (en) * | 2014-10-29 | 2015-03-11 | 深圳市金立通信设备有限公司 | A volume adjusting method |
CN107018563A (en) * | 2017-02-22 | 2017-08-04 | 中国人民解放军信息工程大学 | For the digital auto gain control method of narrow band signal after broadband system channelizing |
CN107994879A (en) * | 2017-12-04 | 2018-05-04 | 北京小米移动软件有限公司 | Volume control method and device |
CN108174031A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of volume adjusting method, terminal device and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
周小东: "《录音工程师手册》", 30 April 2015, pages: 2 - 3 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995941A (en) * | 2019-03-27 | 2019-07-09 | 腾讯音乐娱乐科技(深圳)有限公司 | A kind of data adjustment method, equipment and storage medium |
CN109995941B (en) * | 2019-03-27 | 2022-11-11 | 腾讯音乐娱乐科技(深圳)有限公司 | Data adjusting method, device and storage medium |
CN112333534A (en) * | 2020-09-17 | 2021-02-05 | 深圳Tcl新技术有限公司 | Noise elimination method and device, smart television system and readable storage medium |
CN112333534B (en) * | 2020-09-17 | 2023-11-14 | 深圳Tcl新技术有限公司 | Noise elimination method and device, intelligent television system and readable storage medium |
CN112199070A (en) * | 2020-10-14 | 2021-01-08 | 展讯通信(上海)有限公司 | Audio processing method and device, storage medium and computer equipment |
CN112199070B (en) * | 2020-10-14 | 2022-11-25 | 展讯通信(上海)有限公司 | Audio processing method and device, storage medium and computer equipment |
CN112511123A (en) * | 2020-11-30 | 2021-03-16 | 广州朗国电子科技有限公司 | Sound effect customizing method and device, electronic equipment and storage medium |
CN113015059A (en) * | 2021-02-23 | 2021-06-22 | 歌尔科技有限公司 | Audio optimization method, device, equipment and readable storage medium |
CN113099352A (en) * | 2021-03-25 | 2021-07-09 | 维沃移动通信有限公司 | Audio signal processing method, audio signal processing device, electronic equipment and storage medium |
CN113099352B (en) * | 2021-03-25 | 2023-04-07 | 维沃移动通信有限公司 | Audio signal processing method, audio signal processing device, electronic equipment and storage medium |
WO2023070792A1 (en) * | 2021-10-26 | 2023-05-04 | 歌尔科技有限公司 | Volume balancing method and device for talk-on doorbell, and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109217834B (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109217834A (en) | Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing | |
US8649531B2 (en) | Method and system for approximating graphic equalizers using dynamic filter order reduction | |
EP2278707B1 (en) | Dynamic enhancement of audio signals | |
KR101735416B1 (en) | Audio loudness control system | |
TWI509597B (en) | Audio signal dynamic equalization processing control | |
CN105245195B (en) | For the technology of distortion reduction multiband compressor reducer protected with sound quality | |
US9462381B2 (en) | Intelligent dynamics processing | |
EP1423985A2 (en) | Speaker equalization tool | |
CN106775563A (en) | The method and device of volume adjusting | |
CN104918181B (en) | Level adjustment apparatus and method | |
US9661438B1 (en) | Low latency limiter | |
CN110677774B (en) | Volume self-adaptive adjusting method and device, computer equipment and storage medium | |
WO2017032012A1 (en) | Volume adjusting method and user terminal | |
TW200912898A (en) | Time-varying audio-signal level using a time-varying estimated probability density of the level | |
JP4983694B2 (en) | Audio playback device | |
CN103746668A (en) | Sound volume control method and system | |
CN107682802B (en) | Method and device for debugging sound effect of audio equipment | |
CN102255607B (en) | Method for adjusting output volume and system thereof | |
CN111508510A (en) | Audio processing method and device, storage medium and electronic equipment | |
TW201308198A (en) | Optimization method for audio playback system | |
US9628907B2 (en) | Audio device and method having bypass function for effect change | |
CN116437268B (en) | Adaptive frequency division surround sound upmixing method, device, equipment and storage medium | |
JP2004015125A (en) | Automatic gain control apparatus | |
TWI591624B (en) | Method for reducing noise and computer program thereof and electronic device | |
CN110740404A (en) | audio correlation processing method and audio processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |