Bath heater switch control method based on sound recognition

Through the voice recognition-based bathroom heater switch control method, the noise reduction and audio conversion modules are used to recognize user voice commands, which solves the problems of inconvenient operation and safety hazards of traditional bathroom heater switches, achieves simple and fast voice control, and improves user experience and safety. .

CN118553239AInactive Publication Date: 2024-08-27ZHEJIANG GELAN ELECTRIC CO LTD

Patent Information

Application Number
CN202410380552.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-30
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional bathroom heater switch control method is inconvenient to operate and has safety risks, especially when the user's hands are slippery or busy, and there are no mature bathroom heater switch control products based on voice recognition on the market.

Method used

Design a bathroom heater switch control method based on voice recognition, including a main control module, a microphone array module, a voice recognition module and a wireless data interface. Through the noise reduction algorithm, audio conversion and sound matching module, the user can control the bathroom heater through voice commands. switch status.

Benefits of technology

The voice control of the bathroom heater switch is realized, and the operation is simple and fast, which reduces the safety risks for users during operation, improves the convenience and safety of use, and reduces the possibility of misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553239A
    Figure CN118553239A
Patent Text Reader

Abstract

The invention discloses a bath heater on-off control method based on voice recognition, which comprises the following steps: step 1, constructing a bath heater on-off control system which comprises a main control module arranged on bath heater equipment, and a microphone array module, a voice recognition module, a display module and a wireless data interface which are connected with the main control module, the voice recognition module is provided with a user interface and a keyword library which interacts with the user interface and contains function control instructions; step 2, the noise reduction algorithm model carries out noise reduction processing on the received user voice control information; step 3, the audio conversion module performs audio information conversion on the sound information subjected to noise reduction in the step 2 into a sound processing module; step 4, matching the input sound data information through the sound matching module; and 5, the analyzed control instruction is transmitted to the main control module, and bath heater control is carried out through the received voice data information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of sound recognition, and more specifically to a bathroom heater switch control method based on sound recognition. Background Art

[0002] With the continuous advancement of science and technology and the improvement of people's living standards, smart home technology has gradually penetrated into all aspects of daily life, bringing people a more convenient, efficient and comfortable life experience. As an important equipment in the bathroom space, the intelligent switch control method of the bathroom heater is a key link in improving user experience and the level of home intelligence.

[0003] Traditional bathroom heater switch control methods mostly rely on manual operation. Users need to walk near the bathroom heater in person and control the switch status of the bathroom heater through a physical switch or button. This method is not only inconvenient to operate, but also in some cases, such as when the user's hands are wet or busy, operating the bathroom heater switch may bring certain safety hazards.

[0004] In the field of bathroom heater switch control, the control method based on voice recognition is still in its infancy, and there are no mature products on the market. Therefore, the development of a bathroom heater switch control method based on voice recognition has important practical significance and application value. This method can use voice recognition technology to enable users to control the switch state of the bathroom heater through voice commands, which not only improves the user experience, but also enhances the level of home intelligence. At the same time, this method can also reduce the safety hazards when users operate the bathroom heater switch, bringing more convenience and comfort to people's lives. Summary of the invention

[0005] In view of the deficiencies of the above-mentioned technology, the present invention discloses a bathroom heater switch control method based on sound recognition, which can realize voice control of the bathroom heater switch, is easy and quick to operate, and meets user needs.

[0006] A method for controlling a bathroom heater switch based on sound recognition comprises the following steps:

[0007] Step 1: Build a bathroom heater switch control system;

[0008] The bathroom heater switch control system comprises a main control module arranged on the bathroom heater device and a microphone array module, a sound recognition module, a display module and a wireless data interface connected to the main control module;

[0009] The voice recognition module is provided with a user interface and a keyword library containing function control instructions interacting with the user interface, wherein the keyword library voice instructions at least include: "Hello, turn on / off the bathroom heater", "turn on / off heating", "turn on / off exhaust", "turn on / off lighting", "heating", "cooling";

[0010] The sound recognition module is provided with a noise reduction algorithm model, an audio conversion module and a sound matching module;

