Audio rhythm detection method, smart light strip, device, electronic equipment and medium

By obtaining the real-time and historical energy total value of audio in different frequency regions, the rhythm point detection process is simplified, the problems of complex calculations and incomplete rhythm changes in the existing technology are solved, and accurate capture and rich description of audio rhythm changes are achieved. .

CN113921035BActive Publication Date: 2024-11-08SHENZHEN INTELLIROCKS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111012955.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-11-08
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

The prior art requires complex time and frequency domain calculations when detecting audio rhythm points, resulting in cumbersome calculations. Each detection moment only reflects a single rhythm change, and it is impossible to accurately obtain the rhythm changes of the entire frequency segment of the audio.

Method used

By obtaining the real-time total energy value of the current detection audio in at least two preset frequency regions and the historical energy value of the previous historical detection time, the rhythm point is determined based on the real-time and historical energy value of each frequency region, respectively. , reduce the complexity of rhythm point acquisition and reflect the rhythm changes in different frequency regions.

Benefits of technology

It simplifies the rhythm point acquisition process, can sensitively capture the rhythm changes of the audio in different frequency areas, enriches the description of rhythm changes, and can accurately obtain rhythm changes when the energy fluctuates less.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113921035B_ABST
    Figure CN113921035B_ABST
Patent Text Reader

Abstract

The present application discloses an audio rhythm detection method, a smart light strip, a device, an electronic device and a medium. By acquiring the real-time detection audio at the current detection moment, determining the real-time total energy value of the real-time detection audio in at least two preset frequency areas, acquiring the historical total energy value of the historical detection audio in at least two preset frequency areas, and determining the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area, the rhythm point is obtained by performing frequency domain calculation on the detection audio, reducing the complexity of rhythm point acquisition, and obtaining the rhythm points of different frequency areas of the detection audio, which can reflect the rhythm changes of the detection audio in different frequency areas, thereby enriching the rhythm changes of the detection audio, and obtaining the real-time total energy value and the historical total energy value of the preset frequency area through energy accumulation, which can sensitively obtain the rhythm changes even when the energy fluctuation is small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio data processing, and more specifically, to an audio rhythm detection method, a smart light strip, a device, an electronic device and a medium. Background Art

[0002] In the related art, in order to obtain the rhythm point of the detection audio, it is necessary not only to perform time domain calculation on the detection audio, but also to perform frequency domain calculation on the detection audio, and to obtain the rhythm point by combining the time domain calculation results and the frequency domain calculation results. The calculation process is complicated. For each detection moment of the detection audio, only a single rhythm change is reflected, and the rhythm change is single. Summary of the invention

[0003] In view of the above problems, the present application proposes an audio rhythm detection method, a smart light strip, a device, an electronic device and a medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides an audio rhythm detection method, the method comprising: obtaining real-time detection audio at a current detection moment; determining the real-time total energy value of the real-time detection audio in at least two preset frequency areas; obtaining the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas; determining the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area.

[0005] In a second aspect, an embodiment of the present application provides a smart light strip, which includes: a light effect control module and a plurality of light modules. The light effect control module is connected to the plurality of light modules, and is used to execute the audio detection method of the first aspect.

[0006] In a third aspect, an embodiment of the present application provides an audio rhythm detection device, which includes: a real-time audio detection module, a real-time total energy value acquisition module, a historical total energy value acquisition module and a rhythm point determination module. Among them, the real-time audio detection module is used to obtain the real-time detection audio at the current detection moment. The real-time total energy value acquisition module is used to determine the real-time total energy value of the real-time detection audio in at least two preset frequency areas. The historical total energy value acquisition module is used to obtain the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas. The rhythm point determination module determines the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area.

[0007] In a fourth aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising: one or more processors, a memory, and one or more applications. The one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of the first aspect or the second aspect.

[0008] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method described in the first aspect.

[0009] In the technical solution provided by the present application, by acquiring the real-time detection audio at the current detection moment, the real-time total energy value of the real-time detection audio in at least two preset frequency areas is determined, and the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas is acquired, and the rhythm point of each preset frequency area is determined according to the real-time total energy value and the historical total energy value of each preset frequency area, respectively. The rhythm point is acquired by performing frequency domain calculation on the detection audio to reduce the complexity of rhythm point acquisition, and the rhythm points of different frequency areas of the detection audio are acquired, which can reflect the rhythm changes of the detection audio in different frequency areas, thereby enriching the rhythm changes of the detection audio. The real-time total energy value and the historical total energy value of the preset frequency area are acquired by accumulating energy, so that the rhythm changes can be sensitively acquired even when the energy fluctuation is small. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments and drawings obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0011] Figure 1 A flowchart of an audio rhythm detection method proposed in an embodiment of the present application is shown.

[0012] Figure 2 A flow chart of an audio rhythm detection method proposed in another embodiment of the present application is shown.

[0013] Figure 3 A flowchart of an audio rhythm detection method proposed in another embodiment of the present application is shown.

[0014] Figure 4 A flow chart of an audio rhythm detection method proposed in yet another embodiment of the present application is shown.

[0015] Figure 5 A flowchart of an audio rhythm detection method proposed in another embodiment of the present application is shown.

[0016] Figure 6 A schematic diagram of a lighting effect in another embodiment of the present application is shown.

[0017] Figure 7 A schematic diagram showing another lighting effect in yet another embodiment of the present application is shown.

[0018] Figure 8 A schematic diagram showing yet another lighting effect in yet another embodiment of the present application is shown.

[0019] Fig. 9 A schematic diagram showing another lighting effect in yet another embodiment of the present application is shown.

[0020] Fig.10 A schematic diagram showing another lighting effect in another embodiment of the present application is shown.

[0021] Fig.11 A schematic diagram showing yet another lighting effect in yet another embodiment of the present application is shown.

[0022] Fig.12 A schematic diagram showing yet another lighting effect in yet another embodiment of the present application is shown.

[0023] Fig.13 A structural block diagram of a smart light strip proposed in an embodiment of the present application is shown.

[0024] Fig.14 A structural block diagram of a smart light strip proposed in another embodiment of the present application is shown.

