Method and system for voice control of smart home equipment based on large model Agent

By using a large model Agent in smart home devices for semantic understanding of voice data, the problem of unrecognition in complex scenarios in the prior art is solved, and a higher user experience and voice control accuracy of smart home devices are achieved.

CN118968986APending Publication Date: 2024-11-15FUZHOU MILI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411248485.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing voice-controlled smart home devices cannot accurately understand user intentions in complex scenarios, especially due to the lack of understanding of concepts such as ‘files’, which frequently occur.

Method used

The voice control method based on the big model Agent is adopted, and the audio data is collected and converted into text data is used, and the big model Agent is used for semantic understanding. Combined with training and user feedback, the understanding ability is continuously improved, and control information is sent to smart home devices.

Benefits of technology

It improves the accuracy of voice control and the user experience of smart home devices. Through the learning ability of the big model Agent, the voice assistant becomes smarter and smarter the more you use it, and can better understand user intentions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968986A_ABST
    Figure CN118968986A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of smart home, in particular to a method and a system for voice control of smart home equipment based on a large model Agent. The method comprises the following steps: collecting audio data, and converting the audio data into text data; performing semantic understanding on the text data by using a large model Agent to obtain understood control information; and finally, sending the control information to the corresponding smart home equipment. Wherein the understanding and learning capabilities of the large model Agent are utilized, so that the semantic understanding capability is improved, and the intention of a user can be more accurately understood; meanwhile, based on the learning ability, the voice assistant is more intelligent when being used; according to the scheme, the user experience of voice control of the smart home is improved through combination of the two.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a method and system for voice controlling smart home devices based on a large model Agent. Background Art

[0002] Smart home voice control is widely used. Users can wake up the voice assistant on mobile phone apps, tablets, central control screens and other devices, and control smart home devices through voice input, such as controlling light switches, controlling the temperature of the air conditioner, etc.

[0003] However, the existing voice control has serious experience problems, mainly manifested in: the voice assistant cannot understand the meaning of the user's voice, especially in complex scenarios. For example, "turn down the air conditioner speed by one gear", because the air conditioner speed is generally low, medium and high automatic speed, the voice assistant cannot understand the concept of "gear". The current common practice is keyword matching. Taking the reduction of air conditioning temperature as an example, a preset keyword group (cold, cool, etc.) is implemented, and the command to control the temperature reduction is sent when the above keywords are matched. The effect of keyword matching mainly depends on the coverage of the keywords. If the coverage is not enough, it will not be recognized. However, due to the complexity of user usage scenarios and the differences in user voice habits, it is impossible to fully cover all situations. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a method and system for voice control of smart home devices based on a large model Agent.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is: The method for voice controlling smart home devices based on a large model agent comprises the following steps: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data to obtain the understood control information; S3. Send the control information to the corresponding smart home device.

[0006] Furthermore, before step S2, the method further includes: training the large model Agent.

[0007] Furthermore, step S2 specifically includes: presetting a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

[0008] Furthermore, the user confirms that the guess is successful or unsuccessful; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0009] Furthermore, if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0010] Furthermore, before step S1, the method further includes: waking up the voice collection function.

[0011] A system for voice-controlled smart home devices based on a large model Agent includes a processor and a memory, wherein the memory stores a program or instruction, and when the program or instruction is executed by the processor, the following steps are implemented: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data to obtain the understood control information; S3. Send the control information to the corresponding smart home device.

[0012] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: training the large model Agent.

[0013] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

[0014] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: The user confirmation information is a successful guess or an unsuccessful guess; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0015] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0016] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: waking up the voice collection function.

