Atmosphere lamp control method and device, vehicle and computer readable storage medium

By obtaining audio frequency domain information and dividing it into multiple frequency band ranges, the target decibels are determined to control the changes of ambient lights, which solves the problem of inconsistency between the ambient lights and the music content and improves the user experience.

CN119796053APending Publication Date: 2025-04-11AVATR CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202510017984.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the prior art, there is a lack of coordination between the dynamic changes of ambient lights and music content, resulting in poor user experience.

Method used

By obtaining the frequency domain information of the audio to be played, it is divided into multiple frequency band ranges of the low frequency and high frequency parts, and the target decibels of each frequency band range are determined based on the frequency domain information, thereby controlling the color and brightness changes of the atmosphere light.

Benefits of technology

It realizes coordination between the changes in ambient lights and music content, accurately captures the complex rhythm and melody changes of the music, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119796053A_ABST
    Figure CN119796053A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicles, and discloses an atmosphere lamp control method and device, a vehicle and a computer readable storage medium, and the method comprises the steps: obtaining the frequency domain information of a to-be-played audio, then determining the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information, and obtaining the target decibel corresponding to the target decibel; the multiple frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of the audio frequency, the frequency band width of the frequency band range corresponding to the low-frequency part is smaller than that of the frequency band range corresponding to the high-frequency part, and finally the atmosphere lamp is controlled to operate according to the target decibel corresponding to each frequency band range. By applying the technical scheme of the invention, the dynamic change of the atmosphere lamp can be coordinated with the music content, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle technology, and more particularly to a method and device for controlling an ambient light, a vehicle, and a computer-readable storage medium. Background Art

[0002] In the field of vehicle technology, ambient lighting has become an important tool for improving the environment, especially in some high-configuration vehicles. Traditional ambient lighting is mostly static color or simple periodic changes, lacking the ability to change dynamically in sync with music.

[0003] With the development of technology, people begin to pursue a more intelligent and personalized atmosphere experience. Existing music-synchronized atmosphere lights mostly rely on simple audio signal processing technology.

[0004] However, in the above-mentioned manner, it is still impossible to coordinate the changes in music and ambient lighting, resulting in a relatively poor user experience. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention provide a method, device, vehicle and computer-readable storage medium for controlling an ambient light, which are used to solve the technical problem of the inconsistency between the dynamic changes of the ambient light and the music content existing in the prior art.

[0006] According to one aspect of an embodiment of the present invention, a method for controlling an ambient light is provided, the method comprising:

[0007] Obtain frequency domain information of the audio to be played;

[0008] According to the frequency domain information, a target decibel corresponding to each frequency band range is determined in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part;

[0009] The operation of the ambient light is controlled according to the target decibel corresponding to each frequency band range.

[0010] According to another aspect of an embodiment of the present invention, there is provided a control device for an atmosphere lamp, comprising:

[0011] An acquisition module, used to acquire frequency domain information of the audio to be played;

[0012] A determination module, configured to determine, according to the frequency domain information, a target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part;

[0013] The control module is used to control the operation of the atmosphere light according to the target decibel corresponding to each frequency band range.

[0014] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0015] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the above-mentioned method for controlling the atmosphere light.

[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables an ambient light control device / vehicle to perform the operation of the ambient light control method described above.

[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, characterized in that it includes a computer program, and when the computer program is executed by a processor, the control device / vehicle of the ambient light executes the above-mentioned control method of the ambient light.

[0018] The embodiment of the present invention obtains the frequency domain information of the audio to be played, and then determines the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information. The plurality of frequency band ranges are obtained by dividing the low-frequency part and the high-frequency part of the audio frequency, and the frequency band width of the frequency band range corresponding to the low-frequency part is smaller than the frequency band width of the frequency band range corresponding to the high-frequency part. Finally, according to the target decibel corresponding to each frequency band range, the operation of the atmosphere lamp is controlled. By applying the technical scheme of the present invention, a more refined division is performed for the low-frequency part of the audio frequency, so that the audio to be played is closer to the more sensitive perception of the human ear, while the perception of the human ear is relatively low for the high-frequency part, so that a general division is performed to achieve the purpose of transmitting more audio information of the audio to be played that is sensitive to the human ear. Then, for the divided frequency band range, the frequency domain information of the audio to be played is matched to obtain the decibel of the corresponding frequency band range, so as to control the color and brightness of the atmosphere lamp to change based on the decibel, so as to be more in line with the actual feelings of the user and improve the user's experience.

[0019] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0021] Figure 1 A schematic diagram showing the overall architecture of the method for controlling an atmosphere lamp provided by the present invention is shown;

[0022] Figure 2 A flow chart showing a first embodiment of a method for controlling an atmosphere lamp provided by the present invention;

[0023] Figure 3 A schematic diagram of the time domain spectrum of the audio to be played provided by the present invention is shown;

[0024] Figure 4 A schematic diagram showing frequency domain information corresponding to a fast Fourier transform of an audio to be played at a certain moment provided by the present invention is shown;

[0025] Figure 5 The figure shows the CAN frequency domain distribution diagram after the average frequency compression of continuous frequency domain information;

[0026] Figure 6 It shows the schematic diagram of CAN frequency domain distribution after continuous frequency domain information human ear sensitive frequency compression processing;

[0027] Figure 7 A flow chart showing a second embodiment of the method for controlling an atmosphere lamp provided by the present invention;

[0028] Figure 8 A flow chart showing a third embodiment of the method for controlling an atmosphere lamp provided by the present invention;

[0029] Fig. 9 A flowchart of a fourth embodiment of the method for controlling an atmosphere lamp provided by the present invention is shown;

[0030] Fig.10 A schematic structural diagram of an embodiment of a control device for an atmosphere lamp provided by the present invention is shown;

[0031] Fig.11 A schematic structural diagram of an embodiment of a vehicle provided by the present invention is shown. DETAILED DESCRIPTION

[0032] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0033] In modern life, ambient lighting has become an important tool to enhance the ambient atmosphere, and has been widely used in some car models.