[0025] Fig.15 A structural block diagram of an audio rhythm detection device proposed in an embodiment of the present application is shown.

[0026] Fig.16 A structural block diagram of an electronic device proposed in an embodiment of the present application is shown.

[0027] Fig.17 A structural block diagram of a computer-readable storage medium proposed in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0029] In the related art, in order to obtain the rhythm point of the detection audio, it is necessary not only to perform time domain calculation on the detection audio, but also to perform frequency domain calculation on the detection audio, and obtain the rhythm point by combining the time domain calculation results and the frequency domain calculation results, but this will make the calculation process complicated and require too much calculation time. And for each detection moment of the detection audio, only a single rhythm change is reflected, that is, the rhythm change of the detection audio at each detection moment is reflected by the same rhythm change, and the rhythm change is single. At the same time, when the energy fluctuation of the full frequency band of the audio is small, it is impossible to accurately obtain the rhythm change, which makes it impossible to timely and accurately obtain the rhythm change of the audio.

[0030] Therefore, in order to improve the above-mentioned problems, the inventors of the present application proposed the audio rhythm detection method, smart light strip, device, electronic device and medium provided in the present application, by obtaining the real-time detection audio at the current detection moment, determining the real-time total energy value of the real-time detection audio in at least two preset frequency areas, obtaining the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas, respectively, determining the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area, respectively, obtaining the rhythm point by performing frequency domain calculation on the detection audio, reducing the complexity of rhythm point acquisition, and obtaining the rhythm points of different frequency areas of the detection audio, which can reflect the rhythm changes of the detection audio in different frequency areas, thereby enriching the rhythm changes of the detection audio, and obtaining the real-time total energy value and the historical total energy value of the preset frequency area by accumulating energy, so that the rhythm changes can be sensitively obtained even when the energy fluctuation is small.

[0031] This will be described below in conjunction with specific embodiments.

[0032] See also Figure 1 An embodiment of the present application provides an audio rhythm detection method, which may include steps S110 to S140.

[0033] Step S110: Acquire the real-time detection audio at the current detection moment.

[0034] The method of the present application can be applied to a mobile terminal, which can be a mobile phone, a tablet computer, a notebook, a car computer, etc. The method of the present application can also be applied to a smart light strip, which includes a lighting effect control module and multiple light modules. The present application embodiment is described by taking a smart light strip as an example.

[0035] In some embodiments, the smart light strip may include an audio acquisition module, and the audio acquisition module may be, for example, a microphone, a microphone array, etc. The audio acquisition module may acquire analog signals of audio in the environment.

[0036] In some embodiments, the smart light strip may also include a transmission module, which may acquire audio data from a device such as a mobile terminal.

[0037] Optionally, the smart light strip can obtain audio data from the mobile terminal through wired transmission. Specifically, the smart light strip includes a connection interface, establishes a connection with the mobile terminal through a connection line, and obtains audio data from the mobile terminal.

[0038] Optionally, the smart light strip can obtain audio data from a mobile terminal or a server through wireless transmission. Specifically, the smart light strip can establish a connection with a mobile terminal or a server through a network. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), any combination of mobile, wired or wireless networks, private networks or virtual private networks. In some embodiments, the smart light strip and devices such as mobile terminals can communicate and transmit through communication protocols, and the communication protocols include but are not limited to BLE (Bluetooth low energy) protocol, WLAN (Wireless Local Area Network) protocol, Bluetooth protocol, ZigBee protocol or Wi-Fi (Wireless Fidelity) protocol, etc.

[0039] Optionally, the mobile terminal can play the audio data while sending the audio data to the smart light strip.

[0040] Optionally, the mobile terminal may also only send audio data to the smart light strip without playing the audio data.

[0041] In an embodiment of the present application, the smart light strip can periodically collect detection audio according to a preset sampling frequency, and collect detection audio at a detection moment each time, and the audio data includes detection audio collected at multiple detection moments. Among them, the latest collected detection audio is real-time detection audio. The detection moment of the latest collected detection audio is the current detection moment. It can be understood that the audio data collected by the smart light strip can be stored in the memory of the smart light strip, and when it is necessary to obtain the detection audio collected at the historical detection moment, the relevant data can be read from the memory of the smart light strip.

[0042] Optionally, the smart light strip can also obtain audio data from a mobile terminal, and the audio data includes multiple frames of audio arranged in chronological order. The moment when the smart light strip obtains each frame of audio is the detection moment. Among them, the latest acquired frame of audio is the real-time detection audio. The detection moment of the latest acquired frame of audio is the current detection moment. It can be understood that the audio data obtained by the smart light strip from the mobile terminal and other devices can be stored in the memory of the smart light strip. When it is necessary to obtain the detection audio obtained at the historical detection moment, the relevant data can be read from the memory of the smart light strip.

[0043] Step S120: Determine the total real-time energy value of the real-time detected audio in at least two preset frequency regions.

[0044] In the related art, obtaining the rhythm point of the audio requires not only time domain calculations, but also frequency domain calculations, and the calculation process is complicated. And at the same detection moment, only a single rhythm change is obtained based on the detection data at the detection moment. In order to refine the rhythm change of the detection data at the same detection moment, in an embodiment of the present application, the detection audio is divided into at least two preset frequency areas, and the rhythm change of each preset frequency area is obtained respectively, thereby enriching the rhythm change of the detection audio. Among them, at least two preset frequency areas are different frequency areas.

[0045] In some implementations, each of the at least two preset frequency regions may not overlap with each other, or may partially overlap with each other.

[0046] In some implementations, the division of preset frequency regions can be set according to actual usage needs. For example, the preset frequency regions can be divided according to the type of audio data, or the frequency regions that appear more frequently in the audio data can be set as preset frequency regions.

[0047] As an example, the at least two preset frequency regions include a first frequency region, a second frequency region, and a third frequency region, wherein the upper limit value of the first frequency region is smaller than the lower limit value of the second frequency region, and the upper limit value of the second frequency region is smaller than the lower limit value of the third frequency region.

[0048] Optionally, the first frequency region may be a low frequency region, and the frequency range of the low frequency region may be 60-200 Hz.

[0049] Optionally, the second frequency region may be a medium frequency region, and the frequency range of the medium frequency region may be 200-1000 Hz.