[0011] Step 2: The noise reduction algorithm model performs noise reduction processing on the received user voice control information;

[0012] The working method of the noise reduction algorithm model is as follows: first take a non-human voice audio, record the spectrum energy of the noise, and then subtract the noise spectrum energy from the audio spectrum;

[0013] The noise reduction algorithm model is based on the assumption that speech and noise are additively mixed;

[0014] Step 3, the audio conversion module converts the sound information after the noise reduction processing in step 2 into an audio information processing module;

[0015] The captured sound signal is processed by the audio conversion module, and the control instruction is converted into audio information by compressing or encoding the digital audio signal;

[0016] Step 4: Matching the input sound data information through the sound matching module;

[0017] Matching the audio command issued by the user with the pre-stored voice command, determining the user's intention and generating corresponding control commands, and parsing the control command if the extracted voice command matches the pre-stored voice command;

[0018] Step 5: Control output instructions;

[0019] The parsed control instructions are passed to the main control module to control the bathroom heater through the received voice data information.

[0020] As a further embodiment of the present invention, the main control module includes a control circuit and a power supply circuit and a drive circuit connected to the control circuit; the control circuit uses a microphone array to capture the language control instructions issued by the user, and uses A / D to convert the language control instructions into digital signals. The digital signals are transmitted to the DSP processing unit, and the DSP processing unit performs operations such as filtering, amplifying, and noise reduction on the digital signals to extract information related to the eigenvalues. After outputting the extracted eigenvalues ​​to the memory, they are matched with the pre-stored database. If the match is successful, the drive circuit performs corresponding operations according to the voice control instructions.

[0021] As a further embodiment of the present invention, the working method of the microphone array module is: using a time delay model to locate the sound source, the time delay model uses a near field model, uses three microphones, and assumes that τ 12 , τ 13denote the time delay between the first microphone and the second and third microphones respectively, then:

[0022]

[0023]

[0024] Where c is the speed of sound. Under standard atmospheric pressure and 15°C, the speed of sound is 340 m / s, r 1 、r 2 and r 3 are the distances from the microphone to the sound source. According to the geometric relationship of the microphone array and the cosine theorem, we can get:

[0025]

[0026]

[0027] Where d is the distance between the microphones. Combining formulas (1), (2), (3), and (4), we can get the unknown quantity r 1 、r 2 、r 3 ,θ 1 After that, the coordinates of the sound source s(k) can be obtained by combining the coordinate system;

[0028] The microphone array module is used to receive voice information and wake up the main control module when the bathroom heater is in standby mode. The main control module wakes up the remaining microphones of the microphone array. The microphone array module uses GCC to estimate the delay to locate the sound source. The distance difference is calculated by the delay based on the time delay difference when the sound source reaches different microphones in sequence, and the distance difference and the spatial geometric position of the microphone array are used to determine the position of the sound source.

[0029] As a further embodiment of the present invention, the sound processing module includes a speech encoder and a speech compressor; wherein the speech encoder includes a preprocessing module, an A / D conversion module, a feature extraction module and an encoding module; the preprocessing module first reduces or eliminates background noise, improves the signal-to-noise ratio of the speech signal, and then improves the quality of the speech signal by filtering, and then divides the continuous speech signal into shorter frames; the A / D conversion module samples the analog signal at a predetermined sampling rate, converts the time-continuous analog signal into a discrete digital signal, quantizes and encodes the sampled signal, and converts the amplitude value of the analog signal into a digital code form to facilitate subsequent digital signal processing; the feature extraction module performs time domain and frequency domain analysis Extract key feature values ​​that can represent speech characteristics; the encoding module adopts LPC, and at the sending end LPC first establishes a description model, and then extracts feature parameters related to the speech model from the speech signal, and at the receiving end, the corresponding digital model is used to calculate and control the corresponding parameters to synthesize speech; the speech compression module includes a quantization module, an entropy coding module and a bit stream generation module; wherein the quantization module quantizes the encoded data and maps the continuous value to a finite discrete value; the entropy coding module performs lossless compression on the quantized data, and adopts Huffman coding to further reduce the data size; the bit stream module packages the encoded and compressed data into a bit stream format for storage or transmission.

[0030] As a further embodiment of the present invention, the working method of the audio conversion module is: using Fourier transform, since the audio signal has been sampled and discretized, discrete Fourier transform (DFT) is used; the non-periodic signal x(n) with a finite length, x(n) with a length of N and a period of N, is extended to a periodic signal x p (n), then DFS is:

[0031]

[0032]

[0033] Multiply the above formula by N and express it in terms of spectral density, or spectrum for short:

[0034]

[0035]

[0036] Since X(k) is the frequency spectrum density, when k = 0, the waveform peak value of the frequency component corresponding to X(k) is |X(k)|·N, and when k ≠ 0, the waveform peak value of the frequency component corresponding to X(k) is

[0037] Fourier transform converts complex audio signals into simple sine and cosine waves, making it easier to analyze and process audio signals.

[0038] As a further embodiment of the present invention, the sound recognition and matching module includes a DSP chip and an audio sequence decoding module, an instruction recognition module, a frequency recognition module, an intensity recognition module, a speech rate recognition module, a tone recognition module and a matching index module connected to the DSP; the working method of the sound recognition and matching module is: after obtaining each audio signal, at least two eigenvalues ​​of each frame of audio signal are calculated, and the at least two eigenvalues ​​are analyzed to obtain the main component eigenvalue of each eigenvalue, and the main component eigenvalues ​​of different eigenvalues ​​are not correlated with each other; select the target eigenvalue from each main component eigenvalue of each frame of audio signal, The audio signal is identified according to the target feature value of each frame of the audio signal; the extracted target feature values ​​are merged to obtain the feature value of each audio signal segment, and the feature value of the pre-stored voice command is matched; before matching, an audio matching library is constructed, and the audio feature value of each audio signal segment of the audio matching library is pre-calculated; wherein the working method of the DSP processing unit chip is: receiving an input digital signal, performing various operations and manipulations on the input digital signal, including addition, subtraction, filtering, conversion, etc., the operations and manipulations extract useful information from the signal, improve or change the quality of the signal, and then output the extracted useful information to the memory.

[0039] As a further embodiment of the present invention, the speaker module is used to play information indicating successful execution of the voice control instruction after the air conditioner is controlled to operate according to the voice control instruction.

[0040] Positive beneficial effects

[0041] By adopting voice recognition technology, users can control the switch of the bathroom heater through simple voice commands without manual operation or reliance on other auxiliary equipment. This method is not only easy to operate, but also can avoid the safety risks that may be caused by users operating the bathroom heater in slippery or busy conditions. Therefore, the implementation of the present invention will greatly improve the convenience and safety of users in using the bathroom heater, thereby optimizing the user experience.

[0042] The traditional bathroom heater switch control method may cause misoperation due to improper operation or accidental touch, thus affecting the normal use of the bathroom heater. The bathroom heater switch control method based on voice recognition realizes switch control by accurately recognizing the user's voice command, reducing the possibility of misoperation. At the same time, the present invention can further reduce the misoperation rate by optimizing the voice recognition algorithm and improving the recognition accuracy, ensuring that the switch state of the bathroom heater can accurately and quickly respond to the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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 are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0044] Figure 1 This is a schematic diagram of the overall architecture of a bathroom heater switch control method based on sound recognition according to the present invention;

[0045] Figure 2 The figure is a schematic diagram of the hardware structure of the bathroom heater switch control method based on sound recognition implemented by the present invention. DETAILED DESCRIPTION

[0046] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0047] like Figure 1-Figure 2 As shown, a method for preventing accidental touches of a wireless headset during exercise comprises the following steps:

[0048] Step 1: Build a bathroom heater switch control system;

[0049] The bathroom heater switch control system comprises a main control module arranged on the bathroom heater device and a microphone array module, a sound recognition module, a display module and a wireless data interface connected to the main control module;

[0050] The voice recognition module is provided with a user interface and a keyword library containing function control instructions interacting with the user interface, wherein the keyword library voice instructions at least include: "Hello, turn on / off the bathroom heater", "turn on / off heating", "turn on / off exhaust", "turn on / off lighting", "heating", "cooling";

[0051] The sound recognition module is provided with a noise reduction algorithm model, an audio conversion module and a sound matching module;

[0052] Step 2: The noise reduction algorithm model performs noise reduction processing on the received user voice control information;

[0053] The working method of the noise reduction algorithm model is as follows: first take a non-human voice audio, record the spectrum energy of the noise, and then subtract the noise spectrum energy from the audio spectrum;

[0054] The noise reduction algorithm model is based on the assumption that speech and noise are additively mixed;

[0055] Step 3, the audio conversion module converts the sound information after the noise reduction processing in step 2 into an audio information processing module;

[0056] The captured sound signal is processed by the audio conversion module, and the control instruction is converted into audio information by compressing or encoding the digital audio signal;

[0057] Step 4: Matching the input sound data information through the sound matching module;

[0058] Matching the audio command issued by the user with the pre-stored voice command, determining the user's intention and generating corresponding control commands, and parsing the control command if the extracted voice command matches the pre-stored voice command;

[0059] Step 5: Control output instructions;

[0060] The parsed control instructions are passed to the main control module to control the bathroom heater through the received voice data information.

[0061] In the present invention, the main control module includes a control circuit and a power circuit and a drive circuit connected to the control circuit; the control circuit uses a microphone array to capture the language control instructions issued by the user, uses A / D to convert the language control instructions into digital signals, and the digital signals are transmitted to the DSP processing unit. The DSP processing unit performs operations such as filtering, amplification, and noise reduction on the digital signals to extract information related to the eigenvalues, outputs the extracted eigenvalues ​​to the memory, and matches them with the pre-stored database. If the match is successful, the drive circuit performs corresponding operations according to the voice control instructions.

[0062] In specific applications, when the user uses it for the first time, he needs to initialize the settings of the bathroom heater switch control system, connect the voice recognition module and the main control module through the communication interface to ensure smooth communication between the two; the user also needs to train the voice recognition module so that it can accurately recognize the user's voice commands.

[0063] In the present invention, the working method of the microphone array module is: using a time delay model to locate the sound source, the time delay model uses a near field model, uses three microphones, and assumes that τ 12 , τ 13 denote the time delay between the first microphone and the second and third microphones respectively, then:

[0064]

[0065]

[0066] Where c is the speed of sound. Under standard atmospheric pressure and 15°C, the speed of sound is 340 m / s, r1 、r 2 and r 3 are the distances from the microphone to the sound source. According to the geometric relationship of the microphone array and the cosine theorem, we can get:

[0067]

[0068]

[0069] Where d is the distance between the microphones. Combining formulas (1), (2), (3), and (4), we can get the unknown quantity r 1 、r 2 、r 3 ,θ 1 After that, the coordinates of the sound source s(k) can be obtained by combining the coordinate system;

[0070] The microphone array module is used to receive voice information and wake up the main control module when the bathroom heater is in standby mode. The main control module wakes up the remaining microphones of the microphone array. The microphone array module uses GCC to estimate the delay to locate the sound source. The distance difference is calculated by the delay based on the time delay difference when the sound source reaches different microphones in sequence, and the distance difference and the spatial geometric position of the microphone array are used to determine the position of the sound source.

[0071] In specific applications, the microphone array module is composed of microphone units arranged linearly. The microphone units use high-sensitivity, low-noise capacitive microphones to ensure accurate capture of sound signals. At the same time, the microphone units have a wide frequency response range and can capture most frequencies of human speech. When the user issues a voice command, the microphone array module will simultaneously receive the positions and directions of multiple sound sources, determine the distance difference through the time delay difference, and use the spatial geometry of the microphone array to locate the sound source. After receiving the voice control signal, the voice control signal is input into the sound processing module.

