A method and device for executing voice commands, household appliance and storage medium
By analyzing and processing voice commands, combining the current status of household appliances, determining and executing appropriate instruction sets, the problem of inflexible voice control functions in the existing technology is solved, the degree of automation and intelligence of household appliances is improved, and the user experience is improved.
Patent Information
- Application Number
- CN202210578184.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-05-25
AI Technical Summary
The voice control function of existing smart home appliances is not flexible enough, and the user's voice commands cannot directly implement control of home appliances. It requires multiple human-computer interactions, which reduces the intelligence and work efficiency of home appliances and affects the user's user experience.
By receiving voice commands, analyzing and processing and determining the target function, the first and second command sets are determined based on the target function and the current working status of the household appliances, and the household appliances are controlled to execute the instructions in the specified order to realize the automated execution of voice commands.
It improves the automation and intelligence of the voice command execution process, reduces the number of human-computer interactions, improves the working efficiency of household appliances, and improves the user experience.
Smart Images

Figure CN114882882B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent household appliances, and in particular to a voice command execution method, device, household appliance and storage medium. Background Art
[0002] With the advent of the intelligent era, more and more home appliances have voice control functions, but the current voice control function is not flexible enough and has a low degree of intelligence. A user's voice command cannot directly control home appliances, and it requires multiple human-computer interactions to achieve. For example, if the user says I want to dry a down jacket, if the duplex washing machine is turned off at this time, the user needs to be prompted to turn it on first. After confirming that the machine is turned on, if the machine is in the standby lower drum state, the user needs to be prompted to switch to the standby upper drum state. Only after confirming that it has switched to the upper drum state can the down drying program be started. In this way, the control of home appliances can only be achieved through multiple voice interactions, which greatly reduces the intelligence and work efficiency of home appliances and affects the user experience. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide a voice command execution method, device, household appliance and storage medium.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, a method for executing a voice command is provided, the method comprising:
[0006] Receive voice commands;
[0007] Analyzing and processing the voice command to determine a target function corresponding to the voice command;
[0008] Determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction;
[0009] Obtaining the current working status of the household appliance;
[0010] Determine a second instruction set based on the current working state and the first instruction set; wherein the second instruction set includes: at least one second instruction that needs to be executed by the household appliance to complete the target function in the current working state and the execution order of the at least one second instruction;
[0011] The household appliance is controlled to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0012] In the above scheme, determining the second instruction set based on the current working state and the first instruction set includes: when the current working state is the standard state, using the first instruction set as the second instruction set.
[0013] In the above scheme, the second instruction set is determined based on the current working state and the first instruction set, including: when the current working state is not the standard state, determining a third instruction that the household appliance can execute in the current working state; and determining the second instruction set based on the third instruction and the first instruction set.
[0014] In the above scheme, determining the second instruction set based on the third instruction and the first instruction set includes: when the third instruction satisfies a first preset condition, constructing the second instruction set using the third instruction and instructions in the first instruction set whose execution order is after the third instruction; wherein the first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set whose execution order is before the third instruction have been executed.
[0015] In the above scheme, the second instruction set is determined based on the third instruction and the first instruction set, and also includes: when the third instruction does not meet the first preset condition, the control information output unit outputs a first prompt message to prompt that the voice instruction cannot be executed.
[0016] In the above scheme, the second instruction set is determined based on the third instruction and the first instruction set, and also includes: when the third instruction does not meet the first preset condition, based on the current working state, obtaining from the instruction library an intermediate instruction set that needs to be executed to switch from the current working state to the standard state, wherein the intermediate instruction set includes at least one intermediate instruction and the execution order of the at least one intermediate instruction; adding the at least one intermediate instruction before the instruction with the earliest execution order in the first instruction set according to the execution order of the at least one intermediate instruction, to obtain the second instruction set.
[0017] In the above scheme, the method also includes: determining that the intermediate instruction set includes a preset instruction, or the sum of the execution time of all the intermediate instructions in the intermediate instruction set exceeds a preset threshold, and the control information output unit outputs a second prompt message to indicate that the voice instruction cannot be executed.
[0018] In a second aspect, a voice command execution device is provided, the device comprising:
[0019] A receiving module, used for receiving voice commands;
[0020] A processing module, used to analyze and process the voice command to determine the target function corresponding to the voice command;
[0021] The processing module is further used to determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction;
[0022] The processing module is further used to obtain the current working state of the household appliance;
[0023] The processing module is further configured to determine a second instruction set based on the current working state and the first instruction set; wherein the second instruction set includes: at least one second instruction that needs to be executed by the household appliance to complete the target function in the current working state and an execution order of the at least one second instruction;
[0024] The processing module is further used to control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0025] According to a third aspect, a household appliance is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the aforementioned method when running the computer program.
[0026] In a fourth aspect, a computer storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the aforementioned method when executed by a processor.
[0027] The present application discloses a method, device, household appliance and storage medium for executing voice commands. A first instruction set for realizing a target function is determined according to a user's voice command. In combination with the current working state of the household appliance and the first instruction set, a second instruction set required to be executed to realize the target function from the current working state is determined and executed. The automation and intelligence of the voice command execution process can be improved, the number of human-computer interactions during the execution of the voice command can be effectively reduced, and the working efficiency of the household appliance can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of the first flow chart of the voice command execution method in an embodiment of the present application;
[0029] Figure 2 This is a second flow chart of the method for executing a voice command in an embodiment of the present application;
[0030] Figure 3This is a third flow chart of the voice command execution method in the embodiment of the present application;
[0031] Figure 4 This is a fourth flow chart of the method for executing a voice command in an embodiment of the present application;
[0032] Figure 5 This is a schematic diagram of the structure of the voice command execution device in the embodiment of the present application;
[0033] Figure 6 It is a schematic diagram of the composition structure of the household appliance in the embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0035] The embodiment of the present application proposes a voice command execution method, which is applied to household appliances. By way of example, in actual applications, the household appliances may be washing machines, dryers, all-in-one washing and drying machines, sweepers, smart rice cookers and other equipment. Figure 1 FIG. 1 is a first flow chart of the method for executing a voice command in an embodiment of the present application. Figure 1 As shown, the voice command execution method may specifically include:
[0036] Step 101: Receive a voice command.
[0037] For example, in actual applications, the voice command may be voice information input by the user, such as preset commands such as washing shirts and cleaning the floor, or it may be corpus information input by the user containing preset keywords, such as: "I want to wash my shirts, my bedroom is dirty" and other corpus information.
[0038] Step 102: Analyze and process the voice command to determine the target function corresponding to the voice command.
[0039] Here, the voice command is analyzed and processed to extract effective command information according to the voice command input by the user, and the effective command information is decomposed to obtain the function that the voice command needs to achieve, that is, the target function corresponding to the voice command. For example, when the household appliance is a washing machine, the voice command is "wash shirts", and the corresponding target function can be the function of washing clothes; when the household appliance is a sweeper, the voice command is "sweep the floor", and the corresponding target function can be the function of cleaning the target area.
[0040] Step 103: Determine a first instruction set based on the target function.
[0041] The first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete a target function under a standard state and an execution order of the at least one first instruction.
[0042] Here, the first instruction set includes a set of instructions that need to be executed by the household appliance to complete the target function under the standard state and the execution order of the instructions in the set. By executing different instructions, the household appliance is in different working states. Exemplarily, after executing the power-on instruction, the household appliance is in a standby state; when executing the charging instruction, the household appliance is in a charging state. Here, the execution order of the instructions in the first instruction set can be a preset execution order, which is determined according to the functions corresponding to each instruction in the instruction set. Here, the standard state can be a preset state, such as: the shutdown state. The household appliance executes at least one first instruction in sequence from the standard state according to the execution order of at least one first instruction, and finally realizes the process of the target function. It should be noted that the standard states corresponding to different target functions of the same household appliance may be the same or different.
[0043] Exemplarily, the household appliance is a washing machine, the voice command is to wash a shirt, and the standard state is the shutdown state, then at least one first command in the first command set includes: power on, select shirt to wash, adjust parameters, start, run a program, and shut down; the execution sequence of at least one first command includes: power on>select shirt to wash>adjust parameters>start>run program>shut down. If the standard state is the standby state, then at least one first command in the first command set includes: select shirt to wash, adjust parameters, start, run a program, and shut down; the execution sequence of at least one first command includes: select shirt to wash>adjust parameters>start>run program>shut down.
[0044] Exemplarily, the household appliance is a sweeper, the voice command is to clean the floor, and the standard state is a standby state with standard power. Then at least one first instruction in the first instruction set includes: selecting a cleaning mode, running a program, and shutting down; the execution order of at least one first instruction includes: selecting a cleaning mode>running a program>shutdown.
[0045] Exemplarily, in actual application, the method further includes: presetting the standard state and the first instruction set corresponding to each target function, and storing the possible standard state and the first instruction set of each target function in advance.
[0046] Step 104: Obtain the current working status of the household appliance.
[0047] Here, the current working state is the working state of the current household appliance, and the instruction executed by the current working state may be the first instruction in the first instruction set, or may not belong to the first instruction in the first instruction set. For example, the washing machine is currently in standby mode; the sweeper is currently cleaning the room, etc. It should be noted that the current working state does not represent the current working state of the household appliance, but is only used to indicate a state that the household appliance is currently in, for example, the current working state of the household appliance is the shutdown state.
[0048] Step 105: Determine a second instruction set based on the current working state and the first instruction set.
[0049] The second instruction set includes: at least one second instruction that needs to be executed to complete the target function of the household appliance in the current working state and the execution order of at least one second instruction.
[0050] Here, the second instruction set includes a set of instructions that the household appliance needs to execute to complete the target function in the current working state and the execution sequence of the instructions in the set. In the current state, the target function can be completed by executing the instructions in the second instruction set.
[0051] Exemplarily, the household appliance is a washing machine, the voice command is to wash a shirt, the standard state is the off state, and at least one first instruction in the first instruction set includes: turning on, selecting a shirt to wash, adjusting parameters, starting, running a program, and shutting down; the execution order of at least one first instruction includes: turning on > selecting a shirt to wash > adjusting parameters > starting > running a program > shutting down.
[0052] If the current working state is the power-on state, you only need to execute: select shirt wash > adjust parameters > start > run program > shut down to achieve the target function. That is, the second instruction set includes: select shirt wash, adjust parameters, start, run program, shut down.
[0053] Exemplarily, in some embodiments, based on the current working state and the first instruction set, determining the second instruction set includes: when the current working state is a standard state, using the first instruction set as the second instruction set.
[0054] Here, the current working state is the standard state, which means that the most ordered instruction in the first instruction set can be executed in the current state, and the target function can be achieved by executing the instructions in the first instruction set, that is, the instructions executed in the standard state do not belong to the instructions in the first instruction set, and the first instruction in the first execution order in the first instruction set can be executed in the current state. For example: when the household appliance is a washing machine, the standard state is set to the off state; when the household appliance is a sweeper, the standard state is set to the standby state.
[0055] Exemplarily, in some embodiments, based on the current working state and the first instruction set, a second instruction set is determined, including: when the current working state is not a standard state, determining a third instruction that the household appliance can execute in the current working state; and determining the second instruction set based on the third instruction and the first instruction set.
[0056] Here, the current working state is not a standard state, indicating that the instruction ranked first in the first instruction set cannot be executed in the current state. In other words, the instruction being executed in the current working state may be an instruction belonging to the first instruction set, and the third instruction that the household appliance can execute is determined according to the current working state. Here, the third instruction is an instruction that the household appliance can execute in the current working state. Exemplarily, in actual applications, the instruction that the household appliance can execute in the current working state may be one instruction or multiple instructions.
[0057] Here, the second instruction set is determined based on the third instruction and the first instruction set, and the second instruction set can be determined by judging the relationship between the third instruction and the first instruction set.
[0058] Exemplarily, in some embodiments, based on the third instruction and the first instruction set, determining the second instruction set includes: when the third instruction satisfies the first preset condition, constructing the second instruction set using the third instruction and instructions in the first instruction set whose execution order is after the third instruction; wherein the first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set whose execution order is before the third instruction have been executed.
[0059] Here, the third instruction is an instruction in the first instruction set, and because the current working state is not a standard state, the third instruction is not the first instruction in the execution order in the first instruction set. All instructions in the first instruction set whose execution order is before the third instruction have been executed, indicating that the current working state is an intermediate state of executing the instructions in the first instruction set. It is only necessary to execute the third instruction in the first instruction set and the instructions whose execution order is after the third instruction to achieve the target function. For example, the first instruction set includes: c1>c2>c3>c4>c5, and the third instruction is c2, then the second instruction set is c3>c4>c5.
[0060] Exemplarily, in some embodiments, determining the second instruction set based on the third instruction and the first instruction set also includes: when the third instruction does not meet the first preset condition, the control information output unit outputs a first prompt message to indicate that the voice instruction cannot be executed.
[0061] Here, the control information output unit outputs the first prompt information, which can be a voice output unit or display unit that controls the household appliance to output the first prompt information, or it can be by sending the first prompt information to a mobile terminal such as a mobile phone or computer to prompt the user that the voice command cannot be executed at present.
[0062] Exemplarily, in some embodiments, determining the second instruction set based on the third instruction and the first instruction set also includes: when the third instruction does not meet the first preset condition, based on the current working state, obtaining from the instruction library an intermediate instruction set that needs to be executed to switch from the current working state to the standard state, wherein the intermediate instruction set includes at least one intermediate instruction and an execution order of at least one intermediate instruction; adding at least one intermediate instruction before the instruction with the earliest execution order in the first instruction set according to the execution order of at least one intermediate instruction, to obtain the second instruction set.
[0063] Here, the instruction library includes intermediate instruction sets that need to be executed when switching between various working states. By obtaining the intermediate instruction set that needs to be executed to switch from the current working state to the standard state and executing it, the switch from the current state to the standard state can be achieved. The intermediate instruction set is added to the first instruction set to obtain the second instruction set, and the target function can be achieved by executing the instructions in the second instruction set. For example: the first instruction set includes: c1>c2>c3>c4>c5, the third instruction is b2, and b3>b4>c1 needs to be completed from b2 to c1 state, then the second instruction set is b3>b4>c1>c2>c3>c4>c5.
[0064] Step 106: Control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0065] Here, in the current working state, by executing the instructions in the second instruction set in the execution order, the target function can be achieved and the execution process of the voice instruction can be completed.
[0066] Here, the execution subject of step 101 to step 106 may be a processor of the home appliance.
[0067] The technical solution of the embodiment of the present application determines a first instruction set for implementing a target function based on the user's voice command, and determines and executes a second instruction set that needs to be executed to implement the target function from the current working state in combination with the current working state of the household appliance. This can improve the degree of automation and intelligence of the voice command execution process, effectively reduce the number of human-computer interactions during the execution of voice commands, and improve the working efficiency of household appliances.
[0068] In order to better reflect the purpose of this application, further examples are given based on the embodiments of this application. Figure 2 FIG. 2 is a second flow chart of the method for executing voice commands in an embodiment of the present application. Figure 2 As shown, the voice command execution method includes:
[0069] Step 201: Receive a voice command.
[0070] Step 202: Analyze and process the voice command to determine the target function corresponding to the voice command.
[0071] Step 203: Determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction.
[0072] Step 204: Obtain the current working status of the household appliance.
[0073] Step 205: When the current working state is the standard state, the first instruction set is used as the second instruction set.
[0074] Step 206: When the current working state is not the standard state, determine a third instruction that can be executed by the household appliance in the current working state.
[0075] Step 207: When the third instruction meets the first preset condition, construct a second instruction set by using the third instruction and instructions in the first instruction set that are executed after the third instruction.
[0076] The first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set that are in an execution order before the third instruction have been executed.
[0077] Here, the third instruction satisfies the first preset condition, indicating that the current working state is in an intermediate state of executing the first instruction set. Here, the intermediate state is a state in which some instructions of the first instruction set (the first part of the instructions) have been executed, but some instructions (the second part of the instructions) have not been executed. Exemplarily, in actual applications, it can be determined whether the current working state is in an intermediate state of executing the first instruction set by comparing the relationship between the instructions executed by the household appliance before the current working state and the instructions being executed and the instructions in the first instruction set.
[0078] Step 208: When the third instruction does not satisfy the first preset condition, the control information output unit outputs a first prompt message to prompt that the voice instruction cannot be executed.
[0079] Step 209: Control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0080] Here, the execution subject of step 201 to step 209 may be a processor of the home appliance.
[0081] The technical solution of the embodiment of the present application is to change the first instruction set to the second instruction set and execute it when the current working state is the standard state; when the current working state is not the standard state, determine the second instruction set and execute it according to the relationship between the third instruction executable in the current working state and the first instruction set. When the current state is not the standard state, the execution of the voice instruction can be completed without asking the user, which can improve the automation and intelligence of the voice instruction execution process, effectively reduce the number of human-computer interactions during the execution of the voice instruction, and improve the working efficiency of household appliances.
[0082] In order to better reflect the purpose of this application, further examples are given based on the embodiments of this application. Figure 3 FIG. 3 is a schematic diagram of the third flow chart of the method for executing voice commands in the embodiment of the present application. Figure 3 As shown, the voice command execution method may specifically include:
[0083] Step 301: Receive a voice command.
[0084] Step 302: Analyze and process the voice command to determine the target function corresponding to the voice command.
[0085] Step 303: Determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction.
[0086] Step 304: Obtain the current working status of the household appliance.
[0087] Step 305: When the current working state is the standard state, the first instruction set is used as the second instruction set.
[0088] Step 306: When the current working state is not the standard state, determine a third instruction that can be executed by the household appliance in the current working state.
[0089] Step 307: When the third instruction meets the first preset condition, construct a second instruction set by using the third instruction and instructions in the first instruction set that are executed after the third instruction.
[0090] The first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set that are in an execution order before the third instruction have been executed.
[0091] Step 308: When the third instruction does not satisfy the first preset condition, based on the current working state, an intermediate instruction set required to be executed to switch from the current working state to the standard state is obtained from the instruction library.
[0092] The intermediate instruction set includes at least one intermediate instruction and an execution order of at least one intermediate instruction.
[0093] Here, the third instruction does not satisfy the first preset condition, indicating that the current working state is not a standard state and is not in an intermediate state of executing the first instruction set.
[0094] For example, in actual application, the household appliance is a sweeper, the voice command is to sweep the floor, and the standard state is a standby state with standard power. At least one first instruction in the first instruction set includes: selecting a cleaning mode, running a program, and shutting down; the execution sequence of at least one first instruction includes: selecting a cleaning mode> running a program> shutting down. If the current working state is a low power state charging state, the intermediate instruction set of instructions required for the household appliance to switch from the current working state to the standard state includes: charging to a preset standard power and stopping charging.
[0095] Step 309: Add at least one intermediate instruction before the instruction with the earliest execution order in the first instruction set according to the execution order of the at least one intermediate instruction, to obtain a second instruction set.
[0096] The intermediate instruction set is added to the first instruction set to obtain a second instruction set. The target function can be achieved by executing the instructions in the second instruction set in the current working state.
[0097] Exemplarily, in some embodiments, the method further includes: when it is determined that the intermediate instruction set includes a preset instruction, or when the sum of the execution time of all the intermediate instructions in the intermediate instruction set exceeds a preset threshold, the control information output unit outputs a second prompt message to indicate that the voice instruction cannot be executed.
[0098] Here, the preset instructions may be instructions such as interrupting the running program and shutting down the computer. The intermediate instruction set includes preset instructions, which indicate that the current working state is switched to the standard state and the operating instructions being executed need to be interrupted. For example, the current working state is in the down jacket washing mode, and the received voice instruction is to wash the shirt. The intermediate instruction set includes: interrupting the down jacket washing mode and shutting down the computer. At this time, the second prompt information may be output to prompt the user that the voice instruction cannot be executed.
[0099] Here, the sum of the execution time of all the intermediate instructions in the intermediate instruction set exceeds the preset threshold, indicating that the voice instruction cannot be executed within the preset time, and the second prompt information can be output to prompt the user that the voice instruction cannot be executed.
[0100] Step 310: Control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0101] Here, the execution subject of step 301 to step 310 may be a processor of the home appliance.
[0102] The technical solution of the embodiment of the present application is as follows: when the current working state is not the standard state, determining a third instruction executable in the current working state; when the third instruction meets the first preset condition, determining and executing the second instruction set according to the execution order of the first instruction set and the third instruction in the first instruction set; when the third instruction does not meet the first preset condition, obtaining an intermediate instruction set for switching from the current working state to the standard state; determining and executing the second instruction set according to the intermediate instruction set and the first instruction set, when the current state is not the standard state, the execution of the voice instruction can be completed without asking the user, thereby improving the intelligence level of the voice instruction execution, effectively reducing the number of human-computer interactions during the execution of the voice instruction, and thereby improving the working efficiency of household appliances.
[0103] Figure 4 FIG. 4 is a fourth flow chart of the method for executing voice commands in the embodiment of the present application. As a specific embodiment, Figure 4 As shown, taking the household appliance as a washing machine as an example, the voice command execution method includes the following steps:
[0104] Step 401: The washing machine receives a voice command input by a user.
[0105] Step 402: The washing machine analyzes and processes the voice command, determines the target function corresponding to the voice command, and extracts the effective command C.
[0106] Step 403: The washing machine decomposes the effective instruction C to obtain an instruction set {C1, C2...Cn}.
[0107] Step 404, sort the instructions in the instruction set according to the execution order to obtain a first instruction set {Ci>Cj>…>Ck}.
[0108] Step 405, obtaining the current working state of the washing machine and determining whether Ci can be executed.
[0109] Step 406: If Ci is executable, the first instruction in the first instruction set is executed in sequence.
[0110] Step 407: If Ci cannot be executed, determine whether there are other instructions between the current working state and Ci.
[0111] Step 408: If there are other instructions, then expand the other instructions within the distance Ci into the first instruction set, and execute the expanded instruction set in sequence according to the execution order.
[0112] Step 409: If there are no other instructions, determine whether the current working state belongs to the first instruction in the first instruction set.
[0113] Step 410: If the voice command does not belong to the first command set, a first prompt message is output to prompt the user that the voice command cannot be executed.
[0114] Step 411, if it is the first instruction in the first instruction set, the first instruction set is reduced according to the current working state, and the reduced instruction set is executed in sequence.
[0115] Figure 5 : is a schematic diagram of the structure of a voice command execution device in an embodiment of the present application, showing a device for implementing a voice command execution method, the voice command execution device 50 specifically includes:
[0116] Receiving module 501, used for receiving voice instructions;
[0117] The processing module 502 is used to analyze and process the voice command to determine the target function corresponding to the voice command;
[0118] The processing module 502 is further used to determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction;
[0119] The processing module 502 is also used to obtain the current working state of the household appliance;
[0120] The processing module 502 is further used to determine a second instruction set based on the current working state and the first instruction set; wherein the second instruction set includes: at least one second instruction that needs to be executed by the household appliance to complete the target function in the current working state and the execution order of the at least one second instruction;
[0121] The processing module 502 is further configured to control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction.
[0122] In some embodiments, the processing module 502 is configured to use the first instruction set as the second instruction set when the current working state is a standard state.
[0123] In some embodiments, the processing module 502 is used to determine a third instruction that can be executed by the household appliance in the current working state when the current working state is not the standard state; and determine the second instruction set based on the third instruction and the first instruction set.
[0124] In some embodiments, the processing module 502 is used to construct a second instruction set using the third instruction and instructions in the first instruction set whose execution order is after the third instruction when the third instruction satisfies the first preset condition; wherein the first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set whose execution order is before the third instruction have been executed.
[0125] In some embodiments, the processing module 502 is further configured to control the information output unit to output a first prompt message to indicate that the voice command cannot be executed when the third instruction does not satisfy the first preset condition.
[0126] In some embodiments, the processing module 502 is further configured to, when the third instruction does not satisfy the first preset condition, obtain from the instruction library an intermediate instruction set that needs to be executed to switch from the current working state to the standard state based on the current working state, wherein the intermediate instruction set includes at least one intermediate instruction and an execution order of at least one intermediate instruction;
[0127] Add at least one intermediate instruction before the instruction with the earliest execution order in the first instruction set according to the execution order of the at least one intermediate instruction to obtain a second instruction set.
[0128] In some embodiments, the processing module 502 is also used to determine that the intermediate instruction set includes a preset instruction, or the sum of the execution time of all the intermediate instructions in the intermediate instruction set exceeds a preset threshold, and the control information output unit outputs a second prompt message to indicate that the voice instruction cannot be executed.
[0129] Based on the hardware implementation of each unit in the above-mentioned voice command execution device, an embodiment of the present application also provides a household appliance. Figure 6 Schematic diagram of the structure of the household appliance in the embodiment of the present application. Figure 6 As shown, the household appliance 60 includes: a processor 601 and a memory 602 configured to store a computer program that can be run on the processor;
[0130] The processor 601 is configured to execute the steps of the method in the aforementioned embodiment when running a computer program.
[0131] Of course, in practical applications, Figure 6 As shown, the various components in the household appliance are coupled together via a bus system 603. It is understood that the bus system 603 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 603 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 603.
[0132] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.
[0133] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.
[0134] In an exemplary embodiment, the present application also provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a household appliance to complete the steps of the aforementioned method.
[0135] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.
[0136] It should be understood that, although the terms first, second, third, etc. may be used in this application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. The technical solutions recorded in the embodiments of the present application can be arbitrarily combined without conflict. In several embodiments provided in the present application, it should be understood that the disclosed methods, devices and household appliances can be implemented in other ways. The embodiments described above are merely schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0137] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0138] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0139] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A voice command execution method, applied to household appliances, characterized in that: The method comprises: Receive voice commands; Analyzing and processing the voice command to determine a target function corresponding to the voice command; Determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction; Obtaining the current working status of the household appliance; Determine a second instruction set based on the current working state and the first instruction set; wherein the second instruction set includes: at least one second instruction that needs to be executed by the household appliance to complete the target function in the current working state and the execution order of the at least one second instruction; Controlling the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction; The determining the second instruction set based on the current working state and the first instruction set includes: when the current working state is the standard state, using the first instruction set as the second instruction set; When the current working state is not the standard state, a third instruction that can be executed by the household appliance in the current working state is determined; and the second instruction set is determined based on the third instruction and the first instruction set.
2. The method according to claim 1, characterized in that: The determining the second instruction set based on the third instruction and the first instruction set includes: When the third instruction satisfies the first preset condition, constructing the second instruction set by using the third instruction and instructions in the first instruction set that are executed after the third instruction; The first preset condition includes: the third instruction is an instruction in the first instruction set, and all instructions in the first instruction set that are before the third instruction in execution order have been executed.
3. The method according to claim 2, characterized in that The determining the second instruction set based on the third instruction and the first instruction set further includes: When the third instruction does not meet the first preset condition, the control information output unit outputs a first prompt message to prompt that the voice instruction cannot be executed.
4. The method according to claim 2, characterized in that: The determining the second instruction set based on the third instruction and the first instruction set further includes: When the third instruction does not meet the first preset condition, based on the current working state, an intermediate instruction set required to be executed to switch from the current working state to the standard state is obtained from an instruction library, wherein the intermediate instruction set includes at least one intermediate instruction and an execution order of the at least one intermediate instruction; The at least one intermediate instruction is added before the instruction with the earliest execution order in the first instruction set according to the execution order of the at least one intermediate instruction, so as to obtain the second instruction set.
5. The method according to claim 4, characterized in that The method further comprises: It is determined that the intermediate instruction set includes a preset instruction, or the sum of the execution time of all the intermediate instructions in the intermediate instruction set exceeds a preset threshold, and the control information output unit outputs a second prompt message to prompt that the voice instruction cannot be executed.
6. A voice command execution device, applied to household appliances, comprising: A receiving module, used for receiving voice commands; A processing module, used to analyze and process the voice command to determine the target function corresponding to the voice command; The processing module is further used to determine a first instruction set based on the target function; wherein the first instruction set includes: at least one first instruction that needs to be executed by the household appliance to complete the target function under a standard state and an execution order of the at least one first instruction; The processing module is further used to obtain the current working state of the household appliance; The processing module is further configured to determine a second instruction set based on the current working state and the first instruction set; wherein the second instruction set includes: at least one second instruction that needs to be executed by the household appliance to complete the target function in the current working state and an execution order of the at least one second instruction; The processing module is further used to control the household appliance to execute at least one second instruction in the second instruction set according to the execution order of the at least one second instruction; The processing module is also used to use the first instruction set as the second instruction set when the current working state is the standard state; determine a third instruction that the household appliance can execute in the current working state when the current working state is not the standard state; and determine the second instruction set based on the third instruction and the first instruction set.
7. A household appliance, characterized in that: The household appliance comprises: a processor and a memory configured to store a computer program that can be run on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 5 when running the computer program.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and device for executing voice command, intelligent home appliance device and medium
CN109274562A
Voice control method for household appliance, voice controller and air conditioner
CN110500737A