[0050] Optionally, the third frequency region may be a high frequency region, and the frequency range of the high frequency region may be 1000-5000 Hz.

[0051] It is understandable that the number of preset frequency regions and the frequency range division can be set according to usage requirements, and this application does not impose any restrictions on this.

[0052] In an embodiment of the present application, in order to obtain the rhythm change, the real-time energy total value of the real-time detection audio in at least two preset frequency regions is determined respectively. That is, the sum of the energy of each preset frequency region of the real-time detection audio is calculated as the real-time energy total value of the real-time detection audio.

[0053] In the embodiment of the present application, the energy of the preset frequency region can be obtained by the amplitude, volume, etc. of the preset frequency region. That is, the real-time total energy value of the preset frequency region can be obtained by the total amplitude value or the total volume value of the preset frequency region. It is understood that the present application is not limited to this, and other calculation methods that can be used to represent audio energy can also be applied to the embodiments of the present application.

[0054] In the embodiment of the present application, since energy accumulation is performed in the frequency region, even if the energy fluctuation in the preset frequency region is small, the energy change can be obtained through energy accumulation, so that the rhythm change can be sensitively obtained.

[0055] Step S130: Obtain the total historical energy values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency regions.

[0056] In an embodiment of the present application, in order to obtain the rhythm points of each preset frequency area, in addition to obtaining the real-time total energy value of each preset frequency area, it is also necessary to obtain the historical total energy value of each preset frequency area at the historical detection time, so as to obtain the energy change of each preset frequency area, and obtain the rhythm points according to the energy change.

[0057] In an embodiment of the present application, detection audio is acquired at different detection moments, the latest detection moment is the current detection moment, and the detection moment before the current detection moment is the historical detection moment.

[0058] In some implementations, the total historical energy values ​​of the historical detection audio at a historical detection moment before the current detection moment in two preset frequency regions may be obtained, that is, the historical detection audio at the previous detection moment before the current detection moment is obtained, so as to determine the energy change of the preset frequency region according to the historical detection audio at the previous detection moment.

[0059] In other implementations, the total historical energy values ​​of the historical detection audio at multiple historical detection moments before the current detection moment in the two preset frequency regions may also be obtained, so as to determine the energy change in the preset frequency region based on the historical detection audio at multiple historical detection moments.

[0060] It is understandable that the number of historical detection moments obtained can be set according to actual usage needs, and this application does not impose any restrictions on this.

[0061] Step S140: determining the rhythm point of each preset frequency region according to the real-time total energy value and the historical total energy value of each preset frequency region.

[0062] In an embodiment of the present application, the energy change of each preset frequency area can be determined according to the real-time total energy value and the historical total energy value of each preset frequency area, so as to determine whether there is a rhythm point in each preset frequency area.

[0063] In some implementations, the energy change of each preset frequency region may be determined based on the real-time total energy value of each preset frequency region and the historical total energy value at at least one detection moment.

[0064] Optionally, the energy change of each preset frequency region may be determined according to the difference between the real-time total energy value of each preset frequency region and the historical total energy value at the last detection moment.

[0065] Optionally, the average energy value can be determined based on the real-time total energy value of each preset frequency area and the historical total energy value at at least one detection moment, and the energy change of each preset frequency area can be determined based on the difference between the real-time total energy value and the average energy value of each preset frequency area.

[0066] Optionally, the energy change of each preset frequency region can be determined in combination with the above two situations. That is, the difference between the real-time total energy value of each preset frequency region and the historical total energy value at the last detection moment is considered, and the difference between the real-time total energy value and the average energy value of each preset frequency region is also considered. The energy change of each preset frequency region is determined by the above two differences, so as to obtain the energy change of each preset frequency region more accurately.

[0067] In some implementations, the energy change difference of each preset frequency region can be compared with a preset energy threshold. If the energy change difference is greater than the preset energy threshold, it is determined that a rhythm point exists in the preset frequency region; otherwise, no rhythm point exists in the preset frequency region.

[0068] Optionally, the preset energy threshold corresponding to each preset frequency region may be a fixed value, that is, the same preset energy threshold may be used when determining the rhythm point at each detection moment.

[0069] Optionally, the preset energy threshold corresponding to each preset frequency region may be dynamically adjusted according to the current detection moment.

[0070] In some embodiments, the preset energy threshold can be obtained according to a preset ratio of the average total energy value of the preset frequency region at the current detection moment. The average total energy value of each preset frequency region is the average of the historical total energy value and the real-time total energy value of each preset frequency region at at least one historical detection moment before the current detection moment.

[0071] Exemplarily, the preset frequency region includes a first preset frequency region and a second preset frequency region. s The previous two historical detection moments T L1 、T L2 That is, the total historical energy value of the first preset frequency region at the first historical detection time T L1 The total historical energy value E L1a And the second historical detection time T L2 The total historical energy value E L2a . Obtain the second preset frequency region at the first historical detection time T L1 The total historical energy value E L1b And the second historical detection time T L2 The total historical energy value E L2b The first preset frequency region is at the current detection time T s The total real-time energy value is E Sa , the second preset frequency region is at the current detection time T s The total real-time energy value is E Sb .

[0072] Thus, the average total energy value A in the first frequency region is a =(E L1a +E L2a +E Sa ) / 3. The average total energy value A of the second frequency region b =(E L1b +E L2b +E Sb ) / 3.

[0073] Furthermore, the preset energy threshold Y of the first frequency region La =A a *(1 / B), the preset energy threshold Y of the second frequency region Lb =A b *(1 / B). Wherein, B≠0, and B>1. Exemplarily, 1<B<20. Preferably, B can be 5.

[0074] By dynamically adjusting the value of the preset energy threshold, the value of the preset energy threshold is synchronously adjusted according to the energy situation at the closest detection moment each time, thereby improving the accuracy of judging the rhythm point.