[0034] Traditional ambient lights are mostly static colors or simple periodic changes, lacking the ability to change dynamically in sync with music. With the development of technology, people are beginning to pursue a more intelligent and personalized ambient experience, and ambient lights based on the rhythm and melody of music have emerged.

[0035] However, existing music-synchronized ambient lights mostly rely on simple audio signal processing technologies, such as low-frequency filtering or peak detection, which still cannot achieve coordination between the dynamic changes of the ambient lights and the music content, resulting in a poor user experience.

[0036] In addition, the frequency range that human ears can hear is within 20Hz-20000Hz. To transmit music information losslessly and without delay according to normal music, huge bandwidth resources are required, and traditional automotive CAN networks are obviously unable to provide such huge bandwidth resources.

[0037] Based on the above technical problems, the technical concept of the present invention is as follows: when the inventor studied the relationship between the dynamic changes of the atmosphere light and the music content, he found that the sensitivity of the human ear to different frequencies of the music content is inconsistent. If it can be determined based on the frequency domain information corresponding to the music content, and then based on the sensitivity of the human ear, to set the corresponding frequency band range, and then combine the frequency domain information and the frequency band range to control the light changes of the atmosphere light, thereby achieving coordination between the dynamic changes of the atmosphere light and the music content, so as to accurately capture the complex rhythm and melody changes of the music and enhance the user experience.

[0038] Figure 1 The overall structure diagram of the atmosphere lamp control method provided by the present invention is shown as follows: Figure 1 As shown, the architecture includes: cockpit domain controller, body controller, and ambient light.

[0039] In one possible implementation, the implementation of the cockpit domain controller may include: 1. Acquiring audio information from multimedia applications, including music, movies, and other software with audio playback capabilities; 2. Performing a real-time Fourier transform on the acquired original audio information to obtain the frequency domain information of the current music; 3. Compressing the frequency domain information according to the range of human ear sensitivity, and sending the CAN audio information to the body domain controller in real time via CAN communication.

[0040] The implementation of the body controller may include: obtaining the latest CAN audio information, introducing the music rhythm algorithm, and giving the control request corresponding to the color and brightness of each lamp bead.

[0041] The implementation of the ambient light may include: receiving a control request from the vehicle body domain controller, and executing the color and brightness according to the control request; it should be understood that there is no limit on the number of ambient lights, etc.

[0042] The technical solution of the present invention is described in detail below through specific embodiments. The execution subject of the present invention is a vehicle, specifically a controller in the vehicle, specifically a cockpit domain controller and a body controller.

[0043] It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0044] Figure 2 FIG. 1 is a flow chart showing a first embodiment of a method for controlling an ambient light provided by the present invention, the method being executed by a vehicle. Figure 2 As shown, the method comprises the following steps:

[0045] Step 21: Obtain frequency domain information of the audio to be played;

[0046] In this step, in the multimedia application of the vehicle, when the user needs to play audio such as music or movies, the vehicle obtains the audio data, that is, the audio to be played.

[0047] Furthermore, in order to match the multiple frequency band ranges determined by the human ear sensitivity information, the audio to be played needs to be converted into corresponding frequency domain information.

[0048] Optionally, step 21 may include the following implementation process:

[0049] Step 1: Get the audio to be played;

