CN106354469A - Loudness regulation method and device - Google Patents

Loudness regulation method and device Download PDF

Info

Publication number
CN106354469A
CN106354469A CN201610720944.5A CN201610720944A CN106354469A CN 106354469 A CN106354469 A CN 106354469A CN 201610720944 A CN201610720944 A CN 201610720944A CN 106354469 A CN106354469 A CN 106354469A
Authority
CN
China
Prior art keywords
loudness
regulated quantity
moment
parameter group
alternative
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
Application number
CN201610720944.5A
Other languages
Chinese (zh)
Other versions
CN106354469B (en
Inventor
胡明清
王涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201610720944.5A priority Critical patent/CN106354469B/en
Publication of CN106354469A publication Critical patent/CN106354469A/en
Application granted granted Critical
Publication of CN106354469B publication Critical patent/CN106354469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The embodiment of the invention provides a loudness regulation method and device, wherein the method includes the steps of: obtaining the first loudness of the sound signal at the current processing time of the on-line live multimedia file in an electronic device; determining the regulating variable of the first target loudness based on the first loudness and the preset threshold of the first loudness; applying the regulating variable of the first target loudness to the sound signal of the multimedia file sent at the current processing time; compared with the prior art, for an on-line live broadcast process, no matter what the original loudness of the sound signal of the multimedia document is, after the calculation and application of the regulating variable of the first loudness, the actual loudness finally heard by the user is the first loudness threshold. Therefore, the loudness regulation method and device can favorably ensure the loudness consistency during the on-line live broadcast of multimedia files, thereby bringing better experience in hearing to users.

Description

A kind of loudness control method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of loudness control method and device.
Background technology
In Internet technical field, multimedia (audio/video) file has been increasingly becoming the important of the online amusement of user Ingredient, according to statistics, the flow of current multimedia file has accounted for more than the 80% of whole internet traffic.General and Speech, the multimedia file on the Internet specifically includes that many matchmakers that the original multimedia file of user and professional manufacturing mechanism make Body file.In general, if multimedia file is the original content of user, the original user due to making this multimedia file can Can be not professional, the quality of this multimedia file cannot be guaranteed;If multimedia file is the interior of professional manufacturing mechanism making Hold, because this multimedia file is made by professional, therefore this multimedia file producing is superior, and its quality is generally possible to obtain relatively Good guarantee.
No matter being original multimedia file, or the multimedia file that professional institution makes all exists during live Some defects.Specifically, for original multimedia file, the loudness (i.e. volume) due to multimedia file is by former Wound is user-defined, and the production technique of original user is uneven, much original user less can take into account how to determine many Media file Each point in time loudness so that give the preferable listening experience of user, be so likely to result in watching this many matchmaker The sound intensity that the live user of body file hears is fluctuated.For the multimedia file that professional institution makes, due to Different multimedia files is probably derived from different manufacturing mechanisms or is made by different professionals, therefore each multimedia is civilian The loudness of part may also and differ, when user is when just switching between live, different multimedia file, user The sound intensity heard is also different, so also can bring very bad listening experience to the live user of viewing.Therefore, How to ensure that loudness concordance during live online for the multimedia file is a problem demanding prompt solution.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of loudness control method and device, with ensure multimedia file Loudness concordance during line is live.
Embodiments provide a kind of loudness control method it is characterised in that methods described includes:
Obtain the of the live online multimedia file acoustical signal corresponding in the currently processed moment in electronic equipment One loudness;
Based on the first loudness and default first loudness threshold, determine first object loudness regulated quantity;
Acoustical signal corresponding to the described multimedia file that the currently processed moment is sent applies described first object and rings Degree regulated quantity.
Alternatively, described based on described first loudness and default first loudness threshold, determine that first object loudness is adjusted Amount, comprising:
According to formulaDetermine first object loudness regulated quantity, wherein, g is that described first object loudness is adjusted Section amount, ltFor described first loudness threshold, lmFor described first loudness.
Alternatively, methods described also includes:
Judge whether described first loudness is identical with default first loudness threshold;
If differing, execution described according to formulaThe step determining first object loudness regulated quantity.
Alternatively, sound corresponding in the currently processed moment for the live online multimedia file in described acquisition electronic equipment Before first loudness of message number, methods described also includes:
At predetermined intervals, multiple time references are determined;
Obtain and store live online multimedia file in described electronic equipment in each time reference play Loudness on point is to constitute loudness parameter group;
Correspondingly, sound corresponding in the currently processed moment for the live online multimedia file in described acquisition electronic equipment First loudness of message number, comprising:
Obtain the loudness of object time reference point storage, and using acquired loudness as the first loudness, wherein, described mesh Mark time reference be described loudness parameter group in immediate time reference in time of described currently processed moment.
Alternatively, described at predetermined intervals, determine multiple time references, comprising:
Determine multiple predetermined time intervals;
Respectively according to each predetermined time interval, determine each corresponding time parameter group, each time parameter group Include multiple time references;
Described obtain and store live online multimedia file in described electronic equipment in each time play Loudness in reference point is to constitute loudness parameter group, comprising:
It is respectively directed to, in each time reference group, obtain and store live online multimedia file in described electronic equipment Loudness on each time reference play, to constitute the loudness parameter corresponding with each described time reference group Group;
The described loudness obtaining the storage of object time reference point, and using acquired loudness as the first loudness, comprising:
Obtain the loudness of object time reference point storage respectively from each loudness parameter group, and acquired loudness is made For the first loudness;
Described based on described first loudness and described first loudness threshold, determine first object loudness regulated quantity, comprising:
Choose loudness parameter group described in a group, and according to each loudness in the described loudness parameter group chosen, obtain described Multimedia file is from the initial play moment to the mean loudness in currently processed moment;
According to formulaDetermine the first alternative loudness regulated quantity corresponding to mean loudness, according to formulaDetermine the second alternative loudness regulated quantity corresponding with the first loudness corresponding to each loudness parameter group, its In, g1 is the described first alternative loudness regulated quantity, ltFor described first loudness threshold, lsFor described mean loudness, g2 is described the Two alternative loudness regulated quantitys, lnIt is and the first loudness corresponding to n-th group loudness parameter group in the plurality of loudness parameter group;
Described first alternative loudness regulated quantity and each described second alternative loudness regulated quantity are weighted, obtain weighting Loudness regulated quantity;
Based on described weighting loudness regulated quantity, determine first object loudness regulated quantity.
Alternatively, methods described also includes:
Loudness after the judgement local previous process moment that whether is stored with is adjusted;
When judged result be when, judge described first loudness with described previous process the moment adjusted after loudness difference Whether value is more than default first loudness difference threshold;
If so, execute the described step that described first loudness regulated quantity and each described second loudness regulated quantity are weighted Suddenly, wherein, described weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter The time interval of group is in negative correlation, and the weights of described first alternative loudness regulated quantity are less than each second alternative loudness regulated quantity institute Minima in corresponding weights;
Otherwise, execute the described step that described first loudness regulated quantity and each described second loudness regulated quantity are weighted Suddenly, wherein, described weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter The time interval of group is proportionate, and the weights of described first alternative loudness regulated quantity are more than each second alternative loudness regulated quantity institute Maximum in corresponding weights.
Alternatively, described based on described weighting loudness regulated quantity, determine first object loudness regulated quantity, comprising:
Judge the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
If it is, according to formula g3=ag4+ (1-a) g5, determining first object loudness regulated quantity, wherein, g3 is described the One target loudness regulated quantity, g4 is weighting loudness regulated quantity, and g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is pre- If smoothing factor.
Alternatively, described in the acoustical signal corresponding to the described described multimedia file that the currently processed moment is sent applies Before first object loudness regulated quantity, methods described also includes:
Judge locally stored have the previous loudness regulated quantity processing corresponding to the moment in the case of, locally whether judge Be stored with the previous regulatory factor processing corresponding to the moment;
Judge common through the previous regulatory factor processing corresponding to the moment and the loudness regulated quantity corresponding to the previous process moment Whether poor more than default second loudness with the difference of described first loudness threshold with the loudness in previous process moment after adjusting Value threshold value;
If so, according to formulaObtain and store the regulatory factor in currently processed moment, wherein, g6 is to work as The regulatory factor in pre-treatment moment, ls be adjusted after the previous process moment loudness;
Correspondingly, described based on described weighting loudness regulated quantity, determine first object loudness regulated quantity, comprising:
Obtain and store the regulatory factor in currently processed moment and the product of described weighting loudness regulated quantity, by described product As first object loudness regulated quantity.
The embodiment of the present invention additionally provides a kind of loudness adjusting means, and described device includes:
First loudness acquisition module, for obtaining live online multimedia file in electronic equipment in the currently processed moment First loudness of corresponding acoustical signal;
First object loudness regulated quantity determining module, for based on the first loudness and default first loudness threshold, determining First object loudness regulated quantity;
Loudness regulated quantity applies module, for the sound corresponding to described multimedia file that the currently processed moment is sent Signal applies described first object loudness regulated quantity.
Alternatively, described first object loudness regulated quantity determining module, specifically for according to formulaDetermine First object loudness regulated quantity, wherein, g is described first object loudness regulated quantity, ltFor described first loudness threshold, lmFor institute State the first loudness.
Alternatively, described device also includes:
Whether the first judge module is identical with default first loudness threshold for judging described first loudness;
First trigger module, in the case of being no in the judged result of described first judge module, triggering described the One target loudness regulated quantity determining module.
Alternatively, described device also includes:
Time reference determining module, for obtaining live online multimedia file in electronic equipment currently processed Before first loudness of the acoustical signal corresponding to the moment, at predetermined intervals, multiple time references are determined;
Loudness parameter group determining module, exists for obtaining and storing live online multimedia file in described electronic equipment The loudness on each time reference play is to constitute loudness parameter group;
Correspondingly, described first loudness acquisition module, specifically for obtaining the loudness of object time reference point storage, and will As the first loudness, wherein, described object time reference point is current with described in described loudness parameter group to acquired loudness Process moment immediate time reference in time.
Alternatively, described time reference determining module, comprising:
Time interval determination sub-module, for determining multiple predetermined time intervals;
Time reference group determination sub-module, determines each corresponding for respectively according to each predetermined time interval Time parameter group, each time parameter group includes multiple time references;
Described loudness parameter group determining module, specifically for being respectively directed to, in each time reference group, obtain and store institute State loudness on each time reference play for the live online multimedia file in electronic equipment, with composition and respectively The corresponding loudness parameter group of described time reference group;
Described loudness parameter group determining module, specifically for obtaining object time reference respectively from each loudness parameter group The loudness of point storage, and using acquired loudness as the first loudness;
Described first object loudness regulated quantity determining module, comprising:
Mean loudness obtains module, for choosing loudness parameter group described in a group, and according to the described loudness parameter chosen Each loudness in group, obtains described multimedia file from the initial play moment to the mean loudness in currently processed moment;
Alternative loudness regulated quantity determination sub-module, for according to formulaDetermine corresponding to mean loudness First alternative loudness regulated quantity, according to formulaDetermine relative with the first loudness corresponding to each loudness parameter group The the second alternative loudness regulated quantity answered, wherein, g1 is the described first alternative loudness regulated quantity, ltFor described first loudness threshold, ls For described mean loudness, g2 is the described second alternative loudness regulated quantity, lnIt is and n-th group loudness in the plurality of loudness parameter group The first loudness corresponding to parameter group;
Weighting loudness regulated quantity determination sub-module, for the described first alternative loudness regulated quantity and each described second standby Select loudness regulated quantity to be weighted, obtain weighting loudness regulated quantity;
Target loudness regulated quantity determination sub-module, for based on described weighting loudness regulated quantity, determining first object loudness Regulated quantity.
Alternatively, described device also includes:
Second judge module, for judge locally whether to be stored with previous process the moment adjusted after loudness;
3rd judge module, for the judged result in described second judge module be in the case of, judge described the Whether the difference of the loudness after one loudness is adjusted with the described previous process moment is more than default first loudness difference threshold;
Second trigger module, adds for, in the case of being, triggering is described for the judged result in described 3rd judge module Power loudness regulated quantity determination sub-module, wherein, described weighting using weights meet: corresponding to each second alternative loudness regulated quantity Weights are in negative correlation with the time interval of corresponding loudness parameter group, and the weights of described first alternative loudness regulated quantity are less than respectively Minima in weights corresponding to second alternative loudness regulated quantity;And the judged result feelings that are no in described 3rd judge module Under condition, triggering described weighting loudness regulated quantity determination sub-module, wherein, described weighting using weights meet: each second is alternative Weights corresponding to loudness regulated quantity are proportionate with the time interval of corresponding loudness parameter group, and described first alternative loudness is adjusted The weights of section amount are more than the maximum in weights corresponding to each second alternative loudness regulated quantity.
Alternatively, described target loudness regulated quantity determination sub-module, comprising:
Judging unit, for judging the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
Target loudness regulated quantity determining unit, for described judging unit judged result be in the case of, according to Formula g3=ag4+ (1-a) g5, determines first object loudness regulated quantity, and wherein, g3 is described first object loudness regulated quantity, g4 For weighting loudness regulated quantity, g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is default smoothing factor.
Alternatively, described device also includes:
3rd judge module, for the acoustical signal corresponding in the described multimedia file that the currently processed moment is sent Before applying described first object loudness regulated quantity, and judge that the locally stored loudness having corresponding to the previous process moment is adjusted In the case of amount, judge the previous regulatory factor processing corresponding to the moment that locally whether is stored with;
4th judge module, right through the previous regulatory factor processing corresponding to the moment and previous process moment for judging Whether the loudness in previous process moment after the common regulation of loudness regulated quantity answered is more than with the difference of described first loudness threshold Default second loudness difference threshold;
Regulatory factor determining module, for according to formulaObtain and store the regulation in currently processed moment The factor, wherein, g6 is the regulatory factor in currently processed moment, ls be adjusted after the previous process moment loudness;
Correspondingly, described target loudness regulated quantity determination sub-module, specifically for obtaining and storing the currently processed moment Regulatory factor and the described product weighting loudness regulated quantity, using described product as first object loudness regulated quantity.
In the embodiment of the present invention, for live online multimedia file in electronic equipment, loudness adjusting means meeting Acoustical signal actual play corresponding in the currently processed moment out before, obtain the currently processed moment corresponding to sound letter Number the first loudness, and based on the first loudness and default first loudness threshold, determine first object loudness regulated quantity.So, During acoustical signal actual play corresponding in the currently processed moment, loudness adjusting means can apply first to this acoustical signal Target loudness regulated quantity, correspondingly, the loudness of the acoustical signal of the actual uppick of user is the loudness after overregulating, that is, first Loudness threshold.Additionally, during live online, loudness adjusting means can periodically, sound to the respective handling moment Signal applies first object loudness regulated quantity, so that the loudness of the actual uppick of user always remains as the first loudness threshold.With Prior art is compared, and for live process online, no matter the original loudness of the acoustical signal corresponding to multimedia file is How much, by calculating and the applying of the first loudness regulated quantity, the loudness of the final actual uppick of user is the first loudness threshold, Therefore the embodiment of the present invention preferably ensure that loudness concordance during live online for the multimedia file, thus carrying to user Carry out preferable listening experience.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of loudness control method provided in an embodiment of the present invention;
Fig. 2 is the structured flowchart of loudness adjusting means provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
In order to solve the problems, such as prior art, embodiments provide a kind of loudness control method and device.
A kind of loudness the control method first below embodiment of the present invention being provided illustrates.
It should be noted that a kind of loudness control method that the embodiment of the present invention is provided can apply to a loudness adjusting Device, this loudness adjusting means can be electrically connected with the electronic equipment for playing multimedia file, thus in multimedia file During live online on an electronic device, by implementing this loudness control method, and then ensure multimedia file online Loudness concordance during live.
Referring to Fig. 1, the flow chart that in figure shows a kind of loudness control method that the embodiment of the present invention is provided.As Fig. 1 Shown, the method can include step:
S101, obtains acoustical signal corresponding in the currently processed moment for the live online multimedia file in electronic equipment The first loudness.
It should be noted that for live online multimedia file in electronic equipment, in this multimedia file, when Before actual play is out, it typically can briefly be cached in the slow of electronic equipment to data file corresponding to the pre-treatment moment In punching, with etc. to be played, within this period that this data file is present in buffering, loudness adjusting means can obtain currently Process the first loudness of the acoustical signal corresponding to the moment, in order in follow-up s102, based on the first loudness obtaining and Default first loudness threshold, determines first object loudness regulated quantity.
It is emphasized that live online multimedia file in acquisition electronic equipment is corresponding to the currently processed moment The way of realization of the first loudness of acoustical signal is various, in order to layout understands, subsequently carries out citing and introduces.
S102, based on the first loudness and default first loudness threshold, determines first object loudness regulated quantity.
Wherein, the first loudness threshold can be a pre-set loudness value.It is understood that the first loudness threshold The concrete value of value can determine according to practical situation, only need to ensure that the loudness of the acoustical signal corresponding to multimedia file is During this value, during multimedia file is live online, user can obtain preferable listening experience, the present embodiment pair The concrete value of the first loudness threshold does not do any restriction.
It should be noted that based on the first loudness and the first loudness threshold, determining the realization of first object loudness regulated quantity Various informative, carry out citing below and introduce.
In a kind of specific embodiment of the embodiment of the present invention, based on the first loudness and default first loudness threshold, Determine first object loudness regulated quantity, may include that
According to formulaDetermine first object loudness regulated quantity, wherein, g is first object loudness regulated quantity, ltFor the first loudness threshold, lmFor the first loudness.
After being calculated first object loudness regulated quantity according to this formula, loudness adjusting means only needs to execute S103, the acoustical signal corresponding to the multimedia file currently processed moment being sent applies first object loudness regulated quantity, For example it is directed to the corresponding point position in the currently processed moment for the audio volume control corresponding to this multimedia file, from time domain or frequently This first object loudness regulated quantity is applied on rate domain.So, user is in the acoustical signal institute of actual uppick of currently processed moment Corresponding loudness be exactly adjusted after loudness, on the premise of not considering remaining influence factor, the loudness after this is adjusted is For the first loudness threshold.
S103, the acoustical signal corresponding to the multimedia file that the currently processed moment is sent applies first object loudness and adjusts Section amount.
It is emphasized that loudness adjusting means does not need fairly frequently to execute this loudness control method, it can week Phase property ground executes this loudness control method it is only necessary to ensure arbitrarily to execute twice the time interval of this loudness control method (for example The previous time interval processing between moment and currently processed moment, or between currently processed moment and latter treatment moment Time interval) in, user cannot tell the actual loudness of multimedia file and the difference of the first loudness threshold during listening to Different.
In the present embodiment, for live online multimedia file in electronic equipment, loudness adjusting means can worked as Acoustical signal actual play corresponding to the pre-treatment moment out before, obtain the acoustical signal corresponding to the currently processed moment First loudness, and based on the first loudness and default first loudness threshold, determine first object loudness regulated quantity.So, working as During acoustical signal actual play corresponding to the pre-treatment moment, loudness adjusting means can apply first object to this acoustical signal Loudness regulated quantity, correspondingly, the loudness of the acoustical signal of the actual uppick of user is the loudness after overregulating, i.e. the first loudness Threshold value.Additionally, during live online, loudness adjusting means can periodically, acoustical signal to the respective handling moment Apply first object loudness regulated quantity, so that the loudness of the actual uppick of user always remains as the first loudness threshold.
Compared with prior art, for live process online, no matter acoustical signal corresponding to multimedia file Original loudness is how many, and by calculating and the applying of the first loudness regulated quantity, the loudness of the final actual uppick of user is One loudness threshold, therefore the present embodiment preferably ensure that loudness concordance during live online for the multimedia file, thus Bring preferable listening experience to user.
If it will be appreciated by persons skilled in the art that according to formulaTo determine first object loudness tune Section amount, then, in the case of the first loudness and the first loudness threshold identical, first object loudness regulated quantity is 1, correspondingly, is applying Plus the sound before first object loudness regulated quantity and after applying first object loudness regulated quantity, corresponding to the currently processed moment The loudness of signal does not substantially change.That is, loudness adjusting means now applies first object to acoustical signal Loudness regulated quantity does not play substantial adjustment effect.Therefore, in order to preferably avoid the occurrence of above-mentioned situation, the method also may be used To include:
Judge whether the first loudness is identical with default first loudness threshold;
If differing, execution is according to formulaThe step determining first object loudness regulated quantity.
In the present embodiment, in the case of the first loudness with the first loudness threshold identical, loudness adjusting means need not be to sound Degree is adjusted, and electronic equipment directly carries out the live online of multimedia file according to initial loudness.In the first loudness In the case of differing with the first loudness threshold, will there is a problem of that loudness is inconsistent, now loudness adjusting means is just permissible According to formulaDetermine first object loudness regulated quantity, and first object loudness regulated quantity applied to acoustical signal, Thus preferably ensureing loudness concordance during live online for the multimedia file.
It should be noted that live online multimedia file in acquisition electronic equipment is corresponding to the currently processed moment The way of realization of the first loudness of acoustical signal is various, carries out citing below and introduces.
In the present embodiment, obtain sound corresponding in the currently processed moment for the live online multimedia file in electronic equipment Before first loudness of message number, the method can also include:
At predetermined intervals, multiple time references are determined;
Obtain and store live online multimedia file in electronic equipment on each time reference play Loudness to constitute loudness parameter group;
Correspondingly, obtain sound letter corresponding in the currently processed moment for the live online multimedia file in electronic equipment Number the first loudness, comprising:
Obtain the loudness of object time reference point storage, and using acquired loudness as the first loudness, wherein, during target Between reference point be loudness parameter group in immediate time reference in time of currently processed moment.
In the present embodiment, the concrete value of predetermined time interval can determine according to practical situation, the present embodiment pair This does not do any restriction.
It will be appreciated by persons skilled in the art that during multimedia file is live online, if loudness adjusts dress Put and go in real time to obtain the loudness corresponding to multimedia file, so can greatly consume the system resource of loudness adjusting means, And cause loudness adjusting means operating pressure excessive.Therefore, in order to avoid above-mentioned situation occurs, straight online in multimedia file During broadcasting, loudness adjusting means can determine multiple time references at predetermined intervals, obtain and store electricity Loudness on each time reference play for the multimedia file live online in sub- equipment, to constitute loudness parameter Group.Next, loudness adjusting means can determine from loudness parameter group and the currently processed moment is closest in time Time reference, and time reference determined by general is as object time reference point.Due to this object time reference point with work as The pre-treatment moment is closer to, and loudness adjusting means with the loudness of direct access object time reference point storage, and this can be rung Degree is as the first loudness.
It can easily be seen that in the present embodiment, the acquisition operation of the first loudness implements very convenient quick, and, loudness The system resources consumption of adjusting means is less, and the operating pressure of loudness adjusting means is also less.
In a kind of specific embodiment of the embodiment of the present invention, at predetermined intervals, multiple time ginsengs are determined Examination point, may include that
Determine multiple predetermined time intervals;
Respectively according to each predetermined time interval, determine each corresponding time parameter group, each time parameter group Include multiple time references;
Obtain and store live online multimedia file in electronic equipment on each time reference play Loudness to constitute loudness parameter group, may include that
It is respectively directed to, in each time reference group, obtain and store live online multimedia file in electronic equipment The loudness on each time reference play, to constitute the loudness parameter group corresponding with each time reference group;
Obtain the loudness of object time reference point storage, and using acquired loudness as the first loudness, may include that
Obtain the loudness of object time reference point storage respectively from each loudness parameter group, and acquired loudness is made For the first loudness;
Based on the first loudness and the first loudness threshold, determine first object loudness regulated quantity, may include that
Choose one group of loudness parameter group, and according to each loudness in the loudness parameter group chosen, obtain multimedia file from The initial play moment is to the mean loudness in currently processed moment;
According to formulaDetermine the first alternative loudness regulated quantity corresponding to mean loudness, according to formulaDetermine the second alternative loudness regulated quantity corresponding with the first loudness corresponding to each loudness parameter group, its In, g1 is the first alternative loudness regulated quantity, ltFor the first loudness threshold, lsFor mean loudness, g2 is that the second alternative loudness is adjusted Amount, lnIt is and the first loudness corresponding to n-th group loudness parameter group in multiple loudness parameter group;
First alternative loudness regulated quantity and each second alternative loudness regulated quantity are weighted, obtain weighting loudness and adjust Amount;
Based on weighting loudness regulated quantity, determine first object loudness regulated quantity.
It is understood that loudness is related to the auditory perception of user, if to determine only by a loudness parameter group The first object loudness regulated quantity in currently processed moment, so hardly results in a preferable first object loudness regulated quantity, because This, can carry out measurement and the regulation of loudness using Multiple Time Scales measurement method in the present embodiment.
Below with a specific example, concrete measurement and regulation process to Multiple Time Scales measurement method illustrate.
Assume that the quantity of predetermined time interval is 3, be 10 milliseconds, 40 milliseconds and 3 seconds respectively.Wherein, 10 milliseconds can To be considered transient state loudness measurement duration, 40 milliseconds may be considered instantaneous loudness measurement duration, may be considered within 3 seconds and ring in short-term Degree measurement duration.So, multimedia file live online during, respective stored can have three sound in loudness adjusting means Degree parameter group, is m1, m2 and m3, wherein, m1 is the loudness parameter group corresponding with 10 milliseconds of this time intervals, and m2 is respectively The loudness parameter group corresponding with 40 milliseconds of this time intervals, m3 is the loudness parameter corresponding with 3 seconds this time intervals Group.It is understood that all there is a time reference closest in time with the currently processed moment in m1, m2 and m3 , therefore, all there is a corresponding object time reference point in point, correspondingly, loudness adjusting means can be from m1, m2 and m3 First loudness is obtained respectively in m1, m2 and m3.In addition, loudness adjusting means can also be from tri- loudness ginsengs of m1, m2 and m3 An optional loudness parameter group in array, and according to each loudness in the loudness parameter group chosen, obtain multimedia file from first Begin to play the mean loudness in moment to currently processed moment.It should be noted that loudness adjusting means is according to the loudness ginseng chosen Each loudness in array, obtains multimedia file implementing from the initial play moment to the mean loudness in currently processed moment Process is known to those skilled in the art, will not be described here.
In the present embodiment, loudness adjusting means is according to formulaMean loudness can easily be determined The first corresponding alternative loudness regulated quantity.Similarly, loudness adjusting means is according to formulaCan hold very much The second alternative loudness regulated quantity g22 corresponding to the second alternative loudness regulated quantity g21, m2 changed places corresponding to determination m1, And corresponding to m3 second alternative loudness regulated quantity g23.Next, loudness adjusting means can be adjusted to the first alternative loudness Amount and each second alternative loudness regulated quantity are weighted.Specifically, during actual weighting using formula can be:
G=a*g1+b*g21+c*g22+d*g23
In general, the acoustical signal of multimedia file there may be different situations, it both can include the portion of stable state Point, if the vocal sections of opera are it is also possible to include the part of acute variation, such as voice of people etc..If in different situations, Using same weights, that is, same a, b, c, d, so clearly inappropriate.Therefore, it is directed to different situations, loudness Adjusting means can be weighted using different weights.
In a kind of specific embodiment of the embodiment of the present invention, the method can also include:
Loudness after the judgement local previous process moment that whether is stored with is adjusted;
When judged result be when, judge the first loudness with previous process the moment adjusted after loudness difference whether big In default first loudness difference threshold;
If so, execute the step that the first loudness regulated quantity and each second loudness regulated quantity are weighted, wherein, weighting Using weights meet: the time interval of weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter group is in negative Correlation, and the weights of the first alternative loudness regulated quantity are less than the minima in weights corresponding to each second alternative loudness regulated quantity;
Otherwise, the step that the first loudness regulated quantity and each second loudness regulated quantity are weighted, wherein, weighting are executed Using weights meet: the time interval of weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter group is just in Correlation, and the weights of the first alternative loudness regulated quantity are more than the maximum in weights corresponding to each second alternative loudness regulated quantity.
It should be noted that the concrete value of the first loudness difference threshold can determine according to practical situation, this enforcement Example does not do any restriction to this.
In the present embodiment, if the difference of the loudness after the first loudness is adjusted with the previous process moment is more than default first Loudness difference threshold, then the part of the acute variation such as voice that the currently playing content of explanation multimedia file is behaved, now When being weighted, in order to allow loudness quickly get regulation, the corresponding power of each second alternative loudness regulated quantity can be made Value is in negative correlation with the time interval of corresponding loudness parameter group, and the weights of the first alternative loudness regulated quantity are standby less than each second Select the minima in weights corresponding to loudness regulated quantity, even a < m3 < m2 is < m1.
On the contrary, if the difference of the loudness after the first loudness is adjusted with the previous process moment is not more than default first loudness Difference threshold, then the currently playing content of explanation multimedia file is the part of the stable states such as the vocal sections of opera, is now entering During row weighting, weights corresponding to each second alternative loudness regulated quantity can be made just to be in the time interval of corresponding loudness parameter group Correlation, and the weights of the first alternative loudness regulated quantity are more than the maximum in weights corresponding to each second alternative loudness regulated quantity, I.e. m1 < m2 < m3 < a.Specifically, for convenience of calculation, m1=m2=m3=0, a=1 now can directly be made, correspondingly, now First object loudness regulated quantity is the first alternative loudness regulated quantity.
As can be seen that the present embodiment can be determined according to the different situations of acoustical signal the first alternative loudness regulated quantity and Weights corresponding to each second alternative loudness regulated quantity, so that the first object loudness regulated quantity finally giving is more accurate.
It is understood that when based on weighting loudness regulated quantity, when determining first object loudness regulated quantity, if first object The fluctuation ringing regulated quantity is larger, then, when such fluctuation directly applies to the acoustical signal corresponding to multimedia file, can lead to It is introduced into the frequency content originally not having in acoustical signal, if the frequency content of this new introducing falls in the range of audibility of user, User's uppick modulation noise then can be led to.In order to avoid the problems referred to above occur, can be final to obtain using smooth strategy First object loudness regulated quantity.In a kind of specific embodiment of the embodiment of the present invention, based on weighting loudness regulated quantity, determine First object loudness regulated quantity, may include that
Judge the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
If it is, according to formula g3=ag4+ (1-a) g5, determining first object loudness regulated quantity, wherein, g3 is the first mesh Mark loudness regulated quantity, g4 is weighting loudness regulated quantity, and g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is default Smoothing factor.
Wherein, the concrete value of a can determine according to practical situation, and the present embodiment does not do any restriction to this.
As can be seen that the present embodiment passes through above-mentioned smooth strategy, acoustical signal can be smoothed, to avoid the first mesh The fluctuation that mark rings regulated quantity is larger, thus effectively reducing the appearance of zoop, even if occurring in that zoop, this enforcement Example, it is also ensured that zoop falls outside the range of audibility of people, so can bring preferable listening experience to user.
It is understood that after using above-mentioned smooth strategy, requiring under harsher scene some for loudness, Loudness adjusting means it is difficult to ensure that the current uppick of user, adjusted after loudness be rapidly reached the first loudness threshold.In order to Preferably avoid this problem, the acoustical signal corresponding to the multimedia file that the currently processed moment is sent applies first object and rings Before degree regulated quantity, the method can also include:
Judge locally stored have the previous loudness regulated quantity processing corresponding to the moment in the case of, locally whether judge Be stored with the previous regulatory factor processing corresponding to the moment;
Judge common through the previous regulatory factor processing corresponding to the moment and the loudness regulated quantity corresponding to the previous process moment Whether the difference with the loudness in previous process moment after adjusting and the first loudness threshold is more than default second loudness difference threshold Value;
If so, according to formulaObtain and store the regulatory factor in currently processed moment, wherein, g6 is to work as The regulatory factor in pre-treatment moment, ls be adjusted after the previous process moment loudness;
Correspondingly, based on weighting loudness regulated quantity, determine first object loudness regulated quantity, comprising:
Obtain and store the product of the regulatory factor in currently processed moment and weighting loudness regulated quantity, using product as first Target loudness regulated quantity.
It should be noted that the concrete value of the second loudness difference threshold can determine according to practical situation, this enforcement Example does not do any restriction to this.
In the present embodiment, when through the regulatory factor corresponding to the previous process moment and the loudness corresponding to the previous process moment The loudness in previous process moment after the common regulation of regulated quantity and the difference of the first loudness threshold are not more than the second loudness difference threshold In the case of value, then illustrate to smooth the impact to loudness regulation for the strategy simultaneously less, now loudness adjusting means can directly will add Power loudness regulated quantity is defined as first object loudness regulated quantity.
On the contrary, when through the regulatory factor corresponding to the previous process moment and the loudness regulated quantity corresponding to the previous process moment The difference of the loudness in previous process moment after common regulation and the first loudness threshold is more than the situation of the second loudness difference threshold Under, then impact, the loudness after multimedia file is adjusted and the first loudness threshold loudness being adjusted due to smooth strategy is described Between still there is larger difference, now in order that the loudness after the currently processed moment is adjusted can reach first as far as possible Loudness threshold, can increase the strength of adjustment in currently processed moment, will the currently processed moment regulatory factor with weighting loudness The product of regulated quantity is as first object loudness regulated quantity.Additionally, the first object loudness corresponding to the currently processed moment is adjusted Amount can also be stored, and so, when needing using this first object loudness regulated quantity in next process moment, loudness is adjusted Device can easily get this first object loudness regulated quantity.
As can be seen that the present embodiment preferably ensure that in the case of using smooth strategy, the current uppick of user, Loudness after adjusted can be rapidly reached the first loudness threshold.
To sum up, the present embodiment preferably ensure that loudness concordance during live online for the multimedia file, thus Bring preferable listening experience to user.
A kind of loudness the adjusting means below embodiment of the present invention being provided illustrates.
Referring to Fig. 2, in figure shows a kind of structured flowchart of loudness adjusting means that the embodiment of the present invention is provided.As figure Shown in 2, this device may include that
First loudness acquisition module 21, for obtaining live online multimedia file in electronic equipment when currently processed Carve the first loudness of corresponding acoustical signal;
First object loudness regulated quantity determining module 22, for based on the first loudness and default first loudness threshold, really Determine first object loudness regulated quantity;
Loudness regulated quantity applies module 23, for the sound letter corresponding to multimedia file that the currently processed moment is sent Number apply first object loudness regulated quantity.
Compared with prior art, for live process online, no matter acoustical signal corresponding to multimedia file Original loudness is how many, and by calculating and the applying of the first loudness regulated quantity, the loudness of the final actual uppick of user is One loudness threshold, therefore the present embodiment preferably ensure that loudness concordance during live online for the multimedia file, thus Bring preferable listening experience to user.
Alternatively, first object loudness regulated quantity determining module, specifically for according to formulaDetermine first Target loudness regulated quantity, wherein, g is first object loudness regulated quantity, ltFor the first loudness threshold, lmFor the first loudness.
Alternatively, this device can also include:
Whether the first judge module is identical with default first loudness threshold for judging the first loudness;
First trigger module, in the case of being no in the judged result of the first judge module, triggering first object rings Degree regulated quantity determining module.
Alternatively, this device can also include:
Time reference determining module, for obtaining live online multimedia file in electronic equipment currently processed Before first loudness of the acoustical signal corresponding to the moment, at predetermined intervals, multiple time references are determined;
Loudness parameter group determining module, is broadcasting for obtaining and storing live online multimedia file in electronic equipment The loudness on each time reference let slip is to constitute loudness parameter group;
Correspondingly, the first loudness acquisition module, specifically for obtaining the loudness of object time reference point storage, and will be obtained The loudness taking as the first loudness, wherein, object time reference point be in loudness parameter group with the currently processed moment in time Immediate time reference.
Alternatively, time reference determining module, may include that
Time interval determination sub-module, for determining multiple predetermined time intervals;
Time reference group determination sub-module, determines each corresponding for respectively according to each predetermined time interval Time parameter group, each time parameter group includes multiple time references;
Loudness parameter group determining module, specifically for being respectively directed to, in each time reference group, obtain and store electronics and set Loudness on each time reference play for the multimedia file live online in standby, to constitute and each time reference Organize corresponding loudness parameter group;
Loudness parameter group determining module, deposits specifically for obtaining object time reference point respectively from each loudness parameter group The loudness of storage, and using acquired loudness as the first loudness;
First object loudness regulated quantity determining module, comprising:
Mean loudness obtains module, for choosing one group of loudness parameter group, and according to each in the loudness parameter group chosen Loudness, obtains multimedia file from the initial play moment to the mean loudness in currently processed moment;
Alternative loudness regulated quantity determination sub-module, for according to formulaDetermine corresponding to mean loudness First alternative loudness regulated quantity, according to formulaDetermine relative with the first loudness corresponding to each loudness parameter group The the second alternative loudness regulated quantity answered, wherein, g1 is the first alternative loudness regulated quantity, ltFor the first loudness threshold, lsFor averagely loud Degree, g2 is the second alternative loudness regulated quantity, lnIt is and the first sound corresponding to n-th group loudness parameter group in multiple loudness parameter group Degree;
Weighting loudness regulated quantity determination sub-module, for adjusting to the first alternative loudness regulated quantity and each second alternative loudness Section amount is weighted, and obtains weighting loudness regulated quantity;
Target loudness regulated quantity determination sub-module, for based on weighting loudness regulated quantity, determining that first object loudness is adjusted Amount.
Alternatively, this device can also include:
Second judge module, for judge locally whether to be stored with previous process the moment adjusted after loudness;
3rd judge module, for the second judge module judged result be in the case of, judge the first loudness and Whether the difference of the loudness after the previous process moment is adjusted is more than default first loudness difference threshold;
Second trigger module, for the judged result in the 3rd judge module for, in the case of being, triggering weighting loudness is adjusted Section amount determination sub-module, wherein, weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity with corresponding The time interval of loudness parameter group is in negative correlation, and the weights of the first alternative loudness regulated quantity are less than each second alternative loudness and adjust Minima in weights corresponding to amount;And in the case that the judged result of the 3rd judge module is no, triggering weighting loudness is adjusted Section amount determination sub-module, wherein, weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity with corresponding The time interval of loudness parameter group is proportionate, and the weights of the first alternative loudness regulated quantity are more than each second alternative loudness and adjust Maximum in weights corresponding to amount.
Alternatively, target loudness regulated quantity determination sub-module, comprising:
Judging unit, for judging the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
Target loudness regulated quantity determining unit, for judging unit judged result be in the case of, according to formula G3=ag4+ (1-a) g5, determines first object loudness regulated quantity, and wherein, g3 is first object loudness regulated quantity, and g4 is that weighting rings Degree regulated quantity, g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is default smoothing factor.
Alternatively, this device can also include:
3rd judge module, applies for the acoustical signal corresponding in the multimedia file that the currently processed moment is sent Before first object loudness regulated quantity, and judge the locally stored situation having the loudness regulated quantity corresponding to the previous process moment Under, judge the previous regulatory factor processing corresponding to the moment that locally whether is stored with;
4th judge module, right through the previous regulatory factor processing corresponding to the moment and previous process moment for judging Whether the difference of the loudness in previous process moment after the common regulation of loudness regulated quantity answered and the first loudness threshold is more than default The second loudness difference threshold;
Regulatory factor determining module, for according to formulaObtain and store the regulation in currently processed moment The factor, wherein, g6 is the regulatory factor in currently processed moment, ls be adjusted after the previous process moment loudness;
Correspondingly, target loudness regulated quantity determination sub-module, specifically for obtaining and storing the regulation in currently processed moment The factor and the product weighting loudness regulated quantity, using product as first object loudness regulated quantity.
To sum up, the present embodiment preferably ensure that loudness concordance during live online for the multimedia file, thus Bring preferable listening experience to user.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention Interior.

Claims (16)

1. a kind of loudness control method is it is characterised in that methods described includes:
Obtain the first sound of acoustical signal corresponding in the currently processed moment for the live online multimedia file in electronic equipment Degree;
Based on the first loudness and default first loudness threshold, determine first object loudness regulated quantity;
Acoustical signal corresponding to the described multimedia file that the currently processed moment is sent applies described first object loudness and adjusts Section amount.
2. the method for claim 1 it is characterised in that described based on described first loudness and default first loudness threshold Value, determines first object loudness regulated quantity, comprising:
According to formulaDetermine first object loudness regulated quantity, wherein, g is described first object loudness regulated quantity, ltFor described first loudness threshold, lmFor described first loudness.
3. method as claimed in claim 2 is it is characterised in that methods described also includes:
Judge whether described first loudness is identical with default first loudness threshold;
If differing, execution described according to formulaThe step determining first object loudness regulated quantity.
4. the method for claim 1 it is characterised in that
The of acoustical signal corresponding in the currently processed moment for the multimedia file live online in described acquisition electronic equipment Before one loudness, methods described also includes:
At predetermined intervals, multiple time references are determined;
Obtain and store live online multimedia file in described electronic equipment on each time reference play Loudness to constitute loudness parameter group;
Correspondingly, the described sound corresponding in the currently processed moment for the live online multimedia file in electronic equipment that obtains is believed Number the first loudness, comprising:
Obtain the loudness of object time reference point storage, and using acquired loudness as the first loudness, wherein, during described target Between reference point be described loudness parameter group in immediate time reference in time of described currently processed moment.
5. method as claimed in claim 4 it is characterised in that
Described at predetermined intervals, determine multiple time references, comprising:
Determine multiple predetermined time intervals;
Respectively according to each predetermined time interval, determine each corresponding time parameter group, wrap in each time parameter group Include multiple time references;
Described obtain and store live online multimedia file in described electronic equipment in each time reference play Loudness on point is to constitute loudness parameter group, comprising:
It is respectively directed to, in each time reference group, obtain and store live online multimedia file in described electronic equipment The loudness on each time reference play, to constitute the loudness parameter group corresponding with each described time reference group;
The described loudness obtaining the storage of object time reference point, and using acquired loudness as the first loudness, comprising:
The loudness of object time reference point storage is obtained respectively from each loudness parameter group, and using acquired loudness as the One loudness;
Described based on described first loudness and described first loudness threshold, determine first object loudness regulated quantity, comprising:
Choose loudness parameter group described in a group, and according to each loudness in the described loudness parameter group chosen, obtain described many matchmakers Body file is from the initial play moment to the mean loudness in currently processed moment;
According to formulaDetermine the first alternative loudness regulated quantity corresponding to mean loudness, according to formulaDetermine the second alternative loudness regulated quantity corresponding with the first loudness corresponding to each loudness parameter group, its In, g1 is the described first alternative loudness regulated quantity, ltFor described first loudness threshold, lsFor described mean loudness, g2 is described the Two alternative loudness regulated quantitys, lnIt is and the first loudness corresponding to n-th group loudness parameter group in the plurality of loudness parameter group;
Described first alternative loudness regulated quantity and each described second alternative loudness regulated quantity are weighted, obtain weighting loudness Regulated quantity;
Based on described weighting loudness regulated quantity, determine first object loudness regulated quantity.
6. method as claimed in claim 5 is it is characterised in that methods described also includes:
Loudness after the judgement local previous process moment that whether is stored with is adjusted;
When judged result is to be, judge described first loudness adjusted with the described previous process moment after the difference of loudness be No more than default first loudness difference threshold;
If so, execute the described step that described first loudness regulated quantity and each described second loudness regulated quantity are weighted, Wherein, described weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter group Time interval be in negative correlation, and the weights of described first alternative loudness regulated quantity to be less than each second alternative loudness regulated quantity institute right Answer the minima in weights;
Otherwise, execute the described step that described first loudness regulated quantity and each described second loudness regulated quantity are weighted, Wherein, described weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity and corresponding loudness parameter group Time interval be proportionate, and the weights of described first alternative loudness regulated quantity to be more than each second alternative loudness regulated quantity institute right Answer the maximum in weights.
7. method as claimed in claim 5 it is characterised in that
Described based on described weighting loudness regulated quantity, determine first object loudness regulated quantity, comprising:
Judge the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
If it is, according to formula g3=ag4+ (1-a) g5, determining first object loudness regulated quantity, wherein, g3 is described first mesh Mark loudness regulated quantity, g4 is weighting loudness regulated quantity, and g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is default Smoothing factor.
8. method as claimed in claim 7 is it is characterised in that the described described multimedia file that the currently processed moment is sent Before corresponding acoustical signal applies described first object loudness regulated quantity, methods described also includes:
In the case of judging the locally stored loudness regulated quantity having corresponding to the previous process moment, judge locally whether store There is the previous regulatory factor processing corresponding to the moment;
Judge jointly to adjust through the previous regulatory factor processing corresponding to the moment and the loudness regulated quantity corresponding to the previous process moment Whether the loudness in previous process moment after section is more than default second loudness difference threshold with the difference of described first loudness threshold Value;
If so, according to formulaObtain and store the regulatory factor in currently processed moment, wherein, g6 is current locating Reason the moment regulatory factor, ls be adjusted after the previous process moment loudness;
Correspondingly, described based on described weighting loudness regulated quantity, determine first object loudness regulated quantity, comprising:
Obtain and store the product of the regulatory factor in currently processed moment and described weighting loudness regulated quantity, using described product as First object loudness regulated quantity.
9. a kind of loudness adjusting means is it is characterised in that described device includes:
First loudness acquisition module, right in the currently processed moment for obtaining live online multimedia file in electronic equipment First loudness of the acoustical signal answered;
First object loudness regulated quantity determining module, for based on the first loudness and default first loudness threshold, determining first Target loudness regulated quantity;
Loudness regulated quantity applies module, for the acoustical signal corresponding to described multimedia file that the currently processed moment is sent Apply described first object loudness regulated quantity.
10. device as claimed in claim 9, it is characterised in that described first object loudness regulated quantity determining module, is specifically used According to formulaDetermine first object loudness regulated quantity, wherein, g is described first object loudness regulated quantity, lt For described first loudness threshold, lmFor described first loudness.
11. devices as claimed in claim 10 are it is characterised in that described device also includes:
Whether the first judge module is identical with default first loudness threshold for judging described first loudness;
First trigger module, in the case of being no in the judged result of described first judge module, triggers described first mesh Mark loudness regulated quantity determining module.
12. devices as claimed in claim 9 are it is characterised in that described device also includes:
Time reference determining module, for obtaining live online multimedia file in electronic equipment in the currently processed moment Before first loudness of corresponding acoustical signal, at predetermined intervals, multiple time references are determined;
Loudness parameter group determining module, is broadcasting for obtaining and storing live online multimedia file in described electronic equipment The loudness on each time reference let slip is to constitute loudness parameter group;
Correspondingly, described first loudness acquisition module, specifically for obtaining the loudness of object time reference point storage, and will be obtained As the first loudness, wherein, described object time reference point is currently processed with described in described loudness parameter group to the loudness taking Moment immediate time reference in time.
13. devices as claimed in claim 12 it is characterised in that
Described time reference determining module, comprising:
Time interval determination sub-module, for determining multiple predetermined time intervals;
Time reference group determination sub-module, determines each corresponding time for respectively according to each predetermined time interval Parameter group, each time parameter group includes multiple time references;
Described loudness parameter group determining module, specifically for being respectively directed to, in each time reference group, obtain and store described electricity Loudness on each time reference play for the multimedia file live online in sub- equipment, described with each to constitute The corresponding loudness parameter group of time reference group;
Described loudness parameter group determining module, deposits specifically for obtaining object time reference point respectively from each loudness parameter group The loudness of storage, and using acquired loudness as the first loudness;
Described first object loudness regulated quantity determining module, comprising:
Mean loudness obtains module, for choosing loudness parameter group described in a group, and according in the described loudness parameter group chosen Each loudness, obtain described multimedia file from the initial play moment to the mean loudness in currently processed moment;
Alternative loudness regulated quantity determination sub-module, for according to formulaDetermine first corresponding to mean loudness Alternative loudness regulated quantity, according to formulaDetermine corresponding with the first loudness corresponding to each loudness parameter group Second alternative loudness regulated quantity, wherein, g1 is the described first alternative loudness regulated quantity, ltFor described first loudness threshold, lsFor institute State mean loudness, g2 is the described second alternative loudness regulated quantity, lnIt is and n-th group loudness parameter in the plurality of loudness parameter group The first corresponding loudness of group;
Weighting loudness regulated quantity determination sub-module, for alternatively ringing to the described first alternative loudness regulated quantity and each described second Degree regulated quantity is weighted, and obtains weighting loudness regulated quantity;
Target loudness regulated quantity determination sub-module, for based on described weighting loudness regulated quantity, determining that first object loudness is adjusted Amount.
14. devices as claimed in claim 13 are it is characterised in that described device also includes:
Second judge module, for judge locally whether to be stored with previous process the moment adjusted after loudness;
3rd judge module, for the judged result in described second judge module for, in the case of being, judging described first sound Whether the difference of the loudness after degree is adjusted with the described previous process moment is more than default first loudness difference threshold;
Second trigger module, for the judged result in described 3rd judge module for, in the case of being, the described weighting of triggering rings Degree regulated quantity determination sub-module, wherein, described weighting using weights meet: weights corresponding to each second alternative loudness regulated quantity Time interval with corresponding loudness parameter group is in negative correlation, and the weights of described first alternative loudness regulated quantity are less than each second Minima in weights corresponding to alternative loudness regulated quantity;And the judged result situation that is no in described 3rd judge module Under, triggering described weighting loudness regulated quantity determination sub-module, wherein, described weighting using weights meet: each second alternatively rings Weights corresponding to degree regulated quantity are proportionate with the time interval of corresponding loudness parameter group, and described first alternative loudness is adjusted The weights of amount are more than the maximum in weights corresponding to each second alternative loudness regulated quantity.
15. devices as claimed in claim 13 it is characterised in that
Described target loudness regulated quantity determination sub-module, comprising:
Judging unit, for judging the previous loudness regulated quantity processing corresponding to the moment that locally whether is stored with;
Target loudness regulated quantity determining unit, for described judging unit judged result be in the case of, according to formula G3=ag4+ (1-a) g5, determines first object loudness regulated quantity, and wherein, g3 is described first object loudness regulated quantity, and g4 is to add Power loudness regulated quantity, g5 is the previous loudness regulated quantity processing corresponding to the moment, and a is default smoothing factor.
16. devices as claimed in claim 15 are it is characterised in that described device also includes:
3rd judge module, applies for the acoustical signal corresponding in the described multimedia file that the currently processed moment is sent Before described first object loudness regulated quantity, and judge locally stored there is the previous loudness regulated quantity processing corresponding to the moment In the case of, judge the previous regulatory factor processing corresponding to the moment that locally whether is stored with;
4th judge module, for judging through corresponding to the previous regulatory factor processing corresponding to the moment and previous process moment Whether the difference of the loudness in previous process moment after the common regulation of loudness regulated quantity and described first loudness threshold is more than default The second loudness difference threshold;
Regulatory factor determining module, for according to formulaObtain and store the regulation in currently processed moment because Son, wherein, g6 is the regulatory factor in currently processed moment, ls be adjusted after the previous process moment loudness;
Correspondingly, described target loudness regulated quantity determination sub-module, specifically for obtaining and storing the regulation in currently processed moment The factor and the described product weighting loudness regulated quantity, using described product as first object loudness regulated quantity.
CN201610720944.5A 2016-08-24 2016-08-24 A kind of loudness adjusting method and device Active CN106354469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610720944.5A CN106354469B (en) 2016-08-24 2016-08-24 A kind of loudness adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610720944.5A CN106354469B (en) 2016-08-24 2016-08-24 A kind of loudness adjusting method and device

Publications (2)

Publication Number Publication Date
CN106354469A true CN106354469A (en) 2017-01-25
CN106354469B CN106354469B (en) 2019-08-09

Family

ID=57855984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610720944.5A Active CN106354469B (en) 2016-08-24 2016-08-24 A kind of loudness adjusting method and device

Country Status (1)

Country Link
CN (1) CN106354469B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174031A (en) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 A kind of volume adjusting method, terminal device and computer readable storage medium
CN108882115A (en) * 2017-05-12 2018-11-23 华为技术有限公司 loudness adjusting method, device and terminal
CN111696563A (en) * 2020-06-24 2020-09-22 北京百瑞互联技术有限公司 Loudness equalization method based on audio decoder, decoder and Bluetooth device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (en) * 2006-04-04 2009-04-29 杜比实验室特许公司 Calculating and adjusting the perceived loudness and/or the perceived spectral balance of an audio signal
CN101753111A (en) * 2008-12-19 2010-06-23 英华达(上海)电子有限公司 Method and device for adjusting play volume
CN102422349A (en) * 2009-05-14 2012-04-18 夏普株式会社 Gain control apparatus and gain control method, and voice output apparatus
CN102498664A (en) * 2009-07-23 2012-06-13 斯灵媒体有限公司 Adaptive gain control for digital audio samples in a media stream
CN102610232A (en) * 2012-01-10 2012-07-25 天津大学 Method for adjusting self-adaptive audio sensing loudness
CN104468930A (en) * 2013-09-17 2015-03-25 中兴通讯股份有限公司 Method and device for playback loudness adjustment
CN105190750A (en) * 2013-01-28 2015-12-23 弗劳恩霍夫应用研究促进协会 Method and apparatus for normalized audio playback of media with and without embedded loudness metadata on new media devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (en) * 2006-04-04 2009-04-29 杜比实验室特许公司 Calculating and adjusting the perceived loudness and/or the perceived spectral balance of an audio signal
CN101753111A (en) * 2008-12-19 2010-06-23 英华达(上海)电子有限公司 Method and device for adjusting play volume
CN102422349A (en) * 2009-05-14 2012-04-18 夏普株式会社 Gain control apparatus and gain control method, and voice output apparatus
CN102498664A (en) * 2009-07-23 2012-06-13 斯灵媒体有限公司 Adaptive gain control for digital audio samples in a media stream
CN102610232A (en) * 2012-01-10 2012-07-25 天津大学 Method for adjusting self-adaptive audio sensing loudness
CN105190750A (en) * 2013-01-28 2015-12-23 弗劳恩霍夫应用研究促进协会 Method and apparatus for normalized audio playback of media with and without embedded loudness metadata on new media devices
CN104468930A (en) * 2013-09-17 2015-03-25 中兴通讯股份有限公司 Method and device for playback loudness adjustment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882115A (en) * 2017-05-12 2018-11-23 华为技术有限公司 loudness adjusting method, device and terminal
CN108882115B (en) * 2017-05-12 2020-08-25 华为技术有限公司 Loudness adjustment method and device and terminal
CN108174031A (en) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 A kind of volume adjusting method, terminal device and computer readable storage medium
CN108174031B (en) * 2017-12-26 2020-12-01 上海展扬通信技术有限公司 Volume adjusting method, terminal equipment and computer readable storage medium
CN111696563A (en) * 2020-06-24 2020-09-22 北京百瑞互联技术有限公司 Loudness equalization method based on audio decoder, decoder and Bluetooth device
CN111696563B (en) * 2020-06-24 2023-03-10 北京百瑞互联技术有限公司 Loudness equalization method based on audio decoder, decoder and Bluetooth device

Also Published As

Publication number Publication date
CN106354469B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN106020765B (en) A kind of effect adjusting method and device
CN109982231B (en) Information processing method, device and storage medium
US20070025566A1 (en) System and method for processing audio data
CN109389989B (en) Sound mixing method, device, equipment and storage medium
CN103841241B (en) Volume adjusting method and apparatus
CN106354469A (en) Loudness regulation method and device
CN103369432A (en) System for headphone equalization
CN102160358A (en) Upstream signal processing for client devices in a small-cell wireless network
CN108174031A (en) A kind of volume adjusting method, terminal device and computer readable storage medium
CN109195068A (en) Audio-frequency processing method, device and audio frequency apparatus
CN105959793A (en) Volume adjusting method and device
CN107170463A (en) Method for regulating audio signal and system
Pelegrín-García et al. Equal autophonic level curves under different room acoustics conditions
CN110246508A (en) A kind of signal modulating method, device and storage medium
CN109511041A (en) A kind of method, apparatus and earphone of the booting setting of earphone
CN108806715B (en) Noise reduction performance evaluation method and system
CN104616665B (en) Sound mixing method based on voice similar degree
CN105720939B (en) A kind of processing method and electronic equipment of audio data
Grimault et al. A real time hearing loss simulator
CA2396455C (en) Method and device for determining the quality of a signal
CN109348040A (en) A kind of effect adjusting method, device and terminal device
CN106465032A (en) An apparatus and a method for manipulating an input audio signal
KR102155743B1 (en) System for contents volume control applying representative volume and method thereof
CN112788489A (en) Control method and device and electronic equipment
CN109545176B (en) Dynamic echo processing method and device for audio

Legal Events

Date Code Title Description
C06 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