[0075] In one embodiment of the present application, an audio rhythm detection method is provided, which obtains real-time detection audio at a current detection moment, determines the real-time total energy value of the real-time detection audio in at least two preset frequency areas, obtains the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas, determines the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value, obtains the rhythm point by performing frequency domain calculation on the detection audio, reduces the complexity of rhythm point acquisition, obtains the rhythm points of different frequency areas of the detection audio, can reflect the rhythm changes of the detection audio in different frequency areas, thereby enriching the rhythm changes of the detection audio, obtains the real-time total energy value and the historical total energy value of the preset frequency area by accumulating energy, and can sensitively obtain the rhythm changes even when the energy fluctuation is small.

[0076] See also Figure 2 Another embodiment of the present application provides an audio rhythm detection method, which may include steps S210 to S250.

[0077] Step S210: Acquire the real-time detection audio at the current detection moment.

[0078] Step S220: Determine the total real-time energy value of the real-time detected audio in at least two preset frequency regions.

[0079] For the detailed description of step S210 to step S220, please refer to step S110 to step S120, which will not be repeated here.

[0080] Step S230: Obtain the total historical energy values ​​of the historical detection audio at a historical detection moment before the current detection moment in at least two preset frequency regions.

[0081] In an embodiment of the present application, the historical detection audio of a historical detection moment before the current detection moment is obtained, that is, the historical detection audio of the previous detection moment before the current detection moment is obtained.

[0082] For example, in the embodiment of the present application, two preset frequency regions are taken as an example for description, and the two preset frequency regions are respectively a first preset frequency region and a second preset frequency region.

[0083] In step S210 to step S220, the current detection time T can be obtained. s The total real-time energy value of the real-time detected audio in the first preset frequency region is E Sa , the total real-time energy value in the second preset frequency region is E Sb Furthermore, step S230 obtains the current detection time T sThe previous historical detection time T L1 The total historical energy value of the historical detection audio in the first preset frequency region is E L1a , the total historical energy value in the second preset frequency region is E L1b .

[0084] Step S240: Obtain an incremental difference value for each preset frequency region according to the real-time total energy value and the historical total energy value of each preset frequency region.

[0085] Furthermore, the energy change of each preset frequency region may be determined according to the difference between the real-time total energy value and the historical total energy value of each preset frequency region.

[0086] Exemplarily, the real-time total energy value E of the first preset frequency region is Sa The total historical energy value E of the first frequency region L1a The difference is the incremental difference C ZL1a , that is, C ZL1a =E Sa -E L1a The real-time total energy value E of the second preset frequency region Sb and the total historical energy value E of the second frequency region L1b The difference is the incremental difference C ZL1b , that is, C ZL1b =E Sb -E L1b .

[0087] Step S250: If the incremental difference corresponding to the preset frequency region is greater than the preset energy threshold corresponding to the preset frequency region, it is determined that there is a rhythm point in the preset frequency region.

[0088] If the energy change of the preset frequency region exceeds a preset threshold, it is determined that there is a rhythm point in the preset frequency region.

[0089] For example, if the incremental difference C of the first preset frequency region is ZL1a Greater than the first preset energy threshold Y corresponding to the first preset frequency region L1a , it is determined that there is a rhythm point in the first preset frequency region. Otherwise, there is no rhythm point in the first preset frequency region.

[0090] Similarly, if the incremental difference C of the second preset frequency region is ZL1b Greater than the second preset energy threshold Y corresponding to the second preset frequency region L1b , it is determined that there is a rhythm point in the second preset frequency region. Otherwise, there is no rhythm point in the second preset frequency region.

[0091] It should be noted that, in other embodiments, in step S230, it is also possible to obtain the historical energy total values ​​of the historical detection audio of multiple historical detection moments before the current detection moment in at least two preset frequency regions. Furthermore, in steps S240 to S250, the real-time energy total value of each preset frequency region can be compared with multiple historical energy total values. If the difference is greater than the preset energy threshold, it can be determined that there is a rhythm point at the current detection moment. Exemplarily, the historical detection audio of three historical detection moments can be obtained, namely the first historical detection moment, the second historical detection moment and the third historical detection moment. The real-time energy total value is compared with the historical energy total value of the first historical detection moment to obtain a first difference. The real-time energy total value is compared with the historical energy total value of the second historical detection moment to obtain a second difference. And the real-time energy total value is compared with the historical energy total value of the third historical detection moment. If the first difference, the second difference and the third difference are all greater than the preset energy threshold, it is determined that there is a rhythm point in the real-time detection audio of the current detection moment.

[0092] Another embodiment of the present application provides an audio rhythm detection algorithm. This embodiment provides an implementation method for determining rhythm points. Specifically, by obtaining the historical energy total values ​​of the historical detection audio at a historical detection moment before the current detection moment in at least two preset frequency regions, the incremental difference of each preset frequency region is then obtained based on the real-time energy total value and the historical energy total value of each preset frequency region. If the incremental difference corresponding to the preset frequency region is greater than the corresponding preset energy threshold, it is determined that there is a rhythm point in the preset region based on the energy change before and after the detection moment of the preset frequency region. This embodiment obtains the rhythm points by performing frequency domain calculation on the detection audio, thereby reducing the complexity of rhythm point acquisition. The rhythm points of different frequency regions of the detection audio are obtained, which can reflect the rhythm changes of the detection audio in different frequency regions, thereby enriching the rhythm changes of the detection audio. The real-time energy total value and the historical energy total value of the preset frequency region are obtained by accumulating energy, so that the rhythm changes can be sensitively obtained even when the energy fluctuation is small.

[0093] See also Figure 3 Another embodiment of the present application provides an audio rhythm detection method, which may include steps S310 to S360.

[0094] Step S310: Acquire the real-time detection audio at the current detection moment.

[0095] Step S320: Determine the total real-time energy value of the real-time detected audio in at least two preset frequency regions.

[0096] Step S330: Obtain the total historical energy values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency regions.

[0097] For the detailed description of step S310 to step S330 , please refer to step S210 to step S230 , which will not be repeated here.

[0098] Step S340: Obtain an average total energy value corresponding to each preset frequency region according to the real-time total energy value of each preset frequency region and the historical total energy value of at least one historical detection moment before the current detection moment.

[0099] In an embodiment of the present application, the average of the real-time total energy value of each preset frequency area and the historical total energy value of at least one historical detection moment before the current detection moment is taken as the average total energy value.

