System and method for realizing rhythm effect of atmosphere lamp of smart television

By extracting the multi-channel analog signal sampling value and calculating the number of lamp beads, generating a gradient color sequence, and dynamically adjusting the lamp bead refresh cycle, the problem of high resource consumption in the existing technology is solved, and the efficient matching of smart TV ambient lights and music rhythms is achieved.

CN120379109APending Publication Date: 2025-07-25SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510529264.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The rhythmic effect of existing smart TV ambient lights is mainly analyzed by real-time acquisition of audio data, resulting in a large amount of resource consumption and the inability to efficiently match the music rhythm.

Method used

By obtaining the analog signal sampling values of multiple channels in real time, extracting the global maximum sampling value, combining the current volume value and the total number of ambient lamp beads, calculating the number of lamp beads to be lit, and generating a gradient color sequence, dynamically adjusting the lamp bead refresh cycle to achieve rhythmic effect.

Benefits of technology

Resource consumption is reduced by more than 30%, achieving a high matching of lighting effects and music rhythm, and adapting to smart TVs with different channels and screen sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120379109A_ABST
    Figure CN120379109A_ABST
Patent Text Reader

Abstract

The invention discloses a system and a method for realizing the rhythm effect of an atmosphere lamp of a smart television, and the method comprises the following steps: a, audio feature extraction: obtaining the analog signal sampling values of a plurality of sound channels when the smart television plays music in real time, carrying out the sampling of each sound channel for multiple times in a fixed period, extracting the maximum sampling value of each sound channel, and obtaining the audio feature; determining a global maximum sampling value X; b, converting the number of the lamp beads: calculating the number of the lamp beads which need to be lighted currently through a preset algorithm based on the global maximum sampling value X, the current volume value Y and the total number Z of the atmosphere lamp beads; c, generating a gradual change effect: generating a gradual change color sequence based on a difference value between the starting RGB value and the ending RGB value according to the number of the lamp beads needing to be lightened, and distributing color values according to the serial number of the lamp beads so as to realize a rhythm gradual change effect; and d, dynamic control: dynamically adjusting a lamp bead refresh cycle according to a music playing state, and turning off the atmosphere lamp and stopping sampling in a non-music scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart TVs, and specifically relates to a system and method for realizing the rhythm effect of the ambient light of a smart TV. Background Art

[0002] With the development of smart TVs, people are no longer satisfied with the TV just being an entrance for watching movies. As an intelligent entity, the TV should provide more emotional value to users. At this time, it is very necessary for a smart TV equipped with ambient lights to achieve a music rhythm effect. Currently, on the market, the rhythm effect of ambient lights is mainly achieved by obtaining audio data in real time, analyzing each byte of audio data and converting it into a light effect, which consumes a lot of resources. Summary of the Invention

[0003] The purpose of the present invention is to provide a system and method for realizing the rhythm effect of the ambient light of a smart TV, in order to solve the technical problems existing in the background art.

[0004] In order to achieve the above purpose, the present invention adopts the following technical solutions:

[0005] A method for realizing the rhythm effect of the ambient light of a smart TV includes the following steps:

[0006] a: Audio feature extraction: Real-time obtain the analog signal sampling values of multiple channels when the smart TV plays music. Each channel is sampled multiple times within a fixed period, and the maximum sampling value of each channel is extracted, and the global maximum sampling value X is determined from them;

[0007] b: LED number conversion: Based on the global maximum sampling value X, the current volume value Y, and the total number of LEDs Z of the ambient light, calculate the number of LEDs to be lit currently through a preset algorithm;

[0008] c: Gradient effect generation: According to the number of LEDs to be lit, generate a gradient color sequence based on the difference between the starting RGB value and the ending RGB value, and assign color values according to the LED serial number to achieve a rhythm gradient effect;

[0009] d: Dynamic control: Dynamically adjust the LED refresh period according to the music playing state, and turn off the ambient light and stop sampling in non-music scenarios.

[0010] In some embodiments, the multiple channels in step a include the ADC voltage values of the left channel, the right channel, and the subwoofer channel. The amplitude characteristic parameters of each channel are obtained in the following manner:

[0011] Each channel is sampled multiple times with a period T, and the value range of T is 20 ms to 50 ms;

[0012] Multiple samplings are completed within every N milliseconds, where the value range of N is from 80 ms to 120 ms, and the number of samplings is from 2 to 4 times;

[0013] Select the maximum value among multiple samplings as the global maximum sampling value X of this sound channel.

[0014] In some embodiments, the calculation formula of the preset algorithm in step b is:

[0015]

[0016] Where X is the global maximum sampling value, Y is the current volume value, and Z is the total number of light beads of the atmosphere light.

[0017] In some embodiments, the generation method of the gradient color sequence in step c is:

[0018] RGB = offsetRGB / n;

[0019] Where n is the serial number of the light beads to be lit;

[0020] startRGB is the starting RGB value;

[0021] endRGB is the ending RGB value.

[0022] In some embodiments, the method is activated when the smart TV recognizes a music playing scene, and the atmosphere light rhythm function is automatically turned off in non-music scenes.

[0023] This embodiment also provides a system for realizing the atmosphere light rhythm effect of a smart TV, which is configured to implement any of the above-mentioned methods and is configured with the following modules:

[0024] An audio acquisition module, which is used to obtain the analog signal sampling values of multiple sound channels in real time when the smart TV plays music. Each sound channel performs multiple samplings within a fixed period, extracts the maximum sampling value of each sound channel, and determines the global maximum sampling value from them;

[0025] A data processing module, which is used to calculate the number of light beads to be lit currently based on the global maximum sampling value, the current volume value, and the total number of light beads of the atmosphere light through a preset algorithm. The preset algorithm includes logarithmic operations on sampling values, square root operations on volume values, and linear associations of the total number of light beads;

[0026] A lighting control module, which is used to generate a gradient color sequence according to the number of light beads to be lit, and allocate color values according to the light bead serial numbers to achieve a rhythm gradient effect;

[0027] A dynamic control module, which is used to dynamically adjust the light bead refresh period according to the music playing state, and turn off the atmosphere light and stop sampling in non-music scenes.

[0028] In some embodiments, the audio acquisition module includes:

[0029] A multi-channel sampling unit configured to independently sample the left channel, right channel, and subwoofer channel, and perform multiple samplings on each channel with a period T, where the value range of T is from 20 ms to 50 ms;

[0030] Multiple samplings are completed within every N milliseconds, where the value range of N is from 80 ms to 120 ms, and the number of samplings is 2 to 4 times;

[0031] A global maximum value calculation unit for selecting the global maximum sampling value from the representative values of each channel.

[0032] In some embodiments, the preset algorithm in the data processing module is:

[0033]

[0034] Where X is the global maximum sampling value, Y is the current volume value, and Z is the total number of light beads of the ambient light.

[0035] In some embodiments, the lighting control module includes:

[0036] A gradient generation unit for generating a color gradient sequence according to the difference between the starting RGB value and the ending RGB value.

[0037] In some embodiments, the dynamic control module includes:

[0038] A scene recognition unit for detecting whether the smart TV is currently in a music playback scene;

[0039] A period adjustment unit configured to refresh the light effect at a preset period in the music playback scene, and turn off the ambient light and sampling function in non-music scenes.

[0040] The beneficial effects that the system and method for realizing the rhythmic effect of the smart TV ambient light disclosed in this application may bring include, but are not limited to:

[0041] Resource optimization: By replacing audio data parsing with ADC sampling, the calculation amount is reduced by more than 30%;

[0042] Natural effect: Combining the dynamic parameters of volume and hardware configuration, the rhythm amplitude highly matches the music rhythm;

[0043] Hardware compatibility: Adapt to smart TVs with different channel numbers and screen sizes, with strong scalability. Description of the Drawings

[0044] Figure 1 It is the flowchart of this application. Detailed Embodiments

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] On the contrary, the present application covers any substitutions, modifications, equivalent methods and solutions made to the essence and scope of the present application defined by the claims. Further, in order to enable the public to have a better understanding of the present application, some specific details are described in detail in the following detailed description of the present application. Those skilled in the art can fully understand the present application without the description of these details.

[0047] As Figure 1 shown, a method for implementing the rhythm effect of the smart TV atmosphere light includes the following steps:

[0048] a: Audio feature extraction: Real-time obtain the analog signal sampling values of multiple channels when the smart TV plays music. Each channel is sampled multiple times within a fixed period, extract the maximum sampling value of each channel, and determine the global maximum sampling value X therefrom;

