CN104168431A - Volume adjusting method and device and set top box - Google Patents

Volume adjusting method and device and set top box Download PDF

Info

Publication number
CN104168431A
CN104168431A CN201410385493.5A CN201410385493A CN104168431A CN 104168431 A CN104168431 A CN 104168431A CN 201410385493 A CN201410385493 A CN 201410385493A CN 104168431 A CN104168431 A CN 104168431A
Authority
CN
China
Prior art keywords
time period
sub
sampled point
volume
voice data
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
CN201410385493.5A
Other languages
Chinese (zh)
Other versions
CN104168431B (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201410385493.5A priority Critical patent/CN104168431B/en
Publication of CN104168431A publication Critical patent/CN104168431A/en
Application granted granted Critical
Publication of CN104168431B publication Critical patent/CN104168431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a volume adjusting method and device and a set top box. The volume adjusting method and device and the set top box solve the problem that an existing volume adjusting method is over complex and poor in universality and cannot process the abrupt change of voice in a single channel. The method includes the steps that sampling points of audio data corresponding to a current channel are received, and audio data volume corresponding to the sampling points is acquired; the number of the sampling points in sub time periods corresponding to the current channel is determined; the sub time periods to be played are determined; the audio data volume is adjusted for the sampling points in the sub time periods to be played according to the audio data volume corresponding to the sampling points and the number of the sampling points in the sub time periods; whether the channel is switched or not is judged; if not, the step of determining the sub time periods to be played is repeated, and if yes, the step of receiving the sampling points of the audio data corresponding to the current channel is repeated. By the adoption of the method and device, the phenomenon that voice abruptly changes when the channel is switched or voice is continuously played in the same channel can be avoided, the process is simple, and universality is high.

Description

A kind of volume adjusting method, device and a kind of Set Top Box
Technical field
The present invention relates to multimedia technology field, particularly relate to a kind of volume adjusting method, a kind of volume adjustment device, and a kind of Set Top Box.
Background technology
In the last few years, along with developing rapidly of multimedia technology, various playback terminals were also developing rapidly, and its function is also increasing.Taking TV set-top box as example, because it can, for user provides more sound, the picture of high-quality, meet user's various demands, therefore become essential a kind of equipment in people's life.But, in the application of TV set-top box, there is following problem at present: when user watches TV, often there is the sound problem causing not of uniform size between each channel, or occur in single channel the problem that sound changes suddenly in the time that program and advertisement are switched.
For the problems referred to above, in prior art, conventionally adopt following two kinds of modes to solve:
1, record separately the volume of each channel, in the time of switching channels, according to the volume of record, the volume of this channel is regulated.
But, user sees that when TV and evening are seen TV, needed overall loudness rank may be inconsistent by day, therefore this kind of mode is too loaded down with trivial details, and the volume adjusting situation can only process different channel and switch time, and can not process in single channel the situation that sound changes suddenly in the time that program and advertisement are switched.
2, issue the method for the descriptor of volume compensation by TV station, inform the volume compensation value of the each channel of TV set-top box, in the time of switching channels, according to offset, the volume of this channel is regulated.
But, this method needs TV station to coordinate, and be not that each TV station can issue volume compensation descriptor, therefore this kind of mode versatility is poor, and the volume adjusting situation can only process different channel and switch time, and can not process in single channel the situation that sound changes suddenly in the time that program and advertisement are switched.
In a word, volume adjusting method of the prior art is too loaded down with trivial details, versatility is poor, cannot process the situation that in single channel, sound changes suddenly.
Summary of the invention
The invention provides a kind of volume adjusting method, device and a kind of Set Top Box, to solve, volume adjusting method of the prior art is too loaded down with trivial details, versatility is poor, cannot process the problem of the unexpected situation of change of sound in single channel.
In order to address the above problem, the invention discloses a kind of volume adjusting method, it is characterized in that, comprising:
Receive the sampled point of the voice data that current channel is corresponding, and gather the voice data volume that each sampled point is corresponding;
Determine the sampled point number of the sub-time period that current channel is corresponding;
Determine the sub-time period to be played;
According to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played;
Judge whether switching channels, if not, return to the described step of determining the sub-time period to be played; If so, return to the step of the sampled point of the voice data that described reception current channel is corresponding.
Preferably, described according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, the step of carrying out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played comprises:
According to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, calculate the volume average of affiliated father's time period of described sub-time period to be played; Wherein, a father comprises at least one sub-time period the time period;
The volume average of more described father's time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
If the volume average of described father's time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulate voice data volume corresponding to sampled point of described sub-time period to be played;
Otherwise, do not regulate voice data volume corresponding to sampled point of described sub-time period to be played.
Preferably, described according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, the step of calculating the volume average of affiliated father's time period of described sub-time period to be played comprises:
According to the sequencing receiving, receiving after the sampled point of sampled point number of described sub-time period at every turn, calculate the aggregate-value of the voice data volume that described sampled point is corresponding, as the aggregate-value of a sub-time period;
From the described sub-time period to be played, in the time that the sub-time period that calculates aggregate-value can form father time period, calculate the mean value of the aggregate-value of all sub-time periods in this father time period, using the described mean value volume average of the father's time period under the described sub-time period to be played divided by the business of the sampled point number gained of described sub-time period.
The step of the voice data volume that preferably, the sampled point of described sub-time period to be played of described adjusting is corresponding comprises:
If the volume average in described father's time period is greater than described max volume fiducial value, turn down voice data volume corresponding to sampled point of described sub-time period to be played;
If the volume average in described father's time period is less than described minimal volume fiducial value, heighten voice data volume corresponding to sampled point of described sub-time period to be played;
Wherein, the step of turning down the voice data volume that the sampled point of described sub-time period to be played is corresponding described in comprises:
Calculate volume average in described father's time period divided by the business of described max volume fiducial value gained as gain factor;
Voice data volume corresponding each sampled point of described sub-time period to be played, all divided by described gain factor, is obtained to the volume after turning down;
The step of the voice data volume that the described sampled point of heightening the described sub-time period to be played is corresponding comprises:
Calculate described minimal volume fiducial value divided by the business of the volume average in the described father time period as decay factor;
Voice data volume corresponding each sampled point of described sub-time period to be played is all multiplied by described decay factor, obtains the volume after heightening.
The step of the sampled point number of the sub-time period that preferably, described definite current channel is corresponding comprises:
Obtain the sample frequency that current channel is corresponding;
Calculate within the described sub-time period according to the described sample frequency sampled point number that can obtain of sampling, the sampled point number using described sampled point number as sub-time period corresponding to described current channel.
Preferably, after the described sampled point for the described sub-time period to be played carries out the step of adjusting processing of voice data volume, also comprise:
Buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period;
According to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carry out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before;
Voice data volume corresponding to sampled point of the sub-time period of buffer memory is sent to playback equipment.
Preferably, wherein, described adjustment state comprises adjusting and does not regulate;
Described according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, the step of carrying out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before comprises:
If the adjustment state of the sub-time period of current cache is for regulating, the adjustment state of the sub-time period of buffer memory, for not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before;
The volume average of more described sub-time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
If the volume average of certain sub-time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulate voice data volume corresponding to sampled point of this sub-time period;
Otherwise, do not regulate voice data volume corresponding to sampled point of this sub-time period;
The step of the voice data volume that wherein, the sampled point of described this sub-time period of adjusting is corresponding comprises:
If the volume average of this sub-time period is greater than described max volume fiducial value, turn down voice data volume corresponding to sampled point of this sub-time period;
If the volume average of this sub-time period is less than described minimal volume fiducial value, heighten voice data volume corresponding to sampled point of this sub-time period.
According to a further aspect in the invention, also disclose a kind of volume adjustment device, it is characterized in that, having comprised:
Acquisition module, for receiving the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding;
The first determination module, for determining the sampled point number of the sub-time period that current channel is corresponding;
The second determination module, for determining the sub-time period to be played;
The first processing module, for according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played;
Judge module, for judging whether switching channels, if not, calls described the second determination module; If so, call described acquisition module.
Preferably, described device also comprises:
Cache module, for carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played in described processing module after, buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period;
The second processing module, for according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carries out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before;
The second sending module, for being sent to playback equipment by voice data volume corresponding to sampled point of the sub-time period of buffer memory;
Wherein, described adjustment state comprises adjusting and does not regulate;
Described the second processing module comprises:
Sub-time period calculating sub module, for the adjustment state of the sub-time period in current cache, for regulating, the adjustment state of the sub-time period of buffer memory when not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before;
Sub-time period comparison sub-module, for the volume average of more described sub-time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
Sub-time period is processed submodule, when being greater than described max volume fiducial value in the volume average of certain sub-time period or being less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of this sub-time period; Otherwise, do not regulate voice data volume corresponding to sampled point of this sub-time period.
According to a further aspect in the invention, also disclose a kind of Set Top Box, it is characterized in that, comprised volume adjustment device as above.
Compared with prior art, the present invention includes following advantage:
It in the present invention, is no matter the situation during for switching channels, or for the situation that continues under same channel to play, all receiving after the sampled point of voice data, gather the voice data volume that each sampled point is corresponding, and the sampled point number of sub-time period corresponding to definite current channel, and determine the sub-time period to be played; Then according to voice data volume corresponding to each sampled point and the sampled point number of sub-time period, carry out the adjusting processing of voice data volume for the sampled point of sub-time period to be played; Finally judge whether switching channels, return to if not the step of determining the sub-time period to be played, if return to the step of the sampled point that receives the voice data that current channel is corresponding.Therefore the present invention is by gathering and analyze voice data volume corresponding to each sampled point in real time, can carry out in real time the adjusting processing of voice data volume, thereby avoid continuing to occur while broadcasting the phenomenon of sound sudden change in the time of switching channels or under same channel, process is simple, highly versatile.
Brief description of the drawings
Fig. 1 is the flow chart of a kind of volume adjusting method of the embodiment of the present invention one;
Fig. 2 is the schematic diagram of a kind of voice data handling process of the embodiment of the present invention two;
Fig. 3 is the flow chart of a kind of volume adjusting method of the embodiment of the present invention two;
Fig. 4 is the flow chart of a kind of volume adjusting method of the embodiment of the present invention three;
Fig. 5 is the structured flowchart of a kind of volume adjustment device of the embodiment of the present invention four.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
For when user watches TV, often there is not of uniform size the causing of sound between each channel, or the problem that in single channel, sound changes suddenly in the time that program and advertisement are switched, at present solution conventionally too loaded down with trivial details, versatility is poor, and cannot process the situation that in single channel, sound changes suddenly.For the problems referred to above, the invention provides a kind of volume adjusting method, device and a kind of Set Top Box.Below, be described in detail by following each embodiment.
Embodiment mono-:
With reference to Fig. 1, show the flow chart of a kind of volume adjusting method of the embodiment of the present invention one.This volume adjusting method specifically can comprise the following steps:
Step 101, receives the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding.
In the time watching certain television channel, for the audio frequency of playing, Set Top Box, by receiving the sampled point of the voice data that current channel is corresponding, is then carried out analyzing and processing to the sampled point of these voice datas, sends to playback equipment to play after processing again.
In the embodiment of the present invention, to carry out real-time volume adjusting processing for the sampled point of the voice data receiving, therefore can receive after the sampled point of the voice data that current channel is corresponding, gather respectively the voice data volume that each sampled point is corresponding, follow-uply carry out corresponding adjusting according to voice data volume corresponding to each sampled point again and process.It should be noted that, the sampled point of the voice data that reception current channel in the embodiment of the present invention is corresponding can refer to the reception in the time being switched to new channel, also the reception can refer to continue to play under same channel time, no matter be which kind of situation, can carry out the collection of voice data volume to sampled point corresponding to current channel, and regulate processing by analysis.
Step 102, determines the sampled point number of the sub-time period that current channel is corresponding.
In the embodiment of the present invention, can divide the sub-time period, and carry out the adjusting processing of the voice data volume that sampled point is corresponding based on each sub-time period, therefore can also determine the sampled point number of the sub-time period that current channel is corresponding.
Step 103, determines the sub-time period to be played.
Wherein, the sub-time period to be played refers to the sub-time period that will send to sampled point that playback equipment plays and corresponding voice data volume to form.
Above-mentioned steps 101, step 102 and step 103 three's execution sequence is not limited to said sequence, and three can executed in parallel, can also carry out according to other random orders, and the embodiment of the present invention is not limited this.
Step 104, according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played.
After above-mentioned steps 101~step 103, can be according to voice data volume corresponding to each sampled point and the sampled point number of sub-time period corresponding to described current channel, carry out the adjusting processing of voice data volume for the sampled point of sub-time period to be played, concrete adjusting processing procedure will be introduced in the following embodiments in detail.
Step 105, judges whether switching channels.If not, return to step 103; If so, return to step 101.
In above-mentioned steps 101, the sampled point of voice data is to receive continuously, if for example watch same channel always, will receive the sampled point of the voice data that this channel is corresponding always.Therefore,, if there is no switching channels, continue the follow-up sub-time period to be played to process by returning to step 103; If switching channels, processes the channel after switching returning to step 101.
It should be noted that, in the implementation of the volume adjusting method of the embodiment of the present invention, whether detection in real time receives shutdown command, if receive shutdown command, can exit current volume adjusting method.
It in the embodiment of the present invention, is no matter the situation during for switching channels, or for the situation that continues under same channel to play, can be by real time voice data volume corresponding to each sampled point being gathered and analyzed, to carry out in real time the adjusting processing of voice data volume, thereby avoid continuing to occur while broadcasting the phenomenon of sound sudden change in the time of switching channels or under same channel, process is simple, highly versatile.
Embodiment bis-:
In the embodiment of the present invention, first the disposed of in its entirety process of voice data is introduced.With reference to Fig. 2, show the schematic diagram of a kind of voice data handling process of the embodiment of the present invention two.This voice data handling process specifically describes as follows:
1, lock current channel by the tuner of tuner (Tuner), and start to receive the data that current channel is corresponding (such as voice data, video data etc.).
2, tuner (Tuner) by the transfer of data receiving to splitter (Demux).
3, by splitter parts, selected voice data is filtered out from TS (Transport Stream, transmission code stream), obtain audio frequency PES (Paketized Elementary Stream, packetized elementary stream).In the analytic process of TS, there is PID (Packet Identifier, bag identity code) such concept, TS is combined by several data, data in a TS bag can be video data, voice data, padding data, etc., the PID that each data type is corresponding unique, for distinguishing other data type, therefore voice data can be filtered out from TS according to PID corresponding to voice data.
4, obtaining, after audio frequency PES (Audio PES), carrying out audio frequency parsing (Audio Parse).
5, resolve by audio frequency, peel off the header information of audio frequency PES, obtain audio ES (Elementary Stream, elementary stream).
6, above-mentioned audio ES (Audio ES) being transferred to decoder (Decoder) decodes, can obtain the sampled point of decoded voice data, it is PCM (Pulse Code Modulation, pulse code modulation) sampling number certificate.TV station is sending when voice data, be by PCM by voice data digitlization, obtain sampled point, and then send these sampled points.PCM form represents audio frequency by three parameters: sample frequency, sampling resolution and channel number.Wherein, sample frequency is sampling frequency, the number of times that refers to obtain each second audio sample, sample frequency is higher, and the quality of audio frequency is also just better, the reduction of audio frequency is also just truer, in 16 sound cards, have 22KHz, 44KHz etc. what, wherein, 22KHz is equivalent to the tonequality of common FM broadcast, 44KHz is equivalent to CD Quality, and current conventional sample frequency is generally all no more than 48KHz.Sampling resolution: i.e. sampled value or sampling value (being exactly by sample amplitude quantizing), it is the parameter changing for weighing sound fluctuation, also can be described as the resolution of sound card, and its numerical value is larger, resolution is also just higher, and the ability of sounding is stronger.Channel number has monophony and stereo dividing, monaural sound can only use a sound horn (sound that is also processed into two loudspeaker and exports same sound channel having), stereoly can make all sounding (general left and right acoustic channels have the division of labor) of two loudspeaker, more can experience Space.
7, the sampled point of voice data is transferred to PCM buffering area 1 (PCM Buffer1).
8, the sampled point of PCM buffering area 1 sound intermediate frequency data is carried out to postposition and process (Post Process) process.In this process, can carry out various conversion process to the sampled point of voice data, such as sample frequency interpolation promotes, audio amplitude adjustment etc.
9, will transfer to PCM buffering area 2 (PCM Buffer2) through the sampled point of the rearmounted voice data of processing.
10, the sampled point of PCM buffering area 2 sound intermediate frequency data is sent to PCM playback equipment (PCM player), obtains digital audio-frequency data.
11, digital audio-frequency data is carried out to D/A conversion (Digital to Analog Converter, digital-to-analog conversion), obtain simulated audio signal.
12, carry out audio frequency output (Audio Output), simulated audio signal is outputed to AV terminal (AV terminal claims again composite terminal, is the terminal for sending video analog signal).
Volume adjusting method in the embodiment of the present invention two can be in above-mentioned Fig. 2 rearmounted processing stage carry out.
With reference to Fig. 3, show the flow chart of a kind of volume adjusting method of the embodiment of the present invention two.This volume adjusting method can comprise the following steps:
Step 301, receives the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding.
In the embodiment of the present invention, in the time watching TV, there is the problem of sound sudden change for fear of user, propose in real time volume to be controlled.In the time that user watches certain television channel, Set Top Box will receive the sampled point of the voice data that current channel is corresponding, therefore the embodiment of the present invention is receiving after the sampled point of the voice data that current channel is corresponding, gather the voice data volume that each sampled point is corresponding, follow-uply can carry out according to these information volume the adjusting processing of volume.
Step 302, determines the sampled point number of the sub-time period that current channel is corresponding.
Carry out volume adjusting processing based on the sub-time period, first can determine the sampled point number of the sub-time period that current channel is corresponding.
In a preferred embodiment of the present invention, the sampled point number that can set the sub-time period that each channel is corresponding is identical, can set in advance the sampled point number of a fixed value as sub-time period corresponding to each channel.Therefore this step 302 is specifically as follows: the sampled point number using the fixed value setting in advance as sub-time period corresponding to current channel.
For the concrete set-up mode of fixed value wherein, those skilled in the art carry out relevant treatment according to practical experience, for example, can say that fixed value is set to 1024,512 etc., and the embodiment of the present invention is not limited this.This kind arranges the mode of fixed value without all calculating for each channel, therefore can simplify volume adjusting process.
In another kind of preferred embodiment of the present invention, can also calculate respectively for each channel the sampled point number of the time period of this channel self correspondence.Therefore this step 302 is specifically as follows: obtain the sample frequency that current channel is corresponding; Calculate within the described sub-time period according to the described sample frequency sampled point number that can obtain of sampling, the sampled point number using described sampled point number as sub-time period corresponding to described current channel.
Because the frequent rate of sampling corresponding to some channel may be different, such as there being 8KHz, 22.05KHz, 32KHz, 44.1KHz, 48KHz etc., like this for the channel of the different sample frequencys of correspondence, the sampled point time used of obtaining same number is different, for example, when sample frequency is 44.1KHz, the time of obtaining 1024 sampled points is probably 230ms (1024/44100 second), and in the time that sample frequency is 22.05KHz, the twice when time of obtaining 024 sampled point is probably 44.1KHz for sample frequency, be not the processing within the identical time period for the adjusting processing procedure of the voice data volume of the channel of the different sample frequencys of correspondence like this, it is processing accuracy difference, thereby cause between channel inconsistent.Therefore, in the preferred embodiment, determine respectively the sampled point number of sub-time period corresponding to current channel for each channel, basic identical to ensure the degree of regulation of each channel, improve the consistency of each channel, promote user and experience.
Step 303, determines the sub-time period to be played.
The sub-time period to be played refers to the sub-time period that will send to sampled point that playback equipment plays and corresponding voice data volume to form.
In a preferred embodiment of the present invention, this step 303 is specifically as follows: according to the sequencing receiving, the sub-time period under the sampled point of the adjusting processing sampled point number of sub-time period described at least one group, that also do not carry out voice data volume is as the sub-time period to be played.
Above-mentioned steps 301, step 302 and step 303 three's execution sequence is not limited to said sequence, and three can executed in parallel, can also carry out according to other random orders, and the embodiment of the present invention is not limited this.
Step 304, according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played.
In the embodiment of the present invention, this step 304 can comprise following sub-step:
Sub-step a1, according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, calculates the volume average of affiliated father's time period of described sub-time period to be played.
Wherein, a father comprises at least one sub-time period the time period.Can, according to the situation of the volume average of the father's time period under the sub-time period to be played, regulate processing to voice data volume corresponding to sampled point in this sub-time period to be played.
In a preferred embodiment of the present invention, this sub-step a1 can comprise following sub-step:
Sub-step a11 according to the sequencing receiving, is receiving after the sampled point of sampled point number of described sub-time period at every turn, calculates the aggregate-value of the voice data volume that described sampled point is corresponding, as the aggregate-value of a sub-time period.
What transmit from PCM buffering area 1 is there is no treated initial data, its expression be level amplitude, and volume essence is the embodiment of energy, therefore level amplitude corresponding to each sampled point is calculated to square value and can obtain the voice data volume that this sampled point is corresponding.Receiving after the sampled point of sampled point number of described sub-time period at every turn, calculate the quadratic sum of the level amplitude of all sampled points of this number, then this quadratic sum is carried out to evolution and obtain root, this root is the aggregate-value of the voice data volume that this sub-time period sampled point is corresponding.
Sub-step a12, from the described sub-time period to be played, in the time that the sub-time period that calculates aggregate-value can form father time period, calculate the mean value of the aggregate-value of all sub-time periods in this father time period, using the described mean value volume average of the father's time period under the described sub-time period to be played divided by the business of the sampled point number gained of described sub-time period.
For example, can set in advance FIFO (First Input First Output, first-in first-out) queue, after the aggregate-value that at every turn calculates a sub-time period, can be saved to this fifo queue, in the time that the sub-time period that calculates aggregate-value in queue can form father time period, the value that recycling has been preserved is calculated.For example, the sampled point number that a sub-time period is set is 1024, a father is set and comprises 20 sub-time periods the time period, and therefore 20 data of a fifo queue storage can be set.
In another kind of preferred embodiment of the present invention, this sub-step a1 can comprise following sub-step:
Sub-step a13, according to the sequencing receiving, receiving after the sampled point of sampled point number of described sub-time period at every turn, calculate the aggregate-value of the voice data volume that described sampled point is corresponding, and calculate the mean value of described aggregate-value, the volume average using the mean value of described aggregate-value as a sub-time period.
Sub-step a14, from the described sub-time period to be played, in the time that the sub-time period that calculates volume average can form father time period, calculate the volume mean of mean of all sub-time periods in this father time period, the volume average of the father's time period using described volume mean of mean under the described sub-time period to be played.
Sub-step a2, the volume average of more described father's time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value.
For the concrete set-up mode of max volume fiducial value and minimal volume fiducial value, those skilled in the art are correlated with to arrange according to practical experience and (for example get final product, according to the value of practical experience statistical calibration, calibrate and determine in the development phase), the embodiment of the present invention is not limited this.
Sub-step a3, if the volume average of described father's time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of described sub-time period to be played.
In a preferred embodiment of the present invention, this sub-step a3 can comprise following sub-step:
Sub-step a31, if the volume average in described father's time period is greater than described max volume fiducial value, turns down voice data volume corresponding to sampled point of described sub-time period to be played.
If the volume average in father's time period is greater than max volume fiducial value, can illustrate that the voice data volume that the sampled point of current sub-time period to be played is corresponding is higher, now need to be turned down.The process of turning down the voice data volume that the sampled point of sub-time period to be played is corresponding can be: calculate volume average in described father's time period divided by the business of described max volume fiducial value gained as gain factor; Voice data volume corresponding each sampled point of described sub-time period to be played, all divided by described gain factor, is obtained to the volume after turning down.
Sub-step a32, if the volume average in described father's time period is less than described minimal volume fiducial value, heightens voice data volume corresponding to sampled point of described sub-time period to be played.
If the volume average in father's time period is less than minimal volume fiducial value, can illustrate that the voice data volume that the sampled point of current sub-time period to be played is corresponding is lower, now need to be heightened.The process of heightening the voice data volume that the sampled point of sub-time period to be played is corresponding can be: calculate described minimal volume fiducial value divided by the business of the volume average in the described father time period as decay factor; Voice data volume corresponding each sampled point of described sub-time period to be played is all multiplied by described decay factor, obtains the volume after heightening.
Sub-step a4, if the volume average of described father's time period is less than or equal to described max volume fiducial value and is more than or equal to described minimal volume fiducial value, does not regulate voice data volume corresponding to sampled point of described sub-time period to be played.
If the volume average of father's time period is less than or equal to max volume fiducial value and is more than or equal to minimal volume fiducial value, can illustrate that the voice data volume that the sampled point of current sub-time period to be played is corresponding is more suitable, now can be not adjusted.
Step 305, is sent to playback equipment by voice data volume corresponding to sampled point that regulates the described sub-time period to be played after treatment.
After the adjusting processing of above-mentioned steps 304 (may for heightening, turn down or not regulating), can make voice data volume corresponding to sampled point of sub-time period to be played remain on a comparatively suitable scope, now voice data volume corresponding to sampled point that regulates the described sub-time period to be played after treatment can be sent to playback equipment, control playback equipment and play according to the volume after prevention, thereby avoid in the problem of watching sound sudden change in process.
Step 306, judges whether switching channels.If not, return to step 303; If so, return to step 301.
In a preferred embodiment of the present invention, can judge whether in the following way switching channels: allocate the buffering area for preserving channel identication in advance, in the time of each switching channels, all can upgrade preserved channel identication, replace it the channel identication of front preservation with the channel identication of current channel, if therefore detect that preserved channel identication changes, and can determine and switch channel.
There is no switching channels if judged, continue the follow-up sub-time period to be played to process by returning to step 303; If judge switching channels, by returning to step 301, the channel after switching is processed.
In the embodiment of the present invention, by real time the sampled point of sub-time period to be played being carried out the prevention of voice data volume, can make to play time, remain at a stable volume range, thereby avoided the phenomenon of sound volume mutation, promote user and experience.And the embodiment of the present invention can solve the unbalanced problem of multichannel volume, also can solve the problem of single channel sound volume mutation.
Embodiment tri-:
Volume adjusting method in the embodiment of the present invention three also can be in above-mentioned Fig. 2 rearmounted processing stage carry out.
With reference to Fig. 4, show the flow chart of a kind of volume adjusting method of the embodiment of the present invention three.This volume adjusting method can comprise the following steps:
Step 401, receives the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding.
Step 402, determines the sampled point number of the sub-time period that current channel is corresponding.
Step 403, determines the sub-time period to be played.
Step 404, according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played.
Step 401~step 404 in the embodiment of the present invention is substantially similar to the step 301~step 304 in above-described embodiment three, and specifically, with reference to the associated description of above-described embodiment three, the embodiment of the present invention is discussed no longer in detail at this.
Step 405, buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period.
In above-mentioned steps 404, may heighten for the voice data volume that the sampled point of sub-time period to be played is corresponding, also may turn down, also may not regulate.But, owing to being that the volume average of the father's time period under sub-time period based on to be played compares in the embodiment of the present invention, and the sub-time period to be played in the front that is just positioned at this father time period regulating, therefore in upper adjustment process once, affiliated father of the father's time period under the sub-time period next to be played and upper sub-time period to be played understands some the time period and overlaps.Therefore which may cause the sound volume mutation that cannot make an immediate response, delay that can be for some time.
For example, in the time watching same channel, this channel is switched to advertisement by TV programme, time corresponding to TV programme is in normal range (NR), and the sound of advertisement becomes suddenly greatly, therefore in the time being just switched to advertisement, the volume average of father's time period under the sub-time period to be played calculating may still be positioned at normal range (NR) (the volume average that is father's time period is less than or equal to described max volume fiducial value and is more than or equal to described minimal volume fiducial value), may also not carry out the adjusting processing of voice data volume this kind of situation at the sampled point when being just switched to advertisement, when being greater than max volume fiducial value, the volume average that goes out father's time period in subsequent calculations just can carry out the adjusting processing of voice data volume for the sampled point receiving.Therefore in this kind of situation, will cause occurring while being just switched to advertisement by TV programme of short duration higher advertisement volume, follow-uply just to tend towards stability, user experiences poor.
For the problems referred to above, the present invention proposes caching mechanism, can set in advance a buffering area, after carrying out the adjusting processing of voice data volume for the sampled point of sub-time period to be played in step 404, first temporarily voice data the volume corresponding sampled point of the sub-time period to be played after prevention is not sent to playback equipment, but buffer memory regulates voice data volume corresponding to sampled point of sub-time period to be played after treatment in buffering area, and record the adjustment state of this sub-time period.Wherein, adjustment state comprises adjusting and does not regulate, refers to whether voice data volume corresponding to sampled point of this sub-time period to be played regulates.
Step 406, according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carries out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before.
In a preferred embodiment of the present invention, this step 406 can comprise following sub-step:
Sub-step b1, if the adjustment state of the sub-time period of current cache is for regulating, the adjustment state of the sub-time period of buffer memory, for not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before.
According to the described content of above-described embodiment three, calculate the volume average of the father's time period under the described sub-time period to be played if adopt the mode of sub-step a11 and sub-step a12 in step 404, can record each numerical value calculating in above-mentioned sub-step a11 and sub-step a12, the volume average of the sub-time period of buffer memory before can further calculating herein.Computational process can be: obtain the aggregate-value of the sub-time period of calculating in sub-step a11, calculate the mean value of described aggregate-value, the volume average using the mean value of described aggregate-value as this sub-time period.Calculate the volume average of the father's time period under the described sub-time period to be played if adopt the mode of sub-step a13 and sub-step a14 in step 404, can record each numerical value calculating in above-mentioned sub-step a13 and sub-step a14, can directly obtain the volume average of the sub-time period of calculating in sub-step a13 herein.
Sub-step b2, the volume average of more described sub-time period and default volume fiducial value.
Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value, can be identical with the volume fiducial value that above-mentioned and volume average father's time period compare.
Sub-step b3, if the volume average of certain sub-time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of this sub-time period.
In a preferred embodiment of the present invention, this sub-step b3 can comprise following sub-step:
Sub-step b31, if the volume average of this sub-time period is greater than described max volume fiducial value, turns down voice data volume corresponding to sampled point of this sub-time period.
The process of turning down the voice data volume that the sampled point of this sub-time period is corresponding can be: calculate volume average in this sub-time period divided by the business of described max volume fiducial value gained as gain factor; Voice data volume corresponding each sampled point of this sub-time period, all divided by described gain factor, is obtained to the volume after turning down.
Sub-step b32, if the volume average of this sub-time period is less than described minimal volume fiducial value, heightens voice data volume corresponding to sampled point of this sub-time period.
The process of heightening the voice data volume that the sampled point of this sub-time period is corresponding can be: calculate described minimal volume fiducial value divided by the business of the volume average in this sub-time period as decay factor; Voice data volume corresponding each sampled point of this sub-time period is all multiplied by described decay factor, obtains the volume after heightening.
Sub-step b4, if the volume average of certain sub-time period is less than or equal to described max volume fiducial value and is more than or equal to described minimal volume fiducial value, does not regulate voice data volume corresponding to sampled point of this sub-time period.
Step 407, is sent to playback equipment by voice data volume corresponding to sampled point of the sub-time period of buffer memory.
After mediating for voice data volume corresponding to sampled point of the sub-time period of buffer memory and processing, voice data volume corresponding to sampled point of the sub-time period of buffer memory can be sent to playback equipment.In the embodiment of the present invention, can successively voice data the volume corresponding sampled point of each sub-time period be sent to playback equipment according to the sequencing of buffer memory, also voice data volume unification corresponding to sampled point of the sub-time period of buffer memory can be sent to playback equipment, the embodiment of the present invention is not limited this.
Step 408, judges whether switching channels.If not, return to step 403; If so, return to step 401.
In the embodiment of the present invention the sampled point of the sub-time period for to be played carry out voice data volume adjusting process after, first temporary cache regulates voice data volume corresponding to sampled point of sub-time period to be played after treatment, follow-up again to each sub-time period of buffer memory processes, the accuracy of the volume adjusting further improving, has promoted user's experience.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
Embodiment tetra-:
With reference to Fig. 5, show the structured flowchart of a kind of volume adjustment device of the embodiment of the present invention four.This volume adjustment device can comprise with lower module:
Acquisition module 501, for receiving the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding;
The first determination module 502, for determining the sampled point number of the sub-time period that current channel is corresponding;
The second determination module 503, for determining the sub-time period to be played;
The first processing module 504, for according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played;
Judge module 505, for judging whether switching channels, if not, calls described the second determination module; If so, call described acquisition module.
In a preferred embodiment of the present invention, this device can also comprise with lower module:
The first sending module, for carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played in described processing module after, voice data volume corresponding to sampled point that regulates the described sub-time period to be played after treatment is sent to playback equipment;
Cache module, for carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played in described processing module after, buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period; Wherein, adjustment state comprises adjusting and does not regulate;
The second processing module, for according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carries out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before;
The second sending module, for being sent to playback equipment by voice data volume corresponding to sampled point of the sub-time period of buffer memory.
In a preferred embodiment of the present invention, described the first determination module can comprise following submodule:
Frequency acquisition submodule, for obtaining the sample frequency that current channel is corresponding;
Number calculating sub module, for calculating within the described sub-time period according to the described sample frequency sampled point number that can obtain of sampling, the sampled point number using described sampled point number as sub-time period corresponding to described current channel.
Described the first processing module can comprise following submodule:
Father's time period calculating sub module, for according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, calculates the volume average of affiliated father's time period of described sub-time period to be played; Wherein, a father comprises at least one sub-time period the time period;
Father's time period comparison sub-module, for the volume average of more described father time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
Father's time period is processed submodule, when being greater than described max volume fiducial value in the volume average of described father time period or being less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of described sub-time period to be played; Otherwise, do not regulate voice data volume corresponding to sampled point of described sub-time period to be played.
Described the second processing module can comprise following submodule:
Sub-time period calculating sub module, for the adjustment state of the sub-time period in current cache, for regulating, the adjustment state of the sub-time period of buffer memory when not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before;
Sub-time period comparison sub-module, for the volume average of more described sub-time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
Sub-time period is processed submodule, when being greater than described max volume fiducial value in the volume average of certain sub-time period or being less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of this sub-time period; Otherwise, do not regulate voice data volume corresponding to sampled point of this sub-time period.
Wherein, described sub-time period processing submodule can comprise following subelement:
First turns down subelement, in the time that the volume average of this sub-time period is greater than described max volume fiducial value, turns down voice data volume corresponding to sampled point of this sub-time period;
First heightens subelement, in the time that the volume average of this sub-time period is less than described minimal volume fiducial value, heightens voice data volume corresponding to sampled point of this sub-time period.
Described father's time period calculating sub module can comprise following subelement:
Aggregate-value computation subunit for the sequencing according to receiving, is receiving after the sampled point of sampled point number of described sub-time period at every turn, calculates the aggregate-value of the voice data volume that described sampled point is corresponding, as the aggregate-value of a sub-time period;
Mean value computation subelement, for from the described sub-time period to be played, in the time that the sub-time period that calculates aggregate-value can form father time period, calculate the mean value of the aggregate-value of all sub-time periods in this father time period, using the described mean value volume average of the father's time period under the described sub-time period to be played divided by the business of the sampled point number gained of described sub-time period.
Described father's time period processes submodule and can comprise following subelement:
Second turns down subelement, while being greater than described max volume fiducial value, turns down voice data volume corresponding to sampled point of described sub-time period to be played for the volume average within the described father time period;
Second heightens subelement, while being less than described minimal volume fiducial value, heightens voice data volume corresponding to sampled point of described sub-time period to be played for the volume average within the described father time period.
Wherein, described second turns down subelement, specifically for calculate volume average in the described father time period divided by the business of described max volume fiducial value gained as gain factor; Voice data volume corresponding each sampled point of described sub-time period to be played, all divided by described gain factor, is obtained to the volume after turning down.Described second heightens subelement, specifically for calculate described minimal volume fiducial value divided by the business of the volume average in the described father time period as decay factor; Voice data volume corresponding each sampled point of described sub-time period to be played is all multiplied by described decay factor, obtains the volume after heightening.
The embodiment of the present invention is by gathering and analyze voice data volume corresponding to each sampled point in real time, can carry out in real time the adjusting processing of voice data volume, thereby avoid continuing to occur while broadcasting the phenomenon of sound sudden change in the time of switching channels or under same channel, process is simple, highly versatile.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
The present invention also provides a kind of Set Top Box, and this Set Top Box can comprise the volume adjustment device described in above-described embodiment four, specifically with reference to the associated description of above-described embodiment four.This Set Top Box can be by gathering and analyze voice data volume corresponding to each sampled point in real time, to carry out in real time the adjusting processing of voice data volume, thereby avoid continuing to occur while broadcasting the phenomenon of sound sudden change in the time of switching channels or under same channel, process is simple, highly versatile, and can promote user's experience.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
The present invention can describe in the general context of computer executable instructions, for example program module.Usually, program module comprises and carries out particular task or realize routine, program, object, assembly, data structure of particular abstract data type etc.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment being connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium including memory device.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
Above to a kind of volume adjusting method provided by the present invention, device and a kind of Set Top Box, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a volume adjusting method, is characterized in that, comprising:
Receive the sampled point of the voice data that current channel is corresponding, and gather the voice data volume that each sampled point is corresponding;
Determine the sampled point number of the sub-time period that current channel is corresponding;
Determine the sub-time period to be played;
According to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played;
Judge whether switching channels, if not, return to the described step of determining the sub-time period to be played; If so, return to the step of the sampled point of the voice data that described reception current channel is corresponding.
2. method according to claim 1, it is characterized in that, described according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, the step of carrying out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played comprises:
According to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, calculate the volume average of affiliated father's time period of described sub-time period to be played; Wherein, a father comprises at least one sub-time period the time period;
The volume average of more described father's time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
If the volume average of described father's time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulate voice data volume corresponding to sampled point of described sub-time period to be played;
Otherwise, do not regulate voice data volume corresponding to sampled point of described sub-time period to be played.
3. method according to claim 2, it is characterized in that, described according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, the step of calculating the volume average of affiliated father's time period of described sub-time period to be played comprises:
According to the sequencing receiving, receiving after the sampled point of sampled point number of described sub-time period at every turn, calculate the aggregate-value of the voice data volume that described sampled point is corresponding, as the aggregate-value of a sub-time period;
From the described sub-time period to be played, in the time that the sub-time period that calculates aggregate-value can form father time period, calculate the mean value of the aggregate-value of all sub-time periods in this father time period, using the described mean value volume average of the father's time period under the described sub-time period to be played divided by the business of the sampled point number gained of described sub-time period.
4. method according to claim 2, is characterized in that, the step of the voice data volume that the sampled point of described sub-time period to be played of described adjusting is corresponding comprises:
If the volume average in described father's time period is greater than described max volume fiducial value, turn down voice data volume corresponding to sampled point of described sub-time period to be played;
If the volume average in described father's time period is less than described minimal volume fiducial value, heighten voice data volume corresponding to sampled point of described sub-time period to be played;
Wherein, the step of turning down the voice data volume that the sampled point of described sub-time period to be played is corresponding described in comprises:
Calculate volume average in described father's time period divided by the business of described max volume fiducial value gained as gain factor;
Voice data volume corresponding each sampled point of described sub-time period to be played, all divided by described gain factor, is obtained to the volume after turning down;
The step of the voice data volume that the described sampled point of heightening the described sub-time period to be played is corresponding comprises:
Calculate described minimal volume fiducial value divided by the business of the volume average in the described father time period as decay factor;
Voice data volume corresponding each sampled point of described sub-time period to be played is all multiplied by described decay factor, obtains the volume after heightening.
5. method according to claim 1, is characterized in that, the step of the sampled point number of the sub-time period that described definite current channel is corresponding comprises:
Obtain the sample frequency that current channel is corresponding;
Calculate within the described sub-time period according to the described sample frequency sampled point number that can obtain of sampling, the sampled point number using described sampled point number as sub-time period corresponding to described current channel.
6. method according to claim 1, is characterized in that, after the described sampled point for the described sub-time period to be played carries out the step of adjusting processing of voice data volume, also comprises:
Buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period;
According to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carry out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before;
Voice data volume corresponding to sampled point of the sub-time period of buffer memory is sent to playback equipment.
7. method according to claim 6, is characterized in that, wherein, described adjustment state comprises adjusting and do not regulate;
Described according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, the step of carrying out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before comprises:
If the adjustment state of the sub-time period of current cache is for regulating, the adjustment state of the sub-time period of buffer memory, for not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before;
The volume average of more described sub-time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
If the volume average of certain sub-time period is greater than described max volume fiducial value or is less than described minimal volume fiducial value, regulate voice data volume corresponding to sampled point of this sub-time period;
Otherwise, do not regulate voice data volume corresponding to sampled point of this sub-time period;
The step of the voice data volume that wherein, the sampled point of described this sub-time period of adjusting is corresponding comprises:
If the volume average of this sub-time period is greater than described max volume fiducial value, turn down voice data volume corresponding to sampled point of this sub-time period;
If the volume average of this sub-time period is less than described minimal volume fiducial value, heighten voice data volume corresponding to sampled point of this sub-time period.
8. a volume adjustment device, is characterized in that, comprising:
Acquisition module, for receiving the sampled point of the voice data that current channel is corresponding, and gathers the voice data volume that each sampled point is corresponding;
The first determination module, for determining the sampled point number of the sub-time period that current channel is corresponding;
The second determination module, for determining the sub-time period to be played;
The first processing module, for according to voice data volume corresponding to described each sampled point and the sampled point number of described sub-time period, carries out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played;
Judge module, for judging whether switching channels, if not, calls described the second determination module; If so, call described acquisition module.
9. device according to claim 8, is characterized in that, also comprises:
Cache module, for carry out the adjusting processing of voice data volume for the sampled point of described sub-time period to be played in described processing module after, buffer memory regulates voice data volume corresponding to sampled point of described sub-time period to be played after treatment, and records the adjustment state of this sub-time period;
The second processing module, for according to the adjustment state of the sub-time period of current cache and the adjustment state of the sub-time period of buffer memory before, carries out the adjusting processing of voice data volume for the sampled point of the sub-time period of buffer memory before;
The second sending module, for being sent to playback equipment by voice data volume corresponding to sampled point of the sub-time period of buffer memory;
Wherein, described adjustment state comprises adjusting and does not regulate;
Described the second processing module comprises:
Sub-time period calculating sub module, for the adjustment state of the sub-time period in current cache, for regulating, the adjustment state of the sub-time period of buffer memory when not regulating, is obtained respectively the described volume average of the sub-time period of buffer memory before before;
Sub-time period comparison sub-module, for the volume average of more described sub-time period and default volume fiducial value; Wherein, described volume fiducial value comprises max volume fiducial value and minimal volume fiducial value;
Sub-time period is processed submodule, when being greater than described max volume fiducial value in the volume average of certain sub-time period or being less than described minimal volume fiducial value, regulates voice data volume corresponding to sampled point of this sub-time period; Otherwise, do not regulate voice data volume corresponding to sampled point of this sub-time period.
10. a Set Top Box, is characterized in that, comprises the volume adjustment device described in any one in as above claim 8-9.
CN201410385493.5A 2014-08-06 2014-08-06 A kind of volume adjusting method, device and a kind of set top box Active CN104168431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410385493.5A CN104168431B (en) 2014-08-06 2014-08-06 A kind of volume adjusting method, device and a kind of set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410385493.5A CN104168431B (en) 2014-08-06 2014-08-06 A kind of volume adjusting method, device and a kind of set top box