[0100] Exemplarily, in the embodiment of the present application, two preset frequency regions are taken as an example for description, and the two preset frequency regions are respectively a first preset frequency region and a second preset frequency region.

[0101] In step S310 to step S320, the current detection time T can be obtained. s The total real-time energy value of the real-time detected audio in the first preset frequency region is E Sa , the total real-time energy value in the second preset frequency region is E Sb In step S330, the current detection time T is obtained. s The previous historical detection time T L1 The total historical energy value of the historical detection audio in the first preset frequency region is E L1a , the total historical energy value in the second preset frequency region is E L1b Further, in step S340, the average total energy value A of the first preset frequency region a The real-time total energy value E of the first preset frequency region Sa With the historical detection time T L1 The total historical energy value E L1a The average value of the first preset frequency region is obtained. a =(E Sa +E L1a ) / 2. The average total energy value A of the second frequency preset area b is the real-time total energy value E of the second preset frequency region Sb and historical detection time T L1 The total historical energy value E L1b The average value of the second preset frequency region is obtained. b =(ESb +E L1b ) / 2.

[0102] Step S350: Obtain an average difference value for each preset frequency region according to the real-time total energy value and the average total energy value of each preset frequency region.

[0103] Specifically, the energy change of the frequency region may be determined according to the difference between the real-time total energy value of each preset frequency region and the average total energy value corresponding to the region to obtain the average difference of each preset frequency region.

[0104] For example, the total real-time energy value E in the first preset frequency region Sa The average total energy value A of the first preset frequency region a The difference is the average difference C PLa , that is, C PLa =E Sa -A a The total real-time energy value E in the second preset frequency region Sb The average total energy value A of the second frequency region b The average difference is C PLb , that is, C PLb =E Sb -A b .

[0105] Step S360: If the average difference value corresponding to the preset frequency region is greater than the corresponding preset energy threshold, it is determined that a rhythm point exists in the preset frequency region.

[0106] In this embodiment, if the average difference of energy changes in the preset frequency region exceeds a preset energy threshold, it is determined that a rhythm point exists in the preset region.

[0107] For example, if the average difference C in the first preset frequency region is PLa Greater than the energy threshold Y corresponding to the preset frequency region L1a , it is determined that there is a rhythm point in the first preset frequency region. Otherwise, there is no rhythm point in the first preset frequency region.

[0108] Similarly, if the average difference C of the second preset frequency region is PLb Greater than the energy threshold Y corresponding to the preset frequency region L1b , it is determined that there is a rhythm point in the second preset frequency region. Otherwise, there is no rhythm point in the second preset frequency region.

[0109] Another embodiment of the present application provides an audio detection method, and this embodiment provides another implementation method for determining rhythm points. Specifically, the average total energy value of each preset frequency area is obtained according to the real-time total energy value and the historical total energy value of each preset frequency area, and then the average difference value of each preset frequency area is obtained according to the real-time total energy value and the average total energy value of each preset frequency area. If the average difference value corresponding to the preset frequency area is greater than the corresponding preset energy threshold, the presence of a rhythm point in the preset frequency area is determined according to the change of the energy and the average energy at the current detection moment of the preset frequency area, thereby reducing the error caused by fluctuations and improving the accuracy of obtaining rhythm points. This embodiment obtains rhythm points by performing frequency domain calculation on the detected audio, reduces the complexity of rhythm point acquisition, and obtains rhythm points in different frequency areas of the detected audio, which can reflect the rhythm changes of the detected audio in different frequency areas, thereby enriching the rhythm changes of the detected audio. The real-time total energy value and the historical total energy value of the preset frequency area are obtained by accumulating energy, and the rhythm changes can be sensitively obtained even when the energy fluctuation is small.

[0110] See also Figure 4 Another embodiment of the present application provides an audio rhythm detection method, which may include steps S410 to S470.

[0111] Step S410: Acquire the real-time detection audio at the current detection moment.

[0112] Step S420: Determine the total real-time energy value of the real-time detected audio in at least two preset frequency regions.

[0113] Step S430: Obtain the total historical energy values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency regions.

[0114] For the detailed description of step S410 to step S430, please refer to step S110 to step S130, which will not be repeated here.

[0115] Step S440: Obtain an incremental difference corresponding to each preset frequency region according to the real-time total energy value of each preset frequency region and the historical total energy value of the previous historical detection audio at the current detection moment.

[0116] In an embodiment of the present application, the energy change of each preset frequency region is obtained according to the real-time total energy value of each preset region and the historical total energy value of the previous historical detection audio at the current detection moment.

[0117] Exemplarily, the real-time total energy value E of the first preset frequency region is Sa The total historical energy value E of the area at the previous historical detection moment L1aThe incremental difference between ZL1a The real-time total energy value E of the second preset frequency region Sb The total historical energy value E of the area at the previous historical detection moment L1b The incremental difference between ZL1b .

[0118] Step S450: Obtain an average total energy value corresponding to each preset frequency region according to the real-time total energy value of each preset frequency region and the historical total energy values ​​of at least two historical detection moments before the current detection moment.

[0119] Exemplarily, in the embodiment of the present application, two preset frequency regions are taken as an example for description, and the two preset frequency regions are respectively a first preset frequency region and a second preset frequency region.

[0120] Current detection time T s The total real-time energy value of the real-time detected audio in the first preset frequency region is E Sa , the total real-time energy value in the second preset frequency region is E Sb . Get the current detection time T s The previous historical detection time T L1 The total historical energy value E of the historical detection audio in the first preset frequency region L1a , the total historical energy value E in the second preset frequency region L1b Furthermore, the average total energy value A of the first preset frequency region a The real-time total energy value E of the first preset frequency region Sa With the historical detection time T L1 The total historical energy value E L1a The average value of the first preset frequency region is obtained. a =(E Sa +E L1a ) / 2. The average total energy value A of the second frequency preset area b is the real-time total energy value E of the second preset frequency region Sb and historical detection time T L1 The total historical energy value E L1b The average value of the second preset frequency region is obtained. b =(E Sb +E L1b ) / 2.

[0121] Step S460: Obtain an average difference value corresponding to each preset frequency region according to the real-time total energy value and the average total energy value of each preset frequency region.