[0072] In the present invention, the sound processing module includes a speech encoder and a speech compressor; wherein the speech encoder includes a preprocessing module, an A / D conversion module, a feature extraction module and an encoding module; the preprocessing module first reduces or eliminates background noise, improves the signal-to-noise ratio of the speech signal, and then improves the quality of the speech signal by filtering, and then divides the continuous speech signal into shorter frames; the A / D conversion module samples the analog signal at a predetermined sampling rate, converts the time-continuous analog signal into a discrete digital signal, quantizes and encodes the sampled signal, and converts the amplitude value of the analog signal into a digital code form, which is convenient for subsequent digital signal processing; the feature extraction module extracts the signal through time domain and frequency domain analysis. The key characteristic value that can represent the voice characteristics; the encoding module adopts LPC, at the sending end LPC first establishes a description model, then extracts characteristic parameters related to the voice model from the voice signal, and at the receiving end, the corresponding digital model is used to calculate and control the corresponding parameters to synthesize the voice; the voice compression module includes a quantization module, an entropy coding module and a bit stream generation module; wherein the quantization module quantizes the encoded data and maps the continuous value to a finite discrete value; the entropy coding module performs lossless compression on the quantized data, and adopts Huffman coding to further reduce the data size; the bit stream module packages the encoded and compressed data into a bit stream format for storage or transmission.

[0073] In a specific application, the preprocessing module in the sound processing module uses spectral subtraction to eliminate or reduce environmental noise. After eliminating or reducing the noise, AGC is used to improve the clarity and recognizability of the sound signal, and then normalization is performed. Normalization is to adjust the amplitude of the sound signal to within a certain range, calculate the mean and standard deviation of the signal, and scale and translate the signal according to statistics, which helps to reduce the signal amplitude differences caused by different recording devices or environments. After that, segmentation processing is performed to divide the long sound signal into shorter frames, that is, the speech signal can be considered stable in a short time, which helps to simplify the processing process and reduce computational complexity.

[0074] In specific applications, the A / D conversion module first performs sampling. Sampling is to discretize the continuous analog sound signal in time. According to the characteristics and requirements of the sound signal, a suitable sampling rate can be selected to avoid aliasing. Quantization is the process of converting the discrete signal amplitude after sampling into a finite number of digital levels. Quantization noise will be introduced during the quantization process. Therefore, the selection of the number of quantization bits has an important influence on the accuracy and noise level of the sound signal. The more quantization bits, the higher the accuracy of the sound signal, but the amount of data will also increase accordingly. Common quantization bits are 8 bits, 16 bits and 24 bits. According to application requirements and system performance, a suitable quantization bit can be selected. Coding is the process of converting the quantized digital level into binary code for subsequent digital signal processing.

[0075] In a specific application, the feature extraction module extracts key feature values ​​that can represent speech characteristics through time domain and frequency domain analysis. Time domain feature extraction is to extract features directly from the waveform of the speech signal. Frequency domain feature extraction is to convert the speech signal to the frequency domain for analysis and extract frequency components related to speech pronunciation. The frequency domain feature extraction method of the present invention adopts fast Fourier transform (FFT) and Mel frequency cepstral coefficient (MFCC). FFT can convert the speech signal from the time domain to the frequency domain to obtain the spectrum characteristics of the speech signal; and MFCC further performs Mel-scale filtering and cepstral transformation on the spectrum to obtain a set of coefficients that can better reflect the speech characteristics; the LPC encoding module uses the linear prediction characteristics of the speech signal to predict the current sample value through the past samples. This prediction can eliminate redundant information in the speech signal, thereby achieving efficient encoding. The LPC encoding module is implemented by the following steps:

[0076] Step (1), linear prediction analysis: perform linear prediction analysis on each frame of the framed signal; this is achieved through the autocorrelation function. The goal of linear prediction analysis is to find a set of linear prediction coefficients that can best predict the current sample value using these coefficients and past sample values;

[0077] Step (2), prediction coefficient calculation: based on the result of linear prediction analysis, the prediction coefficient is calculated, the prediction coefficient reflects the linear prediction characteristics of the speech signal and is used in the subsequent encoding process;

[0078] Step (3), prediction coefficient quantization: In order to reduce the amount of data after encoding, the prediction coefficient needs to be quantized. Quantization is the process of converting continuous prediction coefficients into a finite number of discrete values. The quantization process will introduce a certain amount of quantization noise, so it is necessary to minimize the impact of quantization noise while ensuring coding efficiency. Quantization methods include uniform quantization, non-uniform quantization and vector quantization.

[0079] In the present invention, the working method of the audio conversion module is: using Fourier transform, since the audio signal has been sampled and discretized, discrete Fourier transform (DFT) is used; the non-periodic signal x(n) with a finite length, x(n) with a length of N and a period of N, is extended to a periodic signal x p (n), then DFS is:

[0080]

[0081]

[0082] Multiply the above formula by N and express it in terms of spectral density, or spectrum for short:

[0083]

[0084]

[0085] Since X(k) is the frequency spectrum density, when k = 0, the waveform peak value of the frequency component corresponding to X(k) is |X(k)|·N, and when k ≠ 0, the waveform peak value of the frequency component corresponding to X(k) is

[0086] Fourier transform converts complex audio signals into simple sine and cosine waves, making it easier to analyze and process audio signals.

[0087] In the present invention, the sound recognition and matching module includes a DSP chip and an audio sequence decoding module, an instruction recognition module, a frequency recognition module, an intensity recognition module, a speech rate recognition module, a tone recognition module and a matching index module connected to the DSP; the working method of the sound recognition and matching module is: after acquiring each audio signal, at least two eigenvalues ​​of each frame of audio signal are calculated, the at least two eigenvalues ​​are analyzed to obtain the main component eigenvalue of each eigenvalue, and the main component eigenvalues ​​of different eigenvalues ​​are not correlated with each other; select the target eigenvalue from each main component eigenvalue of each frame of audio signal, and select the target eigenvalue according to the eigenvalue of each main component of the audio signal. The target feature value of each frame of audio signal is used to identify the audio signal; the extracted target feature values ​​are merged to obtain the feature value of each audio signal segment, and the feature value of the pre-stored voice command is matched; before matching, an audio matching library is constructed, and the audio feature value of each audio signal segment of the audio matching library is pre-calculated; wherein the working method of the DSP processing unit chip is: receiving an input digital signal, performing various operations and operations on the input digital signal, including addition, subtraction, filtering, conversion, etc., the operations and operations extract useful information from the signal, improve or change the quality of the signal, and then output the extracted useful information to the memory.

[0088] In specific applications, the sound matching module establishes a pre-storage repository, which contains various voice commands. The voice commands in the pre-storage repository are obtained through training with a large amount of voice data and can describe the characteristic values ​​of different voice commands. When the sound matching module receives the user's voice control command, the system will match the extracted characteristic values ​​with the voice commands in the pre-storage repository. In the sound matching process, it is usually necessary to set a threshold to determine whether the matching degree is high enough to decide whether to accept the user's voice command. If the matching degree exceeds the set threshold, the system considers the recognition successful and performs the corresponding operation according to the matched command. If the matching degree is lower than the threshold, the system may ask the user to reissue the command or take other measures.

[0089] In specific applications, when the user needs to control the on / off status of the bathroom heater, he only needs to issue the corresponding voice command. The microphone array module will monitor the sound in the environment in real time. Once the user's voice command is detected, it will locate the sound source, receive audio information, and input the audio information into the sound recognition module for feature extraction. The extracted audio signal is input into the sound matching module. During the recognition and matching process, the sound recognition module will use the pre-trained model to parse the audio signal, extract relevant instructions, and match them with the pre-storage storage. According to the matching results, the main control module sends the corresponding control signal, and the bathroom heater device starts working.

[0090] In the present invention, the speaker module is used to play the successful execution information of the voice control instruction after the air conditioner is controlled to work according to the voice control instruction.

[0091] In specific applications, after receiving the execution result of the bathroom heater device, the main control unit will pass it to the speaker module. The speaker module will generate corresponding voice prompts based on the execution results to inform the user of the status of the bathroom heater device; for example, when the bathroom heater is successfully turned on, the speaker module will issue a prompt sound: "The bathroom heater is turned on", and when the bathroom heater is successfully turned off, it will issue a prompt sound "The bathroom heater is turned off".

[0092] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that these specific embodiments are only illustrative, and those skilled in the art may omit, replace, and change the details of the above methods and systems in various ways without departing from the principles and essence of the present invention. For example, merging the above method steps so as to perform substantially the same functions in substantially the same manner to achieve substantially the same results is within the scope of the present invention. Therefore, the scope of the present invention is limited only by the appended claims.

Claims

1. A method for controlling a bathroom heater switch based on sound recognition, characterized in that: The following steps are involved: Step 1: Build a bathroom heater switch control system; The bathroom heater switch control system comprises a main control module arranged on the bathroom heater device and a microphone array module, a sound recognition module, a display module and a wireless data interface connected to the main control module; The voice recognition module is provided with a user interface and a keyword library containing function control instructions interacting with the user interface, wherein the keyword library voice instructions at least include: "Hello, turn on / off the bathroom heater", "turn on / off heating", "turn on / off exhaust", "turn on / off lighting", "heating", and "cooling"; The sound recognition module is provided with a noise reduction algorithm model, an audio conversion module and a sound matching module; Step 2: The noise reduction algorithm model performs noise reduction processing on the received user voice control information; The working method of the noise reduction algorithm model is as follows: first take a non-human voice audio, record the spectrum energy of the noise, and then subtract the noise spectrum energy from the audio spectrum; The noise reduction algorithm model is based on the assumption that speech and noise are additively mixed; Step 3, the audio conversion module converts the sound information after the noise reduction processing in step 2 into an audio information processing module; The captured sound signal is processed by the audio conversion module, and the control instruction is converted into audio information by compressing or encoding the digital audio signal; Step 4: Matching the input sound data information through the sound matching module; Matching the audio command issued by the user with the pre-stored voice command, determining the user's intention and generating corresponding control commands, and parsing the control command if the extracted voice command matches the pre-stored voice command; Step 5: Control output instructions; The parsed control instructions are passed to the main control module to control the bathroom heater through the received voice data information.

2. According to claim 1, a method for controlling a bathroom heater switch based on sound recognition is characterized in that: The main control module includes a control circuit and a power circuit and a drive circuit connected to the control circuit; the control circuit uses a microphone array to capture the language control instructions issued by the user, and uses A / D conversion to convert the language control instructions into digital signals. The digital signals are transmitted to the DSP processing unit, and the DSP processing unit performs operations such as filtering, amplification, and noise reduction on the digital signals to extract information related to the eigenvalues. After outputting the extracted eigenvalues ​​to the memory, they are matched with the pre-stored database. If the match is successful, the drive circuit performs corresponding operations according to the voice control instructions.

3. According to claim 1, a method for controlling a bathroom heater switch based on sound recognition is characterized in that: The working method of the microphone array module is: using a time delay model to locate the sound source, the time delay model uses a near field model, uses three microphones, and assumes τ 12 , τ 13 denote the time delay between the first microphone and the second and third microphones respectively, then: Where c is the speed of sound. Under standard atmospheric pressure and 15°C, the speed of sound is 340 m / s. r1, r2, and r3 are the distances from the microphone to the sound source. Based on the geometric relationship of the microphone array and the law of cosines, we can get: Where d is the distance between the microphones. Combining formulas (1), (2), (3), and (4), we can obtain the unknown quantities r1, r2, r3, and θ1. Then, we can calculate the coordinates of the sound source s(k) by combining the coordinate system. The microphone array module is used to receive voice information and wake up the main control module when the bathroom heater is in standby mode. The main control module wakes up the remaining microphones of the microphone array. The microphone array module uses GCC to estimate the delay to locate the sound source. The distance difference is calculated by the delay based on the time delay difference when the sound source reaches different microphones in sequence, and the distance difference and the spatial geometric position of the microphone array are used to determine the position of the sound source.

