Method and device for enabling flashlight to automatically flicker in audio playing environment
An audio playback and flashlight technology, which is applied in the fields of telephone communication, speech analysis, electrical components, etc., can solve problems such as inability to achieve, and achieve the effect of convenient execution, simple operation, and improved user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] The present invention provides a method for automatically flashing a flashlight in an audio playback environment, referring to figure 1 , including:
[0029] Step S1: first open or provide a piece of audio music, and extract the pulse code modulation data of the audio music.
[0030] Step S2: Calculate the extracted PCM data to obtain the real-time value of the rhythm of the piece of music.
[0031] Step S3: Determine the value and compare it with the preset threshold range. If it is within the threshold range, the flashlight will be turned on; if it is not within the threshold range, the flashlight will be turned off, so as to realize the flashing of the flashlight and automatic switching of lighting Features.
[0032] Further, the step S2 includes:
[0033] Sub-step S201: Low-pass filtering is performed on the pulse code modulation data of the audio music, and a variance operation is performed to obtain a rhythm value.
[0034] Sub-step S202: Perform a smoothing a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

