Search

CN-122028269-A - Atmosphere lamp rhythm control method and device, electronic equipment and storage medium

CN122028269ACN 122028269 ACN122028269 ACN 122028269ACN-122028269-A

Abstract

The application relates to the technical field of vehicles and discloses an atmosphere lamp rhythm control method, an atmosphere lamp rhythm control device, electronic equipment and a storage medium. The method comprises the steps of collecting an original audio signal, converting the original audio signal into frequency spectrum data through a preset conversion mode, extracting energy distribution data of at least one frequency band in the frequency spectrum data, normalizing the energy distribution data to output standard energy data, locking beat time and beat period of the audio based on the standard energy data and a preset comfort strategy, calculating a decibel value of the current audio in real time according to the original audio signal, and adjusting the rhythm of the atmosphere lamp according to the beat time, the beat period and the decibel value. The application can enable the light effect to simultaneously respond to the rhythm change and the volume intensity of music, realize richer dynamic visual feedback, create immersive vehicle-mounted entertainment atmosphere and meet the high-order experience demands of users.

Inventors

  • LIU JIAYU
  • DENG YIDA
  • HOU GUANZHU
  • JIANG WENJIA
  • ZHAI ZHAOHUA

Assignees

  • 中国第一汽车股份有限公司

Dates

Publication Date
20260512
Application Date
20260317

Claims (10)

  1. 1. An atmosphere lamp rhythm control method, characterized by comprising at least: collecting an original audio signal; converting the original audio signal into frequency spectrum data through a preset conversion mode; Extracting energy distribution data of at least one frequency band in the frequency spectrum data, and normalizing the energy distribution data to output standard energy data; locking beat time and beat period of the audio based on the standard energy data and a preset comfort strategy; calculating the decibel value of the current audio in real time according to the original audio signal; And adjusting the rhythm of the atmosphere lamp at least according to the beat time, the beat period and the decibel value.
  2. 2. The method according to claim 1, wherein the extracting the energy distribution data of at least one frequency band in the spectrum data and normalizing the energy distribution data to output standard energy data specifically comprises: extracting the maximum amplitude value of at least one frequency band according to a preset frequency interval; determining an amplitude average value according to all the amplitude maximum values; and carrying out normalization processing on each amplitude maximum value based on the amplitude average value so as to output standard energy data.
  3. 3. The method according to claim 2, wherein the normalization process is performed on each of the maximum amplitude values based on the average amplitude value to output standard energy data, specifically comprising: if any amplitude maximum value is not smaller than the amplitude average value, reserving the corresponding amplitude maximum value to output standard energy data; and if any amplitude maximum value is smaller than the amplitude average value, resetting the corresponding amplitude average value to a preset value so as to output standard energy data.
  4. 4. The atmosphere light rhythm control method according to claim 1, wherein the locking of beat time and beat period of audio based on the standard energy data and a preset comfort policy specifically comprises: caching the standard energy data in a preset range, and forming the standard energy data into a standard energy array; Acquiring incremental energy data in the standard energy array, and determining an audio time corresponding to the incremental energy data as a beat time; and locking the beat period based on the preset comfort strategy and the standard energy data.
  5. 5. The method according to claim 1, wherein the adjusting the rhythm of the atmosphere lamp based on at least the beat time, the beat period, and the decibel value, specifically comprises: and adjusting the flickering intensity of the atmosphere lamp according to the beat time and the beat period, and adjusting the brightness and the tone of the atmosphere lamp according to the decibel value.
  6. 6. An atmosphere lamp rhythm control device comprising at least: The audio acquisition module is used for acquiring original audio signals; the frequency spectrum conversion module is used for converting the original audio signal into frequency spectrum data in a preset conversion mode; The normalization module is used for extracting energy distribution data of at least one frequency band in the frequency spectrum data and normalizing the energy distribution data to output standard energy data; the beat locking module is used for locking beat time and beat period of the audio based on the standard energy data and a preset comfort strategy; The decibel calculating module is used for calculating the decibel value of the current audio in real time according to the original audio signal; and the rhythm adjustment module is used for adjusting the rhythm of the atmosphere lamp at least according to the beat time, the beat period and the decibel value.
  7. 7. The atmosphere light rhythm control device of claim 6, wherein the normalization module is specifically configured to: Extracting the maximum amplitude value of at least one frequency band according to a preset frequency interval; and performing normalization processing on each of the amplitude maxima based on the amplitude averages to output standard energy data.
  8. 8. The atmosphere light rhythm control device of claim 7, wherein the normalization module is further specifically configured to: When any amplitude maximum value is not smaller than the amplitude average value, reserving the corresponding amplitude maximum value to output standard energy data; and resetting the corresponding amplitude average value to a preset value when any amplitude maximum value is smaller than the amplitude average value, so as to output standard energy data.
  9. 9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method for controlling an ambience light rhythm of any one of claims 1 to 5 when the program is executed.
  10. 10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, realizes the steps in the method of controlling an ambience light rhythm according to any one of claims 1 to 5.