Publications (2)

Publication Number Publication Date
CN104168431A true CN104168431A (en) 2014-11-26
CN104168431B CN104168431B (en) 2017-08-25

Family

ID=51912039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410385493.5A Active CN104168431B (en) 2014-08-06 2014-08-06 A kind of volume adjusting method, device and a kind of set top box

Country Status (1)

Country Link
CN (1) CN104168431B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486656A (en) * 2015-01-04 2015-04-01 安徽波维电子科技有限公司 Compensated volume control satellite television set top box and working method thereof
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device
CN105022297A (en) * 2015-07-09 2015-11-04 广东欧珀移动通信有限公司 Sound box parameter configuration method, mobile terminal, server and system
CN105049928A (en) * 2015-07-14 2015-11-11 合一网络技术(北京)有限公司 Method and system for switching television channels, and video processing terminal
WO2017032120A1 (en) * 2015-08-27 2017-03-02 深圳Tcl数字技术有限公司 Playing processing method and apparatus for audio switching
CN107247574A (en) * 2017-07-17 2017-10-13 中科创达软件股份有限公司 A kind of audio output control method and device
CN107967921A (en) * 2017-12-04 2018-04-27 苏州科达科技股份有限公司 The volume adjusting method and device of conference system
CN108966001A (en) * 2018-07-18 2018-12-07 深圳Tcl数字技术有限公司 Television channel volume management-control method, device and storage medium
CN110636329A (en) * 2018-06-22 2019-12-31 视联动力信息技术股份有限公司 Audio data processing method and device
CN112803907A (en) * 2021-03-17 2021-05-14 统信软件技术有限公司 System and method for providing audio playing service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088175A1 (en) * 2001-05-07 2006-04-27 Harman International Industries, Incorporated Sound processing system using spatial imaging techniques
US20080218631A1 (en) * 2007-03-06 2008-09-11 Funai Electric Co., Ltd. Television set and audio output unit
CN101282111A (en) * 2008-06-02 2008-10-08 北京海尔集成电路设计有限公司 Method and system for controlling sound volume adjustment
CN101442636A (en) * 2007-11-20 2009-05-27 康佳集团股份有限公司 Intelligent regulating method and system for television sound volume
CN102724462A (en) * 2012-06-01 2012-10-10 Tcl集团股份有限公司 Volume adjusting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088175A1 (en) * 2001-05-07 2006-04-27 Harman International Industries, Incorporated Sound processing system using spatial imaging techniques
US20080218631A1 (en) * 2007-03-06 2008-09-11 Funai Electric Co., Ltd. Television set and audio output unit
CN101442636A (en) * 2007-11-20 2009-05-27 康佳集团股份有限公司 Intelligent regulating method and system for television sound volume
CN101282111A (en) * 2008-06-02 2008-10-08 北京海尔集成电路设计有限公司 Method and system for controlling sound volume adjustment
CN102724462A (en) * 2012-06-01 2012-10-10 Tcl集团股份有限公司 Volume adjusting method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486656A (en) * 2015-01-04 2015-04-01 安徽波维电子科技有限公司 Compensated volume control satellite television set top box and working method thereof
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device
CN104602045B (en) * 2015-02-12 2017-11-10 三星电子(中国)研发中心 A kind of sound method of automatic configuration, system and device
CN105022297B (en) * 2015-07-09 2017-10-31 广东欧珀移动通信有限公司 A kind of sound box parameter collocation method, mobile terminal
CN105022297A (en) * 2015-07-09 2015-11-04 广东欧珀移动通信有限公司 Sound box parameter configuration method, mobile terminal, server and system
CN105049928A (en) * 2015-07-14 2015-11-11 合一网络技术(北京)有限公司 Method and system for switching television channels, and video processing terminal
WO2017032120A1 (en) * 2015-08-27 2017-03-02 深圳Tcl数字技术有限公司 Playing processing method and apparatus for audio switching
CN107247574A (en) * 2017-07-17 2017-10-13 中科创达软件股份有限公司 A kind of audio output control method and device
CN107967921A (en) * 2017-12-04 2018-04-27 苏州科达科技股份有限公司 The volume adjusting method and device of conference system
CN107967921B (en) * 2017-12-04 2021-09-07 苏州科达科技股份有限公司 Volume adjusting method and device of conference system
CN110636329A (en) * 2018-06-22 2019-12-31 视联动力信息技术股份有限公司 Audio data processing method and device
CN108966001A (en) * 2018-07-18 2018-12-07 深圳Tcl数字技术有限公司 Television channel volume management-control method, device and storage medium
CN112803907A (en) * 2021-03-17 2021-05-14 统信软件技术有限公司 System and method for providing audio playing service

