Water heater control method and device, intelligent water heater and intelligent shower system
By receiving audio data to control the water output and water pressure changes of the smart water heater, the problem of fixed vibration frequency in the massage mode of the smart water heater is solved, realizing a dynamic massage effect and a better user experience.
Patent Information
- Application Number
- CN202111277613.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In existing smart water heaters, the massage modes have fixed levels, poor massage effect, and limited functionality, and the vibration frequency cannot be dynamically changed.
By receiving audio data sent by the terminal device, the system determines the water output control information based on the audio characteristics, controls the water output variation pattern of the smart water heater, and uses a booster pump to adjust the water output pressure, thereby achieving dynamic changes in water output and water pressure to match the rhythm changes of the audio data.
It achieves dynamic frequency massage of the water flow from the smart water heater, improving the massage effect and user experience, and enhancing the diversity and practicality of massage modes.
Smart Images

Figure CN114963562B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of intelligent household appliances, and particularly relates to a water heater control method and device, an intelligent water heater, and an intelligent shower system. BACKGROUND
[0002] At present, the functions of intelligent water heaters are increasingly rich, and the intelligent degree is increasingly high. In order to bring better use experience to users, the massage mode is set in the current intelligent water heater. In the application scenario of shower, the water pressure of the intelligent water heater is periodically changed, so that the shower sprays water flow with continuously changing water pressure, and the massage effect on the user's body is realized.
[0003] In the prior art, the massage mode of the intelligent water heater is usually realized by presetting one or several fixed gears. The user selects different gears to realize different frequency water flow massage effect. However, the scheme for water flow massage based on fixed gears in the prior art has fixed massage mode, single form, and poor massage effect,
[0004] Correspondingly, there is a need for a new water heater control method, device, intelligent water heater, and intelligent shower system to solve the above problems. SUMMARY
[0005] In order to solve the above problems in the prior art, that is, to solve the problem of fixed massage gear and poor massage effect in the prior art, the present application provides a water heater control method, device, intelligent water heater, and intelligent shower system.
[0006] According to a first aspect of the embodiments of the present application, the present application provides a water heater control method applied to an intelligent water heater, the intelligent water heater being in communication with a terminal device, and the method comprising:
[0007] receiving audio data sent by the terminal device; determining water outlet control information according to an audio feature of the audio data, the water outlet control information being used to represent a change rule of water outlet quantity of the intelligent water heater; and controlling the water outlet quantity of the intelligent water heater based on the water outlet control information.
[0008] In the preferred technical solution of the above water heater control method, the audio data comprises streaming media data, the water outlet control information comprises a water quantity change frequency, the water quantity change frequency represents a change frequency of the water outlet quantity of the intelligent water heater, and the determination of the water outlet control information according to the audio feature of the audio data comprises: obtaining an audio segment corresponding to the streaming media data according to the streaming media data; and determining the water quantity change frequency according to a beat feature of the audio segment, the beat feature being used to represent the rhythm of the audio segment.
[0009] In the preferred technical scheme of the water heater control method, the water outlet control information further comprises a water outlet quantity sequence, and the water outlet quantity sequence comprises at least two different water outlet quantity values; the water outlet quantity of the intelligent water heater is controlled based on the water outlet control information, which comprises: determining a first time length according to the water quantity change frequency; and controlling the intelligent water heater to sequentially outlet water with each water outlet quantity value in the water outlet quantity sequence, and the water outlet time corresponding to each water outlet quantity value lasts for the first time length.
[0010] In the preferred technical scheme of the water heater control method, the method further comprises: acquiring a spectrum feature of the audio segment; filtering the audio segment based on the spectrum feature of the audio segment to obtain filtered audio data; and extracting a peak value from the filtered audio data to determine a beat feature of the audio segment.
[0011] In the preferred technical scheme of the water heater control method, the intelligent water heater comprises a booster water pump for controlling the water outlet pressure of the intelligent water heater, and the water outlet control information comprises at least two different water outlet quantity values, each of which corresponds to a time stamp; the water outlet quantity of the intelligent water heater is controlled based on the water outlet control information, which comprises: determining a target water outlet quantity value according to the time stamp corresponding to the water outlet quantity value, the target water outlet quantity value being a water outlet quantity value corresponding to the current time; determining a target water pressure value according to the target water outlet quantity value, the target water pressure value being the water outlet pressure of the booster water pump when the intelligent water heater outlets water at the target water outlet quantity value; and controlling the booster water pump to outlet water based on the target water pressure value.
[0012] In the preferred technical scheme of the water heater control method, the water outlet control information comprises at least two different water outlet quantity values, each of which corresponds to a time stamp, and the method further comprises: receiving synchronization information sent by the terminal device, the synchronization information being used to represent the current playback progress of the terminal device in playing the audio data; determining a target time stamp according to the synchronization information; and controlling the water outlet quantity of the intelligent water heater based on the water outlet quantity value corresponding to the target time stamp.
[0013] According to a second aspect of the embodiment of the present application, the present application provides a water heater control device applied to an intelligent water heater, the intelligent water heater being in communication with a terminal device, and the device comprising:
[0014] a transceiving module, configured to receive audio data sent by the terminal device;
[0015] determining a water output control information according to the audio feature of the audio data, the water output control information being used to represent a change rule of a water output of the intelligent water heater;
[0016] controlling the water output of the intelligent water heater based on the water output control information.
[0017] In the preferred technical scheme of the water heater control device, the audio data comprises streaming media data, the water output control information comprises a water output change frequency, the water output change frequency represents a change frequency of the water output of the intelligent water heater, and the determining module is specifically configured to: obtain an audio segment corresponding to the streaming media data according to the streaming media data; and determine the water output change frequency according to a beat feature of the audio segment, the beat feature being used to represent a rhythm of the audio segment.
[0018] In the preferred technical scheme of the water heater control device, the water output control information further comprises a water output sequence, and the water output sequence comprises at least two different water output values.
[0019] The control module is specifically configured to: determine a first time length according to the water output change frequency; and control the intelligent water heater to output water in sequence according to the water output values in the water output sequence, and the water output time corresponding to each water output value lasts for the first time length.
[0020] In the preferred technical scheme of the water heater control device, the determining module is further configured to: obtain a frequency spectrum feature of the audio segment; filter the audio segment based on the frequency spectrum feature of the audio segment to obtain filtered audio data; and extract a peak value of the filtered audio data to determine the beat feature of the audio segment.
[0021] In the preferred technical scheme of the water heater control device, the intelligent water heater comprises a booster water pump, the booster water pump is used to control the water output pressure of the intelligent water heater, the water output control information comprises at least two different water output values, and each water output value corresponds to a time stamp; and the control module is specifically configured to: determine a target water output value according to the time stamp corresponding to the water output value, the target water output value being a water output value corresponding to a current time; determine a target water pressure value according to the target water output value, the target water pressure value being a water output pressure of the booster water pump when the intelligent water heater outputs water at the target water output value; and control the booster water pump to output water based on the target water pressure value.
[0022] In the preferred embodiment of the above-mentioned water heater control device, the water outlet control information includes at least two different water outlet values, each of which corresponds to a timestamp. The transceiver module is further configured to: receive synchronization information sent by the terminal device, the synchronization information being used to characterize the current playback progress of the audio data played by the terminal device; the control module is further configured to: determine a target timestamp based on the synchronization information; and control the water outlet of the smart water heater based on the water outlet value corresponding to the target timestamp.
[0023] According to a third aspect of the present invention, the present invention provides an intelligent water heater, comprising: a memory, a processor, and a computer program;
[0024] The computer program is stored in the memory and configured to be executed by the processor as the water heater control method according to any one of the first aspects of the present invention.
[0025] According to a fourth aspect of the present invention, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the water heater control method as described in any of the first aspects of the present invention.
[0026] According to a fifth aspect of the present invention, the present invention provides a computer program product including a computer program that is executed by a processor as a water heater control method as described in any of the first aspects of the present invention.
[0027] According to a seventh aspect of the present invention, the present invention provides an intelligent shower system, including an intelligent water heater and a terminal device as described in the third aspect of the present invention, wherein the intelligent water heater and the terminal device are communicatively connected.
[0028] Those skilled in the art will understand that the water heater control method, device, smart water heater, and smart shower system of the present invention receive audio data sent by the terminal device; determine water outlet control information based on the audio characteristics of the audio data, wherein the water outlet control information is used to characterize the variation pattern of the water outlet volume of the smart water heater; and control the water outlet volume of the smart water heater based on the water outlet control information. Since the water outlet control information used to control the water outlet volume of the smart water heater is determined by the audio data sent by the terminal device, the water outlet control information changes with the changes in the audio data, thereby achieving water outlet volume variation control corresponding to the audio characteristics of the audio data. Furthermore, based on the dynamic changes in the water outlet volume of the water heater, dynamic frequency massage of the water flow is achieved, improving the massage effect and user experience in the water heater's massage mode. Attached Figure Description
[0029] Preferred embodiments of the water heater control method, device, smart water heater, and smart shower system of the present invention will now be described with reference to the accompanying drawings. The drawings are as follows:
[0030] Figure 1 This is an application scenario diagram of the water heater control method provided in an embodiment of the present invention;
[0031] Figure 2 A flowchart of a water heater control method provided in one embodiment of the present invention;
[0032] Figure 3 This is a schematic diagram illustrating the determination of water discharge control information provided in an embodiment of the present invention;
[0033] Figure 4 A flowchart of a water heater control method provided in another embodiment of the present invention;
[0034] Figure 5 A schematic diagram of the time-domain waveform of an audio segment provided in an embodiment of the present invention;
[0035] Figure 6 for Figure 4 The flowchart illustrating the implementation of step S203 in the illustrated embodiment;
[0036] Figure 7 This is a schematic diagram illustrating water output control based on a water output sequence and a first duration, provided as an embodiment of the present invention.
[0037] Figure 8 This is a schematic diagram of a process for continuously outputting vibrating water flow based on an audio clip, provided by an embodiment of the present invention.
[0038] Figure 9 This is a schematic diagram of the structure of a water heater control device provided in one embodiment of the present invention;
[0039] Figure 10 A schematic diagram of an electronic device provided according to an embodiment of the present invention;
[0040] Figure 11 A schematic diagram of an intelligent water heater provided in one embodiment of the present invention;
[0041] Figure 12 This is a schematic diagram of an intelligent shower system provided in one embodiment of the present invention. Detailed Implementation
[0042] First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application, and are not intended to limit the protection scope of the present application. Those skilled in the art can adjust them as needed in order to adapt to specific application occasions. For example, although the water heater control method of the present application is described in combination with an intelligent gas water heater, this is not limiting, and other water heater devices with massage mode requirements can also be configured with the water heater control method of the present application, such as electric water heaters, air energy water heaters, etc.
[0043] In addition, it also needs to be explained that in the description of the present application, unless otherwise explicitly specified and limited, the terms "connected", "connected" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication inside two components. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0044] First, the terms involved in the present application are explained:
[0045] 1) Intelligent home appliance, refers to the home appliance product formed after introducing microprocessor, sensor technology, network communication technology into home appliance, which has the characteristics of intelligent control, intelligent perception and intelligent application. The operation process of intelligent home appliance often depends on the application and processing of modern technologies such as Internet of Things, Internet and electronic chips. For example, intelligent home appliance can realize remote control and management of intelligent home appliance by connecting electronic devices.
[0046] 2) Terminal device, refers to an electronic device with wireless connection function. The terminal device can be connected to the intelligent home appliance as above through the Internet, or can be directly connected to the intelligent home appliance as above through Bluetooth, wifi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a built-in vehicle device in a hovercar, etc., or any combination thereof. The mobile device may, for example, include a mobile phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, etc., or any combination thereof, wherein the wearable device may, for example, include a smart watch, a smart bracelet, a pedometer, etc.
[0047] 3) "Multiple" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after are in an "or" relationship.
[0048] 4) "corresponding" can refer to a relationship or binding relationship, A and B corresponding to A and B is a kind of relationship or binding relationship.
[0049] The application scenarios of the embodiments of the present application are explained as follows:
[0050] Figure 1 An application scenario diagram of the water heater control method provided by the embodiments of the present application is shown in FIG. 1. Figure 1 The water heater control method provided by the embodiments of the present application can be applied to the scenario in which a user uses a massage mode of a smart water heater for showering. The execution subject of the method provided by the embodiments of the present application can be the smart water heater, more specifically, a controller, a control chip or other control unit in the smart water heater. On the one hand, the smart water heater is connected to a shower through a pipeline and outputs hot water from the shower through a water delivery pipeline. On the other hand, the smart water heater is in communication connection with a terminal device, for example, a smart speaker. After the smart water heater enters the massage mode based on a control instruction of the user, the smart water heater receives audio data sent by the smart speaker, determines a change rule of the water output in the massage mode through the audio data, and outputs water flow to the shower connected to the smart water heater based on the change rule corresponding to the audio data. Thus, the water output of the shower changes alternately, and a vibrating water flow capable of producing a massage effect on the user's body is output. At the same time, the smart speaker itself plays music according to the audio data sent to the smart water heater, so that the beat of the played music corresponds to the vibration frequency of the vibrating water flow output by the shower, a music-following massage effect is produced, and the user's experience is improved.
[0051] First, the massage mode of the smart water heater in the prior art is introduced.
[0052] The massage mode of the smart water heater is to control the water output of the water heater, so that the speed of the water flow sprayed by the shower connected to the water heater changes alternately. When the water flow with alternating speed falls on the surface of the user's body, the high-speed water flow will produce a greater impact force, and the low-speed water flow will produce a smaller impact force. The vibration produced by the alternating spraying of the high-speed water flow and the low-speed water flow on the surface of the user's body forms an effect similar to patting (i.e., vibrating water flow), thereby realizing the massage effect on the user's body and realizing the "massage mode" of the smart water heater.
[0053] In the related art, in the process of implementing the "massage mode" of the intelligent water heater, one or several fixed gears are usually preset to correspond to the vibration mode of the vibrating water flow sprayed by the shower, for example, the "relaxing" gear, the vibration frequency of the vibrating water flow is low, simulating the "massage" of relaxation; and the "powerful" gear, the vibration frequency of the vibrating water flow is high, to simulate the "massage" of power. It can be seen that in the application scenario of the "massage mode" of the intelligent water heater, if the "pounding" action is to be formed by the water flow to achieve the "massage" effect on the user's body, the vibrating water flow, i.e. the water flow with alternating water quantity, must be used to achieve the difference in "massage" effect, which is mainly realized by the difference in vibration frequency of the vibrating water flow, i.e. the speed of alternating water quantity. The scheme in the related art controls the water outlet of the intelligent water heater based on the fixed and preset vibration frequency, resulting in fixed and single massage gears and poor massage effect.
[0054] Therefore, there is an urgent need for a method to solve the problem of fixed vibration frequency and inability to dynamically change the vibration frequency in the "massage mode" of the intelligent water heater.
[0055] The technical solutions of the present application and how the technical solutions solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0056] Figure 2 The flowchart of the water heater control method provided by an embodiment of the present application is applied to an intelligent water heater, which communicates with a terminal device, as shown in Figure 2 The water heater control method provided by the embodiment includes the following steps:
[0057] Step S101, receiving audio data sent by the terminal device.
[0058] Exemplarily, the terminal device can be a smart terminal, such as a smart phone or a smart speaker, and the terminal device can be connected with the intelligent water heater through wireless communication modes such as wifi and Bluetooth. After the terminal device and the intelligent water heater form a communication connection, the terminal device can send audio data to the terminal device based on the control instruction input by the user. In one possible implementation, the audio data can be an audio file or a streaming media file containing a music segment. The audio data can be used to play the target music after being decoded.
[0059] In another possible implementation, the audio data can be an audio file or a streaming media file representing the beat of the target music, which can be obtained by processing (e.g., filtering, down-sampling) an original audio file including a music segment by the terminal device. Compared with the audio file or the streaming media file including the music segment in the above implementation, the audio data in this implementation cannot be used to play the target music after being decoded, but can represent the beat of the target music and has a smaller size.
[0060] In step S102, water control information is determined according to the audio feature of the audio data, and the water control information is used to represent the change rule of the water output of the intelligent water heater.
[0061] For example, after receiving the audio data, the intelligent water heater stores the audio data locally and obtains the audio feature of the audio data by analyzing the audio data. For example, the audio feature can represent the rhythm change rule of the target music corresponding to the audio data. Specifically, for the target music, different rhythm changes can be included in different stages during the playing process. For example, the rhythm is slow in the prelude part, and the rhythm is fast in the chorus part. The audio feature is a feature representing the rhythm change of the target music. According to the audio feature, the rhythm change rule of the target music can be determined.
[0062] On this basis, in the massage mode of the intelligent water heater, the water output of the water heater also needs to be alternately changed, so as to realize the effect of vibrating water flow. Therefore, based on the rhythm change of the target music corresponding to the audio feature, the change rule of the water output can be determined accordingly. For example, according to the audio feature, in the interval of the fast rhythm of the target music, the corresponding water output is determined to change at a high frequency, so that the vibration frequency of the vibrating water flow sprayed by the shower of the intelligent water heater is also high. In the interval of the slow rhythm of the target music, the corresponding water output is determined to change at a low frequency, so that the vibration frequency of the vibrating water flow sprayed by the shower of the intelligent water heater is also low.
[0063] Specifically, the audio feature of the audio data is implemented by a sequence of feature values, and each feature value in the sequence of feature values is used to represent the playing rhythm (fast or slow) of the target music in the corresponding playing interval. Then, based on a preset proportion coefficient or a sequence of proportion coefficients, the sequence of feature values is weighted to obtain corresponding water control information. For example, the water control information also includes a sequence of values, and each value in the sequence is used to represent the water output change frequency.
[0064] Figure 3 A schematic diagram for determining water control information provided by the embodiment of the present application is shown in FIG. 1. Figure 3As shown, the audio features obtained according to the audio data include a feature value sequence A, which includes three discrete feature values A1, A2 and A3. According to the feature value sequence A and a preset proportion coefficient, the discrete feature values A1, A2 and A3 are weighted respectively to obtain a corresponding water output frequency sequence B and three corresponding discrete points B1, B2 and B3. For example, B1 represents that the water output amount changes at a frequency of 1 Hz, that is, the vibration water flow with a vibration frequency of 1 Hz is output; B2 represents that the water output amount changes at a frequency of 5 Hz, that is, the vibration water flow with a vibration frequency of 5 Hz is output; and B3 represents that the water output amount changes at a frequency of 3 Hz, that is, the vibration water flow with a vibration frequency of 3 Hz is output. A1 and B1 correspond to time stamp a respectively, A2 and B2 correspond to time stamp b respectively, and A3 and B3 correspond to time stamp c respectively. The water output frequency sequence B and the corresponding time stamp sequence (time stamp a, time stamp b and time stamp c) are the water output control information.
[0065] In a possible implementation, before step S103, the method further includes:
[0066] The terminal device sends synchronization information, and the synchronization information is used to represent the current playing progress of the terminal device playing the audio data; the target time stamp is determined according to the synchronization information; and the water output amount of the intelligent water heater is controlled based on the water output amount value corresponding to the target time stamp.
[0067] For example, the synchronization information is the current progress of the terminal device playing the audio data, and more specifically, the synchronization information is, for example, the current playing time stamp of the audio data. For example, the terminal device is a smart speaker, and when the terminal device sends the audio data to the intelligent water heater, the terminal device is playing the audio data. In order to make the intelligent water heater synchronize the progress of playing the audio data with the smart speaker in the process of controlling the water output amount to output the vibration water flow, that is, for example, when the smart speaker plays to the third second of the audio data, the intelligent water heater also uses the water output control corresponding to the water output amount or the water output change frequency of the audio feature at the third second of the audio data to control the water output, so as to realize the "music following massage" function of the intelligent water heater and the smart speaker, make the rhythm of the music played by the smart speaker completely the same as the water flow massage rhythm of the intelligent water heater, and enrich the use experience of the user.
[0068] In step S103, the water output amount of the intelligent water heater is controlled based on the water output control information.
[0069] For example, after the water output control information is determined, the water output amount of the intelligent water heater is controlled based on the change rule of the water output amount represented by the water output control information, so that the intelligent water heater outputs the water flow with the alternately changed water output amount, so that the shower connected with the intelligent water heater can spray the vibration water flow, and the massage effect is realized.
[0070] In a possible implementation, the smart water heater comprises a booster water pump, the booster water pump is configured to control the outlet water pressure of the smart water heater, and the outlet water control information is configured to control the outlet water quantity of the smart water heater, and the outlet water control information comprises:
[0071] The outlet water control information comprises an outlet water quantity sequence, the outlet water quantity sequence comprises a plurality of outlet water quantity values, each outlet water quantity value corresponds to a time stamp, and the change rule of the outlet water quantity can be determined according to each outlet water quantity value in the outlet water quantity sequence and the corresponding time stamp. Then, the outlet water pressure value corresponding to each outlet water quantity value is determined by converting the outlet water quantity value according to a preset water pressure coefficient. The booster water pump is controlled based on the time stamp corresponding to each outlet water quantity value in the outlet water quantity sequence and each outlet water pressure value. More specifically, the booster water pump is sequentially sent instructions according to the time stamp, so that the booster water pump changes the outlet water pressure at the time corresponding to the time stamp, and the outlet water pressure of the booster water pump (that is, the outlet water pressure of the smart water heater) corresponds to the outlet water quantity. It should be noted that the outlet water quantity can be a relative unit, and there is a mapping relationship between the outlet water quantity and the outlet water pressure. However, when the booster water pump discharges water at an outlet water pressure value, the actual outlet water quantity of the smart water heater can be the outlet water quantity corresponding to the outlet water pressure value, or can not be the outlet water quantity. Here, no specific limitation is made.
[0072] Further, since the outlet water quantity sequence corresponding to the outlet water control information is determined by the audio data, the vibration frequency of the vibration water flow sprayed by the shower of the smart water heater corresponds to the rhythm represented by the audio feature of the audio data, thereby realizing the dynamic vibration water flow.
[0073] In this embodiment, the audio data sent by the terminal device is received, the outlet water control information is determined according to the audio feature of the audio data, the outlet water control information is used to represent the change rule of the outlet water quantity of the smart water heater, and the outlet water quantity of the smart water heater is controlled based on the outlet water control information. Since the outlet water control information used to control the outlet water quantity of the smart water heater is determined by the audio data sent by the terminal device, the outlet water control information will change with the change of the audio data, thereby realizing the outlet water quantity change control corresponding to the audio feature of the audio data, and further realizing the dynamic frequency massage of the outlet water flow based on the dynamic change of the outlet water quantity of the water heater, and improving the massage effect and user experience in the massage mode of the water heater.
[0074] Figure 4 The flowchart of the water heater control method provided by another embodiment of the present application is shown in Figure 4 The water heater control method provided by the embodiment is used for Figure 2The water heater control method provided in the embodiment is based on the water heater control method provided in the embodiment shown in the figure, and further refines steps S101-S103 and adds a step of playing timestamp synchronization. The water heater control method provided in the embodiment includes the following steps:
[0075] Step S201, receiving the streaming media data sent by the terminal device.
[0076] Step S202, obtaining an audio segment corresponding to the streaming media data according to the streaming media data.
[0077] Exemplarily, the streaming media data refers to data obtained by segmenting and compressing complete audio data and then sending the segmented data. After receiving the streaming media data sent by the terminal device, the intelligent water heater can obtain a segment of complete target music, i.e., an audio segment corresponding to the streaming media data, by decoding the streaming media data. Related technologies of streaming media transmission, buffering and decoding are prior art known to those skilled in the art, and will not be described here.
[0078] Step S203, determining a beat feature of the audio segment, the beat feature being used to represent the rhythm of the audio segment.
[0079] Exemplarily, after obtaining the audio segment corresponding to the streaming media data, signal processing and feature extraction are performed on the audio segment, and a beat feature used to represent the rhythm of the audio segment can be obtained. Specifically, there are periodic beats in music (for example, the audio segment in the embodiment is a music segment), and the beat is a regular form of organization describing the beats in the music. The beat is a unit for measuring the rhythm, and therefore the rhythm of the music can be determined according to the beat. The beat feature is an informationized representation of different beats, and the beat feature includes, for example, a feature identifier. Feature identifier 1 represents one beat, and feature identifier 2 represents another beat.
[0080] Further, the beat feature of the audio segment can be determined by the audio segment. Specifically, Figure 5 A time-domain waveform diagram of an audio segment provided in an embodiment of the present application is shown in the figure. Figure 5 The time-domain waveform of the audio segment is used to represent the relationship between the sound signal and time, where the vertical coordinate of the waveform curve is the sound energy, and the horizontal coordinate is the time. Exemplarily, referring to the time-domain waveform shown in the figure, Figure 5 The periodic component in the waveform is the beat of the target music corresponding to the audio data. Feature extraction and identification of the periodic component can determine the beat of the target music. Further, based on the interval and combination of different beats, the beat and the corresponding beat feature can be determined.
[0081] Optionally, as shown in the figure, Figure 6As shown, step S203 includes three specific implementation steps S2031, S2032 and S2033.
[0082] Step S2031, obtaining the spectral feature of the audio segment;
[0083] Step S2032, filtering the audio segment based on the spectral feature of the audio segment to obtain filtered audio data;
[0084] Step S2033, extracting the peak value of the filtered audio data to determine the beat feature of the audio segment.
[0085] Specifically, the audio segment is the sound data obtained after decompressing the streaming media data, which can be implemented in the form of an array or a matrix based on different numbers of sound channels. Taking single-channel sound data as an example, Fourier transformation is performed on the sound data to obtain the corresponding spectral data, and then the audio data is filtered according to the spectral feature corresponding to the spectral data, for example, band-pass filtering is performed on the frequency band with the highest energy in the low-frequency interval, thereby obtaining the filtered audio data. The filtered audio data retains the main frequencies in the audio segment, and in the time-domain waveform of the filtered audio data, it is represented as multiple equally spaced peaks. Further, by extracting the peak value of the filtered audio data, the main rhythm rhythm with the highest energy level in the audio segment can be determined. Specifically, for example, it is the sound rhythm emitted by a low-frequency musical instrument, for example, a drum rhythm, i.e., the beat feature.
[0086] In this embodiment, by performing spectral transformation, feature extraction on the audio segment, and filtering based on the spectral graph, the filtering of different beats in the audio segment is realized. The feature of the main beat with the highest energy level is determined as the beat feature, so that the water flow change frequency determined by the intelligent water heater according to the beat feature is synchronized with the main beat of the audio segment, and the user experience is improved.
[0087] Step S204, determining the water flow change frequency according to the beat feature of the audio segment.
[0088] Exemplarily, after determining the beat feature representing the rhythm speed, a frequency value corresponding to the rhythm represented by the beat feature can be determined, i.e., the water flow change frequency. Specifically, the beat feature of the audio segment includes, for example, a beat feature value. Different beat feature values correspond to a water flow change frequency, for example, beat feature value 1 corresponds to a water flow change frequency of 1 Hz, i.e., the water heater changes the water output once per second. Beat feature value 2 corresponds to a water flow change frequency of 2 Hz, i.e., the water heater changes the water output twice per second. Since the water flow change frequency that the water heater can achieve has an upper limit and is related to the performance of the gain water pump provided in the intelligent water heater, the mapping relationship between the beat feature and the water flow change frequency can be set according to specific needs, which is not limited here.
[0089] Step S205, according to the water quantity change frequency, determine the first duration.
[0090] Step S206, get the water quantity sequence, the water quantity sequence includes at least two different water quantity values.
[0091] Exemplarily, after determining the water quantity change frequency, the reciprocal of the water quantity change frequency is the time interval between two water quantity changes, that is, the first duration. The higher the water quantity change frequency, the shorter the first duration, that is, the more frequent the water quantity changes, and the higher the vibration frequency of the output vibrating water flow.
[0092] The water quantity sequence can be a preset data including at least two different water quantity values, for example, a first water quantity value and a second water quantity value, wherein the first water quantity value is greater than the second water quantity value. It should be noted that under the same device conditions (for example, the same model of intelligent water heater and the same model of shower connected to the intelligent water heater), the water quantity and the water pressure of the intelligent water heater are in a positive proportional relationship, that is, the greater the water quantity, the greater the water pressure. The water quantity value in the step of the embodiment is a dimensionless unit, which can represent the water quantity output by the water heater or the water pressure, which is not limited here.
[0093] Since the first water quantity value and the second water quantity value are different in size, the intelligent water heater can generate a vibrating water flow when it alternately outputs water based on the first water quantity value and the second water quantity value in the water quantity sequence. The size of the first water quantity value and the second water quantity value can be set by the user or preset when the device is manufactured, which is not described here.
[0094] Step S207, according to the water quantity sequence and the first duration, control the intelligent water heater to output water with each water quantity value in the water quantity sequence in turn, and the water output time corresponding to each water quantity value lasts the first duration.
[0095] Further, according to the water quantity value in the water quantity sequence and the corresponding first duration, the water quantity control of the intelligent water heater can be realized. Figure 7 A schematic diagram of water quantity control according to the water quantity sequence and the first duration provided by the embodiment of the present application is shown in Figure 7 As shown, the intelligent water heater outputs water with the first water quantity value and the second water quantity value in turn according to the water quantity sequence, and each lasts the first duration until the total duration reaches the playing duration of the audio segment. When the water flow output by the intelligent water heater is delivered to the shower and sprayed by the shower, the effect of vibrating water flow can be realized.
[0096] In addition, it can be understood that the water output sequence can further include other water output values, such as a third water output value, a fourth water output value, and the like. The intelligent water heater controls the water output according to the water output values in the water output sequence. Therefore, the more water output values in the water output sequence, the more complex the change of the water output, and the more vibration modes of the vibration water flow generated finally.
[0097] Figure 8 A process diagram for continuously outputting vibration water flow based on an audio segment is provided for an embodiment of the present application, as shown in the figure, Figure 8 After the intelligent water heater determines the water output control information according to the audio segment a, the water output control is performed in a cycle based on the water output sequence A and the first time length in the water output control information, and the vibration water flow matching the rhythm of the audio segment a is output from the shower connected through the pipeline. Until the total cycle time reaches the playing time of the audio segment a, the intelligent water heater acquires the audio segment b after the audio segment a by loading the streaming media data. After determining the water output control information corresponding to the audio segment b through the same steps, the water output control is performed in a cycle based on the water output sequence B and the second time length in the water output control information corresponding to the audio segment b at the end time point corresponding to the audio segment a, so as to output the vibration water flow matching the rhythm of the audio segment b through the shower. The audio segment a, the audio segment b, and the subsequent audio segment c obtained through the streaming media data represent continuous segments in the target music respectively. When the rhythm of the target music changes, the vibration frequency of the vibration water flow sprayed through the shower will also change accordingly, so as to realize the dynamic massage and the music following massage function of the intelligent water heater, and improve the user experience.
[0098] Figure 9 A structure diagram of a water heater control device is provided for an embodiment of the present application, which is applied to an intelligent water heater. The intelligent water heater communicates with a terminal device, as shown in the figure, Figure 9 The water heater control device 3 provided by the present embodiment includes:
[0099] The transceiving module 31 is configured to receive the audio data sent by the terminal device.
[0100] The determining module 32 is configured to determine water output control information according to the audio features of the audio data. The water output control information is used to represent the change rule of the water output of the intelligent water heater.
[0101] The control module 33 is configured to control the water output of the intelligent water heater based on the water output control information.
[0102] In a possible implementation, the audio data comprises streaming media data, the water outlet control information comprises a water quantity change frequency, the water quantity change frequency represents a change frequency of the water quantity of the intelligent water heater, and the determining module 32 is specifically configured to: obtain an audio segment corresponding to the streaming media data according to the streaming media data; and determine the water quantity change frequency according to a beat feature of the audio segment, the beat feature being used to represent the rhythm of the audio segment.
[0103] In a possible implementation, the water outlet control information further comprises a water quantity sequence, the water quantity sequence comprises at least two different water quantity values, and the control module 33 is specifically configured to: determine a first time length according to the water quantity change frequency; and control the intelligent water heater to sequentially outlet water with each water quantity value in the water quantity sequence according to the water quantity sequence and the first time length, and the water outlet time corresponding to each water quantity value lasts for the first time length.
[0104] In a possible implementation, the determining module 32 is further configured to: obtain a spectrum feature of the audio segment; filter the audio segment based on the spectrum feature of the audio segment to obtain filtered audio data; and perform peak value extraction on the filtered audio data to determine the beat feature of the audio segment.
[0105] In a possible implementation, the intelligent water heater comprises a booster water pump configured to control the water outlet pressure of the intelligent water heater, the water outlet control information comprises at least two different water quantity values, and each water quantity value corresponds to a time stamp, the control module 33 is specifically configured to: determine a target water quantity value according to the time stamp corresponding to the water quantity value, the target water quantity value being a water quantity value corresponding to a current time; determine a target water pressure value according to the target water quantity value, the target water pressure value being the water outlet pressure of the booster water pump when the intelligent water heater outlets water at the target water quantity value; and control the booster water pump to outlet water based on the target water pressure value.
[0106] In a possible implementation, the water outlet control information comprises at least two different water quantity values, each water quantity value corresponds to a time stamp, and the transceiver module 31 is further configured to: receive synchronization information sent by the terminal device, the synchronization information being used to represent a current playback progress of the terminal device in playing the audio data; and the control module 33 is further configured to: determine a target time stamp according to the synchronization information; and control the water quantity of the intelligent water heater based on the water quantity value corresponding to the target time stamp.
[0107] The transceiver module 31, the determining module 32 and the control module 33 are sequentially connected. The water heater control apparatus 3 provided in this embodiment can execute the technical solutions of the method embodiment as shown in Figures 2-8 The implementation principle and technical effects are similar, and will not be described here again.
[0108] Figure 10A schematic diagram of an electronic device provided in one embodiment of the present invention, as shown below. Figure 10 As shown, the electronic device 4 provided in this embodiment includes: a memory 41, a processor 42, and a computer program.
[0109] The computer program is stored in memory 41 and configured to be executed by processor 42 to implement the present invention. Figures 2-8 The water heater control method provided in any of the corresponding embodiments.
[0110] The memory 41 and the processor 42 are connected via a bus 43.
[0111] For relevant instructions, please refer to the corresponding text. Figures 2-8 The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.
[0112] Figure 11 A schematic diagram of a smart water heater provided in one embodiment of the present invention is shown below. Figure 11 As shown, the smart water heater 5 provided in this embodiment includes, as follows: Figure 10 The electronic device 4 shown. Optionally, the smart water heater 5 also includes a booster pump 51.
[0113] Figure 12 A schematic diagram of an intelligent shower system provided in one embodiment of the present invention is shown below. Figure 12 As shown, the intelligent shower system 6 provided in this embodiment includes, as follows: Figure 11 The smart water heater 5 and the terminal device 61 are shown, and the smart water heater 5 and the terminal device 61 are connected in communication.
[0114] One embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the present invention. Figures 2-8 The water heater control method provided in any of the corresponding embodiments.
[0115] The computer-readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0116] One embodiment of the present invention provides a computer program product, including a computer program that is executed by a processor as described in the present invention. Figures 2-8 The water heater control method provided in any of the corresponding embodiments.
[0117] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the division of the above-described apparatus embodiments is merely a logical function division, and there can be another division manner for the actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different modules can be indirect couplings or communication connections through some interfaces, and there can be electric, mechanical or other forms.
[0118] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present application cover any and all variations of the application that come within the scope of the present application, including custom and practice of the art known to those of ordinary skill in the art, or any subsequent development within the art. The specification and examples are to be construed as merely illustrative of the present application and not limitative of the true scope and spirit of the application, which is measured by the claims.
[0119] It is to be understood that the application is not limited to the precise construction herein disclosed and shown in the attached drawings, and that various changes in the details can be made without departing from the spirit and scope of the application. The scope of the application is limited only by the claims that follow.
[0120] So far, the technical solutions of the present application have been described in combination with the preferred embodiments shown in the drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Those skilled in the art can make equivalent changes or replacements to the related technical features without departing from the principles of the present application, and the technical solutions after the changes or replacements will all fall within the protection scope of the present application.
Claims
1. A water heater control method, characterized by, The method is applied to a smart water heater, the smart water heater communicates with a terminal device, and the method comprises: receiving audio data sent by the terminal device; An audio feature of the audio data is implemented as a sequence of characteristic values, the sequence of characteristic values comprises a plurality of characteristic values, each characteristic value is used to represent the playing rhythm of target music in a corresponding playing interval; based on a preset proportion coefficient or a sequence of proportion coefficients, the sequence of characteristic values is weighted to obtain corresponding water outlet control information; the water outlet control information comprises a water quantity change frequency, and the water quantity change frequency represents the change frequency of the water quantity of the smart water heater; based on the water outlet control information, the water quantity of the smart water heater is controlled.
2. The method of claim 1, wherein, The water outlet control information further comprises a water quantity sequence, and the water quantity sequence comprises at least two different water quantity values; based on the water outlet control information, the water quantity of the smart water heater is controlled, comprising: determining a first time length according to the water quantity change frequency; controlling the smart water heater to sequentially outlet water with each water quantity value in the water quantity sequence according to the water quantity sequence and the first time length, and the water outlet time corresponding to each water quantity value lasts for the first time length.
3. The method of claim 1, wherein, The method further comprises: obtaining the spectral feature of the audio segment; based on the spectral feature of the audio segment, filtering the audio segment to obtain filtered audio data; performing peak value extraction on the filtered audio data to determine the beat feature of the audio segment.
4. The method of claim 1, wherein, The smart water heater comprises a booster water pump, the booster water pump is used to control the outlet water pressure of the smart water heater, the water outlet control information comprises at least two different water quantity values, and each water quantity value corresponds to a timestamp; based on the water outlet control information, the water quantity of the smart water heater is controlled, comprising: determining a target water quantity value according to the timestamp corresponding to the water quantity value, the target water quantity value being a water quantity value corresponding to the current time; determining a target water pressure value according to the target water quantity value, the target water pressure value being the outlet water pressure of the booster water pump when the smart water heater outlets water at the target water quantity value; controlling the booster water pump to outlet water based on the target water pressure value.
5. The method of claim 1, wherein, The water outlet control information comprises at least two different water quantity values, each water quantity value corresponds to a timestamp, and the method further comprises: receiving synchronization information sent by the terminal device, the synchronization information is used to represent the current playing progress of the terminal device playing the audio data; determining a target timestamp according to the synchronization information; controlling the water quantity of the smart water heater based on the water quantity value corresponding to the target timestamp.
6. A water heater control apparatus, characterized by The method is applied to a smart water heater, the smart water heater communicates with a terminal device, and the method comprises: a transceiver module for receiving audio data sent by the terminal device; A determining module is configured to implement audio features of the audio data as a set of feature value sequences, wherein each feature value sequence includes a plurality of feature values, and each feature value is used to represent a playing rhythm of the target music in a corresponding playing interval; and the feature value sequences are weighted based on a preset proportion coefficient or a proportion coefficient sequence to obtain corresponding water outlet control information; the water outlet control information includes a water quantity change frequency, and the water quantity change frequency represents a change frequency of the water quantity of the intelligent water heater; A control module is configured to control the water quantity of the intelligent water heater based on the water outlet control information.
7. A smart water heater characterized by, Comprise: a memory, a processor and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the water heater control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the water heater control method according to any one of claims 1 to 5.
9. An intelligent shower system characterized by, The intelligent water heater and the terminal device are connected in communication.
Citation Information
Patent Citations
Shower head water flow control method and device
CN111167635A
Water quantity adjusting method, water quantity adjusting device, water heater, terminal and hot water system
CN111536695A
Massage device to be a medical treatment which uses amusic rhythm
KR1020050111112A