[0017] The beneficial effects of the present invention are: The method and system for voice control of smart home devices based on a large model agent provided by the present invention collect audio data and convert the audio data into text data; then use the large model agent to perform semantic understanding on the text data to obtain the understood control information; finally, send the control information to the corresponding smart home device. Among them, the understanding and learning ability of the large model agent is used to improve the ability of semantic understanding and more accurately understand the user's intention; at the same time, based on the learning ability, the voice assistant becomes smarter with use; this solution improves the user experience of voice control of smart home through the combination of the two. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The figure is a flowchart of the steps of the method for voice control of smart home devices based on a large model Agent of the present invention; Figure 2 Shown is a schematic diagram of the training process of the large model Agent of the present invention; Figure 3 Shown is a schematic diagram of the test results of the large model Agent of the present invention; Figure 4 Shown is a schematic diagram of the test results of the large model Agent of the present invention; Figure 5 The figure is a flowchart of the steps of the method for voice control of smart home devices based on a large model Agent of the present invention; Figure 6 The module diagram of the voice-controlled smart home device based on the large model Agent of the present invention is shown; Description of Figure Numbers: 1-Processor; 2-Memory. DETAILED DESCRIPTION

[0019] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments: like Figure 1As shown, the method for voice controlling smart home devices based on a large model Agent provided by the present invention comprises the following steps: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data to obtain the understood control information; S3. Send the control information to the corresponding smart home device.

[0020] From the above description, it can be seen that the present invention has the following beneficial effects: The method of voice control of smart home devices based on a large model agent provided by the present invention collects audio data and converts the audio data into text data; then uses the large model agent to perform semantic understanding on the text data to obtain the understood control information; and finally sends the control information to the corresponding smart home device. Among them, the understanding and learning ability of the large model agent is utilized to improve the ability of semantic understanding and more accurately understand the user's intention; at the same time, based on the learning ability, the voice assistant becomes smarter as it is used; this solution improves the user experience of voice control of smart home through the combination of the two.

[0021] Furthermore, before step S2, the method further includes: training the large model Agent.

[0022] Furthermore, the training method of the large model Agent in step S2 includes: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

[0023] From the above description, it can be seen that through the above method, the large model Agent has the ability to learn, can continuously try to guess and correct errors, and confirm the guessing results through user feedback, so as to continuously improve the semantic data and enhance the semantic understanding ability of text data.

[0024] Furthermore, if the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0025] From the above description, we can see that the large model Agent can continue to guess the intention of the text data when the guess is unsuccessful, which enables it to have the ability to continue learning.

[0026] Furthermore, if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0027] From the above description, we can see that on the basis of the above, the function of user-defined learning is also added. Users can add further explained semantics to improve the rapid learning ability of large model Agent.

[0028] Furthermore, before step S1, the method further includes: waking up the voice collection function.

[0029] From the above description, it can be seen that before collecting audio data, a wake-up operation needs to be performed first, and audio data is collected only when the voice collection function is awakened.

[0030] A system for voice-controlled smart home devices based on a large model Agent includes a processor and a memory, wherein the memory stores a program or instruction, and when the program or instruction is executed by the processor, the following steps are implemented: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data to obtain the understood control information; S3. Send the control information to the corresponding smart home device.

[0031] From the above description, it can be seen that the present invention has the following beneficial effects: The system for voice-controlled smart home devices based on a large model agent provided by the present invention collects audio data and converts the audio data into text data; then uses the large model agent to perform semantic understanding on the text data to obtain the understood control information; and finally sends the control information to the corresponding smart home device. The understanding and learning capabilities of the large model agent are utilized to improve the ability of semantic understanding and more accurately understand the user's intention; at the same time, based on the learning ability, the voice assistant becomes smarter as it is used; this solution improves the user experience of voice-controlled smart homes by combining the two.

[0032] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: training the large model Agent.

[0033] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

[0034] From the above description, it can be seen that through the above method, the large model Agent has the ability to learn, can continuously try to guess and correct errors, and confirm the guessing results through user feedback, so as to continuously improve the semantic data and enhance the semantic understanding ability of text data.

[0035] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: The user confirmation information is a successful guess or an unsuccessful guess; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0036] From the above description, we can see that the large model Agent can continue to guess the intention of the text data when the guess is unsuccessful, which enables it to have the ability to continue learning.

[0037] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0038] From the above description, we can see that on the basis of the above, the function of user-defined learning is also added. Users can add further explained semantics to improve the rapid learning ability of large model Agent.

[0039] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: waking up the voice collection function.

[0040] From the above description, it can be seen that before collecting audio data, a wake-up operation needs to be performed first, and audio data is collected only when the voice collection function is awakened.

[0041] Several preferred embodiments or application examples are listed below to help those skilled in the art better understand the technical content of the present invention and the technical contribution made by the present invention relative to the prior art: Preferred embodiment one: like Figures 1 to 5As shown, the method for controlling smart home devices by voice based on a large model Agent provided by the present invention is applied to smart home devices and includes the following steps: S0. Wake up the voice collection function of the voice assistant.

[0042] S1. Collect audio data through a voice assistant, and perform pre-processing such as noise reduction on the collected audio data to improve the recognition rate, and then convert the pre-processed audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data, understand the corresponding home functions, and obtain the understood control information for smart home devices; It should be noted that: before using the large model Agent, it is necessary to use prompt to train it, that is, before step S2, it also includes: training the large model Agent. Among them, the training of the large model Agent needs to be carried out immediately after the system is started (the App is opened or the central control screen is turned on) or the device data changes.

[0043] The purpose of training is to enable the Agent to have the following capabilities: The Agent clearly knows the smart home functions it supports. The Agent does not support all smart home functions, but only supports the functions of the smart home devices owned by the current user. For example, if you do not have a vacuum cleaner at home, the Agent does not support the control of the vacuum cleaner. For the text that it can understand, the Agent will follow up the intention of understanding, and directly control the supported smart home functions. For the smart home functions that it cannot support, it will directly prompt that it is not supported. For the text that it cannot understand, the Agent will further communicate with the user and clarify the true intention.

[0044] like Figure 2 As shown, the specific training process is as follows: 1. Background: Describe the functions and roles of Agent.

[0045] The prompt is as follows: Background: You are a voice assistant familiar with smart home, converting the text I input into corresponding smart home function output.

[0046] 2. Clarify the functions and output formats supported by smart home. The output format is used to send control instructions.

[0047] For simplicity, only air conditioning is taken as an example.

[0048] The prompt is as follows: The following is the air conditioning function of the smart home. The function description format is: [action: parameter], where the parameter may not exist.

[0049] 1. Power-on function, format [Power-on]; 2. Shutdown function, format [Shutdown]; 3. Mode function, format [mode: parameter], parameters include cooling, heating, automatic, dehumidification, and air supply; 4. Wind speed function, format [wind speed: parameter], parameters include low wind, medium wind, high wind, automatic wind; 5. Temperature function, format [temperature: parameter], parameters include 16-32; For example, if the mode is cooling, the output is [Mode: Cooling], and no redundant content is output.

[0050] For unsupported functions, the output is [This function is not supported yet], and no redundant content is output.

[0051] 3. Learning ability.

[0052] For functions that are not understood, further communicate with the user to clarify the intention and save it. The next time you encounter a similar situation, you can directly execute it.

[0053] The prompt is as follows: If there is any doubt about the input, output a guessed intention and ask whether it meets the requirements. If it meets the requirements, follow this for subsequent execution. If it does not meet the requirements, guess a new intention.

[0054] In this embodiment, taking Baidu Wenxin Yiyan model as an example, the above training results are as follows: Figure 3 to Figure 4 shown.

[0055] Step S2 is specifically as follows: Preset a large model Agent and create a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; Receive user confirmation information, obtain semantic data corresponding to the text data according to the user confirmation information and save it. Specifically, the user confirmation information is interpretation data of successful guessing, unsuccessful guessing or user input; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0056] If the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0057] Through the above method, the large model Agent has the ability to learn, can continuously try to guess and correct errors, and confirm the guessing results through user feedback, so as to continuously improve the semantic data and enhance the semantic understanding ability of text data.

[0058] If the large model Agent can understand the text data, it will output "not supported" or "control information", where "not supported" means that the current smart home does not support the corresponding command. For example, if the smart home system does not have an air conditioner, but the semantics is to adjust the air conditioner temperature to 26 degrees Celsius, then the "not supported" result will be output. Alternatively, if the smart home system has an air conditioner, but the functions configured by air conditioners of different models and brands are different, when the semantics is a function that the current configured air conditioner does not have, the "not supported" result will also be output.

[0059] S3. Send the control information to the corresponding smart home device, thereby realizing control over the smart home device.

[0060] In this embodiment, the control instructions (json format) of the Agent are converted into Http instructions that can be recognized by the device and sent to the corresponding device.

[0061] The above technical solution utilizes the understanding and learning capabilities of the large model agent to improve the ability of semantic understanding and more accurately understand user intentions. At the same time, based on the learning ability, the voice assistant becomes smarter with use. This solution combines the two to improve the user experience of voice-controlled smart homes.

[0062] Preferred embodiment 2: A system for voice-controlled smart home devices based on a large model Agent includes a processor and a memory, wherein the memory stores a program or instruction, and when the program or instruction is executed by the processor, the following steps are implemented: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic understanding on the text data to obtain the understood control information; S3. Send the control information to the corresponding smart home device.

[0063] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: training the large model Agent.

[0064] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

[0065] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: The user confirmation information is a successful guess or an unsuccessful guess; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

[0066] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

[0067] Furthermore, when the program or instruction is executed by the processor, the following steps are implemented: waking up the voice collection function.

[0068] Preferred embodiment three: The system of voice-controlled smart home devices based on large model Agent includes a sound collection module, a speech recognition module, a large model Agent module and a device control module, such as Figure 6 shown.

[0069] The sound collection module is responsible for collecting the user's voice and performing pre-processing such as noise reduction on the voice to improve the recognition rate.

[0070] The speech recognition module is responsible for converting the processed speech into text.

[0071] The large model agent module is responsible for agent training and understanding the true intention of the text.

[0072] The device control module is responsible for converting the true intention of the voice into and sending device control instructions.

[0073] The present invention has been described by the above-mentioned relevant embodiments and drawings, but the above-mentioned embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, modifications and equivalent settings included in the spirit and scope of the claims are all included in the scope of the present invention.

Claims

1. A method for voice control of smart home devices based on a large model agent, characterized in that: The following steps are involved: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic analysis on the text data to obtain analyzed control information; S3. Send the control information to the corresponding smart home device.

2. The method for voice controlling smart home devices based on a large model Agent according to claim 1, characterized in that: Before step S2, the method also includes: training the large model Agent.

3. The method for voice controlling smart home devices based on a large model Agent according to claim 1, characterized in that: Step S2 is specifically as follows: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

4. The method for voice controlling smart home devices based on a large model Agent according to claim 3 is characterized in that: The user confirmation information is a successful guess or an unsuccessful guess; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

5. The method for voice controlling smart home devices based on a large model Agent according to claim 3 is characterized in that: If the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

6. A system for voice-controlled smart home devices based on a large model agent, characterized in that: The system comprises a processor and a memory, wherein the memory stores a program or an instruction, and when the program or the instruction is executed by the processor, the following steps are implemented: S1, collect audio data and convert the audio data into text data; S2, using the large model Agent to perform semantic analysis on the text data to obtain analyzed control information; S3. Send the control information to the corresponding smart home device.

7. The system for voice-controlled smart home devices based on a large model agent according to claim 6, characterized in that: When the program or instruction is executed by the processor, the following steps are implemented: Train the large model Agent.

8. The system for voice-controlled smart home devices based on a large model Agent according to claim 7 is characterized in that: When the program or instruction is executed by the processor, the following steps are specifically implemented: Preset a large model Agent; Input text data to the large model Agent, and determine whether the large model Agent can understand the text data; If not, the large model Agent guesses the intention of the text data and outputs the guessed data; The user confirmation information is received, and the semantic data corresponding to the text data is obtained and saved according to the user confirmation information.

9. The system for voice-controlled smart home devices based on a large model agent according to claim 8, characterized in that: When the program or instruction is executed by the processor, the following steps are implemented: The user confirmation information is a successful guess or an unsuccessful guess; If the user confirms that the guess is successful, the output guess data is used as the semantic data corresponding to the text data; If the user confirms that the guess is unsuccessful, the large model Agent continues to guess the intention of the text data.

10. The system for voice-controlled smart home devices based on a large model agent according to claim 8, characterized in that: When the program or instruction is executed by the processor, the following steps are implemented: if the received user confirmation information is the interpretation data input by the user, the interpretation data is used as the semantic data corresponding to the text data.

Citation Information

Cited By

  • Digital entertainment interaction method and device based on intelligent agent and storage medium

    CN120932640A