Also Published As

Publication number Publication date
CN104168431B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN104168431A (en) Volume adjusting method and device and set top box
CN101341752B (en) Reproduction device and method
CN109285554B (en) Echo cancellation method, server, terminal and system
CN107566889B (en) Audio stream flow velocity error processing method and device, computer device and computer readable storage medium
CN101808208A (en) Television and method for setting sound effect mode of same
US20110170613A1 (en) Digital broadcast reproduction device and digital broadcast reproduction method
US20130128953A1 (en) Reproduction apparatus, reproduction method, and program
CN102025946B (en) Volume control method and digital television all-in-one machine utilizing same
CN101753112A (en) Sound volume correcting device, sound volume correcting method, sound volume correcting program, and electronic apparatus
WO2015144243A1 (en) Image display device with automatic sound enhancement function
CN103229520A (en) Information processing apparatus, acoustic processing apparatus, acoustic processing system and program
CN101340535B (en) Recording control apparatus and recording system
CN101409724B (en) Contents reproduction system
CN101022548B (en) Method for processing data in a terminal with digital broadcasting receiver
KR20230104553A (en) Method for controll loudness level of audio signl using metadata and apparatus using the same
US20170048584A1 (en) Network set-top box and its operating method
CN109495776A (en) The method and intelligent terminal that a kind of audio sends, plays
CN111352605A (en) Audio playing and sending method and device
CN109218849B (en) Live data processing method, device, equipment and storage medium
CN100508619C (en) Analog/digital audio converter and a method thereof
US8947597B2 (en) Video reproducing device, controlling method of video reproducing device, and control program product
CN114286123A (en) Live broadcast method and device of television program
CN103501457A (en) Method and device for playing programs
CN101350900B (en) Signal processing apparatus for applying AVC to delayed signals and a method thereof
CN110856028B (en) Media data playing method, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant