Method, system and wireless earphones for controlling light beads following music rhythm
By analyzing the audio played by the user and controlling the brightness and rhythmic effects of the wireless headphone lamp bead module according to the audio amplitude, the problem that the existing wireless headphone lighting function cannot be customized is solved, and personalized and dynamic lighting effects are achieved.
Patent Information
- Application Number
- CN202211422394.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-11-14
AI Technical Summary
The lighting function of existing wireless headphones cannot be customized with changes in music or light, and cannot reflect the user's personalized design.
By obtaining the audio played by the user and analyzing it, the number and brightness level of the light beads of the lamp bead module are determined according to the audio amplitude, and the light control signal is sent to control the brightness and rhythmic effect of the wireless headphone lamp bead module.
The personalized brightness and rhythmic effect of the wireless headphone lamp bead module is realized. With the change of audio amplitude in music, the brightness and number of lamp beads of the lamp bead module can change dynamically, enhancing the personalization and dynamicity of the user experience.
Smart Images

Figure CN115665942B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless headset control, and in particular to a method and system for controlling a music-following lamp bead and a wireless headset. Background Art
[0002] Wireless headphones are headphones that connect wirelessly. With the continuous innovation of technology, wireless headphones will gradually replace wired headphones. In particular, the market for true wireless stereo headphones is growing rapidly, with an annual growth rate of about 20%. More and more consumers, in addition to focusing on the functionality of wireless headphones, have already regarded wireless headphones as a daily fashion accessory.
[0003] In daily life, young people who pursue fashion pay great attention to their individual street looks. They have many sets of clothes, but only one pair of headphones. Because headphones are relatively non-fast-moving consumer goods, consumers usually only choose the "most suitable" pair when they actually buy headphones, even if they see several headphone shapes or colors they like.
[0004] Currently, the lighting of most wireless headphones cannot be selected according to music or light or according to user customization, so it cannot reflect the user's personalized design. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides a method and system for controlling a music-following lamp bead and a wireless headset.
[0006] In order to solve the above technical problems, the present invention is solved by the following technical solutions:
[0007] A method for controlling a light bead with a rhythmic sound comprises the following steps:
[0008] The terminal obtains the audio played by the user and analyzes it to obtain the amplitude of the audio played by the user;
[0009] The terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0010] The terminal sends the light control signal to the wireless headset to control the corresponding lamp beads of the lamp bead module in the wireless headset to light up to the corresponding brightness level.
[0011] As an implementable method, determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps:
[0012] The corresponding relationship between the amplitude ranges of the waveform diagrams of the preset audio of the multiple lamp beads and the preset audio is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2*max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1)*max / N, max], where max is the preset audio amplitude value;
[0013] The amplitude of the audio played by the user at the current moment belongs to [(n-1)*max / N, n*max / N], and the terminal determines that the first n lamp beads among the multiple lamp beads are lit;
[0014] The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z;
[0015] The terminal determines that the brightness level of the nth lamp bead of the plurality of lamp beads is: Q / (max / N)*Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment;
[0016] Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in the range of 0 to Z.
[0017] As an implementable method, a silky processing process is also included, specifically:
[0018] When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted;
[0019] Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, the audio amplitude corresponding to the third lamp bead is +2*max / N, ..., the audio amplitude corresponding to the Nth lamp bead is in the range of ((N-1)*max / N, max], where max is the preset audio amplitude value.
[0020] As an implementable method, a gain amplification process is also included, specifically:
[0021] When the amplitude of the audio played by the user cannot be confirmed through analysis, the amplitude of the audio played by the user is collected multiple times and the average amplitude of the audio played by the user is confirmed, and the amplitude of the audio played by the user is confirmed according to the average audio amplitude;
[0022] If the amplitude of the audio played by the confirmed user is less than the preset amplitude threshold, the amplitude of the audio played by the confirmed user is amplified by gain until it reaches the preset amplitude threshold.
[0023] As an implementable embodiment, the light control signal can trigger the wireless headset lamp module to move in one direction or in two directions;
[0024] The unidirectional rhythm is that the light of the wireless headset moves from one end of the wireless headset to the other end, and the bidirectional rhythm is that the light of the wireless headset moves from the middle to both ends of the wireless headset.
[0025] A method for controlling a light bead with a rhythmic sound comprises the following steps:
[0026] The wireless headset receives a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and performs analysis to obtain the amplitude of the audio played by the user; the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0027] The wireless headset controls the corresponding brightness level of the lamp beads of the lamp bead module in the wireless headset according to the light control signal.
[0028] As an implementable method, determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps:
[0029] The corresponding relationship between the amplitude ranges of the waveform diagrams of the preset audio of the multiple lamp beads and the preset audio is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2*max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1)*max / N, max], where max is the preset audio amplitude value;
[0030] The amplitude of the audio played by the user at the current moment belongs to [(n-1)*max / N, n*max / N], and the terminal determines that the first n lamp beads among the multiple lamp beads are lit;
[0031] The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z;
[0032] The terminal determines that the brightness level of the nth lamp bead of the plurality of lamp beads is: Q / (max / N)*Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment;
[0033] Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in the range of 0 to Z.
[0034] A sound-following rhythm lamp bead control system, comprising an acquisition and analysis module, a determination and processing module and a sending control module;
[0035] The acquisition and analysis module acquires the audio played by the user and analyzes it to obtain the amplitude of the audio played by the user;
[0036] The determination processing module determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, so as to obtain a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0037] The sending control module is used to send the light control signal to the wireless headset to control the corresponding brightness level of the lamp beads of the lamp bead module in the wireless headset.
[0038] A wireless headset comprises a receiving module and a control module;
[0039] The receiving module is used to receive a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and performs analysis to obtain the audio amplitude played by the user; the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0040] The control module is used to control the corresponding brightness level of the light beads of the light bead module in the wireless headset according to the light control signal.
[0041] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0042] A device for controlling a music-following lamp bead comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the method described above is implemented when the processor executes the computer program.
[0043] The present invention has significant technical effects due to the adoption of the above technical solution:
[0044] The present invention obtains the audio played by the user and analyzes it to obtain the audio amplitude played by the user, and then obtains a light control signal according to the size of the audio amplitude. The light control signal is used to control the brightness level of the corresponding lamp beads of the wireless headset lamp bead module. As the audio amplitude in the music changes, the brightness level of the corresponding lamp beads of the lamp bead module can change. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 is a schematic diagram of a flow chart of Embodiment 1 of the present invention;
[0047] Figure 2 is a schematic diagram of a flow chart of Embodiment 2 of the present invention;
[0048] Figure 3 is a schematic diagram of the overall structure of Embodiment 3 of the present invention;
[0049] Figure 4 is a schematic diagram of the overall structure of Embodiment 4 of the present invention;
[0050] Figure 5-Figure 6 is a schematic diagram of a wireless headset;
[0051] Figure 7-Figure 8 It is a sampling diagram of audio amplitude. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with embodiments. The following embodiments are for explanation of the present invention but the present invention is not limited to the following embodiments.
[0053] Embodiment 1:
[0054] A method for controlling a lamp bead with a sound following a rhythm, such as Figure 1 As shown, the following steps are included:
[0055] S100: The terminal obtains and analyzes the audio played by the user to obtain the amplitude of the audio played by the user;
[0056] S200, the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0057] S300. The terminal sends the light control signal to the wireless headset to control the corresponding lamp beads of the lamp bead module in the wireless headset to light up to the corresponding brightness level.
[0058] The present invention obtains the audio played by the user and analyzes it to obtain the audio amplitude played by the user, and then obtains a light control signal according to the size of the audio amplitude. The light control signal is used to control the brightness level of the corresponding lamp beads of the wireless headset lamp bead module. That is to say, as the audio amplitude in the music changes, the brightness level of the corresponding lamp beads of the lamp bead module can change.
[0059] The lamp bead module is arranged on the light control accessory of the wireless headset. Specifically, Figure 5 As shown, the wireless headset may include: an in-ear body, a light control accessory and a housing accessory. The light control accessory is detachably connected to the in-ear body of the wireless headset to receive a light control signal sent by a terminal; the light control accessory operates the light source on the light control accessory according to the light control signal.
[0060] In one embodiment, the light control signal can trigger the wireless headset lamp module to move in one direction or two directions; the one-way movement is that the light of the wireless headset moves from one end of the wireless headset to the other end, and the two-way movement is that the light of the wireless headset moves from the middle to both ends of the wireless headset.
[0061] That is to say, when the light is lit in a one-way rhythm or a two-way rhythm, the light control signal that the terminal can obtain includes: parsing the audio played by the user to obtain the amplitude of the audio played by the user; the terminal determines the number of lit lamp beads of the multiple lamp beads in the light control signal and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the amplitude of the audio played by the user and the preset audio amplitude and the brightness level of the multiple lamp beads of the wireless headset and the number of lit lamp beads; wherein the multiple lamp beads are set on the light control accessories of the wireless headset. This preferred embodiment determines the lit lamp beads and the brightness level by the amplitude of the audio, thereby realizing the brightness control of the wireless headset.
[0062] More preferably, the step of determining the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps:
[0063] The corresponding relationship between the amplitude ranges of the waveform diagrams of the preset audio of the multiple lamp beads and the preset audio is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2*max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1)*max / N, max], where max is the preset audio amplitude value;
[0064] The amplitude of the audio played by the user at the current moment belongs to [(n-1)*max / N, n*max / N], and the terminal determines that the first n lamp beads among the multiple lamp beads are lit;
[0065] The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z;
[0066] The terminal determines that the brightness level of the nth lamp bead of the plurality of lamp beads is: Q / (max / N)*Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment;
[0067] Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in the range of 0 to Z.
[0068] For example, a wireless headset has 6 lamp beads, and the brightness level of the lamp beads is 0 to 255, max = 255*6, then the amplitude range of the waveform corresponding to the first lamp bead is [0, 255]. The amplitude value of the audio sample played by the user at the current moment is 256, then the first lamp bead is on, and the brightness level is 255, the second lamp bead is on, and the brightness level is 1.
[0069] In one embodiment, the normal audio amplitude may be gentle, but some music will inevitably have the following situations, such as the audio amplitude of the played audio will suddenly increase or decrease. In this case, the obtained audio played by the user may suddenly increase or decrease after analysis. If the brightness level of the lamp beads is finally controlled according to the audio amplitude obtained by analysis, it may suddenly become bright or dark, which is very unsmooth. Therefore, the whole process also includes a smooth processing process, which is specifically:
[0070] When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted;
[0071] Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, the audio amplitude corresponding to the third lamp bead is +2*max / N, ..., the audio amplitude corresponding to the Nth lamp bead is in the range of ((N-1)*max / N, max], where max is the preset audio amplitude value.
[0072] That is to say, during the acquisition process, if the difference between the amplitudes of two adjacent intervals of audio collected is large, the light jump drop value will be large, as shown in the attached figure. Figure 7 As shown in the figure, assuming that the acquisition time is once every 15ms, the additional Figure 8 In this case, the value collected at 15ms is at the trough (amplitude value M = 0), while the value collected at 30ms is at the peak (amplitude value M = max), and the value collected at 45ms is at the trough again. The situation of the subsequent sampling points is shown in the attached figure. Figure 7 As shown, if sampling is performed in this way, the following will occur:
[0073] The brightness of the lamp beads obtained at the first sampling moment is not bright, that is, the lamp beads are all off;
[0074] The brightness of the lamp bead obtained at the second sampling moment is the largest, that is, the lamp bead is fully lit;
[0075] The brightness of the lamp beads obtained at the third sampling time is not bright, that is, the lamp beads are all off;
[0076] The brightness of the lamp beads obtained at the fourth sampling moment is the largest, that is, the lamp beads are fully lit; the brightness of the lamp beads obtained at subsequent sampling moments is repeated in this way, which will eventually make the brightness of the entire lamp bead suddenly maximum or suddenly not bright, making the rhythmic effect of the lamp beads very stiff and not coherent enough.
[0077] If this problem occurs, how can we solve it smoothly? Do we need to insert enough sampling points to make the effect of the lamp bead rhythm smooth? The actual result is not like this. There are situations where the rhythm of the music changes rapidly in the high and low troughs. In this case, the amplitude value collected is still not smooth enough. The solution is to delay the dynamic insertion of sampling points, for example Figure 7 , assuming there are 6 lights, that is, N = 6, Z = max / 6, the sampling value of 15ms is M1, the sampling value of 30ms is M2, ΔM = (M2-M1) is the difference between the two sampling points. From the waveform diagram, we can see that this difference is 6*Z value. According to the previous light rhythm algorithm, each increase of Z value will light up a light, so there is a difference of 6 light values between the two sampling points (ΔM / Z = 6). Here we insert 5 sampling values, and the increase of each sampling value is Z, as shown in the attached figure. Figure 8 As shown,
[0078] M(15+Δt)=M1+Z;
[0079] M(15+2*Δt)=M1+2*Z;
[0080] M(15+3*Δt)=M1+3*Z;
[0081] M(15+4*Δt)=M1+4*Z;
[0082] M(15+5*Δt)=M1+6*Z;
[0083] Here Δt = (30-15) / ((M2-M1) / Z);
[0084] However, the following problem will still occur: if after inserting 5 sampling points, the original M2 value becomes a lagging display, will the entire rhythmic effect not match the music? Of course not, because as long as 24 frames of pictures are continuously collected within 1 second, the human eye will think it is a coherent video event, so as long as enough collection points are inserted in 1s, the human eye can feel that the entire rhythmic effect is coherent.
[0085] Since the brightness range of each lamp bead is [0, Z], each time the light effect lights up from bottom to top or gradually turns off from highest to lowest, each time a lamp is turned on / off, the whole process will become smooth enough, so the sampling value of the audio amplitude increases by Z.
[0086] In other words, the entire smooth processing process is actually a process of human intervention. If a sudden increase or decrease is detected, the increased sampling time can be understood as no sampling during this period of time. The above method is used to calculate the audio amplitude corresponding to each lamp bead, and then the audio amplitude corresponding to each lamp bead is obtained, so that sudden brightness or darkness can be avoided.
[0087] In one embodiment, it is difficult to obtain the specific size of the audio amplitude or the audio amplitude is too small, so it is difficult to calculate the audio amplitude corresponding to each lamp bead. Therefore, gain amplification is required. The following is the process of gain amplification, specifically:
[0088] When the analysis shows that the amplitude of the audio played by the user cannot be confirmed, the amplitude of the audio played by the user is collected multiple times and the average audio amplitude of the audio played by the user is confirmed, and the amplitude of the audio played by the user is confirmed based on the average audio amplitude; if the amplitude of the audio played by the user is less than the preset amplitude threshold, the amplitude of the audio played by the user is gain amplified until the preset amplitude threshold is reached.
[0089] Embodiment 2:
[0090] A method for controlling a lamp bead with a sound following a rhythm, such as Figure 2 As shown, the following steps are included:
[0091] S110, the wireless headset receives a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and performs analysis to obtain the amplitude of the audio played by the user; the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0092] S120. The wireless headset controls the corresponding brightness level of the lamp beads of the lamp bead module in the wireless headset according to the light control signal.
[0093] This embodiment obtains the audio played by the user through the terminal and analyzes it to obtain the amplitude of the audio played by the user, and then obtains the light control signal according to the size of the audio amplitude. The light control signal is used to control the brightness level of the corresponding lamp beads in the lamp bead module of the wireless headset. In other words, as the audio amplitude in the terminal music changes, the brightness level of the corresponding lamp beads in the lamp bead module of the wireless headset can change.
[0094] In one embodiment, the step of determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps:
[0095] The corresponding relationship between the amplitude ranges of the waveform diagrams of the preset audio of the multiple lamp beads and the preset audio is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2*max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1)*max / N, max], where max is the preset audio amplitude value;
[0096] The amplitude of the audio played by the user at the current moment belongs to [(n-1)*max / N, n*max / N], and the terminal determines that the first n lamp beads among the multiple lamp beads are lit;
[0097] The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z;
[0098] The terminal determines that the brightness level of the nth lamp bead of the plurality of lamp beads is: Q / (max / N)*Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment;
[0099] Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in the range of 0 to Z.
[0100] For example, a wireless headset has 6 lamp beads, and the brightness level of the lamp beads is 0 to 255, max = 255*6, then the amplitude range of the waveform corresponding to the first lamp bead is [0, 255]. The amplitude value of the audio sample played by the user at the current moment is 256, then the first lamp bead is on, and the brightness level is 255, the second lamp bead is on, and the brightness level is 1.
[0101] Embodiment 3:
[0102] A sound-following rhythm lamp bead control system, such as Figure 1 As shown, it includes an acquisition and analysis module 100, a determination and processing module 200 and a sending control module 300;
[0103] The acquisition and analysis module 100 acquires the audio played by the user and analyzes it to obtain the amplitude of the audio played by the user;
[0104] The determination processing module 200 determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0105] The sending control module 300 is used to send the light control signal to the wireless headset to control the corresponding brightness level of the lamp beads of the lamp bead module in the wireless headset.
[0106] Embodiment 4:
[0107] A wireless headset, such as Figure 4 As shown, it includes a receiving module 110 and a control module 120;
[0108] The receiving module 110 is used to receive a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and parses it to obtain the audio amplitude played by the user; the terminal determines the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset;
[0109] The control module 120 is used to control the corresponding brightness level of the light beads of the light bead module in the wireless headset according to the light control signal.
[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0111] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0112] The present invention is described with reference to the flowcharts and / or block diagrams of the method, terminal device (system), and computer program product according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0113] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0115] In addition, it should be noted that the shapes and names of the parts and components of the specific embodiments described in this specification may be different. Any equivalent or simple changes made based on the structure, features and principles described in the patent concept of the present invention are included in the protection scope of the patent of the present invention. The technicians in the technical field of the present invention can make various modifications or supplements to the specific embodiments described or replace them in a similar manner, as long as they do not deviate from the structure of the present invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. A method for controlling a lamp bead with a rhythmic sound, characterized in that: The following steps are involved: The terminal obtains the audio played by the user and analyzes it to obtain the amplitude of the audio played by the user; The terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset; The terminal sends the light control signal to the wireless headset to control the corresponding light beads of the light bead module in the wireless headset to light up to the corresponding brightness level; Wherein, the step of determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps: The corresponding relationship between the amplitude range of the multiple lamp beads and the preset audio waveform is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], and the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2 max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1) max / N, max], where max is the preset audio amplitude value; The amplitude of the audio played by the user at the current moment belongs to ((n-1) max / N,n max / N], the terminal determines that the first n lamp beads among the multiple lamp beads are lit; The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z; The terminal determines the brightness level of the nth lamp bead of the plurality of lamp beads as: Q / (max / N) Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment; Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in a range of 0 to Z; It also includes the silky processing process, specifically: When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted; Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, and the audio amplitude corresponding to the third lamp bead is +2 max / N, ..., then the range of the audio amplitude corresponding to the Nth lamp bead is ((N-1) max / N, max], where max is the preset audio amplitude value.
2. The method for controlling a lamp bead with a rhythmic sound according to claim 1, characterized in that: It also includes the process of gain amplification, specifically: When the amplitude of the audio played by the user cannot be confirmed through analysis, the amplitude of the audio played by the user is collected multiple times and the average amplitude of the audio played by the user is confirmed, and the amplitude of the audio played by the user is confirmed according to the average audio amplitude; If the amplitude of the audio played by the confirmed user is less than the preset amplitude threshold, the amplitude of the audio played by the confirmed user is amplified until it reaches the preset amplitude threshold.
3. The method for controlling a lamp bead with a rhythmic sound according to claim 1, characterized in that: The light control signal can trigger the wireless headset lamp module to move in one direction or two directions; The unidirectional rhythm is that the light of the wireless headset moves from one end of the wireless headset to the other end, and the bidirectional rhythm is that the light of the wireless headset moves from the middle to both ends of the wireless headset.
4. A method for controlling a lamp bead with a rhythmic sound, characterized in that: The following steps are involved: The wireless headset receives a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and performs analysis to obtain the amplitude of the audio played by the user; the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, and obtains a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset; The wireless headset controls the corresponding brightness level of the light beads of the light bead module in the wireless headset according to the light control signal; Wherein, the step of determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps: The corresponding relationship between the amplitude range of the multiple lamp beads and the preset audio waveform is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], and the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2 max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1) max / N, max], where max is the preset audio amplitude value; The amplitude of the audio played by the user at the current moment belongs to ((n-1) max / N,n max / N], the terminal determines that the first n lamp beads among the multiple lamp beads are lit; The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z; The terminal determines the brightness level of the nth lamp bead of the plurality of lamp beads as: Q / (max / N) Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment; Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in a range of 0 to Z; It also includes the silky processing process, specifically: When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted; Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, and the audio amplitude corresponding to the third lamp bead is +2 max / N, ..., then the range of the audio amplitude corresponding to the Nth lamp bead is ((N-1) max / N, max], where max is the preset audio amplitude value.
5. A sound-following lamp bead control system, characterized in that: It includes an acquisition and analysis module, a determination and processing module, and a sending control module; The acquisition and analysis module acquires the audio played by the user and analyzes it to obtain the amplitude of the audio played by the user; The determination processing module determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads, so as to obtain a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset; The sending control module is used to send the light control signal to the wireless headset to control the corresponding brightness level of the light beads of the lamp bead module in the wireless headset; Wherein, the step of determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps: The corresponding relationship between the amplitude range of the multiple lamp beads and the preset audio waveform is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], and the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2 max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1) max / N, max], where max is the preset audio amplitude value; The amplitude of the audio played by the user at the current moment belongs to ((n-1) max / N,n max / N], determining that the first n lamp beads among the plurality of lamp beads are lit; Determine the brightness level of the first n-1 lamp beads of the plurality of lamp beads as Z; Determine the brightness level of the nth lamp bead of the plurality of lamp beads as: Q / (max / N) Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment; Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in a range of 0 to Z; It also includes the silky processing process, specifically: When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted; Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, and the audio amplitude corresponding to the third lamp bead is +2 max / N, ..., then the range of the audio amplitude corresponding to the Nth lamp bead is ((N-1) max / N, max], where max is the preset audio amplitude value.
6. A wireless headset, characterized in that: It includes a receiving module and a control module; The receiving module is used to receive a light control signal sent by a terminal connected to the wireless headset, wherein the terminal obtains the audio played by the user and performs analysis to obtain the audio amplitude played by the user; the terminal determines the number of the lit lamp beads of the lamp bead module and the brightness level corresponding to the lit lamp beads according to the corresponding relationship between the audio amplitude and the preset audio amplitude and the brightness level of the lamp bead module and the number of lit lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module, wherein the lamp bead module is provided on the light control accessory of the wireless headset; The control module is used to control the corresponding brightness level of the light beads of the light bead module in the wireless headset according to the light control signal; Wherein, the step of determining the number of the lighted lamp beads of the lamp bead module and the brightness level corresponding to the lighted lamp beads to obtain a light control signal for controlling the wireless headset lamp bead module includes the following steps: The corresponding relationship between the amplitude range of the multiple lamp beads and the preset audio waveform is as follows: the preset audio amplitude range corresponding to the first lamp bead among the multiple lamp beads is [0, max / N], and the preset audio amplitude range corresponding to the second lamp bead is (max / N, 2 max / N], ..., the preset audio amplitude range corresponding to the Nth lamp bead among the multiple lamp beads is ((N-1) max / N, max], where max is the preset audio amplitude value; The amplitude of the audio played by the user at the current moment belongs to ((n-1) max / N,n max / N], the terminal determines that the first n lamp beads among the multiple lamp beads are lit; The terminal determines that the brightness level of the first n-1 lamp beads of the plurality of lamp beads is Z; The terminal determines the brightness level of the nth lamp bead of the plurality of lamp beads as: Q / (max / N) Z, where Q is the remainder of M divided by max / N, and M is the amplitude value of the audio sample played by the user at the current moment; Wherein 1≤n≤N, n and N are natural numbers, the number of the plurality of lamp beads is N, and the brightness levels of the plurality of lamp beads can be adjusted in a range of 0 to Z; The receiving module also includes a smooth processing process, specifically: When the analysis shows that the audio amplitude played by the user has a sudden change, the audio amplitude corresponding to each lamp bead is adjusted; Based on the audio amplitude corresponding to the first lamp bead, the audio amplitude corresponding to the second lamp bead is +max / N, and the audio amplitude corresponding to the third lamp bead is +2 max / N, ..., then the range of the audio amplitude corresponding to the Nth lamp bead is ((N-1) max / N, max], where max is the preset audio amplitude value.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 or 4 is implemented.
8. A device for controlling a light bead that moves with the rhythm of music, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 3 or 4 is implemented.
Citation Information
Patent Citations
Control method and system of audio light fixture, and audio light fixture
CN106376148A
Bluetooth earphone with light effect
CN112788493A