A kind of method automatically controlling frequency channel volume and digital TV terminal
Technical field
The present invention relates to a kind of digital television techniques, particularly relate to a kind of method automatically controlling frequency channel volume and
Digital TV terminal.
Background technology
Along with the fast development of DTV, DTV is with its excellent content, abundant program, clear
Image and the more convenient advantage such as user watched the most popular, more and more universal in life.But with
Time there is also some problems, owing to the source of digital television program is different, Set Top Box is when playing program, no
The program volume size difference of co-channel broadcasting is relatively big, and there is also the program play with a channel different periods
The such as sound volume difference between TV play and commercial breaks is the biggest, and this causes switching channels or switching program
Time program volume prominent big prominent little, had a strong impact on the experience of user.
For solving problem above, part has the TV service operator buying new equipment of technology and economic strength,
Carry out recompiling process, by the digital volume of each program to all audio/video programs intending providing are unified
All furnishings unify the volume of size, are broadcasted the most again, thus can guarantee that user is watching program process
In broadcast sounds between each channel consistent.But, due to needs newly added equipment support, a lot of TV service
Operator does not has economic condition to implement, and actually this does not still solve with a channel different periods
The prominent big prominent little problem of program volume, the such as problem of the sound volume difference between TV play and the advertisement intercutted.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that a kind of side automatically controlling frequency channel volume
Method and digital TV terminal.Digital TV terminal program volume when switching channels or switching program can be solved dash forward
Big prominent minor issue, improves user experience, and reduces production cost.
In order to solve above-mentioned technical problem, on the one hand, embodiments provide one and automatically control channel
The method of volume, including:
Original audio data to the target channel of caching carries out the digital sample of T1 duration;
Digital sample information processing according to described T1 duration obtains sound intensity value;
Volume gain coefficient is calculated according to the loudness value that described sound intensity value and user pre-set;
Original audio data according to target channel described in described volume gain coefficient adjustment;
The voice data of the described target channel after output regulation.
Wherein, the digital sample that the described original audio data to the target channel of caching carries out T1 duration includes:
Original audio data to the described target channel of caching carries out the digital sample of a described T1 duration;
The described loudness value pre-set according to described sound intensity value and user calculates volume gain coefficient bag
Include:
Sound intensity value that digital sample information according to described T1 duration is corresponding and described user pre-set
Loudness value calculates the volume gain coefficient that described target channel is corresponding;
The described original audio data according to target channel described in described volume gain coefficient adjustment includes:
All original audio data according to target channel described in described volume gain coefficient adjustment.
Wherein, the digital sample that the described original audio data to the target channel of caching carries out T1 duration includes:
With the cycle a length of during described T1, the original audio data of the described target channel of caching is carried out described T1
The cycle digital sample of duration;
The described loudness value pre-set according to described sound intensity value and user calculates volume gain coefficient bag
Include:
Sound intensity value that digital sample information according to described T1 duration is corresponding and described user pre-set
Loudness value calculates the volume gain coefficient that the digital sample information of described T1 duration is corresponding;
The described voice data according to target channel described in described volume gain coefficient adjustment includes:
The digital sample information pair of the described T1 duration according to target channel described in described volume gain coefficient adjustment
The original audio data of the T1 duration answered.
Wherein, the described original audio data according to the described described target channel to caching is carried out described in one
Also include before the digital sample of T1 duration:
Judge whether the described volume gain coefficient that target channel described in reading database is corresponding;
When being judged as the described volume gain coefficient that target channel described in reading database is not corresponding, to slow
The original audio data of the described target channel deposited carries out the digital sample of a described T1 duration, according to described
The digital sample information processing of T1 duration obtains sound intensity value, believes according to the digital sample of described T1 duration
The loudness value that the described sound intensity value of breath correspondence and described user pre-set calculates described target channel pair
The volume gain coefficient answered, updates the described volume gain coefficient that target channel described in described data base is corresponding,
According to all original audio data of target channel described in described volume gain coefficient adjustment, and after exporting regulation
The voice data of described target channel;
When being judged as described volume gain coefficient corresponding to target channel described in reading database, read institute
State the described volume gain coefficient that target channel described in data base is corresponding, adjust according to described volume gain coefficient
Save all original audio data of described target channel, the voice data of the described target channel after output regulation.
Wherein, the described digital sample information processing according to described T1 duration includes after obtaining sound intensity value:
Calculate described sound intensity value and difference value between the loudness value that described user pre-sets;
Judge that described difference value is whether in the disparity range allowed;
When described difference value is not in the disparity range of described permission, perform according to described sound intensity value
The loudness value pre-set with user calculates volume gain coefficient step.
Wherein, the digital sample that the described original audio data to the target channel of caching carries out T1 duration includes:
According to the perceived audio frequency range of human ear and human ear to the sensitivity of described audio frequency by described
Audio frequency is divided into multiple frequency range, uses different sample rates to described original according to different described frequency ranges
Voice data carries out the digital sample of described T1 duration.
Wherein, described include according to original audio data described in described volume gain coefficient adjustment:
Amplitude according to the overall described original audio data of described volume gain coefficient adjustment or respectively regulation are described
After dividing the amplitude of original audio data the regulation of each described frequency range of aliasing of each the described frequency range obtained
Voice data.
On the other hand, The embodiment provides a kind of digital TV terminal, including:
Sampling module, for carrying out the digital sample of T1 duration to the original audio data of the target channel of caching;
Calculate loudness module, obtain sound intensity value for the digital sample information processing according to described T1 duration;
Design factor module, calculates for the loudness value pre-set according to described sound intensity value and user
Volume gain coefficient;
Adjustment module, for the original audio data according to target channel described in described volume gain coefficient adjustment;
Output module, the voice data of the described target channel after exporting regulation.
Wherein, described sampling module includes:
First sampling unit, for carrying out described in one the original audio data of the described target channel of caching
The digital sample of T1 duration;
Described design factor module includes:
First computing unit, for according to sound intensity value corresponding to the digital sample information of described T1 duration and
The loudness value that described user pre-sets calculates the volume gain coefficient that described target channel is corresponding;
Described adjustment module includes:
First regulation unit, all original for according to target channel described in described volume gain coefficient adjustment
Voice data.
Wherein, described sampling module includes:
Second sampling unit, for the cycle a length of during described T1 original sound of described target channel to caching
Frequency is according to the cycle digital sample carrying out described T1 duration;
Described design factor module includes:
Second computing unit, for according to sound intensity value corresponding to the digital sample information of described T1 duration and
The loudness value that described user pre-sets calculates the volume gain that the digital sample information of described T1 duration is corresponding
Coefficient;
Described adjustment module includes:
Second regulation unit, when being used for the described T1 according to target channel described in described volume gain coefficient adjustment
The original audio data of the T1 duration that long digital sample information is corresponding.
Wherein, it is characterised in that described digital TV terminal also includes:
First judge module, for judging whether the described volume that target channel described in reading database is corresponding
Gain coefficient;
Update DBM, for when be judged as corresponding described of not target channel described in reading database
During volume gain coefficient, notify that the first sampling unit carries out one to the original audio data of the target channel of caching
The digital sample of individual described T1 duration, notice calculates the loudness value module digital sample according to described T1 duration
Information processing obtains sound intensity value, notifies first computing unit digital sample information according to described T1 duration
Corresponding sound intensity value calculates, with the loudness value that described user pre-sets, the sound that described target channel is corresponding
Flow gain coefficient, updates the described volume gain coefficient that target channel described in described data base is corresponding, notice
First regulates the unit all original audio data according to target channel described in described volume gain coefficient adjustment,
And notify the voice data of the described target channel after output module output regulation;
Read module, for when being judged as the described volume gain that target channel described in reading database is corresponding
During coefficient, read the described volume gain coefficient that target channel described in described data base is corresponding, notify first
Regulation unit is according to all original audio data of target channel described in described volume gain coefficient adjustment, and leads to
Know the voice data of the described target channel after output module output regulation.
Wherein, described digital TV terminal includes:
Calculate difference value module, for calculating the loudness value that described sound intensity value pre-sets with described user
Between difference value;
Second judge module, for judging that described difference value is whether in the disparity range allowed;
When described difference value is not in the disparity range of described permission, notice design factor module is according to institute
State sound intensity value and loudness value that user pre-sets calculates volume gain coefficient.
Wherein, described sampling module includes:
Divide frequency range unit, for according to the perceived audio frequency range of human ear and human ear to described audio frequency
Described audio frequency is divided into multiple frequency range by the sensitivity of frequency, uses difference according to different described frequency ranges
Sample rate described original audio data is carried out the digital sample of described T1 duration.
Wherein, described adjustment module includes:
Amplitude adjusting elements, according to amplitude or the list of the overall described original audio data of described volume gain coefficient adjustment
Solely regulate amplitude each described frequency of aliasing of the original audio data of each described frequency range that described division obtains
Voice data after the regulation of section.
Implement the embodiment of the present invention, have the advantages that
The embodiment of the present invention according to human ear to sound in the different feature of sensitivity of each frequency to being buffered in
The voice data of digital TV terminal carries out digital sample and calculates acquisition volume gain coefficient, increases according to volume
The original audio data of benefit coefficient adjustment target channel, makes the voice data loudness of output reality with user in advance
Arranging loudness to reach an agreement, when this efficiently solves switching channels or switching program, program volume is prominent big prominent little
Problem, and the embodiment of the present invention is to each on current existing digital-television terminal equipment hardware foundation
The volume of program has made unitized pretreatment makes different program volume be automatically adjusted to typical problem size,
Effectively reduce the production cost of the digital TV terminal with embodiment of the present invention function, and the present invention is real
Execute example and automatically program volume is adjusted to human ear impact minimum, improve the Experience Degree of user.
Accompanying drawing explanation
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 enforcement
In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of a kind of method automatically controlling frequency channel volume of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of a kind of method automatically controlling frequency channel volume of the present invention;
Fig. 3 is the 3rd embodiment schematic flow sheet of a kind of method automatically controlling frequency channel volume of the present invention;
Fig. 4 is the first embodiment structural representation of a kind of digital TV terminal of the present invention;
Fig. 5 is the second example structure schematic diagram of a kind of digital TV terminal of the present invention;
Fig. 6 is the 3rd example structure schematic diagram of a kind of digital TV terminal of the present invention.
Detailed description of the invention
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 clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
In the embodiment of the present invention, digital TV terminal can be DTV STB, digital TV integrated machine
Etc. possessing the unidirectional or equipment of bi-directional digital television function.
Refer to Fig. 1, for a kind of first embodiment flow process signal of method automatically controlling frequency channel volume of the present invention
Figure.As described in Figure 1, a kind of method automatically controlling frequency channel volume described in the present embodiment includes step:
S100, carries out the digital sample of T1 duration to the original audio data of target channel of caching.
In specific embodiment, digital TV terminal is obtained by demultiplexing module (Demultiplexer, DMUX)
Voice data before the decoding of target channel, is buffered in digital TV terminal by the voice data before this decoding
And this voice data is carried out pretreatment.Owing to human ear is to differ to the sensitivity of awareness at each frequency acoustic
Sample, minimum in order to program volume being adjusted on human ear impact, it is possible to use according to different frequency
Voice data carries out different process thus reduces the program volume impact on human ear.When carrying out T1 described in so
Long digital sample can according to the perceived audio frequency range of human ear and human ear the sensitivity to audio frequency
Audio frequency is divided into multiple frequency range by degree, uses different sample rates to T1 duration according to different frequency ranges
Voice data carries out digital sample.
Wherein, described in carry out the digital sample of T1 duration and will use two kinds of method of samplings in the present invention, first
The method of kind is by the digital sample of a T1 duration, and second method is with the cycle in cycle a length of during T1
Digital sample, two kinds of corresponding two embodiments of method, embodiment two below and embodiment three are illustrated.
Wherein optional, T1 duration refers between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency:
S101, obtains sound intensity value according to the digital sample information processing of described T1 duration.
In specific embodiment, the sampled data of each frequency range that the sampling of step S100 obtains is passed through integral and calculating
Obtain the acoustic pressure data of each frequency range.
Further, the acoustic pressure data difference according to frequency of the following form each frequency range to obtaining is referred to
Make decay weighting respectively and process the value original loudness data as voice data of directly cumulative gained, decay
Data can be adjusted according to practical situation variation by technical staff.
Frequency (Hz) |
<31.5 |
<63 |
<125 |
<250 |
<500 |
<1000 |
<2000 |
<4000 |
Above |
Decay (dB) |
-39.4 |
-26.2 |
-16.1 |
-8.6 |
-3.2 |
0 |
1.2 |
1.0 |
-1.1 |
S102, calculates volume gain coefficient according to the loudness value that described sound intensity value and user pre-set.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as:
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient can be that described sound intensity value pre-sets with described user
The business of loudness value.
S103, according to original audio data described in described volume gain coefficient adjustment.
In specific embodiment, regulation original audio data is according to volume gain coefficient adjustment entirety original audio
The amplitude of data or independent regulation divide amplitude each frequency range of aliasing of the voice data of each frequency range obtained
Voice data and voice data after the regulation that formed, the most optionally, the voice data amplitude after adjustment
Can be the business of original audio data amplitude and volume gain coefficient.
S104, the voice data of the described target channel after output regulation.
In specific embodiment, the voice data of the target channel after regulation is exported D/A module or by number
The data of the target channel after this regulation are passed to peripheral hardware and are carried out D/A conversion by peripheral hardware again by word passage, then export
Actual programs audio frequency.
Further alternative, owing to digital audio and video signals is after D/A changes, also have through one or more levels
Amplify and play out again, because the frequency characteristic of different its amplifying circuit of audio frequency is also different, therefore may be used
Frequency characteristic being taken into account when calculating sound intensity, the different weights decay revising different frequency corresponding is
Number, concrete grammar can be to the DAB amplitude-versus-frequency curve before the input of audio amplifier circuit and amplification
After DAB amplitude-versus-frequency curve carry out sampling test, comparing difference, draw the linear differences of sampled point
Weight decay coefficient is revised by ratio.
Refer to Fig. 2, for a kind of second embodiment flow process signal of method automatically controlling frequency channel volume of the present invention
Figure.As in figure 2 it is shown, a kind of method automatically controlling frequency channel volume described in the present embodiment includes step:
S200, it may be judged whether the volume gain coefficient that target channel described in reading database is corresponding, if judging
Result is no, then perform step S201, if the determination result is YES, then perform step S207.
Concrete, this step can perform when target channel switches, and digital television terminal system can be with
Eject pop-up or other modes allow user carry out choosing whether that the volume that in reading database, target channel is corresponding increases
Benefit coefficient, or further alternative, whether digital television terminal system automatic decision data base has stored mesh
The volume gain coefficient that mark channel is corresponding, if not storing the volume gain coefficient that target channel is corresponding, then holds
Row step S201, stores, if having, the volume gain coefficient that target channel is corresponding, then perform step S207.
S201, carries out the numeral of a described T1 duration to the original audio data of described target channel of caching
Sampling.
In specific embodiment, owing to human ear is different to the sensitivity of awareness at each frequency acoustic, for
Program volume is adjusted on human ear impact minimum, it is possible to use the voice data according to different frequency
Carry out different process thus reduce the program volume impact on human ear.The numeral of T1 duration is carried out described in so
Sampling can according to the perceived audio frequency range of human ear and human ear to the sensitivity of audio frequency by audio frequency
Frequency partition is multiple frequency range, uses the different sample rates voice data to T1 duration according to different frequency ranges
Carry out digital sample.
Wherein, carry out the method for sampling that the digital sample of T1 duration uses in the present embodiment described in and be by one
The digital sample of individual T1 duration.
Wherein optional, T1 duration refers between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency
S202, obtains sound intensity value according to the digital sample information processing of described T1 duration.
S203, calculates described sound intensity value and difference value between the loudness value that described user pre-sets.
In specific embodiment, difference value is the exhausted of the difference of the loudness value pre-set with user of sound intensity value
To value.
S204, it is judged that whether described difference value is in the disparity range allowed, if judged result is no, then
Perform step S205.
In specific embodiment, if being judged as YES, then all voice datas of target channel are not required to through pretreatment
Just output, i.e. exports all original audio data of described target channel.Wherein, it is allowed to disparity range
For more than or equal to 0db and less than or equal to 2db.
S205, the sound intensity value corresponding according to the digital sample information of described T1 duration and described user are in advance
The loudness value arranged calculates the volume gain coefficient that described target channel is corresponding.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as:
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient can be that described sound intensity value pre-sets with described user
The business of loudness value.
Wherein, volume gain coefficient corresponding to the target channel that calculates is the voice data that target channel is overall
Corresponding volume gain coefficient.
S206, updates the described volume gain coefficient that target channel described in described data base is corresponding.
In concrete application, such as: if digital TV terminal is switched to play Shenzhen satellite TV channel, DTV
The volume gain coefficient that Shenzhen satellite TV channel that step S205 is then calculated by terminal is corresponding replaces in data base
Existing volume gain coefficient that Shenzhen satellite TV channel is corresponding or to save as Shenzhen satellite TV channel in data base corresponding
Volume gain coefficient, can next time receive be switched to Shenzhen satellite TV information time configuration calculate specifically
The volume gain coefficient of this channel adjust program volume.
S207, the described volume gain coefficient that target channel described in reading database is corresponding.
Wherein, hold after performing the described volume gain coefficient step that described in reading database, target channel is corresponding
Row step S208.
S208, according to all original audio data of target channel described in described volume gain coefficient adjustment.
In specific embodiment, all original audio data of regulation target channel are according to described volume gain system
Number regulates the amplitude of overall described original audio data or regulates each described frequency range that described division obtains respectively
The amplitude of original audio data and the voice data of each frequency range of aliasing and audio frequency number after the regulation that formed
According to, the most optionally, the voice data amplitude after adjustment can be original audio data amplitude and volume gain system
The business of number.
Further alternative, according to step S206 the volume gain system that target channel is corresponding in more new database
Count or regulate according to the volume gain coefficient that target channel in step S207 reading database is corresponding described
All original audio data of target channel.The most in actual applications, if digital TV terminal is switched to broadcast
Put Shenzhen satellite TV channel, now obtain volume corresponding to Shenzhen satellite TV according to step S206 or step S207 and increase
Benefit coefficient, regulates all voice datas of Shenzhen satellite TV channel according to this volume gain coefficient.
S209, the voice data of the described target channel after output regulation.
Wherein, step S202 and step S209 may refer to step S101 and the step of embodiment illustrated in fig. 1
The detailed description of S104, is not repeated herein.
Refer to Fig. 3, for a kind of the 3rd embodiment flow process signal of method automatically controlling frequency channel volume of the present invention
Figure.As it is shown on figure 3, a kind of method automatically controlling frequency channel volume described in the present embodiment includes step:
S300, carries out institute with the cycle a length of during described T1 to the original audio data of the described target channel of caching
State the cycle digital sample of T1 duration.
In specific embodiment, owing to human ear is different to the sensitivity of awareness at each frequency acoustic, for
Program volume is adjusted on human ear impact minimum, it is possible to use the voice data according to different frequency
Carry out different process thus reduce the program volume impact on human ear.The numeral of T1 duration is carried out described in so
Sampling can according to the perceived audio frequency range of human ear and human ear to the sensitivity of audio frequency by audio frequency
Frequency partition is multiple frequency range, uses the different sample rates voice data to T1 duration according to different frequency ranges
Carry out digital sample.
Wherein, carrying out the method for sampling that the digital sample of T1 duration uses in the present embodiment described in is with T1
The cycle digital sample in Shi Changwei cycle.
Wherein optional, the original audio data of the target channel of caching is to need uninterruptedly to update according to user
The original audio data of caching is until user's switching channels or shutdown, and the cycle digital sample of T1 duration is to caching
Original audio data include update original audio data carry out sampling until user's switching channels or shutdown then
Stopping sampling, wherein, the periodic sampling of the T1 duration T1 duration original audio data to sampling is incomplete
Repeated sampling.
Wherein optional, in order to reduce two unsmooth, the adjacent sampling period T1 between two sampling periods
In can have the overlapping of T2 time, wherein T2 < T1.
Wherein optional, T1 duration refers between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency:
S301, obtains sound intensity value according to the digital sample information processing of described T1 duration.
S302, calculates described sound intensity value and difference value between the loudness value that described user pre-sets.
S303, it is judged that whether described difference value is in the disparity range allowed, if judged result is no, then
Perform step S304.
In specific embodiment, if being judged as YES, then the T1 duration that the digital sample information of T1 duration is corresponding
Original audio data is not required to through pretreatment just output.The i.e. digital sample information of output T1 duration is corresponding
The original audio data of T1 duration.
Wherein, it is allowed to disparity range be more than or equal to 0db and less than or equal to 2db.
S304, the sound intensity value corresponding according to the digital sample information of described T1 duration and described user are in advance
The loudness value arranged calculates the volume gain coefficient that the digital sample information of described T1 duration is corresponding.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as,
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient can be that described sound intensity value pre-sets with described user
The business of loudness value.
Wherein, the volume gain coefficient that the digital sample information of the described T1 duration calculated is corresponding is target frequency
The volume gain coefficient of the original audio data of the T1 duration that the digital sample information of road T1 duration is corresponding.
S305, according to the data sampling information of the T1 duration of target channel described in described volume gain coefficient adjustment
The original audio data of corresponding T1 duration.
In specific embodiment, the T1 duration that the data sampling information of T1 duration of regulation target channel is corresponding
Original audio data is amplitude or the list of the overall original audio data according to volume gain coefficient adjustment T1 duration
Solely amplitude the aliasing of the voice data of each frequency range that the original audio data division of regulation T1 duration obtains are each
The voice data of individual frequency range and the voice data of T1 duration after the regulation that formed, the most optionally, after adjustment
Voice data amplitude can be the business of original audio data amplitude and volume gain coefficient.
Further alternative, the digital sample information according to step S304 calculated T1 duration is corresponding
During T1 corresponding to the digital sample information of the T1 duration that one volume gain coefficient regulates described target channel
Long original audio data.The most in actual applications, if digital TV terminal is switched to play Shenzhen satellite TV
Channel, is now calculated, according to step S304, the sound that the digital sample information of Shenzhen satellite TV T1 duration is corresponding
Flow gain coefficient, regulates the digital sample letter of the T1 duration of Shenzhen satellite TV channel according to this volume gain coefficient
The original audio data of the T1 duration that breath is corresponding, then within the next T1 time, digital TV terminal is again
Secondary it is calculated corresponding next of the digital sample information of Shenzhen satellite TV next one T1 duration according to step S304
Individual volume gain coefficient, according to the next volume gain that the digital sample information of this next T1 duration is corresponding
The T1 duration that the digital sample information of the next T1 duration that coefficient regulates Shenzhen satellite TV channel is corresponding former
Beginning voice data, like this with regulating cycle a length of during T1 be adjusted until user be switched to other channels or
Shutdown just stops regulation, and it is poor that this kind of regulative mode can effectively solve the different program volumes with individual channel
Different problem, such as: the problem of the sound volume difference between TV play and the advertisement intercutted.
Wherein optional, in order to reduce two unsmooth, the adjacent regulating cycle T1 between two sampling periods
In can have the overlapping of T2 time, wherein T2 < T1.
S306, the voice data of the target channel after output regulation.
Wherein, step S301 and step S306 can be found in step S101 and the step of embodiment illustrated in fig. 1
S104, step S302 can be found in step S202 of embodiment illustrated in fig. 2, seldom repeats at this.
Implementing of a kind of digital TV terminal that the embodiment of the present invention described below provides.
Refer to Fig. 4, for digital TV terminal first embodiment structural representation of the present invention.As shown in Figure 4,
A kind of digital TV terminal described in the present embodiment includes:
Sampling module 100, for carrying out the numeral of T1 duration to the original audio data of the target channel of caching
Sampling.
In specific embodiment, digital TV terminal is obtained by demultiplexing module (Demultiplexer, DMUX)
Voice data before the decoding of target channel, is buffered in digital TV terminal by the voice data before this decoding
And this voice data is carried out pretreatment.Owing to human ear is different to the sensitivity of awareness of each frequency acoustic
, minimum in order to program volume being adjusted on human ear impact, so can be according to the voice data of different frequency
Carry out different process thus reduce the program volume impact on human ear.The numeral of T1 duration is carried out described in so
Sampling can be according to the perceived audio frequency range of human ear and human ear to the sensitivity of audio frequency by sound
Again and again rate is divided into multiple frequency range, uses the different sample rates audio frequency number to T1 duration according to different frequency ranges
According to carrying out digital sample.
Wherein, described in carry out the digital sample of T1 duration and will use two kinds of sampling units in the present embodiment,
A kind of sampling unit is by the digital sample of a T1 duration, and the second sampling unit is with a length of during T1
The cycle digital sample in cycle, two kinds of corresponding two embodiments of unit, by embodiment two below and embodiment
Three illustrate.
Wherein optional, T1 duration can refer between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency:
Calculate loudness module 200, obtain sound for the digital sample information processing according to described T1 duration and ring
Angle value.
In specific embodiment, calculating loudness module 200 is each frequency range obtained of sampling sampling module 100
Sampled data obtained the acoustic pressure data of each frequency range by integral and calculating.
Further, the acoustic pressure data different difference according to frequency of the following form each frequency range to obtaining are referred to
Make decay weighting and process the value original loudness data as voice data of directly cumulative gained, the data of decay
Can be adjusted according to practical situation variation by technical staff.
Frequency (Hz) |
<31.5 |
<63 |
<125 |
<250 |
<500 |
<1000 |
<2000 |
<4000 |
Above |
Decay (dB) |
-39.4 |
-26.2 |
-16.1 |
-8.6 |
-3.2 |
0 |
1.2 |
1.0 |
-1.1 |
Design factor module 300, calculates for the loudness value pre-set according to described sound intensity value and user
Go out volume gain coefficient.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as:
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient is that described sound intensity value pre-sets with described user
The business of loudness value.
Adjustment module 400, for according to original audio data described in described volume gain coefficient adjustment.
In specific embodiment, adjustment module 400 is according to volume gain coefficient adjustment entirety original audio data
Amplitude or individually regulation divide the amplitude of voice data the sound of each frequency range of aliasing of each frequency range obtained
Frequency according to and voice data after the regulation that formed, the most optionally, the voice data amplitude after adjustment is former
Beginning voice data amplitude and the business of volume gain coefficient.
Output module 500, the voice data of the described target channel after exporting regulation.
In specific embodiment, the voice data of the target channel after adjustment module 400 regulates is exported
D/A module or by digital channel, the data of the target channel after this regulation are passed to peripheral hardware and carried out again by peripheral hardware
D/A changes, then exports actual programs audio frequency.
Further alternative, owing to digital audio and video signals is after D/A changes, also have through one or more levels
Amplify and play out again, because the frequency characteristic of different its amplifying circuit of audio frequency is also different, therefore may be used
Frequency characteristic being taken into account when calculating sound intensity, the different weights decay revising different frequency corresponding is
Number, concrete grammar can be to the DAB amplitude-versus-frequency curve before the input of audio amplifier circuit and amplification after
DAB amplitude-versus-frequency curve carry out sampling test, comparing difference, draw the linear differences ratio of sampled point
Weight decay coefficient is revised by example.
Refer to Fig. 5, for one digital TV terminal of the present invention second example structure schematic diagram.Such as Fig. 5 institute
Showing, a kind of digital TV terminal described in the present embodiment includes:
Sampling module 100, calculate loudness module 200, design factor module 300, adjustment module 400 and defeated
Go out module 500.
Wherein, this digital TV terminal also can farther include:
First judge module 101, for judging whether the volume increasing that target channel described in reading database is corresponding
Benefit coefficient, if judged result is no, then notifies the first sampling unit 10 original sound to the target channel of caching
Frequency evidence carries out the digital sample of T1 duration, and if the determination result is YES, then notice read module 201 reads number
According to the described volume gain coefficient that target channel described in storehouse is corresponding.
Concrete, the first judge module 101 can start when target channel switches to perform, DTV
Terminal system can allow user carry out choosing whether target frequency in reading database to eject pop-up or other modes
The volume gain coefficient that road is corresponding, or further alternative, digital television terminal system automatic decision data base
In whether store the volume gain coefficient that target channel is corresponding, if not having, then notify the first sampling unit 10
Original audio data to the target channel of caching carries out the digital sample of a T1 duration, if having, then notifies
The described volume gain coefficient that target channel described in read module 201 reading database is corresponding.
Read module 201, for the described volume gain coefficient that target channel described in reading database is corresponding.
When logical after the described volume gain coefficient that target channel described in read module 201 reading database is corresponding
Know the first regulation unit 50 all original audio numbers according to target channel described in described volume gain coefficient adjustment
According to.
Calculate difference value module 301, for calculating the loudness that described sound intensity value pre-sets with described user
Difference value between value.
In specific embodiment, difference value is the exhausted of the difference of the loudness value pre-set with user of sound intensity value
To value.
Second judge module 401, for judge described difference value whether in the disparity range allowed, if the
Two judging unit 401 judged results are no, then notify first computing unit 30 number according to described T1 duration
Sound intensity value that word sample information is corresponding and the loudness value that described user pre-sets calculate described target frequency
The volume gain coefficient that road is corresponding.
In specific embodiment, if the second judge module 401 is judged as YES, the original sound of the most described target channel
Frequency is according to being not required to through pretreatment output.Wherein, it is allowed to disparity range be more than or equal to 0db little
In or equal to 2db.
Update DBM 501, for updating the described volume that target channel described in described data base is corresponding
Gain coefficient.
In concrete application, such as: if digital TV terminal is switched to play Shenzhen satellite TV channel, DTV
The volume gain coefficient that Shenzhen satellite TV channel that first computing unit 30 is then calculated by terminal is corresponding replaces number
The existing volume gain coefficient corresponding according to Shenzhen satellite TV channel in storehouse or save as in data base Shenzhen satellite TV frequency
The volume gain coefficient that road is corresponding, can configure current meter when next time receives and is switched to Shenzhen satellite TV information
The volume gain coefficient of this channel calculated is to adjust program volume.
Wherein, described sampling module 100 also can farther include:
First sampling unit 10, for carrying out a T1 duration to the original audio data of the target channel of caching
Digital sample.
In specific embodiment, owing to human ear is different to the sensitivity of awareness at each frequency acoustic, for
Program volume is adjusted on human ear impact minimum, it is possible to do not use the sound intensity simply according to audio frequency
Weigh the size of current sound, such as, carry out different process according to the voice data of different frequency thus drop
The impact on human ear of the low program volume.The digital sample carrying out T1 duration described in so can be able to be felt according to human ear
Audio frequency is divided into multiple frequency range by the audio frequency range known and human ear to the sensitivity of audio frequency,
Use different sample rates that the voice data of T1 duration is carried out digital sample according to different frequency ranges.
Wherein, carry out the method for sampling that the digital sample of T1 duration uses in the present embodiment described in and be by one
The digital sample of individual T1 duration.
Wherein optional, T1 duration refers between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency:
Divide frequency range unit 20, for according to the perceived audio frequency range of human ear and human ear to audio frequency frequency
Audio frequency is divided into multiple frequency range by the sensitivity of rate, uses different sample rates pair according to different frequency ranges
Described original audio data carries out the digital sample of described T1 duration.
Described design factor module 300 the most also can farther include:
First computing unit 30, for the sound intensity value corresponding according to the digital sample information of described T1 duration
The volume gain coefficient that described target channel is corresponding is calculated with the loudness value that described user pre-sets.
Wherein, the first computing unit 30 is according to the number calculating the T1 duration that loudness module 200 is calculated
The loudness value that sound intensity value corresponding to word sample information pre-sets in conjunction with user calculates target channel pair
The volume gain coefficient answered.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as:
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient can be that described sound intensity value pre-sets with described user
The business of loudness value.
Wherein, volume gain coefficient corresponding to the target channel that calculates is the voice data that target channel is overall
Corresponding volume gain coefficient.
Described regulation unit 400 also can farther include:
Amplitude adjusting elements 40, for according to the overall described original audio data of described volume gain coefficient adjustment
Amplitude or regulate the amplitude of original audio data the aliasing of each described frequency range that described division obtains respectively
Voice data after the regulation of each described frequency range.
Wherein optional, the voice data amplitude after adjustment can be original audio data amplitude and volume gain system
The business of number.
First regulation unit 50, all former for according to target channel described in described volume gain coefficient adjustment
Beginning voice data.
In specific embodiment, the first regulation unit 50 regulates described target frequency according to amplitude adjusting elements 40
All original audio data in road.
Further, according to the volume gain that target channel in read module 201 reading database is corresponding
Coefficient or update DBM 501 the volume gain coefficient that target channel is corresponding in more new database adjust
Save all original audio data of described target channel.The most in actual applications, if digital TV terminal is cut
Change to play Shenzhen satellite TV channel, now obtain deeply according to renewal DBM 501 or read module 201
The volume gain coefficient that ditch between fields satellite TV is corresponding, regulates all of Shenzhen satellite TV channel according to this volume gain coefficient
Voice data.
Refer to Fig. 6, for for digital TV terminal the 3rd example structure schematic diagram of the present invention.As shown in Figure 6,
A kind of digital TV terminal described in the present embodiment includes:
Sampling module 100, calculate loudness module 200, design factor module 300, adjustment module 400, defeated
Go out module 500, calculate difference value module 301 and the second judge module 401 and sampling module 100 includes
Divide frequency range unit 20, the amplitude adjusting elements 40 that adjustment module includes.
Wherein, described sampling module 100 also can farther include:
Second sampling unit 60, for the cycle a length of during described T1 original audio of target channel to caching
Data carry out the cycle digital sample of described T1 duration.
In specific embodiment, owing to human ear is different to the sensitivity of awareness at each frequency acoustic, for
Program volume is adjusted on human ear impact minimum, so the voice data according to different frequency can be used to enter
Row is different to be processed thus reduces the program volume impact on human ear.The numeral carrying out T1 duration described in so is adopted
Sample can according to the perceived audio frequency range of human ear and human ear to the sensitivity of audio frequency by audio frequency frequency
Rate is divided into multiple frequency range, uses different sample rates to enter the voice data of T1 duration according to different frequency ranges
Row number is sampled.
Wherein, carrying out the method for sampling that the digital sample of T1 duration uses in the present embodiment described in is with T1
The cycle digital sample in Shi Changwei cycle.
Wherein optional, the original audio data of the target channel of caching is to need uninterruptedly to update according to user
The original audio data of caching is until user's switching channels or shutdown, and the cycle digital sample of T1 duration is to caching
Original audio data include update original audio data carry out sampling until user's switching channels or shutdown then
Stopping sampling, wherein, the periodic sampling of the T1 duration T1 duration original audio data to sampling is incomplete
Repeated sampling.
Wherein optional, in order to reduce two unsmooth, the adjacent sampling period T1 between two sampling periods
In can have the overlapping of T2 time, wherein T2 < T1.
Wherein optional, T1 duration refers between 20MS ~ 1S scope, and different application scenarios selects
T1 duration may be the most different.
Concrete, the division of audio frequency refers to following table with corresponding sample frequency:
Described design factor module 300 also can farther include:
Second computing unit 70, for the sound intensity value corresponding according to the digital sample information of described T1 duration
The volume increasing that the digital sample information of described T1 duration is corresponding is calculated with the loudness value that described user pre-sets
Benefit coefficient.
Wherein, the loudness value that described user pre-sets is that test chamber tests out difference by standard audio signal
Standard loudness data that level of sound volume is corresponding is also stored in advance in the data base of digital TV terminal, such as,
The corresponding standard loudness data of volume 23 sound, volume 24 sound correspondence another one normal data, other are not
With the most corresponding different standard loudness data of level of sound volume, different user selects by selecting different volumes
Select the loudness adapting to oneself.
Wherein optional, described volume gain coefficient can be that described sound intensity value pre-sets with described user
The business of loudness value.
Wherein, the volume gain coefficient that the digital sample information of the described T1 duration calculated is corresponding is target frequency
The volume gain coefficient of the original audio data of the T1 duration that the digital sample information of road T1 duration is corresponding.
Described adjustment module 400 also can farther include:
Second regulation unit 80, for the T1 duration according to target channel described in described volume gain coefficient adjustment
T1 duration original audio data corresponding to data sampling information.
In specific embodiment, the second regulation unit 80 regulates the T1 of target channel according to amplitude adjusting elements 40
The original audio data of the T1 duration that the data sampling information of duration is corresponding.
Further, the second regulation unit 80 is according to long data during the second computing unit 70 calculated T1
One volume gain coefficient corresponding to sample information regulates the data sampling letter of the T1 duration of described target channel
The T1 duration original audio data that breath is corresponding.The most in actual applications, if digital TV terminal is switched to broadcast
Putting Shenzhen satellite TV channel, now the second computing unit 70 is calculated the original audio of Shenzhen satellite TV T1 duration
The volume gain coefficient that data are corresponding, regulates the T1 duration of Shenzhen satellite TV channel according to this volume gain coefficient
The original audio data of T1 duration corresponding to digital sample information, then digital TV terminal is again according to step
Second computing unit 70 obtains another sound that the digital sample information of another T1 duration of Shenzhen satellite TV is corresponding
Flow gain coefficient, according to another volume gain coefficient that the digital sample information of this another T1 duration is corresponding
Regulate the original audio of the digital sample information correspondence T1 duration of another T1 duration of Shenzhen satellite TV channel
Data, are adjusted with regulating cycle a length of during T1 until user is switched to other channels or shutdown ability like this
Stop this kind of regulative mode of regulation and can effectively solve the different program volume difference problems with a channel,
Such as: the problem of the sound volume difference between TV play and the advertisement intercutted.
Wherein optional, in order to reduce two unsmooth, the adjacent regulating cycle T1 between two sampling periods
In can have the overlapping of T2 time, wherein T2 < T1.
By the description of above-described embodiment, the invention have the advantages that
The embodiment of the present invention according to human ear to sound in the different feature of sensitivity of each frequency to being buffered in
The voice data of digital TV terminal carries out digital sample and calculates acquisition volume gain coefficient, increases according to volume
The original audio data of benefit coefficient adjustment target channel, makes the voice data loudness of output reality with user in advance
Arranging loudness to reach an agreement, when this efficiently solves switching channels or switching program, program volume is prominent big prominent little
Problem, and the embodiment of the present invention is to each on current existing digital-television terminal equipment hardware foundation
The volume of program has made unitized pretreatment makes different program volume be automatically adjusted to typical problem size,
Effectively reduce the production cost of the digital TV terminal with embodiment of the present invention function, and the present invention is real
Execute example and automatically program volume is adjusted to human ear impact minimum, improve the Experience Degree of user.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating
In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.
Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,
Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it
Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.