WO2014067206A1 - Method for automatically controlling channel volume, and digital television terminal - Google Patents

Method for automatically controlling channel volume, and digital television terminal Download PDF

Info

Publication number
WO2014067206A1
WO2014067206A1 PCT/CN2012/086009 CN2012086009W WO2014067206A1 WO 2014067206 A1 WO2014067206 A1 WO 2014067206A1 CN 2012086009 W CN2012086009 W CN 2012086009W WO 2014067206 A1 WO2014067206 A1 WO 2014067206A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio data
target channel
duration
gain coefficient
volume gain
Prior art date
Application number
PCT/CN2012/086009
Other languages
French (fr)
Chinese (zh)
Inventor
叶新民
Original Assignee
深圳创维数字技术股份有限公司
深圳市创维软件有限公司
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 深圳创维数字技术股份有限公司, 深圳市创维软件有限公司 filed Critical 深圳创维数字技术股份有限公司
Publication of WO2014067206A1 publication Critical patent/WO2014067206A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals

Definitions

  • the present invention relates to a digital television technology, and more particularly to a method for automatically controlling a channel volume and a digital television terminal. Background technique
  • a technical problem to be solved by embodiments of the present invention is to provide a method for automatically controlling channel volume and a digital television terminal. It can solve the problem that the digital TV terminal suddenly has a small volume when switching channels or switching programs, improving user experience and reducing production costs.
  • an embodiment of the present invention provides a method for automatically controlling a channel volume, including:
  • the performing the digital sampling of the T1 duration of the original audio data of the cached target channel includes: performing, by the buffered original audio data of the target channel, a digital sampling of the T1 duration; the determining according to the acoustic sound value Calculating the volume gain factor with the user-set loudness value includes:
  • the adjusting the original audio data of the target channel according to the volume gain coefficient comprises: adjusting all original audio data of the target channel according to the volume gain coefficient.
  • the performing the digital sampling of the T1 duration of the original audio data of the buffered target channel includes: performing periodic digital sampling of the T1 duration on the buffered original audio data of the target channel according to the T1 duration;
  • the calculating the volume gain coefficient according to the acoustic sound value and the preset loudness value of the user includes:
  • the adjusting the audio data of the target channel according to the volume gain coefficient comprises:
  • the digital sampling of the T1 duration also includes:
  • the information processing obtains an acoustic sound value, and calculates a volume gain coefficient corresponding to the target channel according to the sound sound value corresponding to the digital sample information of the T1 duration and the loudness value preset by the user, and updates the database.
  • the volume gain coefficient corresponding to the target channel adjusting all original audio data of the target channel according to the volume gain coefficient, and outputting the adjusted audio data of the target channel;
  • the reading is performed The volume gain coefficient corresponding to the target channel in the database, adjusting all original audio data of the target channel according to the volume gain coefficient, and outputting the adjusted audio data of the target channel.
  • the obtaining the acoustic sound value according to the digital sampling information processing of the T1 duration comprises: calculating a difference value between the sound sound value and the preset loudness value of the user; determining whether the difference value is allowed Within the range of values;
  • the step of calculating the volume gain coefficient based on the acoustic sound value and the user-set loudness value is performed.
  • the performing the digital sampling of the T1 duration of the original audio data of the cached target channel includes: performing the audio data according to an audio frequency range that the human ear can perceive and a sensitivity of the human ear to the audio frequency. Digital sampling of the duration of T1.
  • the adjusting the original audio data according to the volume gain coefficient includes:
  • an embodiment of the present invention provides a digital television terminal, including:
  • a sampling module configured to perform digital sampling of the T1 duration of the original audio data of the buffered target channel; and calculate a loudness module, configured to obtain an acoustic sound value according to the digital sampling information processing of the T1 duration; and calculate a coefficient module, configured to perform Calculating the volume gain coefficient by the sound loudness value and the preset loudness value of the user;
  • An adjustment module configured to adjust original audio data of the target channel according to the volume gain coefficient
  • an output module configured to output the adjusted audio data of the target channel.
  • the sampling module includes:
  • a first sampling unit configured to perform one of the original audio data of the cached target channel
  • the calculation coefficient module includes:
  • a first calculating unit configured to calculate, according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the target channel;
  • the adjustment module includes:
  • a first adjusting unit configured to adjust all originals of the target channel according to the volume gain coefficient Audio data.
  • the sampling module includes:
  • a second sampling unit configured to perform periodic digital sampling of the T1 duration on the buffered original audio data in a period of the T1 duration
  • the calculation coefficient module includes:
  • a second calculating unit configured to calculate, according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the digital sampling information of the T1 duration;
  • the adjustment module includes:
  • a second adjusting unit configured to adjust, according to the volume gain coefficient, original audio data of a T1 duration corresponding to the digital sampling information of the T1 duration of the target channel.
  • the digital television terminal further includes:
  • a first determining module configured to determine whether to read the volume gain coefficient corresponding to the target channel in the database
  • Updating the database module configured to notify the first sampling unit to perform digital sampling of the T1 duration on the original audio data of the cached target channel when it is determined not to read the volume gain coefficient corresponding to the target channel in the database
  • the notification calculation loudness value module obtains the acoustic sound value according to the digital sampling information processing of the T1 duration, and notifies the first calculating unit to calculate the sound loudness value corresponding to the digital sampling information of the T1 duration and the preset loudness value of the user.
  • a reading module configured to: when the volume gain coefficient corresponding to the target channel in the database is read, read the volume gain coefficient corresponding to the target channel in the database, and notify the first adjusting unit to The volume gain coefficient adjusts all original audio data of the target channel, and notifies the output module to output the adjusted audio data of the target channel.
  • the digital television terminal includes:
  • Calculating a difference value module configured to calculate a difference value between the sound loudness value and a preset loudness value of the user
  • a second determining module configured to determine whether the difference value is within a range of allowed difference values; When the difference value is not within the allowable difference value range, the notification calculation coefficient module calculates the volume gain coefficient according to the sound sound level value and a loudness value preset by the user.
  • the sampling module includes:
  • a frequency division unit configured to divide the audio frequency into a plurality of frequency bands according to an audio frequency range that the human ear can perceive and a sensitivity of the human ear to the audio frequency, and adopt different sampling rate pairs according to different frequency bands.
  • the original audio data is subjected to digital sampling of the T1 duration.
  • the adjustment module includes:
  • an amplitude adjustment unit configured to adjust an amplitude of the whole original audio data according to the volume gain coefficient or separately adjust an amplitude of original audio data of each of the frequency bands obtained by the dividing and to alias the adjusted audio data of each of the frequency bands .
  • the audio data buffered in the digital television terminal is digitally sampled according to the characteristics of the human ear's sensitivity to sound at different frequencies, and the volume gain coefficient is calculated, and the original audio data of the target channel is adjusted according to the volume gain coefficient.
  • the output of the actual audio data loudness is consistent with the user's preset loudness, which effectively solves the problem that the program volume suddenly becomes small when switching channels or switching programs, and the embodiment of the present invention is the existing existing digital television terminal equipment hardware.
  • the production cost of the digital television terminal having the function of the embodiment of the present invention is effectively reduced, and the embodiment of the present invention automatically
  • the program volume is adjusted to have the least impact on the human ear, which improves the user experience.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for automatically controlling channel volume according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for automatically controlling channel volume according to the present invention
  • FIG. 3 is an automatic diagram of the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a digital television terminal according to the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a digital television terminal according to the present invention.
  • Figure 6 is a block diagram showing the structure of a third embodiment of a digital television terminal of the present invention. detailed description
  • the digital television terminal may be a device having a one-way or two-way digital television function, such as a digital television set top box and a digital television integrated machine.
  • a flow chart of a first embodiment of a method for automatically controlling channel volume is provided. As shown in FIG. 1 , a method for automatically controlling channel volume according to this embodiment includes the following steps:
  • S100 Perform digital sampling of the T1 duration on the original audio data of the buffered target channel.
  • the digital television terminal obtains the pre-decoded audio data of the target channel through a demultiplexer (DMUX), buffers the pre-decoded audio data in the digital television terminal, and pre-processes the audio data.
  • DMUX demultiplexer
  • the human ear has different sensitivity to the sound at each frequency, in order to adjust the volume of the program to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the volume of the program to the human ear. influences. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration.
  • the audio data is digitally sampled.
  • the digital sampling for performing the T1 duration will employ two sampling methods in the present invention.
  • the first method is to perform digital sampling of a T1 duration
  • the second method is to periodically sample digital samples of a period of T1 duration
  • the method corresponds to two embodiments, and will be described in the following second embodiment and third embodiment.
  • the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table: Frequency (Hz) ⁇ 31.5 ⁇ 63 ⁇ 125 ⁇ 250 ⁇ 500 ⁇ 1000 ⁇ 2000 ⁇ 4000 4000 The minimum sampling rate above 63 125 250 500 1000 2000 4000 8000 16000
  • S101 Obtain an acoustic sound value according to the digital sampling information processing of the T1 duration.
  • the sound pressure data of each frequency band is obtained by integrating the sampled data of each frequency band sampled in step S100.
  • the obtained sound pressure data of each frequency band may be directly accumulated by the attenuation weighting process according to the difference of the frequency as the original loudness data of the audio data, and the attenuated data may be adjusted by the technician according to the actual situation.
  • S102 Calculate a volume gain coefficient according to the acoustic sound value and a loudness value preset by a user.
  • the preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
  • the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
  • adjusting the original audio data is adjusted audio data formed by adjusting the amplitude of the entire original audio data according to the volume gain coefficient or separately adjusting the amplitude of the audio data of each frequency band obtained by dividing and dividing the audio data of each frequency band.
  • the adjusted audio data amplitude may be a quotient of the original audio data amplitude and the volume gain coefficient.
  • the audio data of the adjusted target channel is output to the D/A module or the data of the adjusted target channel is transmitted to the peripheral through the digital channel, and then the peripheral is further D/A converted, and then the actual output is performed.
  • Program audio is further D/A converted
  • the digital audio signal is D/A converted, there are one or more stages. Zoom in and play out, because the frequency characteristics of the amplifier circuit are different, so the frequency characteristics can be taken into account when calculating the sound level, and the different weighted attenuation coefficients corresponding to different frequencies can be corrected.
  • the specific method can be the audio amplifier circuit. The digital audio amplitude-frequency characteristic curve before the input and the amplified digital audio amplitude-frequency characteristic curve are sampled and tested, and the difference is obtained, and the linear difference ratio of the sampling points is obtained to correct the weighted attenuation coefficient.
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for automatically controlling channel volume according to the present invention. As shown in FIG. 2, a method for automatically controlling channel volume according to this embodiment includes the following steps:
  • step S201 Determine whether to read the volume gain coefficient corresponding to the target channel in the database. If the determination result is no, step S201 is performed. If the determination result is yes, step S207 is performed.
  • the step may be performed when the target channel is switched, and the digital television terminal system may pop the pop-up window or other manner to allow the user to select whether to read the volume gain coefficient corresponding to the target channel in the database, or further optional, the number
  • the television terminal system automatically determines whether the volume gain coefficient corresponding to the target channel is stored in the database. If the volume gain coefficient corresponding to the target channel is not stored, step S201 is performed, and if the volume gain coefficient corresponding to the target channel is stored, step S207 is performed.
  • S201 Perform a digital sampling of the T1 duration on the buffered original audio data of the target channel.
  • the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration.
  • the audio data is digitally sampled.
  • the sampling method used in the present embodiment to perform digital sampling of the T1 duration is to perform digital sampling of a T1 duration.
  • the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table.
  • Frequency (Hz) ⁇ 31.5 ⁇ 63 ⁇ 125 ⁇ 250 ⁇ 500 ⁇ 1000 ⁇ 2000 ⁇ 4000 4000
  • S203 Calculate a difference value between the acoustic sound value and the preset loudness value of the user.
  • the difference value is an absolute value of the difference between the acoustic loudness value and the user-set loudness value.
  • step S204 Determine whether the difference value is within a range of allowed difference values. If the determination result is no, step S205 is performed.
  • all the audio data of the target channel is output without pre-processing, that is, all the original audio data of the target channel is output.
  • the allowed difference value range is greater than or equal to Odb and less than or equal to 2db.
  • S205 Calculate a volume gain coefficient corresponding to the target channel according to an acoustic sound value corresponding to the digital sampling information of the T1 duration and a loudness value preset by the user.
  • the preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
  • the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
  • the calculated volume gain coefficient corresponding to the target channel is a volume gain coefficient corresponding to the audio data of the entire target channel.
  • the digital television terminal if the digital television terminal switches to play the Shenzhen Wei video channel, the digital television terminal replaces the volume gain coefficient corresponding to the Shenzhen Wei video channel calculated in step S205 with the existing volume gain coefficient corresponding to the Shenzhen Wei video channel in the database or The volume gain coefficient corresponding to the Shenzhen Wei video channel is saved in the database, and the volume gain coefficient of the channel calculated this time can be configured to adjust the volume of the program when the next time the switch to the Shenzhen Satellite TV information is received.
  • S207 Read the volume gain coefficient corresponding to the target channel in the database.
  • the step S208 is performed after the step of reading the volume gain coefficient corresponding to the target channel in the database is performed.
  • Adjust all original audio data of the target channel according to the volume gain coefficient is to adjust the amplitude of the entire original audio data according to the volume gain coefficient or separately adjust the amplitude of the original audio data of each of the frequency bands obtained by the dividing and aliasing
  • the adjusted audio data formed by the audio data of each frequency band, wherein the adjusted audio data amplitude may be a quotient of the original audio data amplitude and the volume gain coefficient.
  • all the original audio data of the target channel is adjusted according to the volume gain coefficient corresponding to the target channel in the database updated in step S206 or by reading a volume gain coefficient corresponding to the target channel in the database according to step S207.
  • the volume gain coefficient corresponding to Shenzhen Satellite TV is obtained according to step S206 or step S207, and all audio data of the Shenzhen Wei video channel is adjusted according to the volume gain coefficient.
  • step S202 and S209 reference may be made to the detailed description of step S101 and step S104 of the embodiment shown in FIG. 1, which is not described herein.
  • a flow chart of a third embodiment of a method for automatically controlling channel volume is provided. As shown in FIG. 3, a method for automatically controlling channel volume according to this embodiment includes the following steps:
  • S300 Perform periodic digital sampling of the T1 duration on the buffered original audio data of the target channel in a period of the T1 duration.
  • the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration.
  • the audio data is digitally sampled.
  • the sampling method used for the digital sampling of the T1 duration in the present embodiment is a periodic digital sampling with a period of T1 duration.
  • the original audio data of the cached target channel is continuously updated according to user needs.
  • the original audio data is buffered until the user switches channels or shuts down.
  • the periodic digital samples of the T1 duration sample the buffered original audio data including the updated original audio data until the user switches channels or shuts down, and the sampling is stopped.
  • the sampled T1 duration raw audio data is not completely resampled.
  • the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
  • step S304 Determine whether the difference value is within a range of allowed difference values. If the determination result is no, step S304 is performed.
  • the original audio data of the T1 duration corresponding to the digital sample information of the T1 duration is output without pre-processing. That is, the original audio data of the T1 duration corresponding to the digital sample information of the T1 duration is output.
  • S304 Calculate, according to the acoustic sound value corresponding to the digital sample information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the digital sample information of the T1 duration.
  • the preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example, the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
  • the volume gain coefficient may be a quotient of the sound loudness value and a loudness value preset by the user.
  • the calculated volume gain coefficient corresponding to the digital sampling information of the T1 duration is a volume gain coefficient of the original audio data of the T1 duration corresponding to the digital sampling information of the target channel T1 duration.
  • S305 Adjust original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the target channel according to the volume gain coefficient.
  • the original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the adjustment target channel is obtained by dividing the amplitude of the whole original audio data of the T1 duration according to the volume gain coefficient or separately adjusting the original audio data of the T1 duration.
  • the adjusted T1 duration audio data formed by the amplitude of the audio data of each frequency band and the audio data of each frequency band is formed, wherein the adjusted audio data amplitude can be the quotient of the original audio data amplitude and the volume gain coefficient.
  • the original audio data of the T1 duration corresponding to the digital sampling information of the T1 duration of the target channel is adjusted according to a volume gain coefficient corresponding to the digital sampling information of the T1 duration calculated in step S304.
  • a volume gain coefficient corresponding to the digital sampling information of the T1 duration calculated in step S304.
  • the next volume gain coefficient corresponding to the digital sampling information of the next T1 duration adjusts the original audio data of the T1 duration corresponding to the digital sampling information of the next T1 duration of the Shenzhen TV channel, and thus adjusts the T1 duration as the adjustment period until the user Switch to other channels or shut down to stop the adjustment, this adjustment method can effectively solve the difference in the volume of different programs on the same channel, for example: the difference in volume between TV dramas and interstitial ads.
  • Step S301 and step S306 can be referred to step S101 and step S104 of the embodiment shown in FIG. 1.
  • Step S302 can be referred to step S202 of the embodiment shown in FIG. 2, and details are not described herein.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a digital television terminal according to the present invention.
  • a digital television terminal according to this embodiment includes:
  • the sampling module 100 is configured to perform a T1 duration number on the original audio data of the cached target channel. Sampling.
  • the digital television terminal obtains the pre-decoded audio data of the target channel through a demultiplexer (DMUX), buffers the pre-decoded audio data in the digital television terminal, and pre-processes the audio data.
  • DMUX demultiplexer
  • the digital sampling of the T1 duration may be based on the audio frequency range perceived by the human ear and the sensitivity of the human ear to the audio frequency, and the audio frequency is divided into multiple frequency bands, and different sampling rates are used according to different frequency bands.
  • the duration of the audio data is digitally sampled.
  • the digital sampling for performing the T1 duration will use two sampling units in the embodiment, the first sampling unit is performing digital sampling of a T1 duration, and the second sampling unit is a periodic number with a period of T1 duration. Sampling, two units correspond to two embodiments, which will be described in the following second embodiment and third embodiment.
  • the T1 duration cocoa reference is between 20MS and 1S, and the T1 duration may be different for different applications.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
  • the loudness module 200 is configured to obtain an acoustic sound value according to the digital sampling information processing of the T1 duration.
  • the calculated loudness module 200 is the sound pressure data of each frequency band obtained by integrating the sampling data of the respective frequency bands sampled by the sampling module 100.
  • the obtained sound pressure data of each frequency band may be directly accumulated by the attenuation weighting process according to the difference of the frequency as the original loudness data of the audio data, and the attenuated data may be adjusted by the technician according to the actual situation.
  • Calculating a coefficient module 300 configured to calculate, according to the acoustic sound value and a preset loudness value of the user The volume gain factor is output.
  • the preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
  • the volume gain coefficient is a quotient of the sound loudness value and a preset loudness value of the user.
  • the adjustment module 400 is configured to adjust the original audio data according to the volume gain coefficient.
  • the adjustment module 400 is an adjusted audio data formed by adjusting the amplitude of the whole original audio data according to the volume gain coefficient or separately adjusting the amplitude of the audio data of each frequency band obtained by dividing and dividing the audio data of each frequency band.
  • the adjusted audio data amplitude is a quotient of the original audio data amplitude and the volume gain coefficient.
  • the output module 500 is configured to output the adjusted audio data of the target channel.
  • the audio data of the target channel adjusted by the adjustment module 400 is output to the D/A module or the data of the adjusted target channel is transmitted to the peripheral through the digital channel, and then the peripheral is further D/A converted. , then output the actual program audio.
  • the digital audio signal is subjected to D/A conversion, it is further amplified by one or more stages, because the frequency characteristics of the amplification circuit of different audios are also different, so when calculating the sound level Taking the frequency characteristics into consideration, correcting the different weighted attenuation coefficients corresponding to different frequencies.
  • the specific method can sample and test the digital audio amplitude-frequency characteristic curve and the amplified digital audio amplitude-frequency characteristic curve before the input of the audio amplification circuit, and compare the differences. , the linear difference ratio of the sampling points is obtained to correct the weighted attenuation coefficient.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a digital television terminal according to the present invention.
  • a digital television terminal according to this embodiment includes:
  • the sampling module 100 the calculation loudness module 200, the calculation coefficient module 300, the adjustment module 400, and the output module 500.
  • the digital television terminal may further include:
  • the first determining module 101 is configured to determine whether to read the volume gain coefficient corresponding to the target channel in the database, and if the determination result is no, notify the first sampling unit 10 of the original sound of the cached target channel.
  • the frequency data is subjected to digital sampling of the T1 duration. If the determination result is yes, the notification reading module 201 reads the volume gain coefficient corresponding to the target channel in the database.
  • the first determining module 101 can start executing when the target channel is switched, and the digital television terminal system can use a pop-up window or other manner to allow the user to select whether to read the volume gain coefficient corresponding to the target channel in the database, or further Optionally, the digital television terminal system automatically determines whether the volume gain coefficient corresponding to the target channel is stored in the database, and if not, notifying the first sampling unit 10 to perform a digital sampling of the T1 duration of the original audio data of the buffered target channel, if If yes, the notification reading module 201 reads the volume gain coefficient corresponding to the target channel in the database.
  • the reading module 201 is configured to read the volume gain coefficient corresponding to the target channel in the database. After the reading module 201 reads the volume gain coefficient corresponding to the target channel in the database, the first adjusting unit 50 is notified to adjust all the original audio data of the target channel according to the volume gain coefficient.
  • the difference calculation module 301 is configured to calculate a difference value between the sound loudness value and a loudness value preset by the user.
  • the difference value is an absolute value of the difference between the acoustic loudness value and the user-set loudness value.
  • the second determining module 401 is configured to determine whether the difference value is within the allowed difference value range. If the second determining unit 401 determines that the result is no, the first calculating unit 30 is notified to correspond to the digital sampling information of the T1 duration. The sound loudness value and the preset loudness value of the user calculate a volume gain coefficient corresponding to the target channel.
  • the second judging module 401 determines YES, the original audio data of the target channel does not need to be pre-processed.
  • the allowed difference value range is greater than or equal to Odb and less than or equal to 2db.
  • the update database module 501 is configured to update the volume gain coefficient corresponding to the target channel in the database.
  • the digital television terminal if the digital television terminal switches to play the Shenzhen Wei video channel, the digital television terminal replaces the volume gain coefficient corresponding to the Shenzhen Wei video channel calculated by the first calculating unit 30 with the existing volume corresponding to the Shenzhen Wei video channel in the database.
  • the sampling module 100 may further include:
  • the first sampling unit 10 is configured to perform digital sampling of the original audio data of the buffered target channel by a T1 duration.
  • the simple sound can be used to measure the current sound according to the sound intensity of the audio.
  • the size for example, is processed differently according to audio data of different frequencies to reduce the influence of the program volume on the human ear. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration.
  • the audio data is digitally sampled.
  • the sampling method used in the present embodiment to perform digital sampling of the T1 duration is to perform digital sampling of a T1 duration.
  • the T1 duration can be referenced between 20MS and 1S, and is selected for different applications.
  • the duration of T1 may not be the same.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
  • the frequency division unit 20 is configured to divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use the different sampling rates according to different frequency bands to the original audio data. Digital sampling of the T1 duration is performed.
  • the calculation coefficient module 300 may further include:
  • the first calculating unit 30 is configured to calculate a volume gain coefficient corresponding to the target channel according to an acoustic sound value corresponding to the digital sampling information of the T1 duration and a loudness value preset by the user.
  • the first calculating unit 30 calculates the volume gain coefficient corresponding to the target channel according to the acoustic sound value corresponding to the digital sampling information of the T1 duration calculated by the loudness module 200 and the loudness value preset by the user.
  • the preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example: volume 23 sound corresponds to a standard loudness data, volume 24 sounds correspond to another standard data, others are not Different volume levels correspond to different standard loudness data, and different users choose to adapt to their loudness by selecting different volume.
  • the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
  • the calculated volume gain coefficient corresponding to the target channel is a volume gain coefficient corresponding to the audio data of the entire target channel.
  • the adjusting unit 400 may further include:
  • the amplitude adjustment unit 40 is configured to adjust an amplitude of the whole original audio data according to the volume gain coefficient or separately adjust an amplitude of the original audio data of each of the frequency bands obtained by the division, and alias the adjustment of each of the frequency bands Audio data.
  • the adjusted audio data amplitude can be a quotient of the original audio data amplitude and the volume gain coefficient.
  • the first adjusting unit 50 is configured to adjust all the original audio data of the target channel according to the volume gain coefficient.
  • the first adjustment unit 50 adjusts all of the original audio data of the target channel in accordance with the amplitude adjustment unit 40.
  • all the original audio data of the target channel is adjusted according to the reading module 201 reading a volume gain coefficient corresponding to the target channel in the database or updating the volume gain coefficient corresponding to the target channel in the database updated by the database module 501.
  • the volume gain coefficient corresponding to Shenzhen Satellite TV is obtained according to the update database module 501 or the reading module 201, and all the Shenzhen Wei video channels are adjusted according to the volume gain coefficient. Audio data.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a digital television terminal according to the present invention.
  • a digital television terminal according to this embodiment includes:
  • the sampling module 100 may further include:
  • the second sampling unit 60 is configured to perform periodic digital sampling of the T1 duration on the original audio data of the buffered target channel in a period of the T1 duration.
  • the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration.
  • the audio data is digitally sampled.
  • the sampling method used for the digital sampling of the T1 duration in the present embodiment is a periodic digital sampling with a period of T1 duration.
  • the original audio data of the cached target channel is updated according to the user's needs to continuously update the buffered original audio data until the user switches channels or shuts down, and the periodic digital sample of the T1 duration buffers the original audio data of the cache including the updated original audio data. Sampling is performed until the user switches channels or shuts down to stop sampling, wherein the periodic sampling of the T1 duration does not completely resample the sampled T1 duration raw audio data.
  • the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
  • the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
  • the calculation coefficient module 300 may further include:
  • the second calculating unit 70 is configured to calculate a volume gain coefficient corresponding to the digital sampling information of the T1 duration according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user.
  • the preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example, the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data, and other different volume levels correspond to different standard loudness data. Different users select different volume levels. Choose to adapt to your own loudness.
  • the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
  • the calculated volume gain coefficient corresponding to the digital sampling information of the T1 duration is a volume gain coefficient of the original audio data of the T1 duration corresponding to the digital sampling information of the target channel T1 duration.
  • the adjustment module 400 can further include:
  • the second adjusting unit 80 is configured to adjust the T1 duration raw audio data corresponding to the data sampling information of the T1 duration of the target channel according to the volume gain coefficient.
  • the second adjusting unit 80 adjusts the original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the target channel according to the amplitude adjusting unit 40.
  • the second adjusting unit 80 adjusts the T1 duration raw audio data corresponding to the T1 duration data sampling information of the target channel according to a volume gain coefficient corresponding to the T1 duration data sampling information calculated by the second calculating unit 70. For example, in a practical application, if the digital television terminal switches to play the Shenzhen Wei video channel, the second calculating unit 70 calculates the volume gain coefficient corresponding to the original audio data of the Shenzhen Satellite TV T1 duration, and adjusts the Shenzhen Wei video channel according to the volume gain coefficient.
  • the digital sampling information of the T1 duration corresponds to the original audio data of the T1 duration, and then the digital television terminal obtains another volume gain coefficient corresponding to the digital sampling information of another T1 duration of the Shenzhen Satellite TV according to the second calculating unit 70, according to the other Another volume gain coefficient corresponding to the digital sampling information of the T1 duration adjusts the original sampling data of the T1 duration of the digital sampling information of another T1 duration of the Shenzhen Wei video channel, so that the T1 duration is adjusted for the adjustment period until the user switches to Other channels or shutdown to stop adjusting this adjustment method can effectively solve the problem of different program volume differences of the same channel, for example: the difference in volume between TV dramas and interstitial advertisements.
  • the present invention has the following advantages:
  • the audio data buffered in the digital television terminal is digitally sampled according to the characteristics of the human ear's sensitivity to sound at different frequencies, and the volume gain coefficient is calculated, and the original audio data of the target channel is adjusted according to the volume gain coefficient.
  • the output of the actual audio data loudness is consistent with the user's preset loudness, which effectively solves the problem that the program volume suddenly becomes small when switching channels or switching programs, and the embodiment of the present invention is the existing existing digital television terminal equipment hardware.
  • the volume of the program is pre-processed to automatically adjust the volume of different programs to the standard volume, effectively reducing the production cost of the digital television terminal having the function of the embodiment of the present invention, and the embodiment of the present invention automatically adjusts the volume of the program to It has the least impact on the human ear and improves the user experience.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed is a method for automatically controlling the channel volume, comprising: performing digital sampling on buffered original audio data of a target channel for T1 duration; processing an obtained sound loudness value according to the digital sampling information obtained after T1-duration sampling; calculating the volume gain coefficient according to the sound loudness value and a loudness value preset by the user; adjusting the original audio data of the target channel according to the volume gain coefficient; and outputting the adjusted audio data of the target channel. Also disclosed is a digital television terminal. The present invention solves the problem that the program volume is suddenly large or small when the channel or program is switched during playing of the program, thereby improving the user experience and reducing the production cost.