[0122] For example, the total real-time energy value E in the first preset frequency regionSa The average total energy value A of the first preset frequency region a The difference is the average difference C PLa , that is, C PLa =E Sa -A a The total real-time energy value E in the second preset frequency region Sb The average total energy value A of the second frequency region b The average difference is C PLb , that is, C PLb =E Sb -A b .

[0123] Step S470: If the incremental difference of the preset frequency region is greater than the corresponding first preset energy threshold, and the average difference of the preset frequency region is greater than the corresponding second preset energy threshold, it is determined that a rhythm point exists in the preset frequency region.

[0124] In this embodiment, if the incremental difference of the energy change in the preset frequency region exceeds the first preset energy, and the average difference exceeds the second preset energy threshold, it is determined that there is a rhythm point in the preset region.

[0125] For example, if the incremental difference C of the first preset frequency region is ZL1a Greater than the first energy threshold Y corresponding to the preset frequency region L1a1 and the average difference C of the first preset frequency region PLa Greater than the second energy threshold Y corresponding to the preset frequency region L1a2 , it is determined that there is a rhythm point in the first preset frequency region. Otherwise, it is determined that there is no rhythm point in the first preset frequency region.

[0126] Similarly, if the incremental difference C of the second preset frequency region is ZL1b Greater than the first energy threshold Y corresponding to the preset frequency region L1b1 and the average difference C of the second preset frequency region PLb are all greater than the second energy threshold Y corresponding to the preset frequency region L1b2 , it is determined that there is a rhythm point in the second preset frequency region. Otherwise, it is determined that there is no rhythm point in the second preset frequency region.

[0127] It is understandable that the first preset energy threshold and the second preset energy threshold can be set according to actual use needs. Optionally, the first preset energy threshold and the second preset energy threshold can be set to the same value. Optionally, the first preset energy threshold and the second preset energy threshold can also be set to different values, which is not limited in this application.

[0128] Another embodiment of the present application provides an audio rhythm detection method, and this embodiment provides another implementation method for determining rhythm points. Specifically, the incremental difference corresponding to each preset frequency area is obtained according to the real-time energy total value of each preset frequency area and the historical energy total value of the previous historical detection audio at the current detection moment; then the average energy total value corresponding to each preset frequency area is obtained according to the real-time energy total value of each preset frequency area and the historical energy total value of at least one historical detection moment before the current detection moment; and then the average difference corresponding to each preset frequency area is obtained according to the real-time energy total value of each preset frequency area and the average energy total value. If the incremental difference of the preset frequency area is greater than the corresponding preset energy threshold, and the average difference of the preset frequency area is greater than the corresponding preset energy threshold, it is determined that there is a rhythm point in the preset frequency area. In this embodiment, the rhythm point is determined based on the incremental difference and the average difference at the same time, which can greatly improve the accuracy of detection and reduce the occurrence of false detection and missed detection.

[0129] See also Figure 5 Another embodiment of the present application provides an audio rhythm detection method, which may include steps S510 to S540.

[0130] Step S510: Acquire the real-time detection audio at the current detection moment.

[0131] Step S520: Determine the total real-time energy value of the real-time detected audio in at least two preset frequency regions.

[0132] Step S530: Obtain the total historical energy values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency regions.

[0133] Step S540: determine the rhythm point of each preset frequency region according to the real-time total energy value and the historical total energy value of each preset frequency region.

[0134] For the detailed description of steps S510 to S540, please refer to steps S110 to S140, which will not be described again here.

[0135] Step S550: Control the lighting effect of the smart light strip according to the rhythm points of at least two preset frequency areas.

[0136] In an embodiment of the present application, after obtaining the rhythm points of each preset frequency area of ​​the real-time detected audio, the lighting effect of the smart light strip can be further controlled according to the obtained rhythm points, so that the changes in the music rhythm can be displayed through lighting effects.

[0137] In an embodiment of the present application, the smart light strip may include a plurality of light modules, each of which may emit light of different colors and brightness through adjustment.

[0138] In some embodiments, the smart light strip includes at least two lighting effect areas, and the at least two lighting effect areas correspond to at least two preset frequency areas. That is, the smart light strip is divided into at least two lighting effect areas, and each lighting effect area corresponds to one of the preset frequency areas. Each lighting effect area can be composed of multiple light modules. The lighting effect of each lighting effect area can be controlled according to the rhythm point of each preset frequency area.

[0139] When there is a rhythm point in each preset frequency area, the corresponding lighting effect area displays one lighting effect. When there is no rhythm point in each preset frequency area, the corresponding lighting effect area displays another different lighting effect. Thus, the lighting effect area can reflect the change of the rhythm point of the corresponding preset frequency area. In addition, the smart lamp can display more diverse lighting effect changes according to the rhythm points of at least two preset frequency areas.

[0140] like Figure 6 As shown, at least two preset frequency regions include a first preset frequency region, a second preset frequency region, and a third preset frequency region. The smart light strip 100 includes three lighting effect regions, namely a first lighting effect region D1, a second lighting effect region D2, and a third lighting effect region D3. The first preset frequency region corresponds to the first lighting effect region D1, the second preset frequency region corresponds to the second lighting effect region D2, and the third preset frequency region corresponds to the third lighting effect region D3.

[0141] As an implementation method, each lighting effect area can display different lighting effects according to the situation of the rhythm point of the corresponding preset frequency area. For example, Table 1 gives an example of lighting effects corresponding to the preset frequency area when there is a rhythm point and when there is no rhythm point. Among them, the first lighting effect is different from the second lighting effect. The third lighting effect is different from the fourth lighting effect. The fifth lighting effect is different from the sixth lighting effect.

[0142] Preset frequency area / lighting effect There is a rhythm point There is no rhythm point First preset frequency region First lighting effect Second lighting effect Second preset frequency region The third lighting effect Fourth lighting effect The third preset frequency region Fifth lighting effect Sixth lighting effect

[0143] Table 1

[0144] As an example, Figure 7 As shown, when there is a rhythm point in the first preset frequency area, the first lighting effect area is controlled to display the first lighting effect. Figure 8 As shown, when there is no rhythm point in the first preset frequency area, the first lighting effect area is controlled to display the second lighting effect, and the first lighting effect is different from the second lighting effect.