4. According to claim 1, a method for controlling a bathroom heater switch based on sound recognition is characterized in that: The sound processing module includes a speech encoder and a speech compressor; wherein the speech encoder includes a preprocessing module, an A / D conversion module, a feature extraction module and an encoding module; the preprocessing module first reduces or eliminates background noise, improves the signal-to-noise ratio of the speech signal, and then improves the quality of the speech signal by filtering, and then divides the continuous speech signal into shorter frames; the A / D conversion module samples the analog signal at a predetermined sampling rate, converts the time-continuous analog signal into a discrete digital signal, quantizes and encodes the sampled signal, and converts the amplitude value of the analog signal into a digital code form to facilitate subsequent digital signal processing; the feature extraction module The extraction module extracts key feature values ​​that can represent speech characteristics through time domain and frequency domain analysis; the encoding module adopts LPC, and the LPC at the sending end first establishes a description model, and then extracts feature parameters related to the speech model from the speech signal, and controls the corresponding parameters through corresponding digital model calculation at the receiving end to synthesize speech; the speech compression module includes a quantization module, an entropy coding module and a bit stream generation module; wherein the quantization module quantizes the encoded data and maps the continuous value to a finite discrete value; the entropy coding module performs lossless compression on the quantized data, and adopts Huffman coding to further reduce the data size; The bitstream module packages the encoded and compressed data into a bitstream format for storage or transmission.

5. According to claim 1, a method for controlling a bathroom heater switch based on sound recognition is characterized in that: The working method of the audio conversion module is: using Fourier transform, since the audio signal has been sampled and discretized, discrete Fourier transform DFT is used; the non-periodic signal x(n) with a finite length, x(n) with a length of N and a period of N, is extended to a periodic signal x p (n), then DFS is: Multiply the above formula by N and express it in terms of spectral density, or spectrum for short: Since X(k) is the frequency spectrum density, when k = 0, the waveform peak value of the frequency component corresponding to X(k) is |X(k)|·N, and when k ≠ 0, the waveform peak value of the frequency component corresponding to X(k) is Fourier transform converts complex audio signals into simple sine and cosine waves, making it easier to analyze and process audio signals.

6. According to the sound recognition-based bathroom heater switch control method of claim 1, it is characterized by: The sound recognition and matching module includes a DSP chip and an audio sequence decoding module, an instruction recognition module, a frequency recognition module, an intensity recognition module, a speech rate recognition module, a tone recognition module and a matching index module connected to the DSP; the working method of the sound recognition and matching module is: after acquiring each audio signal, at least two eigenvalues ​​of each frame of audio signal are calculated, and the at least two eigenvalues ​​are analyzed to obtain the main component eigenvalue of each eigenvalue, and the main component eigenvalues ​​of different eigenvalues ​​are not correlated with each other; Selecting a target feature value from each main component feature value of each frame of audio signal, and identifying the audio signal according to the target feature value of each frame of audio signal; merging the extracted target feature values ​​to obtain the feature value of each audio signal segment, and matching it with the feature value of the pre-stored voice command; constructing an audio matching library before matching, and pre-calculating the audio feature value of each audio signal segment of the audio matching library; The working method of the DSP processing unit chip is: receiving an input digital signal, performing various calculations and operations on the input digital signal, including addition, subtraction, filtering, conversion, etc., extracting useful information from the signal through calculations and operations, improving or changing the quality of the signal, and then outputting the extracted useful information to a memory.

7. According to claim 1, a method for controlling a bathroom heater switch based on sound recognition is characterized in that: The speaker module is used to play the successful execution information of the voice control instruction after the air conditioner is controlled to work according to the voice control instruction.

Citation Information

Patent Citations

  • Sprinkler speech recognition system and method based on Viterbi algorithm

    CN110738988A

  • Intelligent bathing control method and device and storage medium

    CN112309377A

  • Voice control method and device based on voice noise reduction

    CN117198311A

  • Bathroom heating device with voice recognition function

    CN208952215U

  • 86 box panel control circuit for bath heater

    CN218585315U

Cited By

  • Bathroom lamp control system and method based on voice interaction

    CN118843232A