Description

一种自动控制频道音量的方法及数字电视终端 技术领域  Method for automatically controlling channel volume and digital television terminal
本发明涉及一种数字电视技术, 尤其涉及一种自动控制频道音量的方法及 数字电视终端。 背景技术  The present invention relates to a digital television technology, and more particularly to a method for automatically controlling a channel volume and a digital television terminal. Background technique
随着数字电视的快速发展, 数字电视以其精彩的内容、 丰富的节目、 清晰 的图像以及更方便用户收视等优点深受大众欢迎, 在生活中越来越普及。 但同 时也存在一些问题, 由于数字电视节目的来源不同, 机顶盒在播放节目时, 不 同频道播放的节目音量大小差别较大, 且也存在同个频道不同时段播放的节目 例如电视剧和插播广告之间的音量差异也非常大, 这导致切换频道或切换节目 时节目音量突大突小, 严重影响了用户的体验。  With the rapid development of digital TV, digital TV has been well received by the public for its wonderful content, rich programs, clear images and more convenient user viewing. It is becoming more and more popular in life. However, there are also some problems. Due to the different sources of digital TV programs, when the set-top box plays the program, the volume of the programs played by different channels differs greatly, and there are also programs that are played in different channels of the same channel, such as TV dramas and interstitials. The volume difference is also very large, which leads to a sudden increase in the volume of the program when switching channels or switching programs, which seriously affects the user experience.
为解决以上问题, 部分有技术和经济实力的电视服务运营商采购新设备, 对所有拟提供的音视频节目统一进行了重新编码处理, 将各个节目的数字音量 都调成统一大小的音量, 之后再广播出去, 这样就能保证用户在收看节目过程 中各个频道间的节目声音一致。 但是, 由于需要新增设备支持, 很多电视服务 运营商是没有经济条件实施的, 且实际上这仍然没解决在同个频道不同时段的 节目音量突大突小的问题, 例如电视剧和插播的广告之间的音量差异的问题。 发明内容  In order to solve the above problems, some TV service operators with technical and economic strength purchase new equipment, re-encode all the audio and video programs to be provided, and adjust the digital volume of each program to a uniform volume. Broadcast again, this will ensure that the user's program sounds consistent between channels during the program. However, due to the need for new device support, many TV service operators have no economic conditions to implement, and in fact, this still does not solve the problem of sudden bursts of programs in different channels of the same channel, such as TV dramas and interstitial ads. The problem of the difference in volume. Summary of the invention
本发明实施例所要解决的技术问题在于, 提供一种自动控制频道音量的方 法及数字电视终端。 可解决数字电视终端在切换频道或切换节目时节目音量突 大突小问题, 提高用户体验度, 并降低生产成本。  A technical problem to be solved by embodiments of the present invention is to provide a method for automatically controlling channel volume and a digital television terminal. It can solve the problem that the digital TV terminal suddenly has a small volume when switching channels or switching programs, improving user experience and reducing production costs.
为了解决上述技术问题, 一方面, 本发明实施例提供了一种自动控制频道 音量的方法, 包括:  In order to solve the above technical problem, in one aspect, an embodiment of the present invention provides a method for automatically controlling a channel volume, including:
对緩存的目标频道的原始音频数据进行 T1时长的数字采样;  Performing digital sampling of the T1 duration on the original audio data of the cached target channel;
根据所述 T1时长的数字采样信息处理获得声音响度值;  Obtaining an acoustic sound value according to the digital sampling information processing of the T1 duration;
根据所述声音响度值和用户预先设置的响度值计算出音量增益系数; 根据所述音量增益系数调节所述目标频道的原始音频数据; 输出调节后的所述目标频道的音频数据。 Calculating a volume gain coefficient according to the acoustic sound value and a loudness value preset by a user; adjusting original audio data of the target channel according to the volume gain coefficient; The adjusted audio data of the target channel is output.
其中,所述对緩存的目标频道的原始音频数据进行 T1时长的数字采样包括: 对緩存的所述目标频道的原始音频数据进行一个所述 T1时长的数字采样; 所述根据所述声音响度值和用户预先设置的响度值计算出音量增益系数包 括:  The performing the digital sampling of the T1 duration of the original audio data of the cached target channel includes: performing, by the buffered original audio data of the target channel, a digital sampling of the T1 duration; the determining according to the acoustic sound value Calculating the volume gain factor with the user-set loudness value includes:
根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先设置的 响度值计算出所述目标频道对应的音量增益系数;  Calculating a volume gain coefficient corresponding to the target channel according to an acoustic sound value corresponding to the digital sampling information of the T1 duration and a loudness value preset by the user;
所述根据所述音量增益系数调节所述目标频道的原始音频数据包括: 根据所述音量增益系数调节所述目标频道的所有原始音频数据。  The adjusting the original audio data of the target channel according to the volume gain coefficient comprises: adjusting all original audio data of the target channel according to the volume gain coefficient.
其中,所述对緩存的目标频道的原始音频数据进行 T1时长的数字采样包括: 以所述 T1 时长为周期对緩存的所述目标频道的原始音频数据进行所述 T1 时长的周期数字采样;  The performing the digital sampling of the T1 duration of the original audio data of the buffered target channel includes: performing periodic digital sampling of the T1 duration on the buffered original audio data of the target channel according to the T1 duration;
所述根据所述声音响度值和用户预先设置的响度值计算出音量增益系数包 括:  The calculating the volume gain coefficient according to the acoustic sound value and the preset loudness value of the user includes:
根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先设置的 响度值计算出所述 T1时长的数字采样信息对应的音量增益系数;  Calculating a volume gain coefficient corresponding to the digital sampling information of the T1 duration according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user;
所述根据所述音量增益系数调节所述目标频道的音频数据包括:  The adjusting the audio data of the target channel according to the volume gain coefficient comprises:
根据所述音量增益系数调节所述目标频道的所述 T1时长的数字采样信息对 应的 T1时长的原始音频数据。  Adjusting the original audio data of the T1 duration corresponding to the digital sampling information of the T1 duration of the target channel according to the volume gain coefficient.
其中, 所述根据所述对緩存的所述目标频道的原始音频数据进行一个所述 The performing, according to the original audio data of the target channel that is cached,
T1时长的数字采样之前还包括: The digital sampling of the T1 duration also includes:
判断是否读取数据库中所述目标频道对应的所述音量增益系数;  Determining whether to read the volume gain coefficient corresponding to the target channel in the database;
当判断为不读取数据库中所述目标频道对应的所述音量增益系数时, 对緩 存的所述目标频道的原始音频数据进行一个所述 T1时长的数字采样,根据所述 T1 时长的数字采样信息处理获得声音响度值, 根据所述 T1 时长的数字采样信 息对应的所述声音响度值和所述用户预先设置的响度值计算出所述目标频道对 应的音量增益系数, 更新所述数据库中所述目标频道对应的所述音量增益系数, 根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并输出调节后 的所述目标频道的音频数据;  When it is determined that the volume gain coefficient corresponding to the target channel in the database is not read, performing digital sampling of the T1 duration on the buffered original audio data of the target channel, and performing digital sampling according to the T1 duration The information processing obtains an acoustic sound value, and calculates a volume gain coefficient corresponding to the target channel according to the sound sound value corresponding to the digital sample information of the T1 duration and the loudness value preset by the user, and updates the database. The volume gain coefficient corresponding to the target channel, adjusting all original audio data of the target channel according to the volume gain coefficient, and outputting the adjusted audio data of the target channel;
当判断为读取数据库中所述目标频道对应的所述音量增益系数时, 读取所 述数据库中所述目标频道对应的所述音量增益系数, 根据所述音量增益系数调 节所述目标频道的所有原始音频数据, 输出调节后的所述目标频道的音频数据。 When it is determined that the volume gain coefficient corresponding to the target channel in the database is read, the reading is performed The volume gain coefficient corresponding to the target channel in the database, adjusting all original audio data of the target channel according to the volume gain coefficient, and outputting the adjusted audio data of the target channel.
其中,所述根据所述 T1时长的数字采样信息处理获得声音响度值之后包括: 计算所述声音响度值和所述用户预先设置的响度值之间的差异值; 判断所述差异值是否在允许的差异值范围内;  The obtaining the acoustic sound value according to the digital sampling information processing of the T1 duration comprises: calculating a difference value between the sound sound value and the preset loudness value of the user; determining whether the difference value is allowed Within the range of values;
当所述差异值不在所述允许的差异值范围内时, 执行根据所述声音响度值 和用户预先设置的响度值计算出音量增益系数步骤。  When the difference value is not within the allowable difference value range, the step of calculating the volume gain coefficient based on the acoustic sound value and the user-set loudness value is performed.
其中,所述对緩存的目标频道的原始音频数据进行 T1时长的数字采样包括: 根据人耳能感知到的音频频率范围和人耳对所述音频频率的敏感度将所述 音频数据进行所述 T1时长的数字采样。  The performing the digital sampling of the T1 duration of the original audio data of the cached target channel includes: performing the audio data according to an audio frequency range that the human ear can perceive and a sensitivity of the human ear to the audio frequency. Digital sampling of the duration of T1.
其中, 所述根据所述音量增益系数调节所述原始音频数据包括:  The adjusting the original audio data according to the volume gain coefficient includes:
根据所述音量增益系数调节整体所述原始音频数据的幅度或分别调节所述 划分得到的各个所述频段的原始音频数据的幅度并混叠各个所述频段的调节后 的音频数据。  Adjusting the amplitude of the entire original audio data according to the volume gain coefficient or separately adjusting the amplitude of the original audio data of each of the divided bands obtained by the division and aliasing the adjusted audio data of each of the frequency bands.
另一方面, 本发明的实施例提供了一种数字电视终端, 包括:  In another aspect, an embodiment of the present invention provides a digital television terminal, including:
采样模块,用于对緩存的目标频道的原始音频数据进行 T1时长的数字采样; 计算响度模块,用于根据所述 T1时长的数字采样信息处理获得声音响度值; 计算系数模块, 用于根据所述声音响度值和用户预先设置的响度值计算出 音量增益系数;  a sampling module, configured to perform digital sampling of the T1 duration of the original audio data of the buffered target channel; and calculate a loudness module, configured to obtain an acoustic sound value according to the digital sampling information processing of the T1 duration; and calculate a coefficient module, configured to perform Calculating the volume gain coefficient by the sound loudness value and the preset loudness value of the user;
调节模块, 用于根据所述音量增益系数调节所述目标频道的原始音频数据; 输出模块, 用于输出调节后的所述目标频道的音频数据。  An adjustment module, configured to adjust original audio data of the target channel according to the volume gain coefficient; and an output module, configured to output the adjusted audio data of the target channel.
其中, 所述采样模块包括:  The sampling module includes:
第一采样单元, 用于对緩存的所述目标频道的原始音频数据进行一个所述 a first sampling unit, configured to perform one of the original audio data of the cached target channel
T1时长的数字采样; Digital sampling of the duration of T1;
所述计算系数模块包括:  The calculation coefficient module includes:
第一计算单元, 用于根据所述 T1时长的数字采样信息对应的声音响度值和 所述用户预先设置的响度值计算出所述目标频道对应的音量增益系数;  a first calculating unit, configured to calculate, according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the target channel;
所述调节模块包括:  The adjustment module includes:
第一调节单元, 用于根据所述音量增益系数调节所述目标频道的所有原始 音频数据。 a first adjusting unit, configured to adjust all originals of the target channel according to the volume gain coefficient Audio data.
其中, 所述采样模块包括:  The sampling module includes:
第二采样单元, 用于以所述 T1时长为周期对緩存的所述目标频道的原始音 频数据进行所述 T1时长的周期数字采样;  a second sampling unit, configured to perform periodic digital sampling of the T1 duration on the buffered original audio data in a period of the T1 duration;
所述计算系数模块包括:  The calculation coefficient module includes:
第二计算单元, 用于根据所述 T1时长的数字采样信息对应的声音响度值和 所述用户预先设置的响度值计算出所述 T1时长的数字采样信息对应的音量增益 系数;  a second calculating unit, configured to calculate, according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the digital sampling information of the T1 duration;
所述调节模块包括:  The adjustment module includes:
第二调节单元, 用于根据所述音量增益系数调节所述目标频道的所述 T1时 长的数字采样信息对应的 T1时长的原始音频数据。  And a second adjusting unit, configured to adjust, according to the volume gain coefficient, original audio data of a T1 duration corresponding to the digital sampling information of the T1 duration of the target channel.
其中, 其特征在于, 所述数字电视终端还包括:  The digital television terminal further includes:
第一判断模块, 用于判断是否读取数据库中所述目标频道对应的所述音量 增益系数;  a first determining module, configured to determine whether to read the volume gain coefficient corresponding to the target channel in the database;
更新数据库模块, 用于当判断为不读取数据库中所述目标频道对应的所述 音量增益系数时, 通知第一采样单元对緩存的目标频道的原始音频数据进行一 个所述 T1时长的数字采样, 通知计算响度值模块根据所述 T1时长的数字采样 信息处理获得声音响度值,通知第一计算单元根据所述 T1时长的数字采样信息 对应的声音响度值和所述用户预先设置的响度值计算出所述目标频道对应的音 量增益系数, 更新所述数据库中所述目标频道对应的所述音量增益系数, 通知 第一调节单元根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并通知输出模块输出调节后的所述目标频道的音频数据;  Updating the database module, configured to notify the first sampling unit to perform digital sampling of the T1 duration on the original audio data of the cached target channel when it is determined not to read the volume gain coefficient corresponding to the target channel in the database And the notification calculation loudness value module obtains the acoustic sound value according to the digital sampling information processing of the T1 duration, and notifies the first calculating unit to calculate the sound loudness value corresponding to the digital sampling information of the T1 duration and the preset loudness value of the user. And outputting, by the volume adjustment coefficient corresponding to the target channel, the volume gain coefficient corresponding to the target channel in the database, and notifying the first adjustment unit to adjust all original audio data of the target channel according to the volume gain coefficient, And notifying the output module to output the adjusted audio data of the target channel;
读取模块, 用于当判断为读取数据库中所述目标频道对应的所述音量增益 系数时, 读取所述数据库中所述目标频道对应的所述音量增益系数, 通知第一 调节单元根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并通 知输出模块输出调节后的所述目标频道的音频数据。  a reading module, configured to: when the volume gain coefficient corresponding to the target channel in the database is read, read the volume gain coefficient corresponding to the target channel in the database, and notify the first adjusting unit to The volume gain coefficient adjusts all original audio data of the target channel, and notifies the output module to output the adjusted audio data of the target channel.
其中, 所述数字电视终端包括:  The digital television terminal includes:
计算差异值模块, 用于计算所述声音响度值与所述用户预先设置的响度值 之间的差异值;  Calculating a difference value module, configured to calculate a difference value between the sound loudness value and a preset loudness value of the user;
第二判断模块, 用于判断所述差异值是否在允许的差异值范围内; 当所述差异值不在所述允许的差异值范围内时, 通知计算系数模块根据所 述声音响度值和用户预先设置的响度值计算出音量增益系数。 a second determining module, configured to determine whether the difference value is within a range of allowed difference values; When the difference value is not within the allowable difference value range, the notification calculation coefficient module calculates the volume gain coefficient according to the sound sound level value and a loudness value preset by the user.
其中, 所述采样模块包括:  The sampling module includes:
划分频段单元, 用于根据人耳能感知到的音频频率范围和人耳对所述音频 频率的敏感度将所述音频频率划分为多个频段, 根据不同的所述频段采用不同 的采样率对所述原始音频数据进行所述 T1时长的数字采样。  a frequency division unit, configured to divide the audio frequency into a plurality of frequency bands according to an audio frequency range that the human ear can perceive and a sensitivity of the human ear to the audio frequency, and adopt different sampling rate pairs according to different frequency bands. The original audio data is subjected to digital sampling of the T1 duration.
其中, 所述调节模块包括:  The adjustment module includes:
幅度调节单元, 根据所述音量增益系数调节整体所述原始音频数据的幅度 或单独调节所述划分得到的各个所述频段的原始音频数据的幅度并混叠各个所 述频段的调节后的音频数据。  And an amplitude adjustment unit, configured to adjust an amplitude of the whole original audio data according to the volume gain coefficient or separately adjust an amplitude of original audio data of each of the frequency bands obtained by the dividing and to alias the adjusted audio data of each of the frequency bands .
实施本发明实施例, 具有如下有益效果:  Embodiments of the present invention have the following beneficial effects:
本发明实施例根据人耳对声音在各个频率的敏感度不一样的特点对緩存在 数字电视终端的音频数据进行数字采样并计算获得音量增益系数, 根据音量增 益系数调节目标频道的原始音频数据, 使输出实际的音频数据响度跟用户预先 设置响度达成一致, 这有效解决了切换频道或切换节目时节目音量突大突小的 问题, 并且本发明实施例是在目前现有的数字电视终端设备硬件基础上对各个 节目的音量作了统一化的预处理来使不同节目音量自动调整到标准音量大小, 有效降低了具有本发明实施例功能的数字电视终端的生产成本, 并且本发明实 施例自动将节目音量调整到对人耳影响最低, 提高了用户的体验度。 附图说明  In the embodiment of the present invention, the audio data buffered in the digital television terminal is digitally sampled according to the characteristics of the human ear's sensitivity to sound at different frequencies, and the volume gain coefficient is calculated, and the original audio data of the target channel is adjusted according to the volume gain coefficient. The output of the actual audio data loudness is consistent with the user's preset loudness, which effectively solves the problem that the program volume suddenly becomes small when switching channels or switching programs, and the embodiment of the present invention is the existing existing digital television terminal equipment hardware. Based on the unified pre-processing of the volume of each program to automatically adjust the volume of different programs to the standard volume, the production cost of the digital television terminal having the function of the embodiment of the present invention is effectively reduced, and the embodiment of the present invention automatically The program volume is adjusted to have the least impact on the human ear, which improves the user experience. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1是本发明一种自动控制频道音量的方法的第一实施例流程示意图; 图 2是本发明一种自动控制频道音量的方法的第二实施例流程示意图; 图 3是本发明一种自动控制频道音量的方法的第三实施例流程示意图; 图 4是本发明一种数字电视终端的第一实施例结构示意图;  1 is a schematic flow chart of a first embodiment of a method for automatically controlling channel volume according to the present invention; FIG. 2 is a schematic flow chart of a second embodiment of a method for automatically controlling channel volume according to the present invention; FIG. 3 is an automatic diagram of the present invention. FIG. 4 is a schematic structural diagram of a first embodiment of a digital television terminal according to the present invention; FIG.
图 5是本发明一种数字电视终端的第二实施例结构示意图; 图 6是本发明一种数字电视终端的第三实施例结构示意图。 具体实施方式 5 is a schematic structural diagram of a second embodiment of a digital television terminal according to the present invention; Figure 6 is a block diagram showing the structure of a third embodiment of a digital television terminal of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例中, 数字电视终端可以为数字电视机顶盒, 数字电视一体机 等具备单向或双向数字电视功能的设备。  In the embodiment of the present invention, the digital television terminal may be a device having a one-way or two-way digital television function, such as a digital television set top box and a digital television integrated machine.
请参照图 1 ,为本发明一种自动控制频道音量的方法第一个实施例流程示意 图。 如图 1所述, 本实施例所述的一种自动控制频道音量的方法包括步骤: Referring to FIG. 1, a flow chart of a first embodiment of a method for automatically controlling channel volume is provided. As shown in FIG. 1 , a method for automatically controlling channel volume according to this embodiment includes the following steps:
S100, 对緩存的目标频道的原始音频数据进行 T1时长的数字采样。 S100: Perform digital sampling of the T1 duration on the original audio data of the buffered target channel.
具体实施例中, 数字电视终端通过解复用模块(Demultiplexer, DMUX )得 到目标频道的解码前的音频数据, 将该解码前的音频数据緩存在数字电视终端 并对该音频数据进行预处理。 由于人耳对在各个频率声音的感知敏感度是不一 样的, 为了将节目音量调整到对人耳影响最低, 所以可以采用根据不同频率的 音频数据进行不同的处理从而降低节目音量对人耳的影响。 所以所述进行 T1时 长的数字采样可以根据人耳能感知到的音频频率范围和人耳对音频频率的敏感 度将音频频率划分为多个频段,根据不同的频段采用不同的采样率对 T1时长的 音频数据进行数字采样。  In a specific embodiment, the digital television terminal obtains the pre-decoded audio data of the target channel through a demultiplexer (DMUX), buffers the pre-decoded audio data in the digital television terminal, and pre-processes the audio data. Since the human ear has different sensitivity to the sound at each frequency, in order to adjust the volume of the program to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the volume of the program to the human ear. influences. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration. The audio data is digitally sampled.
其中, 所述进行 T1时长的数字采样在本发明中将采用两种采样方法, 第一 种方法是进行一个 T1时长的数字采样, 第二种方法是以 T1时长为周期的周期 数字采样, 两种方法对应两个实施例, 将在下面实施例二和实施例三进行说明。  Wherein, the digital sampling for performing the T1 duration will employ two sampling methods in the present invention. The first method is to perform digital sampling of a T1 duration, and the second method is to periodically sample digital samples of a period of T1 duration, The method corresponds to two embodiments, and will be described in the following second embodiment and third embodiment.
其中可选的, T1时长可参考在 20MS〜1S范围之间,不同的应用场合选择的 T1时长可能也不一样。  Optionally, the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
具体的, 音频频率的划分与对应的采样频率可参考下表: 频率(Hz ) <31.5 <63 <125 <250 <500 <1000 <2000 <4000 4000 以上 最小采样率 63 125 250 500 1000 2000 4000 8000 16000 Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table: Frequency (Hz) <31.5 <63 <125 <250 <500 <1000 <2000 <4000 4000 The minimum sampling rate above 63 125 250 500 1000 2000 4000 8000 16000
S101 , 根据所述 T1时长的数字采样信息处理获得声音响度值。 S101: Obtain an acoustic sound value according to the digital sampling information processing of the T1 duration.
具体实施例中, 对步骤 S100采样得到的各个频段的采样数据通过积分计算 得到各个频段的声压数据。  In a specific embodiment, the sound pressure data of each frequency band is obtained by integrating the sampled data of each frequency band sampled in step S100.
进一步的, 可参考如下表格对得到的各个频段的声压数据根据频率的不同 分别作衰减加权处理直接累加所得的值作为音频数据的原始响度数据, 衰减的 数据可由技术人员根据实际情况变动调整。
Figure imgf000009_0001
Further, the obtained sound pressure data of each frequency band may be directly accumulated by the attenuation weighting process according to the difference of the frequency as the original loudness data of the audio data, and the attenuated data may be adjusted by the technician according to the actual situation.
Figure imgf000009_0001
S102, 根据所述声音响度值和用户预先设置的响度值计算出音量增益系数。 其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如: 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。  S102. Calculate a volume gain coefficient according to the acoustic sound value and a loudness value preset by a user. The preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
其中可选的, 所述音量增益系数可为所述声音响度值与所述用户预先设置 的响度值之商。  Optionally, the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
5103 , 根据所述音量增益系数调节所述原始音频数据。  5103. Adjust the original audio data according to the volume gain coefficient.
具体实施例中, 调节原始音频数据是根据音量增益系数调节整体原始音频 数据的幅度或单独调节划分得到的各个频段的音频数据的幅度并混叠各个频段 的音频数据而形成的调节后的音频数据, 其中可选的, 调整后的音频数据幅度 可为原始音频数据幅度与音量增益系数之商。  In a specific embodiment, adjusting the original audio data is adjusted audio data formed by adjusting the amplitude of the entire original audio data according to the volume gain coefficient or separately adjusting the amplitude of the audio data of each frequency band obtained by dividing and dividing the audio data of each frequency band. Optionally, the adjusted audio data amplitude may be a quotient of the original audio data amplitude and the volume gain coefficient.
5104, 输出调节后的所述目标频道的音频数据。  5104. Output the adjusted audio data of the target channel.
具体实施例中, 将调节后的目标频道的音频数据输出到 D/A模块或通过数 字通道将该调节后的目标频道的数据传到外设由外设再进行 D/A转换, 再输出 实际节目音频。  In a specific embodiment, the audio data of the adjusted target channel is output to the D/A module or the data of the adjusted target channel is transmitted to the peripheral through the digital channel, and then the peripheral is further D/A converted, and then the actual output is performed. Program audio.
进一步可选的, 由于数字音频信号经过 D/A转换后, 还有经过一级或多级 放大再播放出去, 因为不同音频其放大电路的频率特性也是不一样的, 因此可 在计算声音响度时将频率特性考虑进去, 修正不同频率对应的不同加权衰减系 数, 具体方法可以是对音频放大电路的输入前的数字音频幅频特性曲线和放大 后的数字音频幅频特性曲线进行采样测试, 比较差异, 得出采样点的线性差异 比例来对加权衰减系数作修正。 Further, since the digital audio signal is D/A converted, there are one or more stages. Zoom in and play out, because the frequency characteristics of the amplifier circuit are different, so the frequency characteristics can be taken into account when calculating the sound level, and the different weighted attenuation coefficients corresponding to different frequencies can be corrected. The specific method can be the audio amplifier circuit. The digital audio amplitude-frequency characteristic curve before the input and the amplified digital audio amplitude-frequency characteristic curve are sampled and tested, and the difference is obtained, and the linear difference ratio of the sampling points is obtained to correct the weighted attenuation coefficient.
请参照图 2,为本发明一种自动控制频道音量的方法第二个实施例流程示意 图。 如图 2所示, 本实施例所述的一种自动控制频道音量的方法包括步骤: 2 is a schematic flow chart of a second embodiment of a method for automatically controlling channel volume according to the present invention. As shown in FIG. 2, a method for automatically controlling channel volume according to this embodiment includes the following steps:
5200, 判断是否读取数据库中所述目标频道对应的音量增益系数, 若判断 结果为否, 则执行步骤 S201 , 若判断结果为是, 则执行步骤 S207。 5200. Determine whether to read the volume gain coefficient corresponding to the target channel in the database. If the determination result is no, step S201 is performed. If the determination result is yes, step S207 is performed.
具体的, 本步骤可在目标频道发生切换时执行, 数字电视终端系统可以以 弹出弹窗或其他方式让用户进行选择是否读取数据库中目标频道对应的音量增 益系数, 或进一步可选的, 数字电视终端系统自动判断数据库中是否存储有目 标频道对应的音量增益系数, 若没有存储目标频道对应的音量增益系数, 则执 行步骤 S201 , 若有存储目标频道对应的音量增益系数, 则执行步骤 S207。  Specifically, the step may be performed when the target channel is switched, and the digital television terminal system may pop the pop-up window or other manner to allow the user to select whether to read the volume gain coefficient corresponding to the target channel in the database, or further optional, the number The television terminal system automatically determines whether the volume gain coefficient corresponding to the target channel is stored in the database. If the volume gain coefficient corresponding to the target channel is not stored, step S201 is performed, and if the volume gain coefficient corresponding to the target channel is stored, step S207 is performed.
5201 ,对緩存的所述目标频道的原始音频数据进行一个所述 T1时长的数字 采样。  S201: Perform a digital sampling of the T1 duration on the buffered original audio data of the target channel.
具体实施例中, 由于人耳对在各个频率声音的感知敏感度是不一样的, 为 了将节目音量调整到对人耳影响最低, 所以可以采用根据不同频率的音频数据 进行不同的处理从而降低节目音量对人耳的影响。 所以所述进行 T1时长的数字 采样可以根据人耳能感知到的音频频率范围和人耳对音频频率的敏感度将音频 频率划分为多个频段,根据不同的频段采用不同的采样率对 T1时长的音频数据 进行数字采样。  In a specific embodiment, since the human ear has different sensitivity to the sound at each frequency, in order to adjust the program volume to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the program. The effect of volume on the human ear. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration. The audio data is digitally sampled.
其中, 所述进行 T1时长的数字采样在本实施例中采用的采样方法是进行一 个 T1时长的数字采样。  The sampling method used in the present embodiment to perform digital sampling of the T1 duration is to perform digital sampling of a T1 duration.
其中可选的, T1时长可参考在 20MS〜1S范围之间,不同的应用场合选择的 T1时长可能也不一样。  Optionally, the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
具体的, 音频频率的划分与对应的采样频率可参考下表 频率(Hz ) <31.5 <63 <125 <250 <500 <1000 <2000 <4000 4000 以上 最小采样率 63 125 250 500 1000 2000 4000 8000 16000 Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table. Frequency (Hz) <31.5 <63 <125 <250 <500 <1000 <2000 <4000 4000 The minimum sampling rate above 63 125 250 500 1000 2000 4000 8000 16000
S202, 根据所述 T1时长的数字采样信息处理获得声音响度值。 S202. Acquire an acoustic sound value according to the digital sampling information processing of the T1 duration.
5203 , 计算所述声音响度值与所述用户预先设置的响度值之间的差异值。 具体实施例中, 差异值为声音响度值的与用户预先设置的响度值之差的绝 对值。  S203: Calculate a difference value between the acoustic sound value and the preset loudness value of the user. In a specific embodiment, the difference value is an absolute value of the difference between the acoustic loudness value and the user-set loudness value.
5204, 判断所述差异值是否在允许的差异值范围内, 若判断结果为否, 则 执行步骤 S205。  S204: Determine whether the difference value is within a range of allowed difference values. If the determination result is no, step S205 is performed.
具体实施例中, 若判断为是, 则目标频道的所有音频数据不需经过预处理 就输出, 即输出所述目标频道的所有原始音频数据。 其中, 允许的差异值范围 为大于或等于 Odb并小于或等于 2db。  In the specific embodiment, if the determination is YES, all the audio data of the target channel is output without pre-processing, that is, all the original audio data of the target channel is output. Where the allowed difference value range is greater than or equal to Odb and less than or equal to 2db.
5205 ,根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先 设置的响度值计算出所述目标频道对应的音量增益系数。  S205: Calculate a volume gain coefficient corresponding to the target channel according to an acoustic sound value corresponding to the digital sampling information of the T1 duration and a loudness value preset by the user.
其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如: 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。  The preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
其中可选的, 所述音量增益系数可为所述声音响度值与所述用户预先设置 的响度值之商。  Optionally, the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
其中, 计算出的目标频道对应的音量增益系数为目标频道整体的音频数据 对应的音量增益系数。  The calculated volume gain coefficient corresponding to the target channel is a volume gain coefficient corresponding to the audio data of the entire target channel.
5206, 更新所述数据库中所述目标频道对应的所述音量增益系数。  5206. Update the volume gain coefficient corresponding to the target channel in the database.
具体应用中, 例如: 若数字电视终端切换到播放深圳卫视频道, 数字电视 终端则将步骤 S205计算出的深圳卫视频道对应的音量增益系数替换掉数据库中 深圳卫视频道对应的已有音量增益系数或在数据库中保存为深圳卫视频道对应 的音量增益系数, 可以在下次接收到切换到深圳卫视信息时配置这次计算出来 的该频道的音量增益系数来调整节目音量。 5207 , 读取数据库中所述目标频道对应的所述音量增益系数。 In a specific application, for example: if the digital television terminal switches to play the Shenzhen Wei video channel, the digital television terminal replaces the volume gain coefficient corresponding to the Shenzhen Wei video channel calculated in step S205 with the existing volume gain coefficient corresponding to the Shenzhen Wei video channel in the database or The volume gain coefficient corresponding to the Shenzhen Wei video channel is saved in the database, and the volume gain coefficient of the channel calculated this time can be configured to adjust the volume of the program when the next time the switch to the Shenzhen Satellite TV information is received. S207: Read the volume gain coefficient corresponding to the target channel in the database.
其中, 执行读取数据库中所述目标频道对应的所述音量增益系数步骤后执 行步骤 S208。  The step S208 is performed after the step of reading the volume gain coefficient corresponding to the target channel in the database is performed.
5208, 根据所述音量增益系数调节所述目标频道的所有原始音频数据。 具体实施例中, 调节目标频道的所有原始音频数据是根据所述音量增益系 数调节整体所述原始音频数据的幅度或分别调节所述划分得到的各个所述频段 的原始音频数据的幅度并混叠各个频段的音频数据而形成的调节后的音频数 据, 其中可选的, 调整后的音频数据幅度可为原始音频数据幅度与音量增益系 数之商。  5208. Adjust all original audio data of the target channel according to the volume gain coefficient. In a specific embodiment, adjusting all the original audio data of the target channel is to adjust the amplitude of the entire original audio data according to the volume gain coefficient or separately adjust the amplitude of the original audio data of each of the frequency bands obtained by the dividing and aliasing The adjusted audio data formed by the audio data of each frequency band, wherein the adjusted audio data amplitude may be a quotient of the original audio data amplitude and the volume gain coefficient.
进一步可选的, 根据步骤 S206所更新数据库中目标频道对应的音量增益系 数或根据步骤 S207读取数据库中目标频道对应的一个音量增益系数来调节所述 目标频道的所有原始音频数据。 例如在实际应用中, 若数字电视终端切换到播 放深圳卫视频道, 此时根据步骤 S206或步骤 S207得到深圳卫视对应的音量增 益系数, 根据此音量增益系数来调节深圳卫视频道的所有音频数据。  Further, optionally, all the original audio data of the target channel is adjusted according to the volume gain coefficient corresponding to the target channel in the database updated in step S206 or by reading a volume gain coefficient corresponding to the target channel in the database according to step S207. For example, in practical applications, if the digital television terminal switches to play the Shenzhen Wei video channel, the volume gain coefficient corresponding to Shenzhen Satellite TV is obtained according to step S206 or step S207, and all audio data of the Shenzhen Wei video channel is adjusted according to the volume gain coefficient.
5209, 输出调节后的所述目标频道的音频数据。  5209. Output the adjusted audio data of the target channel.
其中,步骤 S202和步骤 S209可以参见图 1所示实施例的步骤 S101和步骤 S104的详细说明, 在此不赞述。  For the steps S202 and S209, reference may be made to the detailed description of step S101 and step S104 of the embodiment shown in FIG. 1, which is not described herein.
请参照图 3 ,为本发明一种自动控制频道音量的方法第三个实施例流程示意 图。 如图 3所示, 本实施例所述的一种自动控制频道音量的方法包括步骤: Referring to FIG. 3, a flow chart of a third embodiment of a method for automatically controlling channel volume is provided. As shown in FIG. 3, a method for automatically controlling channel volume according to this embodiment includes the following steps:
S300, 以所述 T1时长为周期对緩存的所述目标频道的原始音频数据进行所 述 T1时长的周期数字采样。 S300: Perform periodic digital sampling of the T1 duration on the buffered original audio data of the target channel in a period of the T1 duration.
具体实施例中, 由于人耳对在各个频率声音的感知敏感度是不一样的, 为 了将节目音量调整到对人耳影响最低, 所以可以采用根据不同频率的音频数据 进行不同的处理从而降低节目音量对人耳的影响。 所以所述进行 T1时长的数字 采样可以根据人耳能感知到的音频频率范围和人耳对音频频率的敏感度将音频 频率划分为多个频段,根据不同的频段采用不同的采样率对 T1时长的音频数据 进行数字采样。  In a specific embodiment, since the human ear has different sensitivity to the sound at each frequency, in order to adjust the program volume to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the program. The effect of volume on the human ear. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration. The audio data is digitally sampled.
其中, 所述进行 T1 时长的数字采样在本实施例中采用的采样方法是以 T1 时长为周期的周期数字采样。  The sampling method used for the digital sampling of the T1 duration in the present embodiment is a periodic digital sampling with a period of T1 duration.
其中可选的, 緩存的目标频道的原始音频数据是根据用户需要不间断更新 緩存的原始音频数据直到用户切换频道或关机, T1时长的周期数字采样对緩存 的原始音频数据包括更新的原始音频数据进行采样直至用户切换频道或关机则 停止采样, 其中, T1 时长的周期采样对采样过的 T1 时长原始音频数据不完全 重复采样。 Optionally, the original audio data of the cached target channel is continuously updated according to user needs. The original audio data is buffered until the user switches channels or shuts down. The periodic digital samples of the T1 duration sample the buffered original audio data including the updated original audio data until the user switches channels or shuts down, and the sampling is stopped. The sampled T1 duration raw audio data is not completely resampled.
其中可选的, 为了减少两个采样周期间的不平滑, 相邻的两个采样周期 T1 中可以有 T2时间的交叠, 其中 T2<T1。  Optionally, in order to reduce the unsmoothness between two sampling periods, there may be an overlap of T2 times in two adjacent sampling periods T1, where T2<T1.
其中可选的, T1时长可参考在 20MS〜1S范围之间,不同的应用场合选择的 T1时长可能也不一样。  Optionally, the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
具体的, 音频频率的划分与对应的采样频率可参考下表:  Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
Figure imgf000013_0001
Figure imgf000013_0001
S301 , 根据所述 T1时长的数字采样信息处理获得声音响度值。  S301. Acquire an acoustic sound value according to the digital sampling information processing of the T1 duration.
5302, 计算所述声音响度值与所述用户预先设置的响度值之间的差异值。 5302. Calculate a difference value between the sound loudness value and a preset loudness value of the user.
5303 , 判断所述差异值是否在允许的差异值范围内, 若判断结果为否, 则 执行步骤 S304。 5303. Determine whether the difference value is within a range of allowed difference values. If the determination result is no, step S304 is performed.
具体实施例中, 若判断为是, 则 T1时长的数字采样信息对应的 T1时长的 原始音频数据不需经过预处理就输出。 即输出 T1 时长的数字采样信息对应的 T1时长的原始音频数据。  In the specific embodiment, if the determination is YES, the original audio data of the T1 duration corresponding to the digital sample information of the T1 duration is output without pre-processing. That is, the original audio data of the T1 duration corresponding to the digital sample information of the T1 duration is output.
其中, 允许的差异值范围为大于或等于 Odb并小于或等于 2db。  Where the allowed difference value range is greater than or equal to Odb and less than or equal to 2db.
5304,根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先 设置的响度值计算出所述 T1时长的数字采样信息对应的音量增益系数。  S304: Calculate, according to the acoustic sound value corresponding to the digital sample information of the T1 duration and the loudness value preset by the user, a volume gain coefficient corresponding to the digital sample information of the T1 duration.
其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如, 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。  The preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example, the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
其中可选的, 所述音量增益系数可为所述声音响度值与所述用户预先设置 的响度值之商。 其中,计算出的所述 Tl时长的数字采样信息对应的音量增益系数为目标频 道 T1时长的数字采样信息对应的 T1时长的原始音频数据的音量增益系数。 Optionally, the volume gain coefficient may be a quotient of the sound loudness value and a loudness value preset by the user. The calculated volume gain coefficient corresponding to the digital sampling information of the T1 duration is a volume gain coefficient of the original audio data of the T1 duration corresponding to the digital sampling information of the target channel T1 duration.
5305 ,根据所述音量增益系数调节所述目标频道的 T1时长的数据采样信息 对应的 T1时长的原始音频数据。  S305: Adjust original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the target channel according to the volume gain coefficient.
具体实施例中, 调节目标频道的 T1时长的数据采样信息对应的 T1时长的 原始音频数据是根据音量增益系数调节 T1时长的整体原始音频数据的幅度或单 独调节 T1时长的原始音频数据划分得到的各个频段的音频数据的幅度并混叠各 个频段的音频数据而形成的调节后的 T1时长的音频数据, 其中可选的, 调整后 的音频数据幅度可为原始音频数据幅度与音量增益系数之商。  In a specific embodiment, the original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the adjustment target channel is obtained by dividing the amplitude of the whole original audio data of the T1 duration according to the volume gain coefficient or separately adjusting the original audio data of the T1 duration. The adjusted T1 duration audio data formed by the amplitude of the audio data of each frequency band and the audio data of each frequency band is formed, wherein the adjusted audio data amplitude can be the quotient of the original audio data amplitude and the volume gain coefficient. .
进一步可选的, 根据步骤 S304计算得到的 T1时长的数字采样信息对应的 一个音量增益系数来调节所述目标频道的 T1时长的数字采样信息对应的 T1时 长的原始音频数据。 例如在实际应用中, 若数字电视终端切换到播放深圳卫视 频道, 此时根据步骤 S304计算得到深圳卫视 T1时长的数字采样信息对应的音 量增益系数,根据此音量增益系数来调节深圳卫视频道的 T1时长的数字采样信 息对应的 T1时长的原始音频数据, 然后在下一个 T1时间内, 数字电视终端再 次根据步骤 S304计算得到深圳卫视下一个 T1时长的数字采样信息对应的下一 个音量增益系数,根据这下一个 T1时长的数字采样信息对应的下一个音量增益 系数来调节深圳卫视频道的下一个 T1时长的数字采样信息对应的 T1时长的原 始音频数据, 就这样以 T1时长为调节周期进行调节直到用户切换到其他频道或 关机才停止调节, 此种调节方式可以有效的解决了同个频道的不同节目音量差 异问题, 例如: 电视剧和插播的广告之间的音量差异的问题。  Further, optionally, the original audio data of the T1 duration corresponding to the digital sampling information of the T1 duration of the target channel is adjusted according to a volume gain coefficient corresponding to the digital sampling information of the T1 duration calculated in step S304. For example, in practical applications, if the digital television terminal switches to play the Shenzhen Wei video channel, the volume gain coefficient corresponding to the digital sampling information of the Shenzhen Satellite TV T1 duration is calculated according to step S304, and the T1 of the Shenzhen Wei video channel is adjusted according to the volume gain coefficient. The digital audio sampling information corresponding to the duration of the T1 duration of the original audio data, and then in the next T1 time, the digital television terminal again calculates the next volume gain coefficient corresponding to the digital sampling information of the next T1 duration of Shenzhen Satellite TV according to step S304, according to this The next volume gain coefficient corresponding to the digital sampling information of the next T1 duration adjusts the original audio data of the T1 duration corresponding to the digital sampling information of the next T1 duration of the Shenzhen TV channel, and thus adjusts the T1 duration as the adjustment period until the user Switch to other channels or shut down to stop the adjustment, this adjustment method can effectively solve the difference in the volume of different programs on the same channel, for example: the difference in volume between TV dramas and interstitial ads.
其中可选的, 为了减少两个采样周期间的不平滑, 相邻的两个调节周期 T1 中可以有 T2时间的交叠, 其中 T2<T1。  Optionally, in order to reduce the unsmoothness between two sampling periods, there may be an overlap of T2 times in two adjacent adjustment periods T1, where T2<T1.
5306, 输出调节后的目标频道的音频数据。  5306. Output the adjusted audio data of the target channel.
其中, 步骤 S301和步骤 S306可参见图 1所示实施例的步骤 S101和步骤 S104, 步骤 S302可参见图 2所示实施例的步骤 S202, 在此不多贅述。  Step S301 and step S306 can be referred to step S101 and step S104 of the embodiment shown in FIG. 1. Step S302 can be referred to step S202 of the embodiment shown in FIG. 2, and details are not described herein.
下面阐述本发明实施例提供的一种数字电视终端的具体实现。  A specific implementation of a digital television terminal provided by an embodiment of the present invention is described below.
请参照图 4, 为本发明数字电视终端第一实施例结构示意图。 如图 4所示, 本实施例所述的一种数字电视终端包括:  Please refer to FIG. 4, which is a schematic structural diagram of a first embodiment of a digital television terminal according to the present invention. As shown in FIG. 4, a digital television terminal according to this embodiment includes:
采样模块 100, 用于对緩存的目标频道的原始音频数据进行 T1时长的数字 采样。 The sampling module 100 is configured to perform a T1 duration number on the original audio data of the cached target channel. Sampling.
具体实施例中, 数字电视终端通过解复用模块(Demultiplexer, DMUX )得 到目标频道的解码前的音频数据, 将该解码前的音频数据緩存在数字电视终端 并对该音频数据进行预处理。 由于人耳对各个频率声音的感知敏感度是不一样 的, 为了将节目音量调整到对人耳影响最低, 所以可根据不同频率的音频数据 进行不同的处理从而降低节目音量对人耳的影响。 所以所述进行 T1时长的数字 采样可以是根据人耳能感知到的音频频率范围和人耳对音频频率的敏感度将音 频频率划分为多个频段,根据不同的频段采用不同的采样率对 T1时长的音频数 据进行数字采样。  In a specific embodiment, the digital television terminal obtains the pre-decoded audio data of the target channel through a demultiplexer (DMUX), buffers the pre-decoded audio data in the digital television terminal, and pre-processes the audio data. Since the human ear's sensitivity to the sound of each frequency is different, in order to adjust the program volume to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the influence of the program volume on the human ear. Therefore, the digital sampling of the T1 duration may be based on the audio frequency range perceived by the human ear and the sensitivity of the human ear to the audio frequency, and the audio frequency is divided into multiple frequency bands, and different sampling rates are used according to different frequency bands. The duration of the audio data is digitally sampled.
其中, 所述进行 T1时长的数字采样在本实施例中将采用两种采样单元, 第 一种采样单元是进行一个 T1时长的数字采样, 第二种采样单元是以 T1时长为 周期的周期数字采样, 两种单元对应两个实施例, 将在下面实施例二和实施例 三进行说明。  The digital sampling for performing the T1 duration will use two sampling units in the embodiment, the first sampling unit is performing digital sampling of a T1 duration, and the second sampling unit is a periodic number with a period of T1 duration. Sampling, two units correspond to two embodiments, which will be described in the following second embodiment and third embodiment.
其中可选的, T1时长可可参考在 20MS〜1 S范围之间,不同的应用场合选择 的 T1时长可能也不一样。  Optionally, the T1 duration cocoa reference is between 20MS and 1S, and the T1 duration may be different for different applications.
具体的, 音频频率的划分与对应的采样频率可参考下表:  Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
Figure imgf000015_0001
Figure imgf000015_0001
计算响度模块 200, 用于根据所述 T1时长的数字采样信息处理获得声音响 度值。  The loudness module 200 is configured to obtain an acoustic sound value according to the digital sampling information processing of the T1 duration.
具体实施例中, 计算响度模块 200是对采样模块 100采样得到的各个频段 的采样数据通过积分计算得到各个频段的声压数据。  In the specific embodiment, the calculated loudness module 200 is the sound pressure data of each frequency band obtained by integrating the sampling data of the respective frequency bands sampled by the sampling module 100.
进一步的, 可参考如下表格对得到的各个频段的声压数据根据频率的不同 分别作衰减加权处理直接累加所得的值作为音频数据的原始响度数据, 衰减的 数据可由技术人员根据实际情况变动调整。
Figure imgf000015_0002
Further, the obtained sound pressure data of each frequency band may be directly accumulated by the attenuation weighting process according to the difference of the frequency as the original loudness data of the audio data, and the attenuated data may be adjusted by the technician according to the actual situation.
Figure imgf000015_0002
计算系数模块 300,用于根据所述声音响度值和用户预先设置的响度值计算 出音量增益系数。 Calculating a coefficient module 300, configured to calculate, according to the acoustic sound value and a preset loudness value of the user The volume gain factor is output.
其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如: 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。  The preset loudness value of the user is used by the laboratory to test the standard loudness data corresponding to different volume levels through the standard audio signal and pre-stored in the database of the digital television terminal, for example: the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data. Different volume levels correspond to different standard loudness data. Different users choose different loudness to choose their own loudness.
其中可选的, 所述音量增益系数为所述声音响度值与所述用户预先设置的 响度值之商。  Optionally, the volume gain coefficient is a quotient of the sound loudness value and a preset loudness value of the user.
调节模块 400, 用于根据所述音量增益系数调节所述原始音频数据。  The adjustment module 400 is configured to adjust the original audio data according to the volume gain coefficient.
具体实施例中, 调节模块 400是根据音量增益系数调节整体原始音频数据 的幅度或单独调节划分得到的各个频段的音频数据的幅度并混叠各个频段的音 频数据而形成的调节后的音频数据, 其中可选的, 调整后的音频数据幅度为原 始音频数据幅度与音量增益系数之商。  In an embodiment, the adjustment module 400 is an adjusted audio data formed by adjusting the amplitude of the whole original audio data according to the volume gain coefficient or separately adjusting the amplitude of the audio data of each frequency band obtained by dividing and dividing the audio data of each frequency band. Optionally, the adjusted audio data amplitude is a quotient of the original audio data amplitude and the volume gain coefficient.
输出模块 500 , 用于输出调节后的所述目标频道的音频数据。  The output module 500 is configured to output the adjusted audio data of the target channel.
具体实施例中, 将经过调节模块 400调节后的目标频道的音频数据输出到 D/A模块或通过数字通道将该调节后的目标频道的数据传到外设由外设再进行 D/A转换, 再输出实际节目音频。  In a specific embodiment, the audio data of the target channel adjusted by the adjustment module 400 is output to the D/A module or the data of the adjusted target channel is transmitted to the peripheral through the digital channel, and then the peripheral is further D/A converted. , then output the actual program audio.
进一步可选的, 由于数字音频信号经过 D/A转换后, 还有经过一级或多级 放大再播放出去, 因为不同音频其放大电路的频率特性也是不一样的, 因此可 在计算声音响度时将频率特性考虑进去, 修正不同频率对应的不同加权衰减系 数, 具体方法可为对音频放大电路的输入前的数字音频幅频特性曲线和放大后 的数字音频幅频特性曲线进行采样测试, 比较差异, 得出采样点的线性差异比 例来对加权衰减系数作修正。  Further, since the digital audio signal is subjected to D/A conversion, it is further amplified by one or more stages, because the frequency characteristics of the amplification circuit of different audios are also different, so when calculating the sound level Taking the frequency characteristics into consideration, correcting the different weighted attenuation coefficients corresponding to different frequencies. The specific method can sample and test the digital audio amplitude-frequency characteristic curve and the amplified digital audio amplitude-frequency characteristic curve before the input of the audio amplification circuit, and compare the differences. , the linear difference ratio of the sampling points is obtained to correct the weighted attenuation coefficient.
请参照图 5 , 为本发明一种数字电视终端第二实施例结构示意图。 如图 5所 示, 本实施例所述的一种数字电视终端包括:  Please refer to FIG. 5 , which is a schematic structural diagram of a second embodiment of a digital television terminal according to the present invention. As shown in FIG. 5, a digital television terminal according to this embodiment includes:
采样模块 100、 计算响度模块 200、 计算系数模块 300、 调节模块 400和输 出模块 500。  The sampling module 100, the calculation loudness module 200, the calculation coefficient module 300, the adjustment module 400, and the output module 500.
其中, 本数字电视终端还可进一步包括:  The digital television terminal may further include:
第一判断模块 101 ,用于判断是否读取数据库中所述目标频道对应的音量增 益系数, 若判断结果为否, 则通知第一采样单元 10对緩存的目标频道的原始音 频数据进行 Tl时长的数字采样, 若判断结果为是, 则通知读取模块 201读取数 据库中所述目标频道对应的所述音量增益系数。 The first determining module 101 is configured to determine whether to read the volume gain coefficient corresponding to the target channel in the database, and if the determination result is no, notify the first sampling unit 10 of the original sound of the cached target channel. The frequency data is subjected to digital sampling of the T1 duration. If the determination result is yes, the notification reading module 201 reads the volume gain coefficient corresponding to the target channel in the database.
具体的, 第一判断模块 101 可在目标频道发生切换时开始执行, 数字电视 终端系统可以以弹出弹窗或其他方式让用户进行选择是否读取数据库中目标频 道对应的音量增益系数, 或进一步可选的, 数字电视终端系统自动判断数据库 中是否存储有目标频道对应的音量增益系数, 若没有, 则通知第一采样单元 10 对緩存的目标频道的原始音频数据进行一个 T1时长的数字采样, 若有, 则通知 读取模块 201读取数据库中所述目标频道对应的所述音量增益系数。  Specifically, the first determining module 101 can start executing when the target channel is switched, and the digital television terminal system can use a pop-up window or other manner to allow the user to select whether to read the volume gain coefficient corresponding to the target channel in the database, or further Optionally, the digital television terminal system automatically determines whether the volume gain coefficient corresponding to the target channel is stored in the database, and if not, notifying the first sampling unit 10 to perform a digital sampling of the T1 duration of the original audio data of the buffered target channel, if If yes, the notification reading module 201 reads the volume gain coefficient corresponding to the target channel in the database.
读取模块 201 , 用于读取数据库中所述目标频道对应的所述音量增益系数。 当读取模块 201 读取数据库中所述目标频道对应的所述音量增益系数后通 知第一调节单元 50根据所述音量增益系数调节所述目标频道的所有原始音频数 据。  The reading module 201 is configured to read the volume gain coefficient corresponding to the target channel in the database. After the reading module 201 reads the volume gain coefficient corresponding to the target channel in the database, the first adjusting unit 50 is notified to adjust all the original audio data of the target channel according to the volume gain coefficient.
计算差异值模块 301 ,用于计算所述声音响度值与所述用户预先设置的响度 值之间的差异值。  The difference calculation module 301 is configured to calculate a difference value between the sound loudness value and a loudness value preset by the user.
具体实施例中, 差异值为声音响度值的与用户预先设置的响度值之差的绝 对值。  In a specific embodiment, the difference value is an absolute value of the difference between the acoustic loudness value and the user-set loudness value.
第二判断模块 401 , 用于判断所述差异值是否在允许的差异值范围内, 若第 二判断单元 401判断结果为否, 则通知第一计算单元 30根据所述 T1时长的数 字采样信息对应的声音响度值和所述用户预先设置的响度值计算出所述目标频 道对应的音量增益系数。  The second determining module 401 is configured to determine whether the difference value is within the allowed difference value range. If the second determining unit 401 determines that the result is no, the first calculating unit 30 is notified to correspond to the digital sampling information of the T1 duration. The sound loudness value and the preset loudness value of the user calculate a volume gain coefficient corresponding to the target channel.
具体实施例中, 若第二判断模块 401 判断为是, 则所述目标频道的原始音 频数据不需经过预处理输出。 其中, 允许的差异值范围为大于或等于 Odb并小 于或等于 2db。  In a specific embodiment, if the second judging module 401 determines YES, the original audio data of the target channel does not need to be pre-processed. Where the allowed difference value range is greater than or equal to Odb and less than or equal to 2db.
更新数据库模块 501 ,用于更新所述数据库中所述目标频道对应的所述音量 增益系数。  The update database module 501 is configured to update the volume gain coefficient corresponding to the target channel in the database.
具体应用中, 例如: 若数字电视终端切换到播放深圳卫视频道, 数字电视 终端则将第一计算单元 30计算出的深圳卫视频道对应的音量增益系数替换掉数 据库中深圳卫视频道对应的已有音量增益系数或在数据库中保存为深圳卫视频 道对应的音量增益系数, 可以在下次接收到切换到深圳卫视信息时配置这次计 算出来的该频道的音量增益系数来调整节目音量。 其中, 所述采样模块 100还可进一步包括: In a specific application, for example, if the digital television terminal switches to play the Shenzhen Wei video channel, the digital television terminal replaces the volume gain coefficient corresponding to the Shenzhen Wei video channel calculated by the first calculating unit 30 with the existing volume corresponding to the Shenzhen Wei video channel in the database. The gain coefficient or saved in the database as the volume gain coefficient corresponding to the Shenzhen Wei video channel, the next time the switch to the Shenzhen Satellite TV information is received, the volume gain coefficient of the channel calculated this time can be configured to adjust the program volume. The sampling module 100 may further include:
第一采样单元 10,用于对緩存的目标频道的原始音频数据进行一个 T1时长 的数字采样。  The first sampling unit 10 is configured to perform digital sampling of the original audio data of the buffered target channel by a T1 duration.
具体实施例中, 由于人耳对在各个频率声音的感知敏感度是不一样的, 为 了将节目音量调整到对人耳影响最低, 所以可以不采用简单的根据音频的声强 来衡量当前声音的大小, 例如根据不同频率的音频数据进行不同的处理从而降 低节目音量对人耳的影响。 所以所述进行 T1时长的数字采样可以根据人耳能感 知到的音频频率范围和人耳对音频频率的敏感度将音频频率划分为多个频段, 根据不同的频段采用不同的采样率对 T1时长的音频数据进行数字采样。  In a specific embodiment, since the human ear has different sensitivity to the sound at each frequency, in order to adjust the volume of the program to have the lowest impact on the human ear, the simple sound can be used to measure the current sound according to the sound intensity of the audio. The size, for example, is processed differently according to audio data of different frequencies to reduce the influence of the program volume on the human ear. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration. The audio data is digitally sampled.
其中, 所述进行 T1时长的数字采样在本实施例中采用的采样方法是进行一 个 T1时长的数字采样。  The sampling method used in the present embodiment to perform digital sampling of the T1 duration is to perform digital sampling of a T1 duration.
其中可选的, T1时长可参考在 20MS〜1S范围之间,不同的应用场合选择的 Optionally, the T1 duration can be referenced between 20MS and 1S, and is selected for different applications.
T1时长可能也不一样。 The duration of T1 may not be the same.
具体的, 音频频率的划分与对应的采样频率可参考下表:  Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
Figure imgf000018_0001
Figure imgf000018_0001
划分频段单元 20, 用于根据人耳能感知到的音频频率范围和人耳对音 频频率的敏感度将音频频率划分为多个频段, 根据不同的频段采用不同的采样 率对所述原始音频数据进行所述 T1时长的数字采样。  The frequency division unit 20 is configured to divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use the different sampling rates according to different frequency bands to the original audio data. Digital sampling of the T1 duration is performed.
所述计算系数模块 300还还可进一步包括:  The calculation coefficient module 300 may further include:
第一计算单元 30,用于根据所述 T1时长的数字采样信息对应的声音响度值 和所述用户预先设置的响度值计算出所述目标频道对应的音量增益系数。  The first calculating unit 30 is configured to calculate a volume gain coefficient corresponding to the target channel according to an acoustic sound value corresponding to the digital sampling information of the T1 duration and a loudness value preset by the user.
其中, 第一计算单元 30是根据计算响度模块 200所计算出的 T1时长的数 字采样信息对应的声音响度值再结合用户预先设置的响度值计算出目标频道对 应的音量增益系数。  The first calculating unit 30 calculates the volume gain coefficient corresponding to the target channel according to the acoustic sound value corresponding to the digital sampling information of the T1 duration calculated by the loudness module 200 and the loudness value preset by the user.
其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如: 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。 The preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example: volume 23 sound corresponds to a standard loudness data, volume 24 sounds correspond to another standard data, others are not Different volume levels correspond to different standard loudness data, and different users choose to adapt to their loudness by selecting different volume.
其中可选的, 所述音量增益系数可为所述声音响度值与所述用户预先设置 的响度值之商。  Optionally, the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
其中, 计算出的目标频道对应的音量增益系数为目标频道整体的音频数据 对应的音量增益系数。  The calculated volume gain coefficient corresponding to the target channel is a volume gain coefficient corresponding to the audio data of the entire target channel.
所述调节单元 400还可进一步包括:  The adjusting unit 400 may further include:
幅度调节单元 40, 用于根据所述音量增益系数调节整体所述原始音频数据 的幅度或分别调节所述划分得到的各个所述频段的原始音频数据的幅度并混叠 各个所述频段的调节后的音频数据。  The amplitude adjustment unit 40 is configured to adjust an amplitude of the whole original audio data according to the volume gain coefficient or separately adjust an amplitude of the original audio data of each of the frequency bands obtained by the division, and alias the adjustment of each of the frequency bands Audio data.
其中可选的, 调整后的音频数据幅度可为原始音频数据幅度与音量增益系 数之商。  Optionally, the adjusted audio data amplitude can be a quotient of the original audio data amplitude and the volume gain coefficient.
第一调节单元 50, 用于根据所述音量增益系数调节所述目标频道的所有原 始音频数据。  The first adjusting unit 50 is configured to adjust all the original audio data of the target channel according to the volume gain coefficient.
具体实施例中, 第一调节单元 50根据幅度调节单元 40来调节所述目标频 道的所有原始音频数据。  In a specific embodiment, the first adjustment unit 50 adjusts all of the original audio data of the target channel in accordance with the amplitude adjustment unit 40.
进一步的, 根据读取模块 201 读取数据库中目标频道对应的一个音量增益 系数或更新数据库模块 501 所更新数据库中目标频道对应的音量增益系数来调 节所述目标频道的所有原始音频数据。 例如在实际应用中, 若数字电视终端切 换到播放深圳卫视频道, 此时根据更新数据库模块 501或读取模块 201得到深 圳卫视对应的音量增益系数, 根据此音量增益系数来调节深圳卫视频道的所有 音频数据。  Further, all the original audio data of the target channel is adjusted according to the reading module 201 reading a volume gain coefficient corresponding to the target channel in the database or updating the volume gain coefficient corresponding to the target channel in the database updated by the database module 501. For example, in practical applications, if the digital television terminal switches to play the Shenzhen Wei video channel, the volume gain coefficient corresponding to Shenzhen Satellite TV is obtained according to the update database module 501 or the reading module 201, and all the Shenzhen Wei video channels are adjusted according to the volume gain coefficient. Audio data.
请参照图 6,为为本发明数字电视终端第三实施例结构示意图。如图 6所示, 本实施例所述的一种数字电视终端包括:  Please refer to FIG. 6, which is a schematic structural diagram of a third embodiment of a digital television terminal according to the present invention. As shown in FIG. 6, a digital television terminal according to this embodiment includes:
采样模块 100、 计算响度模块 200、 计算系数模块 300、 调节模块 400、 输 出模块 500、计算差异值模块 301和第二判断模块 401以及采样模块 100包括的 划分频段单元 20, 调节模块包括的幅度调节单元 40。  The sampling module 100, the calculation loudness module 200, the calculation coefficient module 300, the adjustment module 400, the output module 500, the calculation difference value module 301 and the second determination module 401, and the divided frequency band unit 20 included in the sampling module 100, and the amplitude adjustment included in the adjustment module Unit 40.
其中, 所述采样模块 100还可进一步包括:  The sampling module 100 may further include:
第二采样单元 60,用于以所述 T1时长为周期对緩存的目标频道的原始音频 数据进行所述 T1时长的周期数字采样。 具体实施例中, 由于人耳对在各个频率声音的感知敏感度是不一样的, 为 了将节目音量调整到对人耳影响最低, 所以可采用根据不同频率的音频数据进 行不同的处理从而降低节目音量对人耳的影响。 所以所述进行 T1时长的数字采 样可以根据人耳能感知到的音频频率范围和人耳对音频频率的敏感度将音频频 率划分为多个频段,根据不同的频段采用不同的采样率对 T1时长的音频数据进 行数字采样。 The second sampling unit 60 is configured to perform periodic digital sampling of the T1 duration on the original audio data of the buffered target channel in a period of the T1 duration. In a specific embodiment, since the human ear has different sensitivity to the sound at each frequency, in order to adjust the program volume to the lowest impact on the human ear, different processing can be performed according to the audio data of different frequencies to reduce the program. The effect of volume on the human ear. Therefore, the digital sampling of the T1 duration can divide the audio frequency into multiple frequency bands according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency, and use different sampling rates according to different frequency bands to the T1 duration. The audio data is digitally sampled.
其中, 所述进行 T1 时长的数字采样在本实施例中采用的采样方法是以 T1 时长为周期的周期数字采样。  The sampling method used for the digital sampling of the T1 duration in the present embodiment is a periodic digital sampling with a period of T1 duration.
其中可选的, 緩存的目标频道的原始音频数据是根据用户需要不间断更新 緩存的原始音频数据直至用户切换频道或关机, T1时长的周期数字采样对緩存 的原始音频数据包括更新的原始音频数据进行采样直至用户切换频道或关机则 停止采样, 其中, T1 时长的周期采样对采样过的 T1 时长原始音频数据不完全 重复采样。  Optionally, the original audio data of the cached target channel is updated according to the user's needs to continuously update the buffered original audio data until the user switches channels or shuts down, and the periodic digital sample of the T1 duration buffers the original audio data of the cache including the updated original audio data. Sampling is performed until the user switches channels or shuts down to stop sampling, wherein the periodic sampling of the T1 duration does not completely resample the sampled T1 duration raw audio data.
其中可选的, 为了减少两个采样周期间的不平滑, 相邻的两个采样周期 T1 中可以有 T2时间的交叠, 其中 T2<T1。  Optionally, in order to reduce the unsmoothness between two sampling periods, there may be an overlap of T2 times in two adjacent sampling periods T1, where T2<T1.
其中可选的, T1时长可参考在 20MS〜1S范围之间,不同的应用场合选择的 T1时长可能也不一样。  Optionally, the T1 duration can be referenced between the range of 20MS and 1S, and the duration of the T1 may be different for different applications.
具体的, 音频频率的划分与对应的采样频率可参考下表:  Specifically, the division of the audio frequency and the corresponding sampling frequency can be referred to the following table:
Figure imgf000020_0001
Figure imgf000020_0001
所述计算系数模块 300还可进一步包括:  The calculation coefficient module 300 may further include:
第二计算单元 70,用于根据所述 T1时长的数字采样信息对应的声音响度值 和所述用户预先设置的响度值计算出所述 T1时长的数字采样信息对应的音量增 益系数。  The second calculating unit 70 is configured to calculate a volume gain coefficient corresponding to the digital sampling information of the T1 duration according to the acoustic sound value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user.
其中, 所述用户预先设置的响度值为试验室通过标准音频信号测试出不同 音量等级对应的标准响度数据并预先存储在数字电视终端的数据库中, 例如, 音量 23声对应一个标准响度数据, 音量 24声对应另外一个标准数据, 其他不 同音量等级都对应不一样的标准响度数据, 不同用户通过选择不同的音量来选 择适应自己的响度。 The preset loudness value of the user is used by the laboratory to test standard loudness data corresponding to different volume levels through a standard audio signal and stored in a database of the digital television terminal in advance, for example, the volume 23 sound corresponds to a standard loudness data, and the volume 24 sounds correspond to another standard data, and other different volume levels correspond to different standard loudness data. Different users select different volume levels. Choose to adapt to your own loudness.
其中可选的, 所述音量增益系数可为所述声音响度值与所述用户预先设置 的响度值之商。  Optionally, the volume gain coefficient may be a quotient of the sound loudness value and a preset loudness value of the user.
其中,计算出的所述 T1时长的数字采样信息对应的音量增益系数为目标频 道 T1时长的数字采样信息对应的 T1时长的原始音频数据的音量增益系数。  The calculated volume gain coefficient corresponding to the digital sampling information of the T1 duration is a volume gain coefficient of the original audio data of the T1 duration corresponding to the digital sampling information of the target channel T1 duration.
所述调节模块 400还可进一步包括:  The adjustment module 400 can further include:
第二调节单元 80,用于根据所述音量增益系数调节所述目标频道的 T1时长 的数据采样信息对应的 T1时长原始音频数据。  The second adjusting unit 80 is configured to adjust the T1 duration raw audio data corresponding to the data sampling information of the T1 duration of the target channel according to the volume gain coefficient.
具体实施例中, 第二调节单元 80根据幅度调节单元 40调节目标频道的 T1 时长的数据采样信息对应的 T1时长的原始音频数据。  In the specific embodiment, the second adjusting unit 80 adjusts the original audio data of the T1 duration corresponding to the data sampling information of the T1 duration of the target channel according to the amplitude adjusting unit 40.
进一步的, 第二调节单元 80根据第二计算单元 70计算得到的 T1时长数据 采样信息对应的一个音量增益系数来调节所述目标频道的 T1时长的数据采样信 息对应的 T1时长原始音频数据。 例如在实际应用中, 若数字电视终端切换到播 放深圳卫视频道, 此时第二计算单元 70计算得到深圳卫视 T1时长的原始音频 数据对应的音量增益系数,根据此音量增益系数来调节深圳卫视频道的 T1时长 的数字采样信息对应的 T1时长的原始音频数据, 然后数字电视终端再次根据步 第二计算单元 70得到深圳卫视另一个 T1时长的数字采样信息对应的另一个音 量增益系数,根据这另一个 T1时长的数字采样信息对应的另一个音量增益系数 来调节深圳卫视频道的另一个 T1时长的数字采样信息对应 T1时长的原始音频 数据, 就这样以 T1时长为调节周期进行调节直到用户切换到其他频道或关机才 停止调节此种调节方式可以有效的解决了同个频道的不同节目音量差异问题, 例如: 电视剧和插播的广告之间的音量差异的问题。  Further, the second adjusting unit 80 adjusts the T1 duration raw audio data corresponding to the T1 duration data sampling information of the target channel according to a volume gain coefficient corresponding to the T1 duration data sampling information calculated by the second calculating unit 70. For example, in a practical application, if the digital television terminal switches to play the Shenzhen Wei video channel, the second calculating unit 70 calculates the volume gain coefficient corresponding to the original audio data of the Shenzhen Satellite TV T1 duration, and adjusts the Shenzhen Wei video channel according to the volume gain coefficient. The digital sampling information of the T1 duration corresponds to the original audio data of the T1 duration, and then the digital television terminal obtains another volume gain coefficient corresponding to the digital sampling information of another T1 duration of the Shenzhen Satellite TV according to the second calculating unit 70, according to the other Another volume gain coefficient corresponding to the digital sampling information of the T1 duration adjusts the original sampling data of the T1 duration of the digital sampling information of another T1 duration of the Shenzhen Wei video channel, so that the T1 duration is adjusted for the adjustment period until the user switches to Other channels or shutdown to stop adjusting this adjustment method can effectively solve the problem of different program volume differences of the same channel, for example: the difference in volume between TV dramas and interstitial advertisements.
其中可选的, 为了减少两个采样周期间的不平滑, 相邻的两个调节周期 T1 中可以有 T2时间的交叠, 其中 T2<T1。  Optionally, in order to reduce the unsmoothness between two sampling periods, there may be an overlap of T2 times in two adjacent adjustment periods T1, where T2<T1.
通过上述实施例的描述, 本发明具有以下优点:  Through the description of the above embodiments, the present invention has the following advantages:
本发明实施例根据人耳对声音在各个频率的敏感度不一样的特点对緩存在 数字电视终端的音频数据进行数字采样并计算获得音量增益系数, 根据音量增 益系数调节目标频道的原始音频数据, 使输出实际的音频数据响度跟用户预先 设置响度达成一致, 这有效解决了切换频道或切换节目时节目音量突大突小的 问题, 并且本发明实施例是在目前现有的数字电视终端设备硬件基础上对各个 节目的音量作了统一化的预处理来使不同节目音量自动调整到标准音量大小, 有效降低了具有本发明实施例功能的数字电视终端的生产成本, 并且本发明实 施例自动将节目音量调整到对人耳影响最低, 提高了用户的体验度。 In the embodiment of the present invention, the audio data buffered in the digital television terminal is digitally sampled according to the characteristics of the human ear's sensitivity to sound at different frequencies, and the volume gain coefficient is calculated, and the original audio data of the target channel is adjusted according to the volume gain coefficient. The output of the actual audio data loudness is consistent with the user's preset loudness, which effectively solves the problem that the program volume suddenly becomes small when switching channels or switching programs, and the embodiment of the present invention is the existing existing digital television terminal equipment hardware. On the basis of each The volume of the program is pre-processed to automatically adjust the volume of different programs to the standard volume, effectively reducing the production cost of the digital television terminal having the function of the embodiment of the present invention, and the embodiment of the present invention automatically adjusts the volume of the program to It has the least impact on the human ear and improves the user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已, 当然不能以此来限定本发明之 权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围。  The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种自动控制频道音量的方法, 其特征在于, 包括: 1. A method for automatically controlling channel volume, which is characterized by including:
对緩存的目标频道的原始音频数据进行 T1时长的数字采样; Perform digital sampling of T1 duration on the cached original audio data of the target channel;
根据所述 T1时长的数字采样信息处理获得声音响度值; Obtain the sound loudness value according to the digital sampling information processing of the T1 duration;
根据所述声音响度值和用户预先设置的响度值计算出音量增益系数; 根据所述音量增益系数调节所述目标频道的原始音频数据; Calculate the volume gain coefficient according to the sound loudness value and the loudness value preset by the user; Adjust the original audio data of the target channel according to the volume gain coefficient;
输出调节后的所述目标频道的音频数据。 The adjusted audio data of the target channel is output.
2、 如权利要求 1所述的方法, 其特征在于, 所述对緩存的目标频道的原始 音频数据进行 T1时长的数字采样包括: 2. The method according to claim 1, wherein the digital sampling of the original audio data of the cached target channel for a duration of T1 includes:
对緩存的所述目标频道的原始音频数据进行一个所述 T1时长的数字采样; 所述根据所述声音响度值和用户预先设置的响度值计算出音量增益系数包 括: Perform a digital sampling of the T1 duration on the cached original audio data of the target channel; and calculating the volume gain coefficient based on the sound loudness value and the loudness value preset by the user includes:
根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先设置的 响度值计算出所述目标频道对应的音量增益系数; Calculate the volume gain coefficient corresponding to the target channel according to the sound loudness value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user;
所述根据所述音量增益系数调节所述目标频道的原始音频数据包括: 根据所述音量增益系数调节所述目标频道的所有原始音频数据。 The adjusting the original audio data of the target channel according to the volume gain coefficient includes: adjusting all the original audio data of the target channel according to the volume gain coefficient.
3、 如权利要求 1所述的方法, 其特征在于, 所述对緩存的目标频道的原始 音频数据进行 T1时长的数字采样包括: 3. The method of claim 1, wherein performing digital sampling of duration T1 on the original audio data of the cached target channel includes:
以所述 T1 时长为周期对緩存的所述目标频道的原始音频数据进行所述 T1 时长的周期数字采样; Perform periodic digital sampling of the T1 duration on the cached original audio data of the target channel with the T1 duration as a period;
所述根据所述声音响度值和用户预先设置的响度值计算出音量增益系数包 括: The calculation of the volume gain coefficient based on the sound loudness value and the loudness value preset by the user includes:
根据所述 T1时长的数字采样信息对应的声音响度值和所述用户预先设置的 响度值计算出所述 T1时长的数字采样信息对应的音量增益系数; Calculate the volume gain coefficient corresponding to the digital sampling information of duration T1 according to the sound loudness value corresponding to the digital sampling information of duration T1 and the loudness value preset by the user;
所述根据所述音量增益系数调节所述目标频道的音频数据包括: The adjusting the audio data of the target channel according to the volume gain coefficient includes:
根据所述音量增益系数调节所述目标频道的所述 T1时长的数字采样信息对 应的 T1时长的原始音频数据。 The original audio data of duration T1 corresponding to the digital sampling information of duration T1 of the target channel is adjusted according to the volume gain coefficient.
4、 如权利要求 2所述的方法, 其特征在于, 所述根据所述对緩存的所述目 标频道的原始音频数据进行一个所述 T1时长的数字采样之前还包括: 4. The method of claim 2, wherein before performing a digital sampling of the T1 duration based on the cached original audio data of the target channel, the step further includes:
判断是否读取数据库中所述目标频道对应的所述音量增益系数; Determine whether to read the volume gain coefficient corresponding to the target channel in the database;
当判断为不读取数据库中所述目标频道对应的所述音量增益系数时, 对緩 存的所述目标频道的原始音频数据进行一个所述 T1时长的数字采样,根据所述 T1 时长的数字采样信息处理获得声音响度值, 根据所述 T1 时长的数字采样信 息对应的所述声音响度值和所述用户预先设置的响度值计算出所述目标频道对 应的音量增益系数, 更新所述数据库中所述目标频道对应的所述音量增益系数, 根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并输出调节后 的所述目标频道的音频数据; When it is determined that the volume gain coefficient corresponding to the target channel in the database is not read, a digital sample of the T1 duration is performed on the cached original audio data of the target channel. According to the digital sample of the T1 duration The information processing obtains the sound loudness value, calculates the volume gain coefficient corresponding to the target channel according to the sound loudness value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user, and updates all the values in the database. The volume gain coefficient corresponding to the target channel, adjust all original audio data of the target channel according to the volume gain coefficient, and output the adjusted audio data of the target channel;
当判断为读取数据库中所述目标频道对应的所述音量增益系数时, 读取所 述数据库中所述目标频道对应的所述音量增益系数, 根据所述音量增益系数调 节所述目标频道的所有原始音频数据, 输出调节后的所述目标频道的音频数据。 When it is determined that the volume gain coefficient corresponding to the target channel in the database is read, the volume gain coefficient corresponding to the target channel in the database is read, and the volume gain coefficient of the target channel is adjusted according to the volume gain coefficient. All original audio data is output, and the adjusted audio data of the target channel is output.
5、 如权利要求 1所述的方法, 其特征在于, 所述根据所述 T1时长的数字 采样信息处理获得声音响度值之后包括: 5. The method according to claim 1, characterized in that, after obtaining the sound loudness value according to the digital sampling information processing of the T1 duration, the method includes:
计算所述声音响度值和所述用户预先设置的响度值之间的差异值; 判断所述差异值是否在允许的差异值范围内; Calculate the difference value between the sound loudness value and the loudness value preset by the user; Determine whether the difference value is within the allowed difference value range;
当所述差异值不在所述允许的差异值范围内时, 执行根据所述声音响度值 和用户预先设置的响度值计算出音量增益系数步骤。 When the difference value is not within the allowed difference value range, the step of calculating the volume gain coefficient is performed based on the sound loudness value and the loudness value preset by the user.
6、 如权利要求 1所述的方法, 其特征在于, 所述对緩存的目标频道的原始 音频数据进行 T1时长的数字采样包括: 6. The method according to claim 1, wherein the digital sampling of the original audio data of the cached target channel for a duration of T1 includes:
根据人耳能感知到的音频频率范围和人耳对所述音频频率的敏感度将所述 音频数据进行所述 T1时长的数字采样。 The audio data is digitally sampled for the T1 duration according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency.
7、 如权利要求 6所述的方法, 其特征在于, 所述根据所述音量增益系数调 节所述原始音频数据包括: 7. The method of claim 6, wherein the adjusting the original audio data according to the volume gain coefficient includes:
根据所述音量增益系数调节整体所述原始音频数据的幅度或分别调节所述 划分得到的各个所述频段的原始音频数据的幅度并混叠各个所述频段的调节后 的音频数据。 Adjust the amplitude of the original audio data as a whole according to the volume gain coefficient or individually adjust the The obtained amplitude of the original audio data of each of the frequency bands is divided and the adjusted audio data of each of the frequency bands is aliased.
8、 一种自动控制频道音量的数字电视终端, 其特征在于, 包括: 8. A digital TV terminal that automatically controls channel volume, characterized by including:
采样模块,用于对緩存的目标频道的原始音频数据进行 T1时长的数字采样; 计算响度模块,用于根据所述 T1时长的数字采样信息处理获得声音响度值; 计算系数模块, 用于根据所述声音响度值和用户预先设置的响度值计算出 音量增益系数; The sampling module is used to digitally sample the original audio data of the cached target channel for T1 duration; the loudness calculation module is used to obtain the sound loudness value according to the digital sampling information processing of the T1 duration; the calculation coefficient module is used to calculate the sound loudness value according to the T1 duration. Calculate the volume gain coefficient based on the stated sound loudness value and the loudness value preset by the user;
调节模块, 用于根据所述音量增益系数调节所述目标频道的原始音频数据; 输出模块, 用于输出调节后的所述目标频道的音频数据。 An adjustment module, used to adjust the original audio data of the target channel according to the volume gain coefficient; an output module, used to output the adjusted audio data of the target channel.
9、 如权利要求 8所述的数字电视终端, 其特征在于, 所述采样模块包括: 第一采样单元, 用于对緩存的所述目标频道的原始音频数据进行一个所述9. The digital television terminal according to claim 8, wherein the sampling module includes: a first sampling unit, configured to perform a sampling on the cached original audio data of the target channel.
T1时长的数字采样; Digital sampling of T1 duration;
所述计算系数模块包括: The calculation coefficient module includes:
第一计算单元, 用于根据所述 T1时长的数字采样信息对应的声音响度值和 所述用户预先设置的响度值计算出所述目标频道对应的音量增益系数; The first calculation unit is configured to calculate the volume gain coefficient corresponding to the target channel based on the sound loudness value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user;
所述调节模块包括: The adjustment module includes:
第一调节单元, 用于根据所述音量增益系数调节所述目标频道的所有原始 音频数据。 A first adjustment unit, configured to adjust all original audio data of the target channel according to the volume gain coefficient.
10、 如权利要求 8所述的数字电视终端, 其特征在于, 所述采样模块包括: 第二采样单元, 用于以所述 T1时长为周期对緩存的所述目标频道的原始音 频数据进行所述 T1时长的周期数字采样; 10. The digital television terminal according to claim 8, wherein the sampling module includes: a second sampling unit configured to perform the sampling on the cached original audio data of the target channel with the T1 duration as a period. The periodic digital sampling of the T1 duration;
所述计算系数模块包括: The calculation coefficient module includes:
第二计算单元, 用于根据所述 T1时长的数字采样信息对应的声音响度值和 所述用户预先设置的响度值计算出所述 T1时长的数字采样信息对应的音量增益 系数; The second calculation unit is configured to calculate the volume gain coefficient corresponding to the digital sampling information of the T1 duration based on the sound loudness value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user;
所述调节模块包括: The adjustment module includes:
第二调节单元, 用于根据所述音量增益系数调节所述目标频道的所述 T1时 长的数字采样信息对应的 T1时长的原始音频数据。 A second adjustment unit, configured to adjust the T1 time of the target channel according to the volume gain coefficient. The original audio data of T1 duration corresponding to the long digital sampling information.
11、 如权利要求 9 所述的数字电视终端, 其特征在于, 所述数字电视终端 还包括: 11. The digital television terminal according to claim 9, characterized in that, the digital television terminal further includes:
第一判断模块, 用于判断是否读取数据库中所述目标频道对应的所述音量 增益系数; A first judgment module, used to judge whether to read the volume gain coefficient corresponding to the target channel in the database;
更新数据库模块, 用于当判断为不读取数据库中所述目标频道对应的所述 音量增益系数时, 通知第一采样单元对緩存的目标频道的原始音频数据进行一 个所述 T1时长的数字采样, 通知计算响度值模块根据所述 T1时长的数字采样 信息处理获得声音响度值,通知第一计算单元根据所述 T1时长的数字采样信息 对应的声音响度值和所述用户预先设置的响度值计算出所述目标频道对应的音 量增益系数, 更新所述数据库中所述目标频道对应的所述音量增益系数, 通知 第一调节单元根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并通知输出模块输出调节后的所述目标频道的音频数据; Update the database module, configured to notify the first sampling unit to perform a digital sampling of the T1 duration on the cached original audio data of the target channel when it is determined that the volume gain coefficient corresponding to the target channel in the database is not read. , notify the calculation loudness value module to obtain the sound loudness value according to the digital sampling information of the T1 duration, and notify the first calculation unit to calculate the sound loudness value corresponding to the digital sampling information of the T1 duration and the loudness value preset by the user. Obtain the volume gain coefficient corresponding to the target channel, update the volume gain coefficient corresponding to the target channel in the database, and notify the first adjustment unit to adjust all original audio data of the target channel according to the volume gain coefficient, And notify the output module to output the adjusted audio data of the target channel;
读取模块, 用于当判断为读取数据库中所述目标频道对应的所述音量增益 系数时, 读取所述数据库中所述目标频道对应的所述音量增益系数, 通知第一 调节单元根据所述音量增益系数调节所述目标频道的所有原始音频数据, 并通 知输出模块输出调节后的所述目标频道的音频数据。 A reading module, configured to read the volume gain coefficient corresponding to the target channel in the database when it is determined that the volume gain coefficient corresponding to the target channel in the database is read, and notify the first adjustment unit according to The volume gain coefficient adjusts all original audio data of the target channel, and notifies the output module to output the adjusted audio data of the target channel.
12、 如权利要求 8 所述的数字电视终端, 其特征在于, 所述数字电视终端 包括: 12. The digital television terminal according to claim 8, characterized in that, the digital television terminal includes:
计算差异值模块, 用于计算所述声音响度值与所述用户预先设置的响度值 之间的差异值; A difference value calculation module, used to calculate the difference value between the sound loudness value and the loudness value preset by the user;
第二判断模块, 用于判断所述差异值是否在允许的差异值范围内; 当所述差异值不在所述允许的差异值范围内时, 通知计算系数模块根据所 述声音响度值和用户预先设置的响度值计算出音量增益系数。 The second judgment module is used to judge whether the difference value is within the allowable difference value range; when the difference value is not within the allowable difference value range, notify the calculation coefficient module to calculate the difference value according to the sound loudness value and the user's preset value. The volume gain factor is calculated from the set loudness value.
13、 如权利要求 9所述的数字电视终端, 其特征在于, 所述采样模块包括: 划分频段单元, 用于根据人耳能感知到的音频频率范围和人耳对所述音频 频率的敏感度将所述音频频率划分为多个频段, 根据不同的所述频段采用不同 的采样率对所述原始音频数据进行所述 T1时长的数字采样。 13. The digital television terminal according to claim 9, wherein the sampling module includes: a frequency band unit, configured to divide the audio frequency range according to the audio frequency range that the human ear can perceive and the sensitivity of the human ear to the audio frequency. The audio frequency is divided into multiple frequency bands, and different frequency bands are used according to different frequency bands. Digital sampling of the T1 duration is performed on the original audio data at a sampling rate.
14、如权利要求 13所述的数字电视终端, 其特征在于, 所述调节模块包括: 幅度调节单元, 根据所述音量增益系数调节整体所述原始音频数据的幅度 或单独调节所述划分得到的各个所述频段的原始音频数据的幅度并混叠各个所 述频段的调节后的音频数据。 14. The digital television terminal of claim 13, wherein the adjustment module includes: an amplitude adjustment unit, which adjusts the amplitude of the entire original audio data or individually adjusts the divided amplitude according to the volume gain coefficient. The amplitude of the original audio data for each of the frequency bands is mixed with the adjusted audio data for each of the frequency bands.
PCT/CN2012/086009 2012-10-30 2012-12-06 Method for automatically controlling channel volume, and digital television terminal WO2014067206A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210422905.9A CN102946520B (en) 2012-10-30 2012-10-30 A kind of method automatically controlling frequency channel volume and digital TV terminal
CN201210422905.9 2012-10-30