[0049] The smart TV intelligently identifies the music playing scene, obtains the adc values of the adc pins of the left channel, right channel, and subwoofer channel of the smart TV. The adc sampling period is 30 ms, and each channel is sampled 3 times within 100 ms. The left channel adc values are leftadc1, leftadc2, leftadc3, and the maximum left channel adc value leftadcmax is obtained by comparison. The right channel adc values are rightadc1, rightadc2, rightadc3, and the maximum right channel adc value rightadcmax is obtained by comparison. The subwoofer channel adc values are lowadc1, lowadc2, lowadc3, and the maximum subwoofer channel value lowadcmax is obtained by comparison. Finally, compare leftadcmax, rightadcmax, and lowadcmac to obtain the maximum sampling adc value adcmax, which is used as the adc value in the subsequent algorithm, that is, determine the global maximum sampling value X.

[0050] The number of channels described in the above functions can also be increased or decreased according to the number of channels of the smart TV power amplifier. The refresh period of the atmosphere light effect is 100 ms. Because a too short period for refreshing the light effect will make the rhythm effect very rigid and flickering. A too long period will make the rhythm effect not match the music rhythm. And within the equivalent refresh period of 100 ms, sampling the adc values of multiple channels multiple times and obtaining the maximum adc value can make the rhythm effect more obvious, because a larger adc value can display a larger amplitude of the rhythm effect.

[0051] b: Conversion of the number of lamp beads: Based on the global maximum sampling value X, the current volume value Y, and the total number of lamp beads Z of the ambient light, calculate the number of lamp beads to be lit currently through a preset algorithm;

[0052] The calculation formula of the preset algorithm in step b is:

[0053]

[0054] Among them, X is the global maximum sampling value, Y is the current volume value, and Z is the total number of lamp beads of the ambient light.

[0055] The rhythm effect of the ambient light, in essence, is to refresh the number of lamp beads of the ambient light in a short time. The ambient light strip is composed of many lamp beads, and the rhythm effect is achieved by lighting different numbers of lamp beads. The algorithm of this application is to convert the adc value into the number of lamp beads. This application designs an algorithm, taking into account various factors affecting the rhythm effect. This application designs an algorithm formula, considering three factors affecting the ambient light.

[0056]

[0057] 1. The first factor is the adc value. X is the current adc value, that is, the global maximum sampling value, 8 is the initial adc value, and the adc value range is 0 - 4096. By performing a logarithmic operation on the two adc values, an adc change amplitude is obtained;

[0058] 2. The second factor is the total number of lamp beads of the ambient light strip. Since the screen sizes of smart TVs are different, the total number of ambient light lamp beads equipped is also different. Therefore, the total number of ambient light lamps Z needs to be added in the formula.

[0059] 3. The third factor is the volume Y of the smart TV. Intuitively, the volume size can directly affect the amplitude of the rhythm. According to the actual effect, the volume index is designed as shown above, and the volume coefficient is formulated through square root operations and multiplication and division.

[0060] c: Generation of the gradient effect: Based on the difference between the starting RGB value and the ending RGB value, generate a gradient color sequence according to the number of lamp beads to be lit, and allocate color values according to the lamp bead numbers to achieve the rhythm gradient effect;

[0061] Obtain the number of lamp beads num of the ambient light in step b. Since the rhythm effect is a gradient color, this effect needs to be achieved regardless of the number of lamp beads. We will have a starting RGB value startRGB and an ending endRGB value. Calculate offsetRGB = startRGB - endRGB. Then the color value of the lamp beads to be lit can be obtained by the algorithm RGB = offsetRGB / n, where n is the serial number of the lamp beads to be lit, and the gradient rhythm effect can be achieved.

[0062] d: Dynamic control: Dynamically adjust the lamp bead refresh period according to the music playing state, and turn off the ambient light and stop sampling in non-music scenarios.

[0063] To more clearly illustrate the technical solutions in the embodiments of the present application, the present invention will be further described below in conjunction with the drawings and embodiments. It should be noted that the nouns and terms involved in the following detailed description are all common definitions in the Linxu field, and those skilled in the art of the present technology should have the same understanding.

[0064] The following embodiments are based on the linux platform and are described by way of example of usage scenarios.

[0065] S1. The user turns on the TV and uses voice to call up Kugou Music to play a song. In this scenario, the smart TV recognizes that the current environment is a music-playing environment, performs adc sampling on the left channel, right channel, and subwoofer channel every 30 ms, and refreshes the lamp bead lighting effect every 100 ms. The user can then see the effect that the ambient light follows the music rhythm as the music plays, providing a good emotional value.

[0066] S2. The user feels that the sound is a bit low and uses the remote control to increase the volume. Since our algorithm takes into account the volume factor and uses our algorithm to convert the lamp bead formula, the user can also see that the rhythm amplitude of the ambient light increases as the volume increases.

