Control method and device of light equipment, equipment, medium and product
By segmenting and identifying potential beat points in the audio data to be played, the problem of lighting equipment being unable to automatically adjust lighting effects was solved, achieving synchronization between the lighting equipment and the music rhythm, and improving the user's audiovisual experience.
Patent Information
- Application Number
- CN202511242569.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-11-28
AI Technical Summary
Existing lighting control methods cannot automatically adjust lighting effects according to the rhythm of music, resulting in poor synchronization between music rhythm and lighting changes, which affects the user's audiovisual experience.
By segmenting the audio data to be played, identifying potential beat points, and transmitting the target lighting control parameters to the lighting equipment based on the mapping relationship between beat points and lighting control parameters, the lighting equipment can automatically adjust the lighting effects according to the music rhythm.
It achieves synchronization between lighting equipment and music rhythm, improves the user's audiovisual experience, reduces costs, and increases automation.
Smart Images

Figure CN121038064A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automation control technology, and in particular to a control method, device, equipment, medium, and product for lighting equipment. Background Technology
[0002] To create a deeply immersive experience, existing stage systems or home entertainment systems often accompany music playback with lighting displays, making light and shadow a visual extension of the auditory experience.
[0003] However, regardless of the type of music played, existing lighting control methods typically rely on preset fixed control programs. This prevents the lighting equipment from automatically adjusting its effects according to the rhythm of the music, resulting in poor synchronization between the music rhythm and the lighting changes, which negatively impacts the user's audiovisual experience. Summary of the Invention
[0004] This invention provides a method, device, equipment, medium, and product for controlling lighting equipment, in order to solve the problem that existing lighting equipment control methods cannot automatically adjust the lighting effects according to the rhythm of music, resulting in poor synchronization between music rhythm and lighting changes, which affects the user's audiovisual experience.
[0005] According to one aspect of the present invention, a method for controlling a lighting device is provided, the method comprising:
[0006] The audio data to be played is segmented according to the target time sliding window to obtain at least one candidate audio signal, and the target audio signal to be processed is determined from the candidate audio signal.
[0007] The method involves determining the target audio signal type corresponding to the target audio signal, determining the adjacent audio signal type corresponding to the adjacent audio signal, and determining whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type; wherein, the adjacent audio signal is a candidate audio signal in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is before the target audio signal; the target audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal, and the adjacent audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal;
[0008] If the target audio signal is determined to be the potential beat point, then the target audio signal is checked for beat point based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal. If the check passes, the target audio signal is determined to be a candidate beat point of the audio data to be played. The historical audio signal is the candidate audio signal in the audio data to be played whose playback time is before the target audio signal.
[0009] Based on the mapping relationship between the beat point and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined, and the target lighting control parameters are transmitted to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0010] According to another aspect of the present invention, a control device for a lighting device is provided, the device comprising:
[0011] The target audio signal determination module is used to segment the audio data to be played according to the target time sliding window to obtain at least one frame of candidate audio signal, and to determine the target audio signal to be processed from the candidate audio signal.
[0012] A potential beat point identification module is used to determine the target audio signal type corresponding to the target audio signal, and to determine the adjacent audio signal type corresponding to the adjacent audio signal, and to determine whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type; wherein, the adjacent audio signal is a candidate audio signal in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is before the target audio signal; the target audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal, and the adjacent audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal;
[0013] A beat point verification module is used to, if the target audio signal is determined to be the potential beat point, perform beat point verification on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal, and determine the target audio signal as a candidate beat point of the audio data to be played if the verification passes; wherein, the historical audio signal is the candidate audio signal in the audio data to be played whose playback time is before the target audio signal;
[0014] The lighting control parameter transmission module is used to determine the target lighting control parameters associated with the target audio signal based on the mapping relationship between the beat point and the lighting control parameters, and to transmit the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the control method for the lighting device according to any one of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the control method of the lighting device according to any one of the present invention.
[0020] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the control method for the lighting device according to any one of the present invention.
[0021] This invention determines whether a target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and adjacent audio signal types. If the target audio signal is determined to be a potential beat point, a beat point verification is performed on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to historical audio signals. If the verification passes, the target audio signal is determined as a candidate beat point of the audio data to be played. Based on the mapping relationship between beat points and lighting control parameters, target lighting control parameters associated with the target audio signal are determined and transmitted to the target lighting device. This allows the target lighting device to perform lighting control according to the target lighting control parameters when the target audio signal is played. The beneficial effects are:
[0022] By intelligently identifying candidate beat points in the audio data to be played and sending the associated lighting control parameters to the lighting equipment, the lighting equipment can control the lighting according to the corresponding lighting control parameters when playing the audio signal corresponding to the candidate beat point. This enables the lighting equipment to automatically adjust the lighting effects according to the music rhythm, ensuring the synchronization between the music rhythm and the lighting changes, and improving the user's audiovisual experience.
[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 A flowchart of a control method for a lighting device provided in Embodiment 1 of the present invention;
[0026] Figure 2 This is a flowchart of a control method for a lighting device provided in Embodiment 2 of the present invention;
[0027] Figure 3 This is a flowchart of a control method for a lighting device provided in Embodiment 3 of the present invention;
[0028] Figure 4 This is a schematic diagram of the structure of a control device for a lighting equipment provided in Embodiment 4 of the present invention;
[0029] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the control method for the lighting equipment according to an embodiment of the present invention. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first class," "second class," "third class," "fourth class," "fifth class," "sixth class," "potential," "candidate," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0032] Example 1
[0033] Figure 1 This is a flowchart illustrating a control method for a lighting device according to Embodiment 1 of the present invention. This embodiment is applicable to situations where the lighting device automatically adjusts its lights according to the rhythm of music. This method can be executed by a control device for the lighting device, which can be implemented in hardware and / or software, such as using a server. Figure 1 As shown, the method includes:
[0034] S101. Segment the audio data to be played according to the target time sliding window to obtain at least one candidate audio signal, and determine the target audio signal to be processed from the candidate audio signals.
[0035] The target time sliding window refers to a technique that dynamically segments the audio data to be played based on preset time parameters. Its core function is to cut continuous audio data into processing units of fixed duration, while sliding the window position as needed to cover different segments. For example, the size of the target time sliding window can be set to 20ms-50ms, etc.
[0036] Audio data to be played refers to the raw audio resources that have been loaded but not yet sent to the decoding and playback process; essentially, it is a collection of digitized audio signals in the preprocessing stage. Candidate audio signals refer to multiple audio segments to be selected after segmenting the audio data to be played by a target time sliding window.
[0037] The target audio signal refers to the candidate audio signal that has been selected for real-time processing after being segmented by a target time sliding window. It is understood that the target audio signal can be any candidate audio signal; that is, each candidate audio signal is selected through a process of iteration and used as the target audio signal to participate in the method steps provided later in this embodiment of the invention. In other words, the target audio signal does not specifically refer to a single frame or several frames of candidate audio signals.
[0038] In one implementation, the server acquires raw audio data for the audio data to be played, either locally or on the server. Further, the server performs noise reduction and normalization processing on the raw audio data to obtain the audio data to be played. Optionally, the server uses a bandpass filter to denoise the raw audio data, filtering out noise below 20Hz and above 20kHz, while retaining music frequency bands perceptible to the human ear. Optionally, the server performs amplitude normalization processing on the raw audio data to eliminate the influence of volume differences on subsequent beat detection.
[0039] Furthermore, the server segments the audio data to be played according to a preset target time window, and uses each segment as at least one candidate audio signal. For example, if the audio data to be played is segmented according to a target time window of 50ms, each segmented audio data of 50ms duration is used as a candidate audio signal.
[0040] Furthermore, the beat point detection labels of each candidate audio signal are obtained, and the contents of the beat point detection labels are any undetected candidate audio signals, which are then used as the target audio signal to be processed.
[0041] S102. Determine the target audio signal type corresponding to the target audio signal, and determine the adjacent audio signal type corresponding to the adjacent audio signal, and determine whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type.
[0042] The target audio signal type refers to the category to which the target audio signal belongs, which can be a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal. The adjacent audio signal type refers to the category to which the adjacent audio signals belong, which can be a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal.
[0043] Adjacent audio signals are candidate audio signals in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is earlier than the target audio signal. For example, assuming the target time window is 50ms and the playback time of the target audio signal is 150ms-200ms, then the adjacent audio signals can be determined to be candidate audio signals with playback times of 100ms-150ms.
[0044] Potential beat points refer to audio signals that are initially identified as potentially indicating changes in the musical rhythm of the audio data to be played. Potential beat points need to be further verified by combining signal energy to be confirmed as true candidate beat points.
[0045] In one implementation, adjacent audio signals corresponding to the target audio signal are determined, and the spectral information corresponding to the target audio signal is obtained as target spectral information, and the spectral information corresponding to the adjacent audio signals is obtained as adjacent spectral information. Further, spectral analysis is performed based on the target spectral information to determine the target audio signal type corresponding to the target audio signal, and spectral analysis is performed based on the adjacent spectral information to determine the adjacent audio signal type corresponding to the adjacent audio signals.
[0046] Furthermore, it is determined whether there is a sudden change in audio signal type between the target audio signal type and adjacent audio signal types. If it is determined that there is no sudden change in audio signal type between the target audio signal type and adjacent audio signal types, then the target audio signal is determined not to be a potential beat point of the audio data to be played. If it is determined that there is a sudden change in audio signal type between the target audio signal type and adjacent audio signal types, then the target audio signal is determined to be a potential beat point of the audio data to be played.
[0047] For example, assuming the target audio signal type is "low-frequency audio signal" and the adjacent audio signal type is "high-frequency audio signal", it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0048] S103. If the target audio signal is determined to be a potential beat point, then the beat point of the target audio signal is verified based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal. If the verification passes, the target audio signal is determined to be a candidate beat point of the audio data to be played.
[0049] The target signal energy refers to the total physical vibration energy contained in the target audio signal. The historical signal energy refers to the total physical vibration energy contained in the historical audio signals. The historical audio signals are the candidate audio signals in the audio data to be played whose playback time is before the target audio signal. For example, assuming the target time window is 50ms and the playback time of the target audio signal is 150ms-200ms, then the historical audio signals refer to the candidate audio signals with playback times of 0-150ms.
[0050] Beat point verification refers to the logical judgment process of verifying whether a target audio signal meets the beat characteristics by comparing the energy of the target signal with that of historical signals. Candidate beat points refer to the actual beat points of the audio data to be played, identified through energy analysis.
[0051] In one implementation, if the target audio signal is determined to be a potential beat point, a signal energy calculation algorithm is used to determine the target signal energy corresponding to the target audio signal, and the signal energy calculation algorithm is also used to determine the historical signal energy corresponding to each historical audio signal. Further, based on the historical signal energy corresponding to each historical audio signal, an energy detection threshold is determined, and the energy detection threshold and the target signal energy are used to perform beat point verification on the target audio signal.
[0052] If the verification fails, the target audio signal is determined not to be a candidate beat point of the audio data to be played; if the verification passes, the target audio signal is determined to be a candidate beat point of the audio data to be played.
[0053] S104. Based on the mapping relationship between the beat point and the lighting control parameters, determine the target lighting control parameters associated with the target audio signal, and transmit the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0054] Among them, lighting control parameters refer to the set of quantifiable instructions required for the target lighting equipment to perform specific actions, including but not limited to color control parameters, brightness control parameters, flashing frequency control parameters, etc.
[0055] The mapping relationship between beat points and lighting control parameters refers to the technical logic of dynamically converting beat points into lighting control commands through preset rules. Essentially, it establishes a quantifiable set of conversion rules to ensure precise synchronization between lighting changes and beat points. Target lighting control parameters refer to the lighting control parameters associated with the target audio signal determined based on the mapping relationship.
[0056] Target lighting equipment refers to physical terminal equipment that executes specific lighting actions according to target lighting control parameters. Its core function is to receive target lighting control parameters and respond in real time to achieve sound and light linkage effects.
[0057] In one implementation, the server performs parameter queries based on a pre-established mapping relationship between beat points and lighting control parameters to determine the target lighting control parameters associated with the target audio signal.
[0058] Furthermore, the server generates lighting control protocol instructions based on the target lighting control parameters and transmits these instructions to the target lighting devices using protocols such as User Datagram Protocol (UDP) or WebSocket to reduce communication latency and ensure real-time instruction delivery. Additionally, the server employs a clock synchronization algorithm to ensure consistent operation across multiple target lighting devices.
[0059] Furthermore, after the server transmits the lighting control protocol command to the target lighting device, the server checks whether it has received a command confirmation signal from the target lighting device. If no command confirmation signal is received from the target lighting device within a timeout period, the server retransmits the lighting control protocol command to the target lighting device.
[0060] After receiving the lighting control protocol instruction, the target lighting device parses it to obtain the target lighting control parameters. When playing the target audio signal, the target lighting device performs lighting control according to the target lighting control parameters.
[0061] This invention determines whether a target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and adjacent audio signal types. If the target audio signal is determined to be a potential beat point, a beat point verification is performed on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to historical audio signals. If the verification passes, the target audio signal is determined as a candidate beat point of the audio data to be played. Based on the mapping relationship between beat points and lighting control parameters, target lighting control parameters associated with the target audio signal are determined and transmitted to the target lighting device. This allows the target lighting device to perform lighting control according to the target lighting control parameters when the target audio signal is played. The beneficial effects are:
[0062] Firstly, by intelligently identifying candidate beat points in the audio data to be played, and sending the lighting control parameters associated with the candidate beat points to the lighting equipment, the lighting equipment can control the lighting according to the corresponding lighting control parameters when playing the audio signal corresponding to the candidate beat points. This enables the lighting equipment to automatically adjust the lighting effect according to the music rhythm, ensuring the synchronization between the music rhythm and the lighting changes, and improving the user's audiovisual experience.
[0063] Secondly, it eliminates the need for professional manual programming or real-time control, reducing costs and increasing the degree of automation.
[0064] Thirdly, by transmitting target lighting control parameters in real time, the delay between lighting changes and music rhythm is reduced, thus enhancing the viewing experience.
[0065] Example 2
[0066] Figure 2 This is a flowchart of a control method for a lighting device according to Embodiment 2 of the present invention. This embodiment further optimizes and expands upon the above embodiments and can be combined with the various optional implementation methods described above. For example... Figure 2 As shown, the method includes:
[0067] S201. Segment the audio data to be played according to the target time sliding window to obtain at least one candidate audio signal, and determine the target audio signal to be processed from the candidate audio signals.
[0068] S202. Determine the target spectrum information corresponding to the target audio signal, and determine the target audio signal type based on the target spectrum information, and determine the adjacent audio signal type corresponding to the adjacent audio signal.
[0069] Among them, target spectrum information refers to the set of key parameters reflecting the frequency distribution characteristics of the signal extracted after frequency domain transformation of the target audio signal. Its core is to transform the time-domain waveform into a frequency-domain energy distribution through mathematical transformation, thereby quantifying the physical characteristics of the audio signal.
[0070] In one implementation, a short-time Fourier transform algorithm is used to extract the spectral information of the target audio signal to obtain the target spectral information corresponding to the target audio signal. Further, the frequency band where the energy peak is located is determined based on the target spectral information, and the type of the target audio signal is determined based on the frequency band. Optionally, if the energy peak is concentrated in the range of 20Hz–160Hz, the target audio signal type is determined to be a low-frequency audio signal; if the energy peak is concentrated in the range of 160Hz–1280Hz, the target audio signal type is determined to be a mid-frequency audio signal; if the energy peak is higher than 1280Hz, the target audio signal type is determined to be a high-frequency audio signal.
[0071] The benefits of determining the target audio signal type by identifying the target spectrum information corresponding to the target audio signal are as follows: Since spectrum information is an essential feature of audio signals, the physical properties of audio signals can be directly identified by extracting the target spectrum information, avoiding the ambiguity of traditional time-domain analysis and improving the accuracy of determining the target audio signal type.
[0072] S203. Compare the target audio signal type with the adjacent audio signal types; if the target audio signal type and the adjacent audio signal type are different, then determine the target audio signal as a potential beat point.
[0073] For example, if the target audio signal type is "low-frequency audio signal" and the adjacent audio signal type is "high-frequency audio signal", then it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be a potential beat point of the audio data to be played.
[0074] If the target audio signal type is "low-frequency audio signal" and the adjacent audio signal type is "mid-frequency audio signal", then it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0075] If the target audio signal type is "mid-frequency audio signal" and the adjacent audio signal type is "high-frequency audio signal", then it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0076] If the target audio signal type is "high-frequency audio signal" and the adjacent audio signal type is "mid-frequency audio signal", then it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0077] If the target audio signal type is "high-frequency audio signal" and the adjacent audio signal type is "low-frequency audio signal", then it is determined that there is a sudden change in the audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0078] If the target audio signal type is "mid-frequency audio signal" and the adjacent audio signal type is "low-frequency audio signal", then it is determined that there is a sudden change in audio signal type between the target audio signal type and the adjacent audio signal type, that is, the target audio signal is determined to be the potential beat point of the audio data to be played.
[0079] By comparing the target audio signal type with the adjacent audio signal types, and if the target audio signal type differs from the adjacent audio signal type, the target audio signal is identified as a potential beat point. The advantages are:
[0080] Firstly, by comparing differences in audio signal types, it accurately captures segment transition points, avoiding the reliance of traditional beat detection on single energy mutations and improving the accuracy of potential beat point identification.
[0081] Secondly, compared to analyzing spectral details frame by frame, audio signal type comparison only requires extracting audio signal type labels, reducing computational complexity.
[0082] S204. If the target audio signal is determined to be a potential beat point, the mean signal energy and the variance of signal energy are determined based on the historical signal energy, and the energy detection threshold is determined based on the mean signal energy and the variance of signal energy.
[0083] In one implementation, if the target audio signal is determined to be a potential beat point, a signal energy mean is determined by calculating the mean of each historical signal energy, and a signal energy variance is determined by calculating the variance of each historical signal energy. Further, an energy detection threshold is determined based on the sum of the signal energy mean and the signal energy variance.
[0084] S205. Compare the target signal energy with the energy detection threshold. If the target signal energy is greater than or equal to the energy detection threshold, determine that the beat point verification result of the target audio signal is verified. If the verification is passed, determine the target audio signal as a candidate beat point of the audio data to be played.
[0085] By determining the mean and variance of signal energy based on historical signal energy, and then determining the energy detection threshold based on these values, the target signal energy is compared with the energy detection threshold. If the target signal energy is greater than or equal to the energy detection threshold, the beat point verification result of the target audio signal is determined to be passed. The beneficial effects are:
[0086] The mean signal energy reflects the average energy level of historical audio signals and serves as a benchmark reference value; the variance of signal energy quantifies the range of energy fluctuations and is used to assess the stability of environmental noise; therefore, a dynamic energy detection threshold can be calculated based on the mean signal energy and the variance of signal energy, which can improve the accuracy and reliability of beat point verification by performing beat point verification based on the dynamic energy detection threshold.
[0087] S206. Determine the target beat point type corresponding to the target audio signal, and determine the target lighting control parameters associated with the target audio signal based on the target beat point type and the mapping relationship between the beat point type and the lighting control parameters.
[0088] The beat point types include the first type, the second type, the third type, the fourth type, the fifth type, and the sixth type. The target beat point type refers to the beat point type corresponding to the target audio signal.
[0089] The first type of beat point is a candidate beat point where the audio signal changes from a low-frequency audio signal to a mid-frequency audio signal; the second type of beat point is a candidate beat point where the audio signal changes from a low-frequency audio signal to a high-frequency audio signal; the third type of beat point is a candidate beat point where the audio signal changes from a mid-frequency audio signal to a high-frequency audio signal; the fourth type of beat point is a candidate beat point where the audio signal changes from a high-frequency audio signal to a mid-frequency audio signal; the fifth type of beat point is a candidate beat point where the audio signal changes from a high-frequency audio signal to a low-frequency audio signal; and the sixth type of beat point is a candidate beat point where the audio signal changes from a mid-frequency audio signal to a low-frequency audio signal.
[0090] For example, assuming the target beat point type is the first type, the lighting control parameters associated with the first type of beat point are determined based on the mapping relationship between the beat point type and the lighting control parameters, and these are used as the target lighting control parameters. Examples include increasing light brightness or accelerating the change frequency.
[0091] For example, assuming the target beat point type is the second type, the lighting control parameters associated with the second type of beat point are determined based on the mapping relationship between beat point types and lighting control parameters, and these parameters are used as the target lighting control parameters. For instance, high-saturation colors may be used.
[0092] By determining the target beat point type corresponding to the target audio signal, and based on the target beat point type and the mapping relationship between the beat point type and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined. The beneficial effect is that by identifying the target beat point type, the preset target lighting control parameters are dynamically matched to achieve precise sound and light linkage.
[0093] S207. Transmit the target lighting control parameters to the target lighting device so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0094] Example 3
[0095] Figure 3 This is a flowchart of a control method for a lighting device provided in Embodiment 3 of the present invention. This embodiment further optimizes and expands upon the above embodiments and can be combined with the various optional implementation methods described above. For example... Figure 3 As shown, the method includes:
[0096] S301. Extract the target audio features corresponding to the target audio signal.
[0097] In this context, target audio features refer to the set of acoustic parameters quantized and extracted from the target audio signal for a specific analysis task. Target audio features include, but are not limited to, rhythm density, average beats per minute, harmonic features, and timbre distribution.
[0098] In one implementation, a pre-trained audio feature extraction model is used to extract audio features from the target audio signal to obtain the target audio features.
[0099] S302. Input the target audio features into the music style recognition model, and determine the target music style corresponding to the target audio signal through the music style recognition model. Also, input the target audio features into the music emotion recognition model, and determine the target music emotion corresponding to the target audio signal through the music emotion recognition model.
[0100] Among them, the music style recognition model refers to an algorithmic system that automatically analyzes audio features and classifies music styles using artificial intelligence technology. The music emotion recognition model refers to an algorithmic system that automatically analyzes audio features and classifies musical emotions using artificial intelligence technology.
[0101] The target music style refers to the specific music style classification result obtained after feature analysis of the target audio features through a music style recognition model. For example, pop, rock, classical, etc.
[0102] Target musical emotion refers to the specific musical emotion classification result obtained after feature analysis of target audio features through a musical emotion recognition model. For example, cheerful, intense, lyrical, etc.
[0103] In one implementation, a pre-trained music style recognition model is used to identify the music style of the target audio signal and determine the target music style corresponding to the target audio signal. Furthermore, a pre-trained music emotion recognition model is used to identify the music emotion of the target audio signal and determine the target music emotion corresponding to the target audio signal.
[0104] Among them, the types of music style recognition models and music emotion recognition models include, but are not limited to, SVM (Support Vector Machine) models, CNN (Convolutional Neural Network) models, and RNN (Recurrent Neural Network) models.
[0105] S303. Based on the target music style and target music emotion, generate target tag information corresponding to the target audio signal, and based on the target tag information and the mapping relationship between the tag information and the lighting control parameters, determine the target lighting control parameters associated with the target audio signal.
[0106] Among them, the target label information refers to the set of structured semantic descriptions output by the music style recognition model / music emotion recognition model, which is a key intermediate layer connecting audio analysis and lighting control.
[0107] The mapping relationship between tag information and lighting control parameters refers to a pre-established rule base used to quantify and translate the tag information generated by audio signal analysis into lighting control parameters that can be executed by physical lighting equipment.
[0108] For example, suppose the target label information is "music style A, music emotion B", and suppose that in the mapping relationship between the label information and the lighting control parameters, the lighting control parameter associated with the label information "music style A, music emotion B" is "lighting control parameter C", then "lighting control parameter C" will be used as the target lighting control parameter.
[0109] S304. Transmit the target lighting control parameters to the target lighting device so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0110] By extracting target audio features corresponding to the target audio signal; inputting the target audio features into a music style recognition model to determine the target music style corresponding to the target audio signal; inputting the target audio features into a music emotion recognition model to determine the target music emotion corresponding to the target audio signal; generating target tag information corresponding to the target audio signal based on the target music style and target music emotion; and determining the target lighting control parameters associated with the target audio signal based on the target tag information and the mapping relationship between the tag information and lighting control parameters; and transmitting the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters. The beneficial effects are: achieving the effect of matching the lighting effects with the music style and music emotion, ensuring the synchronization of music rhythm and lighting changes, and improving the user's audiovisual experience.
[0111] Optionally, the method also includes:
[0112] A. Determine whether the music style of the audio data to be played is the preset audio style.
[0113] The preset audio style is either pop music or electronic music.
[0114] B. If so, determine the target spectrum information corresponding to the target audio signal and input the target spectrum information into the drum beat detection model. The drum beat detection model will then determine whether the target audio signal is a candidate drum beat for the audio data to be played.
[0115] Among them, the drum beat detection model refers to an algorithm system that uses artificial intelligence technology to identify the position of drum beats in audio signals. Candidate drum beats refer to audio signals that are initially identified by the algorithm as potentially drum beats.
[0116] In one implementation, target spectrum information is input into a drum beat detection model, including but not limited to a convolutional neural network model, and the drum beat detection model is used to identify drum beats in the target audio signal based on the target spectrum information to determine whether the target audio signal is a candidate drum beat for the audio data to be played.
[0117] C. If so, then based on the mapping relationship between the drum beat and the lighting control parameters, determine the target lighting control parameters associated with the target audio signal, and transmit the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0118] The mapping relationship between drum beats and lighting control parameters refers to the technical logic of dynamically converting drum beats into lighting control commands through preset rules. Essentially, it involves establishing a quantifiable set of conversion rules to ensure precise synchronization between lighting changes and drum beats.
[0119] In one implementation, the server performs parameter queries based on a pre-established mapping relationship between drum beats and lighting control parameters to determine the target lighting control parameters associated with the target audio signal.
[0120] Furthermore, the server generates lighting control protocol instructions based on the target lighting control parameters and transmits these instructions to the target lighting devices using protocols such as User Datagram Protocol (UDP) or WebSocket to reduce communication latency and ensure real-time instruction delivery. Additionally, the server employs a clock synchronization algorithm to ensure consistent operation across multiple target lighting devices.
[0121] After receiving the lighting control protocol instruction, the target lighting device parses it to obtain the target lighting control parameters. When playing the target audio signal, the target lighting device performs lighting control according to the target lighting control parameters.
[0122] By determining whether the music style of the audio data to be played is a preset audio style (pop or electronic music), and if so, determining the target spectrum information corresponding to the target audio signal and inputting it into the drum beat detection model, the model determines whether the target audio signal is a candidate drum beat for the audio data to be played. If so, based on the mapping relationship between drum beats and lighting control parameters, the target lighting control parameters associated with the target audio signal are determined and transmitted to the target lighting device. This allows the target lighting device to control the lighting according to the target lighting control parameters when the target audio signal is played. The beneficial effects are:
[0123] By intelligently identifying candidate drum beats in the audio data to be played and sending the associated lighting control parameters to the lighting equipment, the lighting equipment can control the lighting according to the corresponding lighting control parameters when playing the audio signal corresponding to the candidate beat point. This enables the lighting equipment to automatically adjust the lighting effects according to the music rhythm, ensuring the synchronization between the music rhythm and the lighting changes, and improving the user's audiovisual experience.
[0124] Example 4
[0125] Figure 4 This is a schematic diagram of a control device for a lighting equipment according to Embodiment 4 of the present invention. It is applicable to situations where the lighting equipment automatically adjusts its lights according to the rhythm of music. Figure 4 As shown, the device includes:
[0126] The target audio signal determination module 41 is used to segment the audio data to be played according to the target time sliding window to obtain at least one frame of candidate audio signal, and to determine the target audio signal to be processed from the candidate audio signal.
[0127] The potential beat point identification module 42 is used to determine the target audio signal type corresponding to the target audio signal, and to determine the adjacent audio signal type corresponding to the adjacent audio signal, and to determine whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type; wherein, the adjacent audio signal is a candidate audio signal in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is before the target audio signal; the target audio signal type is a low-frequency audio signal, a mid-frequency audio signal or a high-frequency audio signal, and the adjacent audio signal type is a low-frequency audio signal, a mid-frequency audio signal or a high-frequency audio signal;
[0128] The beat point verification module 43 is used to, if the target audio signal is determined to be the potential beat point, perform beat point verification on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal, and determine the target audio signal as a candidate beat point of the audio data to be played if the verification passes; wherein, the historical audio signal is the candidate audio signal in the audio data to be played whose playback time is before the target audio signal;
[0129] The lighting control parameter transmission module 44 is used to determine the target lighting control parameters associated with the target audio signal according to the mapping relationship between the beat point and the lighting control parameters, and to transmit the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0130] Optionally, the potential beat point identification module 42 is specifically used for:
[0131] Determine the target spectrum information corresponding to the target audio signal, and determine the type of the target audio signal based on the target spectrum information.
[0132] Optionally, the potential beat point identification module 42 is further used for:
[0133] Compare the target audio signal type with the adjacent audio signal types;
[0134] If the target audio signal type is different from the adjacent audio signal type, then the target audio signal is determined to be the potential beat point.
[0135] Optionally, the beat point verification module 43 is specifically used for:
[0136] The mean signal energy and the variance signal energy are determined based on the historical signal energy, and the energy detection threshold is determined based on the mean signal energy and the variance signal energy.
[0137] The target signal energy is compared with the energy detection threshold. If the target signal energy is greater than or equal to the energy detection threshold, the beat point verification result of the target audio signal is determined to be verified as passed.
[0138] Optionally, the lighting control parameter transmission module 44 is specifically used for:
[0139] Determine the target beat point type corresponding to the target audio signal, and determine the target lighting control parameters associated with the target audio signal based on the target beat point type and the mapping relationship between the beat point type and the lighting control parameters.
[0140] The beat point types include a first type of beat point, a second type of beat point, a third type of beat point, a fourth type of beat point, a fifth type of beat point, and a sixth type of beat point.
[0141] The first type of beat point is a candidate beat point where the audio signal type changes from the low-frequency audio signal to the mid-frequency audio signal; the second type of beat point is a candidate beat point where the audio signal type changes from the low-frequency audio signal to the high-frequency audio signal; the third type of beat point is a candidate beat point where the audio signal type changes from the mid-frequency audio signal to the high-frequency audio signal; the fourth type of beat point is a candidate beat point where the audio signal type changes from the high-frequency audio signal to the mid-frequency audio signal; the fifth type of beat point is a candidate beat point where the audio signal type changes from the high-frequency audio signal to the low-frequency audio signal; and the sixth type of beat point is a candidate beat point where the audio signal type changes from the mid-frequency audio signal to the low-frequency audio signal.
[0142] Optionally, the device further includes an audio tag processing module, specifically used for:
[0143] Extract the target audio features corresponding to the target audio signal;
[0144] The target audio features are input into a music style recognition model to determine the target music style corresponding to the target audio signal; and the target audio features are input into a music emotion recognition model to determine the target music emotion corresponding to the target audio signal.
[0145] Based on the target music style and the target music emotion, target tag information corresponding to the target audio signal is generated, and based on the target tag information and the mapping relationship between the tag information and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined.
[0146] The target lighting control parameters are transmitted to the target lighting device so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0147] Optionally, the system also includes a drum beat detection module, specifically used for;
[0148] Determine whether the music style of the audio data to be played is a preset audio style; wherein, the preset audio style is pop music or electronic music;
[0149] If so, the target spectrum information corresponding to the target audio signal is determined, and the target spectrum information is input into the drum beat detection model. The drum beat detection model is used to determine whether the target audio signal is a candidate drum beat of the audio data to be played.
[0150] If so, then based on the mapping relationship between the drum beat and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined, and the target lighting control parameters are transmitted to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
[0151] The control device for lighting equipment provided in the embodiments of the present invention can execute the control method for lighting equipment provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0152] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0153] Example 5
[0154] Figure 5A schematic diagram of an electronic device 50 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0155] like Figure 5 As shown, the electronic device 50 includes at least one processor 51 and a memory, such as a read-only memory (ROM) 52 and a random access memory (RAM) 53, communicatively connected to the at least one processor 51. The memory stores computer programs executable by the at least one processor. The processor 51 can perform various appropriate actions and processes based on the computer program stored in the ROM 52 or loaded into the RAM 53 from storage unit 58. The RAM 53 can also store various programs and data required for the operation of the electronic device 50. The processor 51, ROM 52, and RAM 53 are interconnected via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0156] Multiple components in electronic device 50 are connected to I / O interface 55, including: input unit 56, such as keyboard, mouse, etc.; output unit 57, such as various types of monitors, speakers, etc.; storage unit 58, such as disk, optical disk, etc.; and communication unit 59, such as network card, modem, wireless transceiver, etc. Communication unit 59 allows electronic device 50 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0157] Processor 51 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 51 performs the various methods and processes described above, such as the control methods for lighting equipment.
[0158] In some embodiments, the control method for the lighting device may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 50 via ROM 52 and / or communication unit 59. When the computer program is loaded into RAM 53 and executed by processor 51, one or more steps of the control method for the lighting device described above may be performed. Alternatively, in other embodiments, processor 51 may be configured to perform the control method for the lighting device by any other suitable means (e.g., by means of firmware).
[0159] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0160] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0161] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0163] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0164] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system to address the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.
[0165] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0166] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for controlling a lighting device, characterized in that, The method includes: The audio data to be played is segmented according to the target time sliding window to obtain at least one candidate audio signal, and the target audio signal to be processed is determined from the candidate audio signal. The method involves determining the target audio signal type corresponding to the target audio signal, determining the adjacent audio signal type corresponding to the adjacent audio signal, and determining whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type; wherein, the adjacent audio signal is a candidate audio signal in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is before the target audio signal; the target audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal, and the adjacent audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal; If the target audio signal is determined to be the potential beat point, then the target audio signal is checked for beat point based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal. If the check passes, the target audio signal is determined to be a candidate beat point of the audio data to be played. The historical audio signal is the candidate audio signal in the audio data to be played whose playback time is before the target audio signal. Based on the mapping relationship between the beat point and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined, and the target lighting control parameters are transmitted to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
2. The method according to claim 1, characterized in that, Determining the target audio signal type corresponding to the target audio signal includes: Determine the target spectrum information corresponding to the target audio signal, and determine the type of the target audio signal based on the target spectrum information.
3. The method according to claim 1, characterized in that, The step of determining whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal types includes: Compare the target audio signal type with the adjacent audio signal types; If the target audio signal type is different from the adjacent audio signal type, then the target audio signal is determined to be the potential beat point.
4. The method according to claim 1, characterized in that, The step of performing beat point verification on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal includes: The mean signal energy and the variance signal energy are determined based on the historical signal energy, and the energy detection threshold is determined based on the mean signal energy and the variance signal energy. The target signal energy is compared with the energy detection threshold. If the target signal energy is greater than or equal to the energy detection threshold, the beat point verification result of the target audio signal is determined to be verified as passed.
5. The method according to claim 1, characterized in that, The step of determining the target lighting control parameters associated with the target audio signal based on the mapping relationship between the beat point and the lighting control parameters includes: Determine the target beat point type corresponding to the target audio signal, and determine the target lighting control parameters associated with the target audio signal based on the target beat point type and the mapping relationship between the beat point type and the lighting control parameters. The beat point types include a first type of beat point, a second type of beat point, a third type of beat point, a fourth type of beat point, a fifth type of beat point, and a sixth type of beat point. The first type of beat point is a candidate beat point where the audio signal type changes from the low-frequency audio signal to the mid-frequency audio signal; the second type of beat point is a candidate beat point where the audio signal type changes from the low-frequency audio signal to the high-frequency audio signal; the third type of beat point is a candidate beat point where the audio signal type changes from the mid-frequency audio signal to the high-frequency audio signal; the fourth type of beat point is a candidate beat point where the audio signal type changes from the high-frequency audio signal to the mid-frequency audio signal; the fifth type of beat point is a candidate beat point where the audio signal type changes from the high-frequency audio signal to the low-frequency audio signal; and the sixth type of beat point is a candidate beat point where the audio signal type changes from the mid-frequency audio signal to the low-frequency audio signal.
6. The method according to claim 1, characterized in that, The method further includes: Extract the target audio features corresponding to the target audio signal; The target audio features are input into a music style recognition model to determine the target music style corresponding to the target audio signal; and the target audio features are input into a music emotion recognition model to determine the target music emotion corresponding to the target audio signal. Based on the target music style and the target music emotion, target tag information corresponding to the target audio signal is generated, and based on the target tag information and the mapping relationship between the tag information and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined. The target lighting control parameters are transmitted to the target lighting device so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
7. The method according to claim 1, characterized in that, The method further includes: Determine whether the music style of the audio data to be played is a preset audio style; wherein, the preset audio style is pop music or electronic music; If so, the target spectrum information corresponding to the target audio signal is determined, and the target spectrum information is input into the drum beat detection model. The drum beat detection model is used to determine whether the target audio signal is a candidate drum beat of the audio data to be played. If so, then based on the mapping relationship between the drum beat and the lighting control parameters, the target lighting control parameters associated with the target audio signal are determined, and the target lighting control parameters are transmitted to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
8. A control device for lighting equipment, characterized in that, The device includes: The target audio signal determination module is used to segment the audio data to be played according to the target time sliding window to obtain at least one frame of candidate audio signal, and to determine the target audio signal to be processed from the candidate audio signal. A potential beat point identification module is used to determine the target audio signal type corresponding to the target audio signal, and to determine the adjacent audio signal type corresponding to the adjacent audio signal, and to determine whether the target audio signal is a potential beat point of the audio data to be played based on the target audio signal type and the adjacent audio signal type; wherein, the adjacent audio signal is a candidate audio signal in the audio data to be played whose playback time is adjacent to the target audio signal and whose playback time is before the target audio signal; the target audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal, and the adjacent audio signal type is a low-frequency audio signal, a mid-frequency audio signal, or a high-frequency audio signal; A beat point verification module is used to, if the target audio signal is determined to be the potential beat point, perform beat point verification on the target audio signal based on the target signal energy corresponding to the target audio signal and the historical signal energy corresponding to the historical audio signal, and determine the target audio signal as a candidate beat point of the audio data to be played if the verification passes; wherein, the historical audio signal is the candidate audio signal in the audio data to be played whose playback time is before the target audio signal; The lighting control parameter transmission module is used to determine the target lighting control parameters associated with the target audio signal based on the mapping relationship between the beat point and the lighting control parameters, and to transmit the target lighting control parameters to the target lighting device, so that when the target audio signal is played, the target lighting device is controlled to perform lighting control according to the target lighting control parameters.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the control method of the lighting device according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to execute the control method of the lighting device according to any one of claims 1-7.
11. A computer program product comprising a computer program that, when executed by a processor, implements a control method for a lighting device according to any one of claims 1-7.
Citation Information
Patent Citations
Light control method and system based on song accompanying sound and microphone voice real-time detection
CN106875930A
Audio rhythm detection method, intelligent lamp strip, device, electronic equipment and medium
CN113921035A
Method for optimizing light rhythm through music rhythm feature extraction
CN118711569A
Beat recognition method and apparatus, and storage medium
WO2022104917A1