[0145] As another example, Fig. 9As shown, when there is a rhythm point in the first preset frequency area, the first lighting effect area is controlled to display the first lighting effect. If at this time, there is a rhythm point in the second preset frequency area, the second lighting effect area is controlled to display the third lighting effect. If at this time, there is no rhythm point in the third preset frequency area, the third lighting effect area is controlled to display the sixth lighting effect.

[0146] As another example, Fig.10 As shown, when there is no rhythm point in the first preset frequency area, the first lighting effect area is controlled to display the second lighting effect. If at this time, there is no rhythm point in the second preset frequency area, the second lighting effect area is controlled to display the fourth lighting effect. If at this time, there is no rhythm point in the sixth preset frequency area, the third lighting effect area is controlled to display the sixth lighting effect.

[0147] Thus, the lighting effects of the corresponding lighting effect areas of the smart light strip are controlled according to the rhythm points of multiple preset frequency areas. The lighting effect areas of different preset frequency areas will have different lighting effects, thereby enriching the diversity of the lighting effects and being able to timely and intuitively reflect the rhythm changes of each different preset frequency area.

[0148] In some implementations, the smart light strip may not be divided into lighting effect areas, and the overall lighting effect of the smart light strip may be controlled according to the rhythm points of at least two preset frequency areas.

[0149] In some embodiments, the at least two preset frequency regions may include a first preset frequency region and a second preset frequency region. The rhythm point conditions of the first preset frequency region and the second preset frequency region and the lighting effects corresponding to the smart light strip may be shown in Table 2. Among them, "Y" indicates that there is a rhythm point in the preset frequency region, and "N" indicates that there is no rhythm point in the preset frequency region. Among them, the first lighting effect, the second lighting effect, the third lighting effect, and the fourth lighting effect are different.

[0150] First preset frequency region Second preset frequency region Lighting Y N First lighting effect Y Y Second lighting effect N N The third lighting effect N Y Fourth lighting effect

[0151] Table 2

[0152] like Fig.11 As shown, when there is a rhythm point in the first preset frequency area and there is no rhythm point in the second preset frequency area, the smart light strip is controlled to display the first lighting effect.

[0153] like Fig.12 As shown, when there is a rhythm point in the first preset frequency area and there is also a rhythm point in the second preset frequency area, the smart light strip is controlled to display the second lighting effect.

[0154] Thus, the overall lighting effect of the smart light strip is controlled according to the rhythm points of multiple preset frequency areas. The rhythm points of different preset frequency areas have different effects on the final overall lighting effect, so that the lighting effect of the smart light strip presents a variety of changing relationships, thereby enriching the lighting effect of the smart light strip.

[0155] In some embodiments, the light color of the smart light strip can also be determined according to the rhythm points of the preset frequency area, and the light brightness of the smart light strip can be determined according to the energy difference. The greater the energy difference, the greater the light brightness, and vice versa.

[0156] Another embodiment of the present application provides an audio rhythm detection method. This embodiment further controls the lighting effect of the smart light strip according to the rhythm points in a preset frequency area. Combined with the frequency control of the lighting effect, even if the rhythm is the same, different lighting effects will be displayed due to different frequencies, thereby displaying a variety of lighting effects and being more responsive.

[0157] See also Fig.13 In one embodiment of the present application, a smart light strip 200 is provided, which includes a light effect control module 210 and a plurality of light modules 220. The light effect control module 210 is connected to the plurality of light modules 220, and the light effect control module 210 is used to execute the audio rhythm detection method described in the above method embodiment.

[0158] Optionally, a plurality of lamp modules 220 are connected in series, and the lighting effect control module 210 can be connected in series with the plurality of lamp modules.

[0159] In other embodiments, the smart light strip 200 can be divided into a plurality of lighting effect areas. Fig.14 As shown, the smart light strip can be divided into a first lighting effect area and a second lighting effect area. In other embodiments, it can also be divided into other numbers of lighting effect areas, which is not limited by the present application. Furthermore, each lighting effect area is provided with a lighting effect control module 210 and a plurality of light modules 220. The lighting effect control module 210 is connected to a plurality of light modules 220 in the same area, and the light module 220 is connected to other light modules 220 located in the same lighting effect area. Fig.14 As shown, the smart light strip 200 is divided into a first lighting effect area and a second lighting effect area. The first lighting effect area is provided with a lighting effect control module 210a and a plurality of light modules 220a. The second lighting effect area is provided with a lighting effect control module 210b and a plurality of light modules 220b.

[0160] In some implementations, the lighting effect control module 210 may be, for example, a processor, a control chip, etc.

[0161] Specifically, the lighting effect control module 210 is used to control the multiple lighting modules 220 of the smart light strip in the corresponding preset frequency area to display corresponding lighting effects according to the preset frequency area where the determined rhythm point is located.

[0162] The plurality of light modules 220 are used to respond to control instructions issued by the light effect control module 210 .

[0163] A plurality of light modules 220 may be provided as required, and the light effect control module 210 may control the light effects of the plurality of light modules 220 , so that the light effects of the modules 220 may be adjusted according to different rhythm conditions.

[0164] See also Fig.15 In yet another embodiment of the present application, there is provided an audio rhythm detection device 300, which includes a real-time audio detection module 310, a real-time total energy value acquisition module 320, a historical total energy value acquisition module 330 and a rhythm point determination module 340.

[0165] Specifically, the real-time audio detection module 310 is used to obtain the real-time detection audio at the current detection moment.

[0166] The real-time energy total value acquisition module 320 is used to determine the real-time energy total values ​​of the real-time detection audio in at least two preset frequency regions.

[0167] The historical energy total value acquisition module 330 is used to obtain the historical energy total values ​​of the historical detection audio at least one historical detection moment before the current detection moment in at least two preset frequency regions.

[0168] The rhythm point determination module 340 determines the rhythm point of each preset frequency region according to the real-time total energy value and the historical total energy value of each preset frequency region.

[0169] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.