[0067] S3. The user doesn't want to listen to music anymore and exits Kugou Music. The smart TV recognizes that the current scenario is not a music-playing scenario, refreshes the number of lit lamp beads to 0 to achieve the extinguishing effect, and stops performing channel adc sampling.

[0068] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for realizing the rhythm effect of the atmosphere light of a smart TV, characterized in that, It includes the following steps: a: Audio feature extraction: Real-time obtain the analog signal sampling values of multiple channels when the smart TV plays music. Each channel is sampled multiple times within a fixed period, extract the maximum sampling value of each channel, and determine the global maximum sampling value X therefrom; b: LED bead number conversion: Based on the global maximum sampling value X, the current volume value Y, and the total number of LED beads Z of the ambient light, calculate the number of LED beads to be lit currently through a preset algorithm; c: Gradient effect generation: According to the number of LED beads to be lit, generate a gradient color sequence based on the difference between the starting RGB value and the ending RGB value, and assign color values according to the LED bead serial number to achieve a rhythmic gradient effect; d: Dynamic control: Dynamically adjust the LED bead refresh period according to the music playing state, and turn off the ambient light and stop sampling in non-music scenarios.

2. The method according to claim 1, wherein In step a, the multiple channels include the ADC voltage values of the left channel, right channel, and subwoofer channel. The amplitude characteristic parameters of each channel are obtained in the following manner: Sample each channel multiple times with a period T, and the value range of T is 20ms to 50ms; Complete multiple samplings within every N milliseconds, the value range of N is 80ms to 120ms, and the number of sampling times is 2 to 4 times; Select the maximum value among the multiple samplings as the global maximum sampling value X of this channel.

3. The method according to claim 1, characterized in that The calculation formula of the preset algorithm in step b is: Wherein, X is the global maximum sampling value, Y is the current volume value, and Z is the total number of LED beads of the ambient light.

4. The method according to claim 1, wherein The generation method of the gradient color sequence in step c is: RGB = offsetRGB / n; Wherein, n is the serial number of the LED bead to be lit; startRGB is the starting RGB value; endRGB is the ending RGB value.

5. The method according to claim 1, characterized in that, The method is activated when the smart TV recognizes a music playing scenario, and automatically turns off the ambient light rhythm function in non-music scenarios.

6. A system for realizing the rhythm effect of the atmosphere light of a smart TV, characterized in that, It is configured to implement the method described in any one of claims 1-5, and is configured with the following modules: An audio acquisition module, configured to real-time obtain the analog signal sampling values of multiple channels when the smart TV plays music. Each channel is sampled multiple times within a fixed period, extract the maximum sampling value of each channel, and determine the global maximum sampling value therefrom; A data processing module, configured to calculate the number of LED beads to be lit currently based on the global maximum sampling value, the current volume value, and the total number of LED beads of the ambient light through a preset algorithm. The preset algorithm includes logarithmic operations on sampling values, square root operations on volume values, and linear associations of the total number of LED beads; A lighting control module, configured to generate a gradient color sequence according to the number of LED beads to be lit, and assign color values according to the LED bead serial number to achieve a rhythmic gradient effect; A dynamic control module, configured to dynamically adjust the LED bead refresh period according to the music playing state, and turn off the ambient light and stop sampling in non-music scenarios.

7. The system according to claim 6, characterized in that The audio acquisition module includes: A multi-channel sampling unit, configured to independently sample the left channel, right channel, and subwoofer channel, sample each channel multiple times with a period T, and the value range of T is 20ms to 50ms; Complete multiple samplings within every N milliseconds, the value range of N is 80ms to 120ms, and the number of sampling times is 2 to 4 times; A global maximum value calculation unit for selecting a global maximum sampling value from the representative values of each channel.

8. The system according to claim 6, wherein The preset algorithm in the data processing module is as follows: Where X is the global maximum sampling value, Y is the current volume value, and Z is the total number of light beads of the ambient light.

9. The system according to claim 6, wherein The light control module includes: A gradient generation unit for generating a color gradient sequence according to the difference between the starting RGB value and the ending RGB value.

10. The system according to claim 6, wherein, The dynamic control module includes: A scene recognition unit for detecting whether the smart TV is currently in a music playing scene; A period adjustment unit configured to refresh the light effect at a preset period in the music playing scene and turn off the ambient light and sampling function in non-music scenes.

Citation Information

Cited By

  • AI intelligent display television atmosphere lamp control system, method and device and medium

    CN121099497A