Publications (1)

Publication Number Publication Date
WO2014067206A1 true WO2014067206A1 (en) 2014-05-08

Family

ID=47729424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086009 WO2014067206A1 (en) 2012-10-30 2012-12-06 Method for automatically controlling channel volume, and digital television terminal

Country Status (2)

Country Link
CN (1) CN102946520B (en)
WO (1) WO2014067206A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241497A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Mobile terminal and loudness output adjusting method
US10073671B2 (en) 2014-01-20 2018-09-11 Lenovo (Singapore) Pte. Ltd. Detecting noise or object interruption in audio video viewing and altering presentation based thereon
US11042353B2 (en) 2018-11-16 2021-06-22 Roku, Inc. Monitoring loudness level during media replacement event using shorter time constant

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946520B (en) * 2012-10-30 2016-12-21 深圳创维数字技术有限公司 A kind of method automatically controlling frequency channel volume and digital TV terminal
CN104168000A (en) * 2013-05-20 2014-11-26 深圳富泰宏精密工业有限公司 Audio processing system and method
CN103489461B (en) * 2013-09-18 2016-03-16 广东欧珀移动通信有限公司 Audio file play method and system, player
CN104658559B (en) * 2013-11-19 2017-08-15 深圳市快播科技有限公司 Multi-medium play method and device
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN105450193A (en) * 2014-08-28 2016-03-30 深圳Tcl新技术有限公司 Volume adjusting method and volume adjusting device
CN105224279B (en) * 2015-09-21 2018-08-28 福州瑞芯微电子股份有限公司 A kind of audio output control method, control system and electronic equipment
CN106888418A (en) * 2015-12-15 2017-06-23 联想移动通信软件(武汉)有限公司 A kind of method for controlling volume and device
CN105867873A (en) * 2015-12-21 2016-08-17 乐视移动智能信息技术(北京)有限公司 Volume adjustment method and terminal equipment
CN105681876A (en) * 2015-12-30 2016-06-15 惠州市伟乐科技股份有限公司 Audio loudness uniformity control method and system of radio and television broadcasting system
CN105592231B (en) * 2016-02-25 2019-03-29 青岛海信电器股份有限公司 A kind of processing method of signal, device and equipment
CN106792346A (en) * 2016-11-14 2017-05-31 广东小天才科技有限公司 Audio regulation method and device in a kind of instructional video
CN107071316A (en) * 2016-12-30 2017-08-18 华为技术有限公司 The method and terminal device of automatic regulating volume
CN108322848A (en) * 2017-01-16 2018-07-24 塞舌尔商元鼎音讯股份有限公司 The method of sound adjusting apparatus and its sound adjustment with hearing protection function
CN106792370B (en) * 2017-02-20 2021-01-29 广州视源电子科技股份有限公司 Volume control method and device
CN107247574A (en) * 2017-07-17 2017-10-13 中科创达软件股份有限公司 A kind of audio output control method and device
CN107343105B (en) * 2017-07-21 2020-09-22 维沃移动通信有限公司 Audio data processing method and mobile terminal
CN110446102A (en) * 2018-05-04 2019-11-12 青岛海信电器股份有限公司 The loudness method of adjustment and device of audio signal
CN109547848B (en) * 2018-11-23 2021-02-12 北京达佳互联信息技术有限公司 Loudness adjustment method and device, electronic equipment and storage medium
CN110231087B (en) * 2019-06-06 2021-07-23 江苏省广播电视集团有限公司 High-definition television audio loudness analysis alarm and normalization manufacturing method and device
CN112243151A (en) * 2019-07-16 2021-01-19 腾讯科技(深圳)有限公司 Audio playing control method, device, equipment and medium
CN111327944A (en) * 2020-03-09 2020-06-23 上海电力大学 Broadcast voice loudness detection method based on embedded CPU
CN114449337A (en) * 2020-10-30 2022-05-06 深圳Tcl新技术有限公司 Audio signal processing method, device, equipment and computer readable storage medium
CN113889154B (en) * 2021-09-30 2024-03-19 广州维梦科技有限公司 Sound recording method, terminal and storage medium
CN113867680A (en) * 2021-09-30 2021-12-31 联想(北京)信息技术有限公司 Audio output control method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1679082A (en) * 2002-08-30 2005-10-05 杜比实验室特许公司 Controlling loudness of speech in signals that contain speech and other types of audio material
CN1889655A (en) * 2005-06-29 2007-01-03 上海乐金广电电子有限公司 Digital television audio frequency volume automatic regulating method
CN101426112A (en) * 2008-11-05 2009-05-06 青岛海信电子产业控股股份有限公司 Method and apparatus for television sound signal regulation
CN102946520A (en) * 2012-10-30 2013-02-27 深圳创维数字技术股份有限公司 Channel volume automatic control method and digital television terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2682752Y (en) * 2003-12-26 2005-03-02 深圳创维-Rgb电子有限公司 Automatic sound volume adjusting circuit for television set
WO2009086174A1 (en) * 2007-12-21 2009-07-09 Srs Labs, Inc. System for adjusting perceived loudness of audio signals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1679082A (en) * 2002-08-30 2005-10-05 杜比实验室特许公司 Controlling loudness of speech in signals that contain speech and other types of audio material
CN1889655A (en) * 2005-06-29 2007-01-03 上海乐金广电电子有限公司 Digital television audio frequency volume automatic regulating method
CN101426112A (en) * 2008-11-05 2009-05-06 青岛海信电子产业控股股份有限公司 Method and apparatus for television sound signal regulation
CN102946520A (en) * 2012-10-30 2013-02-27 深圳创维数字技术股份有限公司 Channel volume automatic control method and digital television terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10073671B2 (en) 2014-01-20 2018-09-11 Lenovo (Singapore) Pte. Ltd. Detecting noise or object interruption in audio video viewing and altering presentation based thereon
CN107241497A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Mobile terminal and loudness output adjusting method
US11042353B2 (en) 2018-11-16 2021-06-22 Roku, Inc. Monitoring loudness level during media replacement event using shorter time constant
US11347470B2 (en) 2018-11-16 2022-05-31 Roku, Inc. Detection of media playback loudness level and corresponding adjustment to audio during media replacement event
US11372617B2 (en) 2018-11-16 2022-06-28 Roku, Inc. Monitoring loudness level during media replacement event using shorter time constant
US11740860B2 (en) 2018-11-16 2023-08-29 Roku, Inc. Detection of media playback loudness level and corresponding adjustment to audio during media replacement event
US11748055B2 (en) 2018-11-16 2023-09-05 Roku, Inc. Monitoring loudness level during media replacement event using shorter time constant