[0170] See also Fig.16 , an embodiment of the present application provides an electronic device 400, which may be an electronic device such as a smart phone, a tablet computer, a television, etc. that can run applications. The electronic device in the present application may include one or more of the following components: a processor 410, a memory 420, and one or more applications, wherein the one or more applications may be stored in the memory 420 and configured to be executed by one or more processors 410, and the one or more programs are configured to execute the method described in the foregoing method embodiment.

[0171] The processor 410 may include one or more processing cores. The processor 410 uses various interfaces and lines to connect various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 420, and calling data stored in the memory 420. Optionally, the processor 410 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 410 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 410, but may be implemented separately through a communication chip.

[0172] The memory 420 may include a random access memory (RAM) or a read-only memory (ROM). The memory 420 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a real-time audio detection function, a lighting effect control function, rhythm point determination, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as audio data, energy data, rhythm point data, etc.) created by the terminal 400 during use.

[0173] See also Fig.17 , the embodiment of the present application provides a structural block diagram of a computer-readable storage medium. The computer-readable medium 500 stores program codes, and the program codes can be called by a processor to execute the method described in the above method embodiment.

[0174] The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 500 has storage space for program code 510 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.

[0175] The audio rhythm detection method, smart light strip, device, electronic device and medium provided by the present application obtain the real-time detection audio at the current detection moment, determine the real-time total energy value of the real-time detection audio in at least two preset frequency areas, obtain the historical total energy value of the historical detection audio at at least one historical detection moment before the current detection moment in at least two preset frequency areas, determine the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area, obtain the rhythm point by performing frequency domain calculation on the detection audio, reduce the complexity of rhythm point acquisition, obtain the rhythm points of different frequency areas of the detection audio, which can reflect the rhythm changes of the detection audio in different frequency areas, thereby enriching the rhythm changes of the detection audio, and obtain the real-time total energy value and the historical total energy value of the preset frequency area by accumulating energy, so that the rhythm changes can be sensitively obtained even when the energy fluctuation is small.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An audio rhythm detection method, characterized in that: The method comprises: Get the real-time detection audio at the current detection moment; Determine the total real-time energy value of the real-time detection audio in at least two preset frequency regions respectively; Obtaining total historical energy values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in the at least two preset frequency regions; Obtaining the incremental difference corresponding to each preset frequency area according to the real-time total energy value of each preset frequency area and the historical total energy value at the previous historical detection moment of the current detection moment; Obtaining an average total energy value corresponding to each preset frequency region according to the real-time total energy value of each preset frequency region and the historical total energy value of at least one historical detection moment before the current detection moment; Obtaining an average difference value corresponding to each preset frequency region according to the real-time total energy value and the average total energy value of each preset frequency region; If the incremental difference of the preset frequency region is greater than the corresponding first preset energy threshold, and the average difference of the preset frequency region is greater than the corresponding second preset energy threshold, it is determined that there is a rhythm point in the preset frequency region; Controlling the lighting effect of the smart light strip according to the rhythm points of the at least two preset frequency areas; the smart light strip comprises at least two lighting effect areas, and the at least two lighting effect areas correspond to the at least two preset frequency areas one by one; controlling the lighting effect of the smart light strip according to the rhythm points of the at least two preset frequency areas comprises: controlling the lighting effect of the corresponding lighting effect area according to the rhythm points of each preset frequency area; Among them, the preset energy threshold corresponding to each preset frequency area is obtained according to the preset ratio of the real-time total energy value to the average total energy value of each preset frequency area, and the average total energy value of each preset frequency area is the average of the historical total energy value and the real-time total energy value of each preset frequency area at at least one historical detection moment before the current detection moment.

2. The method according to claim 1, characterized in that The at least two preset frequency regions include a first frequency region, a second frequency region and a third frequency region; wherein the upper limit value of the first frequency region is smaller than the lower limit value of the second frequency region, and the upper limit value of the second frequency region is smaller than the lower limit value of the third frequency region.

3. A smart light strip, characterized in that: The smart light strip includes a lighting effect control module and multiple light modules, the lighting effect control module is connected to the multiple light modules, and the lighting effect control module is used to execute the audio rhythm detection method described in claim 1 or 2.

4. An audio rhythm detection device, characterized in that: The device comprises: A real-time audio detection module is used to obtain the real-time detection audio at the current detection moment; A real-time energy total value acquisition module, used to determine the real-time energy total values ​​of the real-time detection audio in at least two preset frequency regions respectively; A historical energy total value acquisition module, used to acquire the historical energy total values ​​of the historical detection audio at at least one historical detection moment before the current detection moment in the at least two preset frequency regions; A rhythm point determination module determines the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area respectively; the determination of the rhythm point of each preset frequency area according to the real-time total energy value and the historical total energy value of each preset frequency area respectively includes: obtaining the incremental difference corresponding to each preset frequency area according to the real-time total energy value of each preset frequency area and the historical total energy value of the previous historical detection moment of the current detection moment respectively; obtaining the average total energy value corresponding to each preset frequency area according to the real-time total energy value of each preset frequency area and the historical total energy value of at least one historical detection moment before the current detection moment respectively; obtaining the average difference corresponding to each preset frequency area according to the real-time total energy value of each preset frequency area and the average total energy value respectively; if the incremental difference of the preset frequency area is greater than the corresponding first preset energy threshold, and the average difference of the preset frequency area is greater than the corresponding second preset energy threshold, it is determined that the preset frequency area has a rhythm point; The device is also used to control the lighting effect of the smart light strip according to the rhythm points of the at least two preset frequency areas; the smart light strip includes at least two lighting effect areas, and the at least two lighting effect areas correspond to the at least two preset frequency areas one by one; the controlling the lighting effect of the smart light strip according to the rhythm points of the at least two preset frequency areas includes: controlling the lighting effect of the corresponding lighting effect area according to the rhythm points of each preset frequency area; Among them, the preset energy threshold corresponding to each preset frequency area is obtained according to the preset ratio of the real-time total energy value to the average total energy value of each preset frequency area, and the average total energy value of each preset frequency area is the average of the historical total energy value and the real-time total energy value of each preset frequency area at at least one historical detection moment before the current detection moment.

5. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to claim 1 or 2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to claim 1 or 2.