[0050] In one possible implementation, Figure 3 FIG. 4 shows a schematic diagram of the time domain spectrum of the audio to be played provided by the present invention, such as Figure 3 As shown, the horizontal axis represents the time T of the audio to be played, and the vertical axis represents the amplitude of the audio to be played at the corresponding time point, that is, the strength or amplitude of the audio signal corresponding to the audio to be played, such as dB.

[0051] That is, the audio to be played is a time-series spectrum signal.

[0052] Step 2: Perform fast Fourier transform on the audio to be played to obtain frequency domain information.

[0053] In this implementation, the time-series spectrum signal cannot be directly transmitted to the vehicle body domain controller, so further calculation and analysis are required to perform a fast Fourier transform on the audio to be played to obtain frequency domain information.

[0054] The following is an explanation using the frequency domain information corresponding to the fast Fourier transform at a certain moment as an example.

[0055] In one possible implementation, Figure 4 FIG. 4 shows a schematic diagram of frequency domain information corresponding to the fast Fourier transform of the audio to be played at a certain moment provided by the present invention, such as Figure 4 As shown, the horizontal axis represents the frequency of the signal at that moment, and the vertical axis represents the amplitude or power of the signal at the corresponding frequency component point, that is, it can be the decibel of the frequency component.

[0056] That is, the horizontal axis involves 0-24000Hz, and each frequency corresponds to an output of -160db-0db.

[0057] Optionally, step 21 is performed by a cockpit domain controller.

[0058] Step 22: Determine the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information;

[0059] The plurality of frequency bands are frequency bands obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band corresponding to the low-frequency part is smaller than a frequency band width of the frequency band corresponding to the high-frequency part;

[0060] In this step, the frequency domain information may be the frequency domain information corresponding to the audio to be played at each moment. Taking any frequency domain information as an example, the decibels in each frequency band range may be determined in multiple frequency band ranges, and based on this, the target decibels may be obtained.

[0061] In the implementation of the prior art, Figure 5 FIG. 4 shows a schematic diagram of CAN frequency domain distribution after the average frequency compression of continuous frequency domain information. Figure 5 As shown, 0-20000 Hz is evenly divided.

[0062] However, users do not perceive frequency on a linear scale and are better at detecting differences in lower frequencies than in higher frequencies. For example, one can easily tell the difference between 500Hz and 1000Hz, but have difficulty telling the difference between 10000Hz and 10500Hz, even if the distance between the two pairs is the same.

[0063] For the solution provided by the present invention, Figure 6 The schematic diagram of CAN frequency domain distribution after continuous frequency domain information human ear sensitive frequency compression processing is shown as Figure 6 As shown (the segmentation is implemented by the following embodiment), based on the multiple frequency band ranges segmented based on the human ear sensitivity information, CAN can complete this continuous and complete transmission.

[0064] That is, the low-frequency part of the audio frequency is divided more accurately, while the high-frequency part is divided generally, which is more in line with the consideration of the sensitive frequency of the human ear. Figure 5 With the same amount of data, it can transmit more audio information that is sensitive to the human ear, thereby achieving a better ambient light and music rhythm effect for humans to experience.

[0065] Exemplarily, a preset frequency can be used as the dividing point between the low-frequency part and the high-frequency part. For example, the preset frequency can be 3094.7 Hz. At this time, the frequency less than or equal to the preset frequency is called the low-frequency part of the audio frequency, and the frequency greater than the preset frequency is called the high-frequency part of the audio frequency. In actual implementation, based on the above example, the size setting of the preset frequency is determined based on the difference in the corresponding frequency that the user's human ear can perceive. Specifically, it can be implemented based on the Mel spectrum method in the following embodiment.

[0066] Optionally, the cockpit domain controller compresses the frequency domain information according to multiple frequency bands to obtain the target decibel corresponding to each frequency band (i.e., CAN audio information), and then sends the target decibel corresponding to each frequency band to the body domain controller in real time through CAN communication.

[0067] Step 23: Control the operation of the ambient light according to the target decibel corresponding to each frequency band range.

[0068] In this step, the music rhythm algorithm is introduced in real time according to the target decibel corresponding to each frequency band range, and a color and brightness control request for each lamp bead in the specific atmosphere light is given, thereby realizing the control of the atmosphere light.

[0069] Optionally, step 23 may include the following implementation process:

[0070] Step 1: Determine the brightness and color information of each lamp bead in the atmosphere light according to the target decibel corresponding to each frequency band range;

[0071] For example, a specific color (i.e., color information) of the lamp beads can be set for each frequency band range. For example: low frequency band (such as 20-200Hz): corresponds to warmer colors (such as red or orange); medium frequency band (such as 200Hz-2000Hz): corresponds to neutral colors or green; high frequency band (such as above 2000Hz): corresponds to cool colors (such as blue or purple).

[0072] In addition, the color saturation can be adjusted according to the target decibel level. The higher the decibel, the brighter the color (i.e., brightness information).