Description

Atmosphere lamp rhythm control method and device, electronic equipment and storage medium Technical Field The present invention relates to the field of vehicle technologies, and in particular, to an atmosphere lamp rhythm control method, an apparatus, an electronic device, and a storage medium. Background In the current mainstream on-vehicle atmosphere lamp system in market, its function realization scope all focuses on basic regulation dimension, only can realize the basis function that light colour switched, luminance was adjusted, and functional form is comparatively single, can't satisfy the user and experience the high-order user demand to immersive on-vehicle amusement. At present, the vehicle-mounted atmosphere lamp function capable of dynamically adjusting the light according to the real-time rhythm state of music playing is only applied to high-end vehicle types of all whole vehicle manufacturers, and large-scale popularization is not realized in main stream household vehicle markets. From the technical realization point of view, the function realization of the existing music rhythm type vehicle-mounted atmosphere lamp is realized by relying on an independently configured atmosphere lamp controller to complete the acquisition, analysis and control instruction output of audio signals, and the additional mounting of the independently configured atmosphere lamp controller can directly lead to the remarkable increase of the hardware configuration cost of the whole vehicle, thereby forming an obvious cost barrier. In summary, the existing vehicle-mounted atmosphere lamp system has obvious defects in function richness and market popularity, and the implementation of related advanced functions is limited by higher hardware cost, so that the optimization of technical strategies breaks through the cost barriers and reduces the function implementation threshold of the music rhythm type vehicle-mounted atmosphere lamp, and the vehicle-mounted atmosphere lamp system becomes a key technical requirement for realizing experience upgrading and promoting the market popularization of advanced functions in the vehicle-mounted atmosphere lamp field. Disclosure of Invention The invention aims to provide an atmosphere lamp rhythm control method, an atmosphere lamp rhythm control device, electronic equipment and a storage medium, which at least solve the problem of low popularity caused by high cost of the existing atmosphere lamp control strategy, are beneficial to reducing hardware cost and ensure user experience. In order to solve the above technical problems, in a first aspect, the present invention provides an atmosphere lamp rhythm control method, which at least includes: collecting an original audio signal; converting the original audio signal into frequency spectrum data through a preset conversion mode; Extracting energy distribution data of at least one frequency band in the frequency spectrum data, and normalizing the energy distribution data to output standard energy data; locking beat time and beat period of the audio based on the standard energy data and a preset comfort strategy; calculating the decibel value of the current audio in real time according to the original audio signal; And adjusting the rhythm of the atmosphere lamp at least according to the beat time, the beat period and the decibel value. Optionally, the extracting energy distribution data of at least one frequency band in the spectrum data and normalizing the energy distribution data to output standard energy data specifically includes: extracting the maximum amplitude value of at least one frequency band according to a preset frequency interval; determining an amplitude average value according to all the amplitude maximum values; and carrying out normalization processing on each amplitude maximum value based on the amplitude average value so as to output standard energy data. Optionally, the normalizing process is performed on each maximum amplitude value based on the average amplitude value, so as to output standard energy data, which specifically includes: if any amplitude maximum value is not smaller than the amplitude average value, reserving the corresponding amplitude maximum value to output standard energy data; and if any amplitude maximum value is smaller than the amplitude average value, resetting the corresponding amplitude average value to a preset value so as to output standard energy data. Optionally, the locking the beat time and beat period of the audio based on the standard energy data and the preset comfort policy specifically includes: caching the standard energy data in a preset range, and forming the standard energy data into a standard energy array; Acquiring incremental energy data in the standard energy array, and determining an audio time corresponding to the incremental energy data as a beat time; and locking the beat period based on the preset comfort strategy and the standard energy data. Optionally, the adjusti