Home device voice recognition method, recognition device and voice recognition system
This home appliance voice recognition method, which analyzes and encrypts the voice characteristics of family members, solves the problems of accuracy and security in home appliance voice recognition, enabling effective control over family members and preventing unauthorized operation and privacy leaks.
Patent Information
- Application Number
- CN202311873997.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-30
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-30
AI Technical Summary
Existing voice recognition technologies for home appliances suffer from low recognition rates, weak dialect and accent recognition capabilities, misrecognition or missed recognition issues, and insufficient privacy protection and data security.
By acquiring the voice information of family members, analyzing and encrypting their voice characteristics, a voice database is established. Voice control commands are received and matched to control home devices to perform operations, ensuring that commands are executed only when the voice characteristics of family members match.
It improves the accuracy and security of voice recognition for home appliances, prevents strangers from controlling the devices, and protects user privacy and data security.
Smart Images

Figure CN117953888B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home devices, and more specifically, to a voice recognition method, recognition device, computer-readable storage medium, and voice recognition system for home devices. Background Technology
[0002] The consumer market for smart home devices is gradually expanding. The central control screen, as a crucial bridge between people and devices in a whole-house smart solution, integrates four major functions: linkage control, protocol interoperability, human-computer interaction, and service presentation, making it an indispensable part of a smart home system. Although voice recognition technology is widely used in smart TVs, smartphones, and smart speakers, many problems still exist, including low recognition rates, especially in noisy environments; relatively weak recognition capabilities for dialects, accents, and specific languages; potential for misrecognition or missed recognition when recognizing long sentences or complex commands; and privacy and data security issues with some home device voice recognition systems, leaving users feeling uneasy about protecting their privacy. Summary of the Invention
[0003] The main objective of this application is to provide a voice recognition method, recognition device, computer-readable storage medium, and voice recognition system for home appliances, so as to at least solve the problem that voice recognition of home appliances in the prior art threatens user privacy and data security.
[0004] To achieve the above objectives, according to one aspect of this application, a voice recognition method for home appliances is provided. The method includes: acquiring voice information from multiple users and performing timbre feature analysis on the multiple voice information to obtain multiple timbre features, wherein the timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information, wherein each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features; encrypting the multiple timbre features to obtain multiple timbre data; receiving a voice control command issued by the user, performing timbre feature analysis on the timbre of the voice control command to obtain a target timbre, wherein the voice control command is a control command issued by the user via voice to control a home appliance to perform a corresponding operation; and controlling the corresponding home appliance to perform the operation corresponding to the voice control command when the target timbre matches any one of the timbre data.
[0005] Optionally, timbre feature analysis is performed on multiple sound information to obtain multiple timbre features, including: a preprocessing step, in which the sound information is sequentially preprocessed and digitized to obtain sound audio, wherein the preprocessing operation includes at least noise reduction and filtering operations, and the digitization operation is used to convert the analog signal of the sound into a digital signal; a first analysis step, in which the sound audio is analyzed using spectrum analysis to convert the time-domain signal of the sound audio into a frequency-domain signal to obtain a spectrum diagram of the sound audio, wherein the spectrum diagram represents the energy distribution of the audio signal at different frequencies; a second analysis step, in which harmonic analysis is performed on the spectrum diagram to obtain harmonic information, wherein the harmonic information includes the harmonic content and frequency components in the audio signal; a third analysis step, in which statistical analysis is performed on the spectrum diagram and the harmonic information to obtain a single timbre feature, wherein the timbre feature includes at least the spectral peak frequency, spectral width, and harmonic ratio; the preprocessing step, the first analysis step, the second analysis step, and the third analysis step are repeated sequentially until all the timbre features are obtained.
[0006] Optionally, encrypting multiple timbre features to obtain multiple timbre data includes: generating keys corresponding to multiple timbre features using an encryption algorithm, wherein the keys include a public key and a private key; and encrypting multiple timbre features using the public key to obtain the timbre data.
[0007] Optionally, after receiving the voice control command issued by the user and performing timbre feature analysis on the timbre of the voice control command to obtain the target timbre, the method further includes: decrypting the timbre data using the private key to obtain multiple timbre features; comparing the target timbre with the multiple timbre features to determine whether the target timbre matches any one of the timbre data.
[0008] Optionally, after receiving the voice control command issued by the user and performing timbre feature analysis on the timbre of the voice control command to obtain the target timbre, the method further includes: extracting the wake-up word from the voice control command and activating a voice scene addition mode, wherein the wake-up word includes the name of the home appliance and the operation to be performed by controlling the home appliance, and the voice scene addition mode is a mode for adding the state scene of each home appliance through voice; when the target timbre matches any of the timbre data, adding and storing scene information according to the wake-up word and the voice control command, wherein the scene information includes the user information that issued the voice control command, the home appliance, and the state that the corresponding home appliance needs to trigger; when the scene information is added, responding to the user's selection operation, wherein the selection operation includes an execution operation and a non-execution operation, wherein the execution operation is the operation to execute the state that the home appliance corresponding to the scene information needs to trigger; when the user's selection operation is the execution operation, controlling the corresponding home appliance to execute the operation corresponding to the scene information.
[0009] Optionally, controlling the corresponding home device to perform the operation corresponding to the voice control command includes: if the scenario in which the home device controlled by the voice control command is to perform the operation is a private scenario, determining whether the current user has management privileges based on the target voice tone, wherein the private scenario is a scenario set by the user with management privileges that belongs to the user and can only be activated by the user; if the current user has management privileges, controlling the corresponding home device to perform the operation corresponding to the voice control command; if the scenario in which the home device controlled by the voice control command is to perform the operation is a general scenario, controlling the corresponding home device to perform the operation corresponding to the voice control command, wherein the general scenario is a scenario in which both the user without management privileges and the user with management privileges can perform the operation.
[0010] Optionally, after receiving the voice control command issued by the user, the method further includes: if the target timbre does not match any of the timbre data, controlling the issuance of a prompt message, the prompt message being used to indicate that the target user's voice information is not stored and the target user's identity cannot be identified.
[0011] According to another aspect of this application, a voice recognition device for home appliances is provided. The device includes: an acquisition unit, configured to acquire voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features, wherein the timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information, wherein each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features; an encryption unit, configured to encrypt the multiple timbre features to obtain multiple timbre data; a receiving unit, configured to receive voice control commands issued by the users, and perform timbre feature analysis on the timbre of the voice control commands to obtain target timbre, wherein the voice control commands are control commands issued by the users through voice to control home appliances to perform corresponding operations; and a first control unit, configured to control the corresponding home appliance to perform the operation corresponding to the voice control command when the target timbre matches any one of the timbre data.
[0012] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.
[0013] According to another aspect of this application, a speech recognition system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of the methods described.
[0014] Applying the technical solution of this application, in the voice recognition method for home appliances, firstly, multiple users' voice information is acquired, and timbre feature analysis is performed on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitative analysis of the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. Then, the multiple timbre features are encrypted to obtain multiple timbre data. Next, voice control commands issued by the users are received, and the timbre of the voice control commands is analyzed using the aforementioned timbre features to obtain a target timbre. The voice control commands are control commands issued by the users through voice to control home appliances to perform corresponding operations. Finally, if the target timbre matches any of the aforementioned timbre data, the corresponding home appliance is controlled to perform the operation corresponding to the voice control command. This application obtains the voice information of all family members in advance and performs voice feature analysis to obtain the voice features of each user. To ensure the security of user voice data, all voice features are encrypted and stored. During use, when any user in the family issues a voice control command to control home appliances, the voice of that user issuing the command is analyzed for voice features and compared with the voice features stored in the database to confirm whether the user is a family member. If it is confirmed that the user is indeed a family member, the corresponding home appliance is controlled to execute the voice control command. This effectively prevents strangers from entering or controlling home appliances. This application solves the problem of threats to user privacy and data security in existing home appliance voice recognition technologies. Attached Figure Description
[0015] Figure 1 A hardware structure block diagram of a mobile terminal performing a voice recognition method for home devices, according to an embodiment of this application, is shown.
[0016] Figure 2 A schematic flowchart of a voice recognition method for home appliances according to an embodiment of this application is shown;
[0017] Figure 3 A flowchart illustrating a specific voice recognition method for home appliances according to an embodiment of this application is shown.
[0018] Figure 4 A structural block diagram of a home appliance voice recognition device provided according to an embodiment of this application is shown.
[0019] The above figures include the following reference numerals:
[0020] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation
[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] As described in the background section, existing technologies for voice recognition of home appliances still have issues related to privacy protection and data security. To address these threats to user privacy and data security, embodiments of this application provide a voice recognition method, recognition device, computer-readable storage medium, and voice recognition system for home appliances.
[0025] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0026] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a voice recognition method for home appliances according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0027] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] This embodiment provides a voice recognition method for home devices that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0029] Figure 2 This is a flowchart of a voice recognition method for home appliances according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:
[0030] Step S201: Obtain the voice information of multiple users, and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information are in one-to-one correspondence, and the voice information and the timbre features are in one-to-one correspondence.
[0031] Specifically, the voice information recorded by all users in the family is obtained through the voice acquisition device. The voice information can be recorded and saved by reading a text with multiple segments, and then transmitted to the cloud. When the cloud obtains the above voice information, it extracts and analyzes the timbre features of the above voice information, including features such as pitch, volume, timbre, and frequency.
[0032] Step S202: Encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data.
[0033] Specifically, in order to encrypt the timbre features and ensure that the user's voice information and personal privacy are protected, all timbre features are stored in encrypted form.
[0034] Step S203: Receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations.
[0035] Specifically, it receives voice control commands from users, such as "turn on the lights" or "turn up the volume," extracts and analyzes the timbre of the user's voice control commands, and obtains the target timbre.
[0036] Step S204: If the target timbre matches any of the aforementioned timbre data, control the corresponding home appliance to execute the operation corresponding to the aforementioned voice control command.
[0037] Specifically, the target timbre is matched with multiple timbre data stored in the database to find timbre data that matches the target timbre. After finding timbre data that matches the target timbre, the corresponding home appliances are controlled to perform the operation corresponding to the voice control command based on the matching result, such as turning on the lights or adjusting the air conditioner temperature, thus realizing the execution of the voice control command.
[0038] In this embodiment, firstly, voice information from multiple users is acquired, and timbre feature analysis is performed on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. Then, the multiple timbre features are encrypted to obtain multiple timbre data. Next, voice control commands issued by the users are received, and the timbre of the voice control commands is analyzed using the aforementioned timbre features to obtain a target timbre. The voice control commands are control commands issued by the users via voice to control home appliances to perform corresponding operations. Finally, if the target timbre matches any of the aforementioned timbre data, the corresponding home appliance is controlled to perform the operation corresponding to the voice control command. This application obtains the voice information of all family members in advance and performs voice feature analysis to obtain the voice features of each user. To ensure the security of user voice data, all voice features are encrypted and stored. During use, when any user in the family issues a voice control command to control home appliances, the voice of that user issuing the command is analyzed for voice features and compared with the voice features stored in the database to confirm whether the user is a family member. If it is confirmed that the user is indeed a family member, the corresponding home appliance is controlled to execute the voice control command. This effectively prevents strangers from entering or controlling home appliances. This application solves the problem of threats to user privacy and data security in existing home appliance voice recognition technologies.
[0039] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the home appliance voice recognition method of this application will be described in detail below with reference to specific embodiments.
[0040] To improve the speech recognition rate, in one optional implementation, step S201 includes:
[0041] Step S2011, preprocessing step, performing preprocessing and digitization operations on the above sound information in sequence to obtain sound audio. The preprocessing operations include at least noise reduction and filtering operations, and the digitization operations are used to convert the analog signal of the sound into a digital signal.
[0042] Specifically, the acquired sound information contains a certain amount of noise and interference. To ensure more accurate subsequent timbre feature analysis, denoising software or algorithms are needed to process the sound, removing background noise and interference to make the sound clearer. Common denoising methods include mean filtering, median filtering, and wavelet denoising; and low-pass or high-pass filters are used to filter the sound, adjusting the frequency distribution to make the sound smoother or highlight specific frequency components. An analog-to-digital converter is also needed to convert the analog sound signal into a digital signal. Through sampling and quantization operations, the sound signal is converted into digital form for subsequent digital sound signal processing and analysis.
[0043] Step S2012, the first analysis step, uses spectrum analysis to analyze the above audio signal, converts the time domain signal of the above audio signal into a frequency domain signal, and obtains the spectrum diagram of the above audio signal. The spectrum diagram represents the energy distribution of the audio signal at different frequencies.
[0044] Specifically, spectrum analysis methods include algorithms such as Fourier transform or fast Fourier transform. Using Fourier transform or fast Fourier transform, the time-domain signal of the sound is converted into a frequency-domain signal to obtain the spectrum of the sound audio, which shows the energy distribution at different frequencies, thereby helping to understand the frequency components and characteristics of the sound. The spectrum is usually plotted with frequency on the horizontal axis and amplitude on the vertical axis.
[0045] Step S2013, the second analysis step, performs harmonic analysis on the above spectrum to obtain harmonic information, which includes the harmonic content and frequency components in the above audio signal.
[0046] Specifically, harmonics refer to integer multiples of the frequency components in a sound signal and are an important component of sound characteristics. Harmonic analysis is performed on the spectrum diagram. Based on the Fourier coefficients, the amplitude and phase of the harmonics in the audio signal are determined, and the harmonic content and frequency components in the audio signal are identified and extracted to obtain harmonic information.
[0047] Step S2014, the third analysis step, involves statistically analyzing the above spectrum diagram and the above harmonic information to obtain sound characteristics, which include at least the peak frequency, the spectral width, and the harmonic ratio.
[0048] Specifically, statistical analysis is performed on the spectrum and harmonic information to calculate individual timbre characteristics such as spectral peak frequency, spectral width, and harmonic ratio, i.e., the timbre characteristics of a user.
[0049] Step S2015: Repeat the above preprocessing step, the above first analysis step, the above second analysis step and the above third analysis step in sequence until all the above timbre features are obtained.
[0050] Specifically, the voice information recorded by all family members is analyzed for timbre characteristics according to the above preprocessing steps, the above first analysis step, the above second analysis step and the above third analysis step, and finally the timbre characteristics of all user members are obtained.
[0051] To improve data security, in one optional implementation, step S202 includes:
[0052] Step S2021: Use an encryption algorithm to generate multiple keys corresponding to the above-mentioned timbre features. The above keys include public keys and private keys.
[0053] Specifically, an encryption algorithm is first used to generate a corresponding public and private key for each timbre feature. The public key is used to encrypt the data, and the private key is used to decrypt the data. This ensures the security of the timbre data during transmission or storage. Of course, to further enhance the security of the timbre data, multiple layers of encryption can be used to increase the difficulty of cracking. After generating the keys, the keys are distributed and stored in the central control management system.
[0054] Step S2022: Encrypt multiple of the above-mentioned timbre features using the public key to obtain the above-mentioned timbre data.
[0055] Specifically, the public key generated above is used to encrypt multiple timbre features, resulting in encrypted timbre data. Encryption transforms the original timbre data into seemingly meaningless ciphertext, thereby protecting the privacy and security of the timbre data.
[0056] To improve the efficiency and quality of sound processing, in an optional implementation, after step S203, the method further includes:
[0057] Step S301: Use the private key to decrypt the timbre data to obtain multiple timbre features.
[0058] Specifically, the aforementioned private key is used to decrypt the timbre data, thereby decrypting the encrypted data and restoring the encrypted timbre data to its original timbre characteristics.
[0059] Step S302: Compare the target timbre with multiple timbre features to determine whether the target timbre matches any of the timbre data.
[0060] Specifically, the decrypted data will include multiple timbre features, such as frequency, waveform, resonance, and harmonic ratio. These features can be used to describe the characteristics of the timbre. By extracting these features, the characteristics of the timbre can be understood more clearly. The features of the target timbre are compared with the decrypted timbre features to determine whether the target timbre matches any timbre data. Similarity calculations or pattern matching using machine learning algorithms can be used to determine whether the target timbre matches the timbre data stored in the database.
[0061] To enhance the convenience and intelligence of the home experience, in one optional implementation, after step S203, the method further includes:
[0062] Step S401: Extract the wake-up word from the above voice control command and enable the voice scene addition mode. The wake-up word includes the name of the above home device and the operation to be performed by controlling the above home device. The voice scene addition mode is a mode that adds the state scene of each of the above home devices through voice.
[0063] Specifically, users can wake up the central control management system by using a wake word, select to enable the voice scene addition mode, and use voice commands such as "turn on xxx switch", "turn off xxx air conditioner", and "set the air conditioner to cooling 20 degrees" to extract the names of home appliances and the operations to be performed by the home appliances from the voice control commands.
[0064] Step S402: If the target timbre matches any of the above timbre data, add and store scene information according to the wake-up word and the above voice control command. The scene information includes the user information that issued the above voice control command, the above home device and the corresponding state that the above home device needs to be triggered.
[0065] Specifically, the system compares the voice of the user issuing the voice control command with the voice data stored in the database. If the user is identified as a member of the household whose voice information has been stored, the system directly adds the home appliances to be executed in the scene and their corresponding states, storing them in the central control management system. Multiple addition methods are also available. For example, scenes can be added based on the current device status. If the desired home appliance is already turned on, the status of each appliance can be saved as a new scene, allowing for quick scene setup. If the user needs to add the status of only some appliances, they can speak the desired appliance in this voice scene addition mode. This provides more scene addition methods, freeing users from traditional scene addition methods, making it more convenient and improving the user's home experience.
[0066] Step S403: When the above scene information is added, respond to the user's selection operation, the selection operation includes an execution operation and a non-execution operation, the execution operation is the operation to execute the state that the home device corresponding to the above scene information needs to trigger.
[0067] Specifically, in the voice scene addition mode, users can choose whether the home device should actually perform the operation. If the user chooses not to perform the operation, only the home device that needs to perform the operation in the scene and the corresponding state that the home device needs to trigger will be added.
[0068] Step S404: If the user's selection operation is the execution operation, control the corresponding home appliance to execute the operation corresponding to the scene information.
[0069] Specifically, if the user selects to perform an operation, the home devices that need to be executed in that scenario and the corresponding states that need to be triggered for the home devices will be added, and the home devices will also be triggered to perform the corresponding operations.
[0070] To improve speech recognition accuracy and ensure system security and accuracy, in an optional implementation, after step S203, the method further includes:
[0071] Step S501: If the target timbre does not match any of the aforementioned timbre data, a prompt message is issued. The prompt message is used to indicate that the target user's voice information is not stored and the target user's identity cannot be identified.
[0072] Specifically, if the target voice does not match any of the aforementioned voice data, it indicates that the user issuing the voice control command, i.e., the target user, may not be a member of the household or their identity cannot be accurately identified. In this case, the system will issue a prompt message, such as, "Sorry, we cannot identify you. Please try again." This informs the user that the system cannot recognize their identity and that other measures need to be taken to verify their identity, such as re-entering voice information or using other authentication methods. Such prompts help users realize that the system cannot accurately identify them, reminding them that they may need to adjust their voice input method or take other measures to improve recognition accuracy. This allows users to understand the system's recognition status in a timely manner, improving the user experience while also ensuring the system's security and accuracy.
[0073] To improve user experience, in one optional implementation, step S204 includes:
[0074] Step S2041: In the case that the home device controlled by the above voice control command is going to perform an operation in a private scenario, determine whether the current user has management authority based on the target tone. The private scenario is a scenario set by the user with the above management authority that belongs to the home device status scenario and can only be opened by the user.
[0075] Specifically, it allows for the allocation of administrative privileges to certain users within a household, enabling them to create personalized scenarios; or different users can activate different device types under the same scenario name. If a user issues a voice control command within the household, and the scenario involving the home appliances and the desired state of those appliances is a private scenario set by another user with administrative privileges, then the current user will not have permission to activate that scenario and will be unable to do so. Therefore, for any attempt to trigger a private scenario, the system will further determine whether the user has administrative privileges for that private scenario. Users with administrative privileges can differentiate between private scenarios set by different users based on their voice timbre when creating scenarios, and manage the triggering of these private scenarios.
[0076] Step S2042: If the current user has the aforementioned management permissions, control the corresponding home appliances to perform the operations corresponding to the aforementioned voice control commands.
[0077] Specifically, if it is determined that the current user has administrative privileges and the scene belongs to the user's private settings, then the corresponding home appliances will be controlled to perform the operations corresponding to the voice control commands. For example, if the private scene name is "Exercise Scene" and both the male and female users have administrative privileges, the corresponding scene devices will be activated based on the user's voice. In this exercise scene, the male user can turn on the speakers, treadmill, etc., while the female user can turn on the TV and do yoga. Conversely, if it is determined that the current user does not have administrative privileges or the scene does not belong to the user's private settings, then the operations corresponding to the voice control commands cannot be executed.
[0078] Step S2043: When the operation scenario to be performed by the home device controlled by the above voice control command is a general scenario, control the corresponding home device to perform the operation corresponding to the above voice control command. The above general scenario is a scenario in which both the above user without the above management authority and the above user with the above management authority can perform the operation.
[0079] Specifically, a general scenario is a scenario that can be set by both ordinary users and management users. Ordinary users are users without management privileges, while management users are users with management privileges. If the scenario involving the home devices and the state to be triggered by the issued voice control command is a general scenario, then the corresponding home devices will be directly controlled to perform the operation corresponding to the voice control command.
[0080] This embodiment relates to a specific voice recognition method for home appliances, such as... Figure 3 As shown, it includes the following steps:
[0081] Step S1: The central control management system and other smart home devices in the home have been configured with the network. The user enters the central control device management system with voice recognition function.
[0082] Step S2: After entering the central control management system, the user needs to record their voice information. The user's voice characteristics can be determined by reading a text with multiple sound segments. The central control management system will collect and save the voice, upload it to the cloud to analyze the timbre characteristics, and then generate a key from the recognition results and send it to the local central control management system.
[0083] Step S3: When creating a scene, you can create private scenes and general scenes. Creating a private scene requires management privileges. You can set up a scene with your own characteristics or a scene set up by a user under the same scene name for different users. General scenes can be created by both ordinary users and administrators.
[0084] Step S4: The user wakes up the central control management system with a wake-up word and selects to enable the voice scene addition mode. Two addition methods are provided: The first is custom scene addition, where the user adds the devices and corresponding states to be triggered in the scene using voice commands such as "turn on xxx switch", "turn off xxx air conditioner", "set air conditioner to cooling 20 degrees". The second is adding based on the current status of home devices. If the home device that the user wants to turn on is already turned on, the status of each home device can be saved as a new scene, which can quickly complete the scene setting. If the user needs to add the status of some home devices, they can say the home device they want to add in this addition mode.
[0085] Step S5: In scene addition mode, users can choose whether home appliances should actually perform the action.
[0086] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0087] This application also provides a voice recognition device for home appliances. It should be noted that the voice recognition device for home appliances in this application can be used to execute the voice recognition method for home appliances provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0088] The following describes the voice recognition device for home appliances provided in the embodiments of this application.
[0089] Figure 4 This is a structural block diagram of a home appliance voice recognition device according to an embodiment of this application. Figure 4 As shown, the device includes:
[0090] The acquisition unit 10 is used to acquire the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information are in one-to-one correspondence, and the voice information and the timbre features are in one-to-one correspondence.
[0091] Specifically, the voice information recorded by all users in the family is obtained through the voice acquisition device. The voice information can be recorded and saved by reading a text with multiple segments, and then transmitted to the cloud. When the cloud obtains the above voice information, it extracts and analyzes the timbre features of the above voice information, including features such as pitch, volume, timbre, and frequency.
[0092] The encryption unit 20 is used to encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data.
[0093] Specifically, in order to encrypt the timbre features and ensure that the user's voice information and personal privacy are protected, all timbre features are stored in encrypted form.
[0094] The receiving unit 30 is used to receive the voice control command issued by the user, perform the timbre feature analysis on the timbre of the voice control command to obtain the target timbre, and the voice control command is the control command issued by the user through voice to control home appliances to perform corresponding operations.
[0095] Specifically, it receives voice control commands from users, such as "turn on the lights" or "turn up the volume," extracts and analyzes the timbre of the user's voice control commands, and obtains the target timbre.
[0096] The first control unit 40 is used to control the corresponding home appliance to perform the operation corresponding to the voice control command when the target timbre matches any of the aforementioned timbre data.
[0097] Specifically, the target timbre is matched with multiple timbre data stored in the database to find timbre data that matches the target timbre. After finding timbre data that matches the target timbre, the corresponding home appliances are controlled to perform the operation corresponding to the voice control command based on the matching result, such as turning on the lights or adjusting the air conditioner temperature, thus realizing the execution of the voice control command.
[0098] In this embodiment, the acquisition unit is used to acquire voice information from multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. The encryption unit is used to encrypt the multiple timbre features to obtain multiple timbre data. The receiving unit is used to receive voice control commands issued by the users and perform the timbre feature analysis on the timbre of the voice control commands to obtain target timbre. The voice control commands are control commands issued by the users through voice to control home appliances to perform corresponding operations. The first control unit is used to control the corresponding home appliances to perform the operation corresponding to the voice control commands when the target timbre matches any of the timbre data. This application obtains the voice information of all family members in advance and performs voice feature analysis to obtain the voice features of each user. To ensure the security of user voice data, all voice features are encrypted and stored. During use, when any user in the family issues a voice control command to control home appliances, the voice of that user issuing the command is analyzed for voice features and compared with the voice features stored in the database to confirm whether the user is a family member. If it is confirmed that the user is indeed a family member, the corresponding home appliance is controlled to execute the voice control command. This effectively prevents strangers from entering or controlling home appliances. This application solves the problem of threats to user privacy and data security in existing home appliance voice recognition technologies.
[0099] To improve the speech recognition rate, in one optional implementation, the acquisition unit includes:
[0100] The preprocessing module is used to perform preprocessing steps, sequentially performing preprocessing operations and digitization operations on the aforementioned sound information to obtain sound audio. The aforementioned preprocessing operations include at least noise reduction and filtering operations, and the aforementioned digitization operations are used to convert the analog signal of the sound into a digital signal.
[0101] Specifically, the acquired sound information contains a certain amount of noise and interference. To ensure more accurate subsequent timbre feature analysis, denoising software or algorithms are needed to process the sound, removing background noise and interference to make the sound clearer. Common denoising methods include mean filtering, median filtering, and wavelet denoising; and low-pass or high-pass filters are used to filter the sound, adjusting the frequency distribution to make the sound smoother or highlight specific frequency components. An analog-to-digital converter is also needed to convert the analog sound signal into a digital signal. Through sampling and quantization operations, the sound signal is converted into digital form for subsequent digital sound signal processing and analysis.
[0102] The first analysis module is used to perform the first analysis step, which uses spectrum analysis to analyze the above-mentioned audio signal, converts the time-domain signal of the above-mentioned audio signal into a frequency-domain signal, and obtains the spectrum diagram of the above-mentioned audio signal. The spectrum diagram represents the energy distribution of the audio signal at different frequencies.
[0103] Specifically, spectrum analysis methods include algorithms such as Fourier transform or fast Fourier transform. Using Fourier transform or fast Fourier transform, the time-domain signal of the sound is converted into a frequency-domain signal to obtain the spectrum of the sound audio, which shows the energy distribution at different frequencies, thereby helping to understand the frequency components and characteristics of the sound. The spectrum is usually plotted with frequency on the horizontal axis and amplitude on the vertical axis.
[0104] The second analysis module is used to perform the second analysis step, which performs harmonic analysis on the above spectrum diagram to obtain harmonic information, including the harmonic content and frequency components in the above audio signal.
[0105] Specifically, harmonics refer to integer multiples of the frequency components in a sound signal and are an important component of sound characteristics. Harmonic analysis is performed on the spectrum diagram. Based on the Fourier coefficients, the amplitude and phase of the harmonics in the audio signal are determined, and the harmonic content and frequency components in the audio signal are identified and extracted to obtain harmonic information.
[0106] The third analysis module is used to perform the third analysis step, which statistically analyzes the above spectrum diagram and the above harmonic information to obtain sound characteristics. The above sound characteristics include at least the spectral peak frequency, spectral width and harmonic ratio.
[0107] Specifically, statistical analysis is performed on the spectrum and harmonic information to calculate individual timbre characteristics such as spectral peak frequency, spectral width, and harmonic ratio, i.e., the timbre characteristics of a user.
[0108] The repeat module sequentially repeats the above preprocessing steps, the above first analysis step, the above second analysis step, and the above third analysis step until all the above timbre features are obtained.
[0109] Specifically, the voice information recorded by all family members is analyzed for timbre characteristics according to the above preprocessing steps, the above first analysis step, the above second analysis step and the above third analysis step, and finally the timbre characteristics of all user members are obtained.
[0110] To enhance data security, in one optional implementation, the encryption unit includes:
[0111] The generation module uses an encryption algorithm to generate multiple keys corresponding to the aforementioned timbre features, including a public key and a private key.
[0112] Specifically, an encryption algorithm is first used to generate a corresponding public and private key for each timbre feature. The public key is used to encrypt the data, and the private key is used to decrypt the data. This ensures the security of the timbre data during transmission or storage. Of course, to further enhance the security of the timbre data, multiple layers of encryption can be used to increase the difficulty of cracking. After generating the keys, the keys are distributed and stored in the central control management system.
[0113] The encryption module uses the aforementioned public key to encrypt multiple of the aforementioned timbre features, thereby obtaining the aforementioned timbre data.
[0114] Specifically, the public key generated above is used to encrypt multiple timbre features, resulting in encrypted timbre data. Encryption transforms the original timbre data into seemingly meaningless ciphertext, thereby protecting the privacy and security of the timbre data.
[0115] To improve the efficiency and quality of sound processing, in one optional embodiment, the above-mentioned apparatus further includes:
[0116] The decryption unit is used to receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, and then use the private key to decrypt the timbre data to obtain multiple timbre features.
[0117] Specifically, the aforementioned private key is used to decrypt the timbre data, thereby decrypting the encrypted data and restoring the encrypted timbre data to its original timbre characteristics.
[0118] The matching unit is used to compare the target timbre with multiple timbre features to determine whether the target timbre matches any of the timbre data.
[0119] Specifically, the decrypted data will include multiple timbre features, such as frequency, waveform, resonance, and harmonic ratio. These features can be used to describe the characteristics of the timbre. By extracting these features, the characteristics of the timbre can be understood more clearly. The features of the target timbre are compared with the decrypted timbre features to determine whether the target timbre matches any timbre data. Similarity calculations or pattern matching using machine learning algorithms can be used to determine whether the target timbre matches the timbre data stored in the database.
[0120] To enhance the convenience and smart home experience, in one optional embodiment, the device further includes:
[0121] The extraction unit is used to receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, extract the wake word in the voice control command and start the voice scene addition mode. The wake word includes the name of the home device and the operation to be performed by controlling the home device. The voice scene addition mode is a mode that adds the state scene of each home device through voice.
[0122] Specifically, users can wake up the central control management system by using a wake word, select to enable the voice scene addition mode, and use voice commands such as "turn on xxx switch", "turn off xxx air conditioner", and "set the air conditioner to cooling 20 degrees" to extract the names of home appliances and the operations to be performed by the home appliances from the voice control commands.
[0123] The storage unit is used to add and store scene information based on the wake word and the voice control command when the target timbre matches any of the timbre data. The scene information includes the user information that issued the voice control command, the home appliance, and the corresponding state that the home appliance needs to be triggered.
[0124] Specifically, the system compares the voice of the user issuing the voice control command with the voice data stored in the database. If the user is identified as a member of the household whose voice information has been stored, the system directly adds the home appliances to be executed in the scene and their corresponding states, storing them in the central control management system. Multiple addition methods are also available. For example, scenes can be added based on the current device status. If the desired home appliance is already turned on, the status of each appliance can be saved as a new scene, allowing for quick scene setup. If the user needs to add the status of only some appliances, they can speak the desired appliance in this voice scene addition mode. This provides more scene addition methods, freeing users from traditional scene addition methods, making it more convenient and improving the user's home experience.
[0125] The response unit is used to respond to the user's selection operation when the above scene information is added. The selection operation includes an execution operation and a non-execution operation. The execution operation is the operation to execute the state that the home device corresponding to the above scene information needs to trigger.
[0126] Specifically, in the voice scene addition mode, users can choose whether the home device should actually perform the operation. If the user chooses not to perform the operation, only the home device that needs to perform the operation in the scene and the corresponding state that the home device needs to trigger will be added.
[0127] The second control unit is used to control the corresponding home appliance to perform the operation corresponding to the scene information when the user's selection operation is the execution operation.
[0128] Specifically, if the user selects to perform an operation, the home devices that need to be executed in that scenario and the corresponding states that need to be triggered for the home devices will be added, and the home devices will also be triggered to perform the corresponding operations.
[0129] To improve speech recognition accuracy and ensure system security and accuracy, in one optional embodiment, the above-mentioned device further includes:
[0130] The third control unit is configured to, after receiving the voice control command issued by the user and performing timbre feature analysis on the timbre of the voice control command to obtain the target timbre, control the issuance of a prompt message if the target timbre does not match any of the timbre data. The prompt message is used to indicate that the target user's voice information has not been stored and the identity of the target user cannot be identified.
[0131] Specifically, if the target voice does not match any of the aforementioned voice data, it indicates that the user issuing the voice control command, i.e., the target user, may not be a member of the household or their identity cannot be accurately identified. In this case, the system will issue a prompt message, such as, "Sorry, we cannot identify you. Please try again." This informs the user that the system cannot recognize their identity and that other measures need to be taken to verify their identity, such as re-entering voice information or using other authentication methods. Such prompts help users realize that the system cannot accurately identify them, reminding them that they may need to adjust their voice input method or take other measures to improve recognition accuracy. This allows users to understand the system's recognition status in a timely manner, improving the user experience while also ensuring the system's security and accuracy.
[0132] To improve user experience, in one optional implementation, the first control unit includes:
[0133] The judgment module determines whether the current user has management privileges based on the target tone when the scenario in which the home device controlled by the voice control command is to perform an operation is a private scenario. The private scenario is a scenario set by the user with the management privileges that belongs to the user and can only be opened by the user.
[0134] Specifically, it allows for the allocation of administrative privileges to certain users within a household, enabling them to create personalized scenarios; or different users can activate different device types under the same scenario name. If a user issues a voice control command within the household, and the scenario involving the home appliances and the desired state of those appliances is a private scenario set by another user with administrative privileges, then the current user will not have permission to activate that scenario and will be unable to do so. Therefore, for any attempt to trigger a private scenario, the system will further determine whether the user has administrative privileges for that private scenario. Users with administrative privileges can differentiate between private scenarios set by different users based on their voice timbre when creating scenarios, and manage the triggering of these private scenarios.
[0135] The first control module, when the current user has the aforementioned management permissions, controls the corresponding home appliances to perform the operations corresponding to the aforementioned voice control commands.
[0136] Specifically, if it is determined that the current user has administrative privileges and the scene belongs to the user's private settings, then the corresponding home appliances will be controlled to perform the operations corresponding to the voice control commands. For example, if the private scene name is "Exercise Scene" and both the male and female users have administrative privileges, the corresponding scene devices will be activated based on the user's voice. In this exercise scene, the male user can turn on the speakers, treadmill, etc., while the female user can turn on the TV and do yoga. Conversely, if it is determined that the current user does not have administrative privileges or the scene does not belong to the user's private settings, then the operations corresponding to the voice control commands cannot be executed.
[0137] The second control module, when the operation scenario to be performed by the home device controlled by the above voice control command is a general scenario, controls the corresponding home device to perform the operation corresponding to the above voice control command. The above general scenario is a scenario in which both the above user without the above management authority and the above user with the above management authority can perform the operation.
[0138] Specifically, a general scenario is a scenario that can be set by both ordinary users and management users. Ordinary users are users without management privileges, while management users are users with management privileges. If the scenario involving the home devices and the state to be triggered by the issued voice control command is a general scenario, then the corresponding home devices will be directly controlled to perform the operation corresponding to the voice control command.
[0139] The aforementioned home appliance voice recognition device includes a processor and a memory. All the aforementioned units are stored as program units in the memory, and the processor executes these program units to achieve the corresponding functions. All the aforementioned modules are located in the same processor; alternatively, the aforementioned modules may be located in different processors in any combination.
[0140] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the threats to user privacy and data security posed by existing technologies for voice recognition in home devices.
[0141] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0142] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the home appliance voice recognition method.
[0143] Specifically, voice recognition methods for home appliances include:
[0144] Step S201: Obtain the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information correspond one-to-one, and the voice information and the timbre features correspond one-to-one.
[0145] Step S202: Encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data;
[0146] Step S203: Receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations.
[0147] Step S204: If the target timbre matches any of the aforementioned timbre data, control the corresponding home appliance to execute the operation corresponding to the aforementioned voice control command.
[0148] This invention provides a processor for running a program, wherein the program executes the aforementioned home appliance voice recognition method.
[0149] Specifically, voice recognition methods for home appliances include:
[0150] Step S201: Obtain the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information correspond one-to-one, and the voice information and the timbre features correspond one-to-one.
[0151] Step S202: Encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data;
[0152] Step S203: Receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations.
[0153] Step S204: If the target timbre matches any of the aforementioned timbre data, control the corresponding home appliance to execute the operation corresponding to the aforementioned voice control command.
[0154] This invention provides a speech recognition system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0155] Step S201: Obtain the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information correspond one-to-one, and the voice information and the timbre features correspond one-to-one.
[0156] Step S202: Encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data;
[0157] Step S203: Receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations.
[0158] Step S204: If the target timbre matches any of the aforementioned timbre data, control the corresponding home appliance to execute the operation corresponding to the aforementioned voice control command.
[0159] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0160] Step S201: Obtain the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The users and the voice information correspond one-to-one, and the voice information and the timbre features correspond one-to-one.
[0161] Step S202: Encrypt multiple of the above-mentioned timbre features to obtain multiple timbre data;
[0162] Step S203: Receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations.
[0163] Step S204: If the target timbre matches any of the aforementioned timbre data, control the corresponding home appliance to execute the operation corresponding to the aforementioned voice control command.
[0164] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0165] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0166] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0167] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0168] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0169] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0170] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0171] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0172] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0173] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0174] 1) The home appliance voice recognition method of this application firstly acquires voice information from multiple users and performs timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. Then, the multiple timbre features are encrypted to obtain multiple timbre data. Afterward, a voice control command issued by the user is received, and the timbre of the voice control command is analyzed using the aforementioned timbre features to obtain a target timbre. The voice control command is a control command issued by the user through voice to control the home appliance to perform corresponding operations. Finally, if the target timbre matches any of the aforementioned timbre data, the corresponding home appliance is controlled to perform the operation corresponding to the voice control command. This application obtains the voice information of all family members in advance and performs voice feature analysis to obtain the voice features of each user. To ensure the security of user voice data, all voice features are encrypted and stored. During use, when any user in the family issues a voice control command to control home appliances, the voice of that user issuing the command is analyzed for voice features and compared with the voice features stored in the database to confirm whether the user is a family member. If it is confirmed that the user is indeed a family member, the corresponding home appliance is controlled to execute the voice control command. This effectively prevents strangers from entering or controlling home appliances. This application solves the problem of threats to user privacy and data security in existing home appliance voice recognition technologies.
[0175] 2) The home appliance voice recognition device of this application includes an acquisition unit for acquiring voice information from multiple users and performing timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. An encryption unit is used to encrypt the multiple timbre features to obtain multiple timbre data. A receiving unit is used to receive voice control commands issued by the users and perform the timbre feature analysis on the timbre of the voice control commands to obtain a target timbre. The voice control commands are control commands issued by the users through voice to control home appliances to perform corresponding operations. A first control unit is used to control the corresponding home appliance to perform the operation corresponding to the voice control command when the target timbre matches any of the timbre data. This application obtains the voice information of all family members in advance and performs voice feature analysis to obtain the voice features of each user. To ensure the security of user voice data, all voice features are encrypted and stored. During use, when any user in the family issues a voice control command to control home appliances, the voice of that user issuing the command is analyzed for voice features and compared with the voice features stored in the database to confirm whether the user is a family member. If it is confirmed that the user is indeed a family member, the corresponding home appliance is controlled to execute the voice control command. This effectively prevents strangers from entering or controlling home appliances. This application solves the problem of threats to user privacy and data security in existing home appliance voice recognition technologies.
[0176] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A voice recognition method for home appliances, characterized in that, The method includes: The system acquires voice information from multiple users and performs timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. Each user corresponds one-to-one with the voice information, and each voice information corresponds one-to-one with the timbre features. The multiple timbre features are encrypted to obtain multiple timbre data; The system receives voice control commands issued by the user, performs timbre feature analysis on the timbre of the voice control commands to obtain target timbre, and the voice control commands are control commands issued by the user through voice to control home appliances to perform corresponding operations; If the target timbre matches any of the timbre data, the corresponding home appliance is controlled to perform the operation corresponding to the voice control command; After receiving a voice control command from the user and performing timbre feature analysis on the timbre of the voice control command to obtain a target timbre, the method further includes: extracting a wake-up word from the voice control command and activating a voice scene addition mode, wherein the wake-up word includes the name of the home appliance and the operation to be performed by controlling the home appliance, and the voice scene addition mode is a mode for adding state scenes of each home appliance through voice; when the target timbre matches any of the timbre data, adding and storing scene information according to the wake-up word and the voice control command, wherein the scene information includes user information of the user who issued the voice control command, the home appliance, and the state to be triggered for the corresponding home appliance; when the scene information is added, responding to the user's selection operation, wherein the selection operation includes an execution operation and a non-execution operation, wherein the execution operation is the operation to execute the state to be triggered for the home appliance corresponding to the scene information; when the user's selection operation is the execution operation, controlling the corresponding home appliance to execute the operation corresponding to the scene information; Controlling the corresponding home appliances to execute the operation corresponding to the voice control command includes: when the scenario in which the home appliances controlled by the voice control command are to perform the operation is a private scenario, determining whether the current user has management privileges based on the target voice tone; the private scenario is a scenario set by the user with management privileges that belongs to the user and can only be activated by the user; when the current user has management privileges, controlling the corresponding home appliances to perform the operation corresponding to the voice control command; when the scenario in which the home appliances controlled by the voice control command are to perform the operation is a general scenario, controlling the corresponding home appliances to perform the operation corresponding to the voice control command; the general scenario is a scenario in which both the user without management privileges and the user with management privileges can perform the operation.
2. The method according to claim 1, characterized in that, Timbre feature analysis is performed on multiple sound information sources to obtain multiple timbre features, including: The preprocessing step involves sequentially performing preprocessing and digitization operations on the sound information to obtain audio. The preprocessing operations include at least noise reduction and filtering operations, and the digitization operations are used to convert the analog signal of the sound into a digital signal. The first analysis step involves using spectrum analysis to analyze the audio signal, converting the time-domain signal of the audio signal into a frequency-domain signal, and obtaining a spectrum diagram of the audio signal. The spectrum diagram represents the energy distribution of the audio signal at different frequencies. The second analysis step involves performing harmonic analysis on the spectrum to obtain harmonic information, which includes the harmonic content and frequency components in the audio signal. The third analysis step involves statistically analyzing the spectrum and the harmonic information to obtain a single timbre feature, which includes at least the peak frequency, the spectral width, and the harmonic ratio. The preprocessing step, the first analysis step, the second analysis step, and the third analysis step are repeated in sequence until all the timbre features are obtained.
3. The method according to claim 1, characterized in that, Encryption processing is performed on multiple timbre features to obtain multiple timbre data, including: A cryptographic algorithm is used to generate multiple keys corresponding to the timbre features, the keys including a public key and a private key; The timbre data is obtained by encrypting multiple timbre features using the public key.
4. The method according to claim 3, characterized in that, After receiving a voice control command from the user and performing timbre feature analysis on the timbre of the voice control command to obtain the target timbre, the method further includes: The timbre data is decrypted using the private key to obtain multiple timbre features; The target timbre is compared with multiple timbre features to determine whether the target timbre matches any one of the timbre data.
5. The method according to any one of claims 1 to 4, characterized in that, After receiving the voice control command from the user, the method further includes: If the target timbre does not match any of the timbre data, a prompt message is issued, indicating that the target user's voice information is not stored and the target user's identity cannot be identified.
6. A voice recognition device for home appliances, characterized in that, The device includes: The acquisition unit is used to acquire the voice information of multiple users and perform timbre feature analysis on the multiple voice information to obtain multiple timbre features. The timbre feature analysis is a process of quantitatively analyzing the timbre of the voice information. The user and the voice information are in one-to-one correspondence, and the voice information and the timbre features are in one-to-one correspondence. An encryption unit is used to encrypt multiple timbre features to obtain multiple timbre data; The receiving unit is configured to receive the voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain the target timbre, wherein the voice control command is a control command issued by the user through voice to control home appliances to perform corresponding operations; The first control unit is configured to control the corresponding home appliance to perform the operation corresponding to the voice control command when the target timbre matches any of the timbre data. The device further includes: an extraction unit, configured to, after receiving a voice control command issued by the user, perform timbre feature analysis on the timbre of the voice control command to obtain a target timbre, extract a wake-up word from the voice control command and activate a voice scene addition mode, wherein the wake-up word includes the name of the home appliance and the operation to be performed by controlling the home appliance, and the voice scene addition mode is a mode for adding the state scene of each home appliance through voice; a storage unit, configured to, when the target timbre matches any of the timbre data, add scene information according to the wake-up word and the voice control command and store it, wherein the scene information includes user information of the user who issued the voice control command, the home appliance, and the state to be triggered for the corresponding home appliance; a response unit, configured to, when the scene information is added, respond to the user's selection operation, wherein the selection operation includes an execution operation and a non-execution operation, wherein the execution operation is the operation to execute the state to be triggered for the home appliance corresponding to the scene information; and a second control unit, configured to, when the user's selection operation is the execution operation, control the corresponding home appliance to execute the operation corresponding to the scene information; The first control unit includes: a judgment module, which, when the scenario in which the home device controlled by the voice control command is to perform an operation is a private scenario, determines whether the current user has management authority based on the target voice tone; the private scenario is a scenario set by the user with management authority that belongs to the user and can only be activated by the user; a first control module, which, when the current user has management authority, controls the corresponding home device to perform the operation corresponding to the voice control command; and a second control module, which, when the scenario in which the home device controlled by the voice control command is to perform an operation is a general scenario, controls the corresponding home device to perform the operation corresponding to the voice control command; the general scenario is a scenario in which both the user without management authority and the user with management authority can perform the operation.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 5.
8. A speech recognition system, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 5.
Citation Information
Patent Citations
Objective evaluation method for singing tone purity based on audio frequency spectrum characteristic analysis
CN101650940A
Smart home system control implementation mode
CN111429897A
Smart home voice control method based on user habits and system thereof, and storage medium
CN113611306A
Voiceprint recognition method and control equipment
CN116189690A