[0073] Step 2: Control the operation of each lamp bead in the atmosphere light according to the brightness information and color information.

[0074] In this implementation, after the brightness information and color information of each lamp bead are obtained, the brightness of each lamp bead and the color of each lamp bead are controlled accordingly.

[0075] For example, the body domain controller can adjust the brightness of the lamp beads through pulse width modulation (PWM) and control the color through the color model (RGB) or hue, saturation, brightness (HSV) model.

[0076] Optionally, step 23 is performed by a vehicle body domain controller.

[0077] The control method of the atmosphere lamp provided by the embodiment of the present invention obtains the frequency domain information of the audio to be played, and then determines the target decibel corresponding to each frequency band range in the preset multiple frequency band ranges according to the frequency domain information. The multiple frequency band ranges are obtained by dividing the low-frequency part and the high-frequency part of the audio frequency. The frequency band width of the frequency band range corresponding to the low-frequency part is smaller than the frequency band width of the frequency band range corresponding to the high-frequency part. Finally, according to the target decibel corresponding to each frequency band range, the atmosphere lamp is controlled to operate. The technical scheme of the present invention is applied to the low-frequency part of the audio frequency, and a more refined division is performed to make the audio to be played closer to the more sensitive perception of the human ear. For the high-frequency part, the perception of the human ear is relatively low, so a general division is performed to achieve the purpose of transmitting more audio information of the audio to be played that is sensitive to the human ear. Then, for the divided frequency band range, the frequency domain information of the audio to be played is matched to obtain the decibel of the corresponding frequency band range, so as to control the color and brightness of the atmosphere lamp to change based on the decibel, so as to be more in line with the actual feelings of the user and improve the user's use experience.

[0078] Based on the above embodiments, Figure 7 FIG. 1 is a flow chart showing a second embodiment of the method for controlling the ambient light provided by the present invention, the method being executed by a vehicle. Figure 7 As shown, before step 22, the following possible implementations may be performed:

[0079] Step 71: Determine multiple frequency band boundaries based on Mel Frequency Cepstral Coefficients (MFCC);

[0080] In this step, the human ear is more sensitive to changes in low-frequency sounds, and the Mel spectrum can better simulate this perceptual characteristic. Therefore, multiple frequency band boundaries can be first determined in the audio frequency based on the Mel spectrum to construct subsequent multiple frequency band ranges.

[0081] Optionally, step 71 may be implemented as follows:

[0082] Step 1. Convert the audio frequency into Mel scale frequency;

[0083] In this implementation, we first obtain the audio range corresponding to the audio frequency. Taking 0-20kHz as an example, we convert the audio frequency into Mel-scale frequency, that is, convert the linear frequency axis into the perceptual frequency axis. On the Mel scale, the resolution of the low-frequency part is higher, while the resolution of the high-frequency part is lower, because the human ear is more sensitive to changes in low frequencies.

[0084] For example, the conversion may be performed based on a formula corresponding to the Mel scale. First, the Mel scale frequency corresponding to the boundary point of the audio range is calculated, that is, M(0) is 0 and M(20000) is 3814.

[0085] Step 2: According to the Mel scale frequency, a plurality of Mel frequency band boundaries uniformly distributed on the Mel scale are obtained;

[0086] In this implementation, after the Mel-scale frequency is obtained, a uniform number of Mel-scale frequency bands may be selected according to the distribution on the Mel-scale as the number of Mel-scale frequency band boundaries.

[0087] That is, the number of Mel-scale bands can be 20, 40, etc., determined based on actual conditions. For example, if the frequency band is divided into 20 Mel-scale bands, 20 Mel-scale band boundaries can be selected on the Mel-scale (0-3814).

[0088] Step 3: Determine multiple frequency band boundaries based on multiple Mel frequency band boundaries.

[0089] In this implementation, the Mel band boundary is converted back to a linear frequency range, that is, multiple band boundaries corresponding to the audio frequency are obtained, that is, the frequency range of the audio frequency corresponding to two adjacent Mel band boundaries will actually be of different widths, the low frequency bandwidth is smaller, and the high frequency bandwidth is larger, that is, the bandwidth of the band range corresponding to the low frequency part of the audio frequency is smaller than the bandwidth of the band range corresponding to the high frequency part.

[0090] In one possible implementation, Figure 6 For example, the reversal of 0 on the Mel scale gives Figure 6 0Hz in , 3814 is reversed to get the corresponding Figure 6 The 20kHz in the mel scale and the other mel band boundaries on the mel scale are reversed to obtain Figure 6 Other Hz values ​​in .