Also Published As

Publication number Publication date
CN102946520B (en) 2016-12-21
CN102946520A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
WO2014067206A1 (en) Method for automatically controlling channel volume, and digital television terminal
US9413322B2 (en) Audio loudness control system
US9531338B2 (en) Signal processing apparatus, signal processing method, program, signal processing system, and communication terminal
CN106713794B (en) Method for adjusting audio balance and audio system for providing balance adjustment
US10686420B2 (en) Audio signal processing method and apparatus for controlling loudness level
CN109285554B (en) Echo cancellation method, server, terminal and system
US20100142729A1 (en) Sound volume correcting device, sound volume correcting method, sound volume correcting program and electronic apparatus
EP2538559B1 (en) Audio controlling apparatus, audio correction apparatus, and audio correction method
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
KR20230104553A (en) Method for controll loudness level of audio signl using metadata and apparatus using the same
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
JP2009296297A (en) Sound signal processing device and method
WO2023070792A1 (en) Volume balancing method and device for talk-on doorbell, and readable storage medium
JP2007158873A (en) Voice correcting device
JP2011130236A (en) Audio amplifier
JP2013106197A (en) Sound quality controller, sound quality control method, and sound quality control program
US11297454B2 (en) Method for live public address, in a helmet, taking into account the auditory perception characteristics of the listener
JP5067240B2 (en) Delay control device
WO2023286326A1 (en) Information processing device, information processing method, and program
JP7394549B2 (en) Signal processing device and signal processing method
KR100752021B1 (en) Apparatus for reducing pop noise and method thereof
JP2003199185A (en) Acoustic reproducing apparatus, acoustic reproducing program, and acoustic reproducing method
KR20210053236A (en) Audio signal processing method and apparatus for frequency spectrum correction
JP2019161333A (en) Speech processing unit
JP2014013961A (en) Video audio processor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12887536

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04.09.2015)

122 Ep: pct application non-entry in european phase

Ref document number: 12887536

Country of ref document: EP

Kind code of ref document: A1