[0091] It should be understood that in a possible implementation, in the implementation of the above and this embodiment, 1907 (i.e., 3814 / 2) in the Mel scale corresponds to 3094.7 Hz in the audio frequency as the preset frequency. That is, in the Mel scale, the part less than or equal to 1907 is reversed to obtain the finely divided low-frequency part of the audio frequency, and the part greater than 1907 is reversed to obtain the generally divided high-frequency part of the audio frequency.

[0092] Step 72: Determine multiple frequency band ranges according to multiple frequency band boundaries.

[0093] In this step, based on multiple frequency band boundaries, a frequency sequence from low frequency to high frequency and with nonlinear distribution is obtained, that is, multiple frequency band ranges.

[0094] In one possible implementation, Figure 6 For example, it can be seen that the bandwidth of the low-frequency part of the audio frequency is smaller than the bandwidth of the frequency band range corresponding to the high-frequency part, thereby fitting the sensitive characteristics of the human ear.

[0095] The control method of the atmosphere light provided by the embodiment of the present invention determines multiple frequency band boundaries based on the Mel spectrum, and then determines multiple frequency band ranges based on the multiple frequency band boundaries. By applying the technical solution of the present invention, based on the Mel spectrum, the most sensitive part of the human ear can be captured within a limited bandwidth, that is, the low-frequency part is finely divided, and the high-frequency part is generally divided, which is more in line with the perception of the human ear. The lighting effect corresponding to each frequency band range can be refined in the subsequent process, which can enhance the coordination and naturalness of music and light.

[0096] Based on the above embodiments, Figure 8 FIG. 1 is a flow chart showing a third embodiment of the method for controlling the ambient light provided by the present invention, the method being executed by a vehicle. Figure 8 As shown, step 22 may have the following possible implementations:

[0097] Step 81: Determine the total output decibel corresponding to each frequency band range according to the frequency domain information;

[0098] In this step, at any moment, the frequency domain information of the audio to be played at that moment can be obtained, and then the frequency domain information is matched to different frequency bands respectively, and the decibel corresponding to each frequency band can be obtained.

[0099] For the decibels corresponding to each frequency band range, the decibels corresponding to the frequency band range are summed to obtain the total output decibels corresponding to the frequency band range.

[0100] Step 82: For the total output decibel corresponding to each frequency band range, the total output decibel is normalized in the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0101] In this step, the total output decibel is normalized to eliminate the influence of different frequency bandwidths on the output decibel value.

[0102] Exemplarily, for each frequency band range, the frequency band width of the frequency band range may be determined according to the frequency band boundary corresponding to the frequency band range, and then the total output decibel is divided by the frequency band width to obtain the target decibel corresponding to the frequency band range.

[0103] The control method of the atmosphere lamp provided by the embodiment of the present invention determines the total output decibel corresponding to each frequency band range according to the frequency domain information, and then normalizes the total output decibel corresponding to each frequency band range in the frequency band range to obtain the target decibel corresponding to the frequency band range. The technical solution of the present invention is applied, and its normalization process ensures that the output decibels of different frequency bands are within a relatively uniform scale, avoiding the unbalanced response caused by the excessive or too small amplitude of certain frequency bands. In the lighting control, the normalized target decibel can be more accurately mapped to the lighting effect, so that the response of each frequency band range is more accurate.

[0104] Based on the above embodiments, Fig. 9 FIG. 4 is a flow chart showing a fourth embodiment of a method for controlling an ambient light provided by the present invention, the method being executed by a vehicle. Fig. 9 As shown, the control method of the atmosphere lamp may be implemented as follows:

[0105] Step 91: extract the spectrum range that the human ear is most sensitive to based on the Mel spectrum, and confirm multiple frequency band ranges;

[0106] Step 92, obtaining the output decibel at each basic sampling point through fast Fourier transform;

[0107] Step 93, calculating the total output decibel of each frequency band;

[0108] For example, in the frequency band of 0-30Hz, the total output decibel in 0-30Hz is calculated by integration.

[0109] Step 94: normalizing the output decibel by dividing the output decibel by the bandwidth to obtain the target decibel.

[0110] That is, the influence of different frequency bandwidths on the output decibel value can be eliminated.

[0111] In the embodiments of the present invention, the advantages compared with the prior art are summarized as follows:

[0112] Existing technology: The current ambient light music rhythm based on the CAN network architecture is limited by the bandwidth of the CAN network and the audio signal is compressed in equal proportion (such as Figure 5 ), there is a lot of distortion in the processing of the sensitive parts of the human ear, which affects the rhythmic effect; the CAN architecture is not used, the ambient light controller directly samples the audio information, and the functional division of the vehicle's electronic and electrical architecture is scattered, which is not applicable to the domain control architecture.

[0113] The present invention:

[0114] Technical Effect 1. Accuracy: Based on the Mel spectrum, the present invention can capture the most sensitive part of the human ear within a limited bandwidth. The analysis can more accurately capture the rhythm and melody characteristics of the music, making the changes in the atmosphere light more coordinated with the music content;

[0115] Technical effect 2, adaptability: The frequency range of the present invention covers the entire human ear perception frequency of 20Hz-20000Hz, can adapt to music of different styles and rhythms, and provide a richer and more personalized visual experience;

[0116] Technical effect 3, high efficiency: The present invention uses parsed music information to be transmitted with a bandwidth of one fiftieth of the original music file size.

[0117] Fig.10 FIG. 1 is a schematic diagram showing a structure of an embodiment of a control device for an atmosphere lamp provided by the present invention. Fig.10 As shown, the device comprises:

[0118] An acquisition module 101 is used to acquire frequency domain information of the audio to be played;

[0119] A determination module 102 is used to determine, according to the frequency domain information, a target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low frequency part and a high frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low frequency part is smaller than a frequency band width of the frequency band range corresponding to the high frequency part;

[0120] The control module 103 is used to control the operation of the atmosphere light according to the target decibel corresponding to each frequency band range.

[0121] In one or more embodiments, before determining the target decibel corresponding to each frequency band range in the preset multiple frequency band ranges according to the frequency domain information, the determination module 102 is further configured to:

[0122] Based on the Mel spectrum, multiple band boundaries are determined in the audio frequency;

[0123] A plurality of frequency band ranges are determined according to the plurality of frequency band boundaries.

[0124] In one or more embodiments, the determination module 102 determines a plurality of frequency band boundaries in the audio frequency based on the Mel spectrum, specifically for:

[0125] Convert audio frequencies to Mel-scale frequencies;

[0126] According to the Mel scale frequency, a plurality of Mel frequency band boundaries uniformly distributed on the Mel scale are obtained;

[0127] A plurality of frequency band boundaries are determined based on the plurality of mel frequency band boundaries.

[0128] In one or more embodiments, the determination module 102 determines the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information, specifically for:

[0129] According to the frequency domain information, the total output decibel corresponding to each frequency band range is determined respectively;

[0130] For the total output decibel corresponding to each frequency band range, the total output decibel is normalized in the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0131] In one or more embodiments, the determination module 102 normalizes the total output decibel in the frequency band range to obtain a target decibel corresponding to the frequency band range, which is specifically used for:

[0132] Divide the total output decibel by the bandwidth corresponding to the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0133] In one or more embodiments, the control module 103 is specifically configured to:

[0134] According to the target decibels corresponding to each frequency band range, the brightness information and color information of each lamp bead in the atmosphere light are determined;

[0135] According to the brightness information and color information, the operation of each lamp bead in the atmosphere light is controlled.

[0136] In one or more embodiments, the acquisition module 101 is specifically configured to:

[0137] Get the audio to be played;

[0138] Performing a fast Fourier transform on the audio to be played to obtain the frequency domain information.

[0139] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, all or part of them can be integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements. They can also be implemented in the form of hardware. Some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together or implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0140] From the above, it can be seen that the control device of the atmosphere lamp provided in the embodiment of the present invention performs a more refined division for the low-frequency part of the audio frequency, so that the audio to be played is closer to the perception of the more sensitive human ear, while for the high-frequency part, the perception of the human ear is relatively low, so a general division is performed to achieve the purpose of transmitting more audio information of the audio to be played that is sensitive to the human ear, and then the frequency domain information of the audio to be played is matched to the divided frequency band range to obtain the decibel of the corresponding frequency band range, so as to control the color and brightness of the atmosphere lamp based on the decibel to change, so as to be more in line with the actual feelings of the user and enhance the user's experience.

[0141] Fig.11 FIG. 1 shows a schematic diagram of a structure of an embodiment of a vehicle provided by the present invention, such as Fig.11 As shown, the vehicle may include: a processor 112 , a communications interface 114 , a memory 116 , and a communications bus 118 .

[0142] The processor 112, the communication interface 114, and the memory 116 communicate with each other via the communication bus 118. The communication interface 114 is used to communicate with other devices such as a client or other server network elements. The processor 112 is used to execute the program 120, which can specifically execute the relevant steps in the above-mentioned control method embodiment for the atmosphere lamp.

[0143] Specifically, the program 120 may include program code including computer executable instructions.

[0144] The processor 112 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the vehicle may be processors of the same type, such as one or more CPUs. They may also be processors of different types, such as one or more CPUs and one or more ASICs.

[0145] The memory 116 is used to store the program 120. The memory 116 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0146] The program 120 may be specifically called by the processor 112 to cause the vehicle to perform the following operations:

[0147] Obtain frequency domain information of the audio to be played;

[0148] According to the frequency domain information, a target decibel corresponding to each frequency band range is determined in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part;

[0149] The operation of the ambient light is controlled according to the target decibel corresponding to each frequency band range.

[0150] In one or more embodiments, before determining the target decibel corresponding to each frequency band range in the preset multiple frequency band ranges according to the frequency domain information, the following is further performed:

[0151] Based on the Mel-spectrogram, determining a plurality of frequency band boundaries in the audio frequency;

[0152] The multiple frequency band ranges are determined according to the multiple frequency band boundaries.

[0153] In one or more embodiments, the determining a plurality of frequency band boundaries in the audio frequency based on the Mel spectrum comprises:

[0154] Converting the audio frequency to a Mel-scale frequency;

[0155] According to the Mel scale frequency, a plurality of Mel frequency band boundaries uniformly distributed on the Mel scale are obtained;

[0156] The plurality of frequency band boundaries are determined according to the plurality of mel frequency band boundaries.

[0157] In one or more embodiments, determining the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information includes:

[0158] According to the frequency domain information, respectively determine the total output decibel corresponding to each frequency band range;

[0159] For the total output decibel corresponding to each frequency band range, the total output decibel is normalized within the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0160] In one or more embodiments, normalizing the total output decibel within the frequency band to obtain a target decibel corresponding to the frequency band includes:

[0161] The total output decibel is divided by the frequency bandwidth corresponding to the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0162] In one or more embodiments, controlling the operation of the ambient light according to the target decibel corresponding to each frequency band range includes:

[0163] Determine the brightness information and color information of each lamp bead in the atmosphere lamp according to the target decibel corresponding to each frequency band range;

[0164] According to the brightness information and the color information, each lamp bead in the atmosphere lamp is controlled to operate.

[0165] In one or more embodiments, obtaining frequency domain information of the audio to be played includes:

[0166] Obtain the audio to be played;

[0167] Performing a fast Fourier transform on the audio to be played to obtain the frequency domain information.

[0168] From the above, it can be seen that the vehicle provided by the embodiment of the present invention can match the frequency domain information of the audio to be played with the frequency band range corresponding to the human ear sensitivity information, thereby controlling the color and brightness of the ambient light to be more in line with the user's actual feelings, thereby improving the user's experience.

[0169] An embodiment of the present invention provides a computer-readable storage medium storing at least one executable instruction. When the executable instruction is executed on a control device / vehicle of an ambient light, the control device / vehicle of the ambient light executes a method for controlling the ambient light in any of the above-mentioned method embodiments.

[0170] The executable instructions may be specifically used to enable the ambient light control device / vehicle to perform the following operations:

[0171] Obtain frequency domain information of the audio to be played;

[0172] According to the frequency domain information, a target decibel corresponding to each frequency band range is determined in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part;

[0173] The operation of the ambient light is controlled according to the target decibel corresponding to each frequency band range.

[0174] In one or more embodiments, before determining the target decibel corresponding to each frequency band range in the preset multiple frequency band ranges according to the frequency domain information, the following is further performed:

[0175] Based on the Mel-spectrogram, determining a plurality of frequency band boundaries in the audio frequency;

[0176] The multiple frequency band ranges are determined according to the multiple frequency band boundaries.

[0177] In one or more embodiments, the determining a plurality of frequency band boundaries in the audio frequency based on the Mel spectrum comprises:

[0178] Converting the audio frequency to a Mel-scale frequency;

[0179] According to the Mel scale frequency, a plurality of Mel frequency band boundaries uniformly distributed on the Mel scale are obtained;

[0180] The plurality of frequency band boundaries are determined according to the plurality of mel frequency band boundaries.

[0181] In one or more embodiments, determining the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information includes:

[0182] According to the frequency domain information, respectively determine the total output decibel corresponding to each frequency band range;

[0183] For the total output decibel corresponding to each frequency band range, the total output decibel is normalized within the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0184] In one or more embodiments, normalizing the total output decibel within the frequency band to obtain a target decibel corresponding to the frequency band includes:

[0185] The total output decibel is divided by the frequency bandwidth corresponding to the frequency band range to obtain the target decibel corresponding to the frequency band range.

[0186] In one or more embodiments, controlling the operation of the ambient light according to the target decibel corresponding to each frequency band range includes:

[0187] Determine the brightness information and color information of each lamp bead in the atmosphere lamp according to the target decibel corresponding to each frequency band range;

[0188] According to the brightness information and the color information, each lamp bead in the atmosphere lamp is controlled to operate.

[0189] In one or more embodiments, obtaining frequency domain information of the audio to be played includes:

[0190] Obtain the audio to be played;

[0191] Performing a fast Fourier transform on the audio to be played to obtain the frequency domain information.

[0192] From the above, it can be seen that the execution instructions in the computer-readable storage medium provided in the embodiment of the present invention can perform a more refined division for the low-frequency part of the audio frequency, so that the audio to be played is closer to the perception of the more sensitive human ear, while for the high-frequency part, the perception of the human ear is relatively low, so a general division is performed to achieve the purpose of transmitting more audio information of the audio to be played that is sensitive to the human ear. Then, for the divided frequency band range, the frequency domain information of the audio to be played is matched to obtain the decibel of the corresponding frequency band range, so as to control the color and brightness of the atmosphere light based on the decibel to change, so as to be more in line with the actual feelings of the user and enhance the user's experience.

[0193] An embodiment of the present invention provides a computer program product, including a computer program, which implements the operation of the above-mentioned atmosphere light control method when executed by a processor.

[0194] Its implementation principle and technical effects are shown in the above disclosure.

[0195] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0196] The methods disclosed in the various method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0197] The features disclosed in the various product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0198] The features disclosed in the various method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0199] It should be noted that the computer-readable storage medium may be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM). It may also be various vehicles including one or any combination of the above memories.

[0200] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0201] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0202] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, vehicle terminal or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0203] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices, apparatuses, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The algorithm or display provided herein of the steps of the functions specified in the blocks or multiple blocks is not inherently related to any specific computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any specific programming language.

[0206] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for controlling an atmosphere lamp, characterized in that: The method comprises: Obtain frequency domain information of the audio to be played; According to the frequency domain information, a target decibel corresponding to each frequency band range is determined in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part; The operation of the ambient light is controlled according to the target decibel corresponding to each frequency band range.

2. The method according to claim 1, characterized in that Before determining the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information, the method further includes: Based on the Mel-spectrogram, determining a plurality of frequency band boundaries in the audio frequency; The multiple frequency band ranges are determined according to the multiple frequency band boundaries.

3. The method according to claim 2, characterized in that The method of determining a plurality of frequency band boundaries in the audio frequency based on the Mel spectrum comprises: Converting the audio frequency to a Mel-scale frequency; According to the Mel scale frequency, a plurality of Mel frequency band boundaries uniformly distributed on the Mel scale are obtained; The plurality of frequency band boundaries are determined according to the plurality of mel frequency band boundaries.

4. The method according to any one of claims 1 to 3, characterized in that: Determining the target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges according to the frequency domain information includes: According to the frequency domain information, respectively determine the total output decibel corresponding to each frequency band range; For the total output decibel corresponding to each frequency band range, the total output decibel is normalized within the frequency band range to obtain the target decibel corresponding to the frequency band range.

5. The method according to claim 4, characterized in that The normalizing the total output decibel within the frequency band to obtain a target decibel corresponding to the frequency band includes: The total output decibel is divided by the frequency bandwidth corresponding to the frequency band range to obtain the target decibel corresponding to the frequency band range.

6. The method according to any one of claims 1 to 3, characterized in that: The step of controlling the operation of the atmosphere light according to the target decibel corresponding to each frequency band range includes: Determine the brightness information and color information of each lamp bead in the atmosphere lamp according to the target decibel corresponding to each frequency band range; According to the brightness information and the color information, each lamp bead in the atmosphere lamp is controlled to operate.

7. The method according to any one of claims 1 to 3, characterized in that: The obtaining of frequency domain information of the audio to be played includes: Obtain the audio to be played; Performing a fast Fourier transform on the audio to be played to obtain the frequency domain information.

8. A control device for an atmosphere lamp, characterized in that: The device comprises: An acquisition module, used to acquire frequency domain information of the audio to be played; A determination module, configured to determine, according to the frequency domain information, a target decibel corresponding to each frequency band range in a plurality of preset frequency band ranges, wherein the plurality of frequency band ranges are frequency band ranges obtained by dividing a low-frequency part and a high-frequency part of an audio frequency, and a frequency band width of the frequency band range corresponding to the low-frequency part is smaller than a frequency band width of the frequency band range corresponding to the high-frequency part; The control module is used to control the operation of the atmosphere light according to the target decibel corresponding to each frequency band range.

9. A vehicle, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the atmosphere light control method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the control device / vehicle of the ambient light, the control device / vehicle of the ambient light executes the operation of the control method of the ambient light as described in any one of claims 1-7.

Citation Information

Cited By

  • Design method of visual piano key rhythm lamp

    CN120224527A

  • Music rhythm analysis and lamp effect generation method under low-speed bus

    CN120856778A

  • Music rhythm analysis and lamp effect generation method under low-speed bus

    CN120856778B

  • Single-chip double-atmosphere lamp music rhythm control method and system and electronic equipment

    CN121968418A

  • Single-chip dual-ambience lamp music beat control method, system and electronic device

    CN121968418B