Intelligent device and method and device for self-built voice commands
By analyzing the historical operation data of the smart device and obtaining voice commands from the cloud, the smart device can build voice commands by itself, solving the problem of artificially configuring voice commands and improving the user experience.
Patent Information
- Application Number
- CN202010926893.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-04
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-09-04
AI Technical Summary
Existing smart devices require artificial configuration of voice commands, resulting in poor user experience.
By obtaining the historical operation data of the smart device, counting the usage of the control instructions, obtaining the target control instructions, obtaining the set of voice commands with the same function as the target control instructions from the cloud, and selecting voice commands as trigger commands according to the preset rules to realize the self-built voice commands of the smart device.
There is no need to manually configure voice commands for smart devices, and automatically create voice commands to improve user experience.
Smart Images

Figure CN112331190B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent device voice control, and in particular to an intelligent device and a method, device, and computer-readable storage medium for self-creating voice commands thereof. Background Art
[0002] With the development of artificial intelligence technology, more and more home appliances are moving towards intelligence. Compared with general remote control devices, the most notable feature of smart devices at this stage is that they can be controlled by voice.
[0003] This voice control method can be that the smart device itself directly receives user voice commands to execute the corresponding commands, or it can receive user voice commands through a smart gateway (such as Xiao Ai, Tmall Genie), etc., and then control the corresponding smart device to execute the corresponding commands.
[0004] However, no matter which method is used, current smart devices require users or manufacturers to manually configure voice commands, resulting in a poor user experience. Summary of the invention
[0005] The embodiments of the present application provide a method for a smart device to self-configure voice commands, aiming to solve the problem that current smart devices require manual configuration of voice commands.
[0006] To achieve the above object, the present application provides a method for a smart device to generate a voice command, comprising the following steps:
[0007] Obtain historical operation data for smart devices;
[0008] Counting the usage degree of the control instructions corresponding to the historical operation data, and acquiring the target control instructions based on the usage degree;
[0009] Acquire from the cloud a set of voice commands having the same effect as the target control command;
[0010] A voice command is selected from the voice command set according to a preset rule as a trigger command for the target control instruction.
[0011] In one embodiment, the counting of usage levels of the control instructions corresponding to the historical operation data and acquiring the target control instructions based on the usage levels includes:
[0012] Get the operation weight corresponding to each operation;
[0013] When an operation occurs, the control instruction corresponding to the operation is increased by the corresponding operation weight;
[0014] According to the historical operation data, the total operation weight of each control instruction is counted, and the target control instruction is obtained based on the total operation weight.
[0015] In one embodiment, the historical operation data includes at least one of historical key operations and historical voice operations;
[0016] The counting of the total operation weight of each control instruction according to the historical operation data, and acquiring the target control instruction based on the total operation weight, includes:
[0017] The historical key operations whose number of key presses is greater than the average number of key presses are weighted and accumulated;
[0018] The historical voice operations whose number of times of use is greater than the average number of operations are weighted and accumulated;
[0019] The historical key operations and the historical voice operations corresponding to the same control instruction are weighted and summed to obtain the total operation weight of the control instruction.
[0020] In one embodiment, the operation weight corresponding to the historical key operation is 10, and the operation weight corresponding to the historical voice operation is 100.
[0021] In one embodiment, the method for the smart device to self-build voice commands further includes:
[0022] Obtaining installation location information of the smart device; and
[0023] The installation location information is added to the target control instruction.
[0024] In one embodiment, the voice command set is a set of at least one of precise voice commands and generalized voice commands that can implement the function corresponding to the target control instruction.
[0025] In one embodiment, the method for the smart device to self-build voice commands further includes:
[0026] After the target control instruction is executed, feedback information of the execution completion is displayed to the user.
[0027] In one embodiment, the feedback information is associated with the target control instruction.
[0028] In one embodiment, the acquiring a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction includes:
[0029] Setting the initial weight of each voice command in the voice command set to 0;
[0030] Splitting the voice commands in the voice command set into combinations of keywords;
[0031] Obtain historical input data of users in different network environments;
[0032] When the keyword appears in the historical input data, the weight of the voice command corresponding to the keyword is increased by 1;
[0033] The total weight of each of the voice commands is counted, and the top three voice commands in terms of total weight are selected as the trigger commands.
[0034] In one embodiment, the network environment includes at least one of the following networks: a cloud network and a local wireless local area network;
[0035] The historical input data includes at least one of the following data: historical typing data and historical voice input data.
[0036] In one embodiment, the method for the smart device to self-build voice commands further includes:
[0037] After detecting that the feedback information display is completed, recommending to the user a voice command selected from the voice command set according to a preset rule.
[0038] To achieve the above objectives, the present application also provides a smart device, including:
[0039] An acquisition module is used to obtain historical operation data of smart devices;
[0040] A statistical module, used to count the usage degree of the control instructions corresponding to the historical operation data, and obtain the target control instructions based on the usage degree;
[0041] A cloud acquisition module, used to acquire from the cloud a set of voice commands having the same function as the target control command;
[0042] The selection module is used to select a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction.
[0043] To achieve the above-mentioned objectives, an embodiment of the present application also proposes an intelligent device, comprising a memory, a processor, and a self-built voice command program stored in the memory and executable on the processor, wherein when the processor executes the self-built voice command program, the steps of the method for self-building voice commands of the intelligent device as described in any of the above are implemented.
[0044] To achieve the above objectives, an embodiment of the present application further proposes a computer-readable storage medium on which a self-built voice command program is stored. When the self-built voice command program is executed by a processor, the steps of the method for self-building voice commands for smart devices as described in any of the above are implemented.
[0045] The method of self-building voice commands for smart devices of the present application obtains historical operation data for smart devices, obtains target control instructions from the historical operation data, and then obtains a voice command set with the target control instructions from the cloud, and selects a voice command from the voice command set as a trigger command for the target control instruction according to a preset rule. In this way, the voice commands of the smart devices can be automatically established according to the historical operation data of the smart devices and the voice commands in the cloud, thereby eliminating the need to manually configure the voice commands of the smart devices. Therefore, compared with smart devices that require manual configuration of voice commands, the method of self-building voice commands for smart devices of the present application can realize the automatic creation of voice commands, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0047] Figure 1 A module structure diagram of an embodiment of an intelligent device of the present invention;
[0048] Figure 2 A flowchart of an embodiment of a method for self-generating voice commands for an intelligent device according to the present invention;
[0049] Figure 3 A flowchart of another embodiment of the method for self-generating voice commands for an intelligent device of the present invention;
[0050] Figure 4 A flowchart of another embodiment of the method for self-generating voice commands for an intelligent device of the present invention;
[0051] Figure 5 A flowchart of another embodiment of the method for self-generating voice commands for an intelligent device of the present invention;
[0052] Figure 6 A flowchart of another embodiment of the method for self-generating voice commands for an intelligent device of the present invention;
[0053] Figure 7 A flowchart of another embodiment of the method for self-generating voice commands for an intelligent device of the present invention;
[0054] Figure 8 FIG. 4 is a module structure diagram of an embodiment of a smart device of the present invention.
[0055] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0057] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0058] like Figure 1 As shown, Figure 1 It is a structural diagram of a server 1 (also called a smart device) in a hardware operating environment involved in an embodiment of the present invention.
[0059] The server of the embodiment of the present invention is a device with display function, such as "Internet of Things devices", smart air conditioners, smart lights, smart power supplies with networking functions, AR / VR devices with networking functions, smart speakers, self-driving cars, PCs, smart phones, tablet computers, e-book readers, portable computers, etc.
[0060] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12 and a network interface 13.
[0061] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1. In other embodiments, the memory 11 may also be an external storage device of the server 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc., equipped on the server 1.
[0062] Furthermore, the memory 11 may include an internal storage unit of the server 1 as well as an external storage device. The memory 11 may be used not only to store application software and various data installed on the server 1, such as the code of the self-built voice command program 10, but also to temporarily store data that has been output or is to be output.
[0063] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 11, such as executing a self-built voice command program 10.
[0064] The network interface 13 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface), which is usually used to establish a communication connection between the server 1 and other electronic devices.
[0065] The network may be the Internet, a cloud network, a wireless fidelity (Wi-Fi) network, a personal area network (PAN), a local area network (LAN), and / or a metropolitan area network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (Blue Tooth) communication protocol or a combination thereof.
[0066] Optionally, the server may further include a user interface, which may include a display, an input unit such as a keyboard, and an optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be referred to as a display screen or a display unit, which is used to display information processed in the server 1 and to display a visual user interface.
[0067] Figure 1 Only the server 1 having components 11-13 and the self-built voice command 10 of the smart device is shown, and it can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the server 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0068] In this embodiment, the processor 12 can be used to call the self-built voice command program stored in the memory 11 and perform the following operations:
[0069] Obtain historical operation data for smart devices;
[0070] Counting the usage degree of the control instructions corresponding to the historical operation data, and acquiring the target control instructions based on the usage degree;
[0071] Acquire from the cloud a set of voice commands having the same effect as the target control command;
[0072] A voice command is selected from the voice command set according to a preset rule as a trigger command for the target control instruction.
[0073] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0074] The counting of usage levels of the control instructions corresponding to the historical operation data and acquiring target control instructions based on the usage levels includes:
[0075] Get the operation weight corresponding to each operation;
[0076] When an operation occurs, the control instruction corresponding to the operation is increased by the corresponding operation weight;
[0077] According to the historical operation data, the total operation weight of each control instruction is counted, and the target control instruction is obtained based on the total operation weight.
[0078] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0079] The historical operation data includes at least one of historical key operations and historical voice operations;
[0080] The counting of the total operation weight of each control instruction according to the historical operation data, and obtaining the target control instruction based on the total operation weight, includes:
[0081] The historical key operations whose number of key presses is greater than the average number of key presses are weighted and accumulated;
[0082] The historical voice operations whose number of times of use is greater than the average number of operations are weighted and accumulated;
[0083] The historical key operations and the historical voice operations corresponding to the same control instruction are weighted and summed to obtain the total operation weight of the control instruction.
[0084] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0085] The operation weight corresponding to the historical key operation is 10, and the operation weight corresponding to the historical voice operation is 100.
[0086] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0087] The method for the smart device to self-build voice commands also includes:
[0088] Obtaining installation location information of the smart device;
[0089] The installation location information is added to the target control instruction.
[0090] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0091] The voice command set is a set of at least one of precise voice commands and generalized voice commands that can implement the function corresponding to the target control instruction.
[0092] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0093] The method for the smart device to self-build voice commands also includes:
[0094] After the target control instruction is executed, feedback information of the execution completion is displayed to the user.
[0095] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0096] The feedback information is associated with the target control instruction.
[0097] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0098] The acquiring a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction includes:
[0099] Setting the initial weight of each voice command in the voice command set to 0;
[0100] Splitting the voice commands in the voice command set into combinations of keywords;
[0101] Obtain historical input data of users in different network environments;
[0102] When the keyword appears in the historical input data, the weight of the voice command corresponding to the keyword is increased by 1;
[0103] The total weight of each of the voice commands is counted, and the top three voice commands in terms of total weight are selected as the trigger commands.
[0104] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0105] The network environment includes at least one of the following networks: a cloud network and a local wireless local area network;
[0106] The historical input data includes at least one of the following data: historical typing data and historical voice input data.
[0107] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0108] The method for the smart device to self-build voice commands also includes:
[0109] After detecting that the feedback information display is completed, recommending to the user a voice command selected from the voice command set according to a preset rule.
[0110] In one embodiment, the processor 12 may be used to call a self-built voice command program stored in the memory 11 and perform the following operations:
[0111] The method of recommending the voice command selected from the voice command set according to the preset rule includes at least one of the following recommendation methods: voice broadcast, text display, and picture display.
[0112] Based on the hardware architecture of the above-mentioned smart device, an embodiment of the method for self-constructing voice commands of the smart device of the present invention is proposed. The method for self-constructing voice commands of the smart device of the present invention aims to solve the technical problem that the current smart device needs to manually configure voice commands, which affects the user experience.
[0113] Reference Figure 2 , Figure 2 This is an embodiment of the method for self-constructing voice commands for an intelligent device of the present invention, and the method for self-constructing voice commands for an intelligent device comprises the following steps:
[0114] S10. Obtain historical operation data for the smart device.
[0115] Specifically, the historical operation data for smart devices refers to the operations performed by users on smart devices through controllers such as remote controls, smart terminals (such as mobile phones with infrared functions, etc.), and smart gateways before establishing self-built voice commands. Taking smart air conditioners as an example, operations may include adjusting temperature, adjusting humidity, switching modes, etc., and the operation methods may be remote control button operations, touch operations of smart terminals, voice operations, etc. Among them, based on the installation time and usage level of the smart device, the historical operation data obtained may be all operation data from the completion of the installation of the smart device to the self-built voice command, or all operation data within a preset time period before the self-built voice command.
[0116] S20: Count the usage levels of the control instructions corresponding to the historical operation data, and acquire target control instructions based on the usage levels.
[0117] Specifically, the control instructions corresponding to different operations can be the same or different. Taking the intelligent air conditioner as an example, when performing operations such as increasing temperature, decreasing temperature, increasing wind speed, decreasing temperature, and mode conversion, the control instructions corresponding to each operation are not the same. However, for the temperature increase operation given by the remote control button and the temperature increase operation given by the voice command, the corresponding control instructions are the same. Therefore, it is necessary to count the usage degree of each operation according to the acquired historical operation data to obtain the usage degree of each control instruction, and then obtain the target control instruction. Among them, the usage degree is a judgment standard obtained by comprehensively considering factors such as the user's frequency of use of the operation and the operation weight of the operation. Therefore, the target control instruction obtained based on the usage degree of the control instruction can obtain the operation that the user is accustomed to using for the intelligent device. The voice command established on this basis can be closer to the user's usage needs and more in line with the user's usage habits, thereby helping to improve the user's usage experience. It is worth noting that in order to make the established voice command fit the user's usage needs and usage habits to the greatest extent, in this embodiment, the target control instruction is the control instruction with the highest usage degree obtained based on the historical usage data.
[0118] S30: Acquire from the cloud a set of voice commands having the same function as the target control command.
[0119] Specifically, after obtaining the target control instruction, a voice command with the same function as the target control instruction is obtained from the cloud, that is, after receiving the voice command, the smart device can achieve the same function as the target control instruction. Taking the smart air conditioner as an example, if the target control instruction is to adjust the temperature to 26 degrees, then the voice command obtained from the cloud can also meet the requirement of adjusting the temperature of the indoor unit of the smart air conditioner to 26 degrees. Among them, the voice command in the cloud can be shared by other users of the same type of smart devices (such as an air conditioner including a wall-mounted air conditioner indoor unit and an air conditioner including a floor-standing air conditioner indoor unit are both air conditioners). After obtaining all or a preset number of cloud voice commands, a cloud voice command set is established.
[0120] S40: Selecting a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction.
[0121] Specifically, since the voice command set obtained from the cloud contains multiple voice commands, and users usually do not use too many voice commands for the same operation in actual use, selecting a voice command from the voice command set according to preset rules as the trigger command for the target control instruction can reduce the voice commands corresponding to the target control instruction, which is conducive to improving the response speed and is more in line with the user's usage habits. Among them, the trigger command refers to the voice command used to trigger the smart device to execute the target control command.
[0122] It can be understood that the method of self-building voice commands for smart devices of the present application obtains historical operation data for smart devices, obtains target control instructions from the historical operation data, and then obtains a voice command set with the target control instructions from the cloud, and selects a voice command from the voice command set as a trigger command for the target control instruction according to a preset rule. In this way, the voice commands of the smart device can be automatically established according to the historical operation data of the smart device and the voice commands in the cloud, so that there is no need to manually configure the voice commands of the smart device. Therefore, compared with smart devices that require manual configuration of voice commands, the method of self-building voice commands for smart devices of the present application can realize the automatic creation of voice commands, thereby improving the user experience.
[0123] like Figure 3 As shown, in one embodiment, the above-mentioned counting of the usage degree of the control instruction corresponding to the historical operation data and obtaining the target control instruction includes:
[0124] S21. Obtain the operation weight corresponding to each operation.
[0125] Specifically, each operation has a different weight, and the importance of different operations can be judged by different weights, which can reflect the necessity of the operation in daily use. For example, taking the smart air conditioner as an example, the weight of the remote control button operation can be higher, lower or equal to the weight of the smart terminal case operation.
[0126] S22. When an operation occurs, the control instruction corresponding to the operation is increased by a corresponding operation weight.
[0127] Specifically, when an operation occurs, the corresponding operation weight is increased for the control instruction corresponding to the operation, that is, each time the same operation occurs, the corresponding operation weight is increased for the corresponding control instruction. Then, the total operation weight of the control instruction = operation weight × usage frequency (that is, the number of times the same operation occurs).
[0128] S23. Counting the total operation weight of each control instruction according to the historical operation data, and acquiring the target control instruction based on the total operation weight.
[0129] Specifically, based on the calculation formula of the total operation weight of the above-mentioned control instructions, after obtaining the operation weight corresponding to each control instruction and the usage frequency of each operation in the historical operation data, the total operation weight of each control instruction can be calculated, and then the target control instruction can be obtained based on the total operation weight.
[0130] It can be understood that according to the calculation formula of the total operation weight of the control instruction, the total operation weight of the control instruction is not only positively correlated with the operation weight of the operation, but also positively correlated with the frequency of use of the control instruction. Then, by obtaining the target control instruction according to the total operation weight of the control instruction, not only the importance of the target control instruction is high, but also the frequency of use is high. In other words, based on the total operation weight, a control instruction that better meets the user's usage habits and usage needs can be obtained.
[0131] It is worth noting that, in one embodiment, when the target control instruction is the most used control instruction, the target control instruction is the control instruction with the largest total operation weight. It is understandable that the control instruction with the largest total operation weight is the control instruction that best meets the user's usage habits and usage needs in the historical operation data of the smart device.
[0132] In one embodiment, the historical operation data includes at least one of historical key operations and historical voice operations.
[0133] Specifically, a key command refers to an operation instruction issued to a smart device through a key. Exemplarily, historical key operations include remote control key operations and smart terminal key operations. Among them, remote control key operations refer to operations of issuing control instructions to a smart device through remote control keys, while smart terminal key operations refer to operations of issuing control instructions to a smart device through virtual keys on a smart terminal (such as a mobile phone, tablet computer, etc.). It is worth noting that the key operations of a smart terminal on a smart device can be implemented through a cloud network, or through a local wireless LAN, infrared, etc.
[0134] Specifically, voice operation refers to the operation instructions given to smart devices through voice commands.
[0135] It can be understood that when counting historical operation data, counting historical key operations and historical voice operations at the same time can make the statistical historical operation data more comprehensive, so as to more comprehensively analyze the user's usage habits and obtain control instructions that are more in line with the user's usage habits. Among them, when the historical operations of the smart device only include historical key operations or historical voice operations, only one of the two is counted.
[0136] Based on the historical operation data including at least one of the historical key operation and the historical voice operation, the above-mentioned counting the total operation weight of each control instruction according to the historical operation data, and taking the control instruction with the largest total operation weight as the target control instruction, includes:
[0137] S231. Weightedly accumulate historical key operations in which the number of key presses is greater than the average number of key presses.
[0138] Specifically, after obtaining the historical operation data for the smart device, the total number of historical key operations can be counted, and the average number of historical key operations can be calculated, and then the historical key operations with a number of operations greater than the average number of operations can be further counted. Then, the weights of the historical key operations with a number of operations greater than the average number of operations can be accumulated. In this way, when counting the total operation weight of each control instruction, only the historical key operations with a number of operations greater than the average number of operations can be counted, thereby saving the amount of calculation of the smart device and increasing the acquisition speed of the target control instruction.
[0139] S232: Weighting the historical voice operations whose usage times are greater than the average usage times.
[0140] Specifically, after obtaining the historical operation data for the smart device, the total number of historical voice operations can be counted, and the average number of historical voice operations can be calculated, and then the historical voice operations with an operation number greater than the average operation number can be further counted. Then, the weights of the historical voice operations with an operation number greater than the average operation number can be accumulated. In this way, when counting the total operation weight of each control instruction, only the historical voice operations with an operation number greater than the average operation number can be counted, thereby saving the computing power of the smart device and increasing the acquisition speed of the target control instruction.
[0141] S233: Sum the weights of the historical key operations and the historical voice operations corresponding to the same control instruction as the total operation weight of the control instruction.
[0142] Specifically, if the control instruction corresponding to the historical key operation and the historical voice operation is the same control instruction, then when calculating the total operation weight of the control instruction, the total operation weight of the historical key operation and the total operation weight of the historical voice operation are obtained at the same time and summed up to serve as the total operation weight of the control instruction. It can be understood that if the same control instruction corresponds to both the historical key operation in the historical operation data and the historical voice operation in the historical operation data, it means that the control instruction is more commonly used and is closer to the user's commonly used instructions. Therefore, adding the total operation weight of the historical key operation and the total operation weight of the historical voice operation can increase the weight of the control instruction, so that the control instruction finally obtained is more in line with the user's usage habits.
[0143] Specifically, the operation weight corresponding to the historical key operation is 10, and the operation weight corresponding to the historical voice operation is 100. It can be understood that since the self-built command is a voice command, setting the operation weight corresponding to the historical voice operation to be greater than the operation weight corresponding to the historical key operation can enable the voice operation to obtain a greater weight, and make the final control instruction more likely to correspond to the historical voice operation, thereby being more in line with user usage habits. Of course, in other embodiments, the operation weight corresponding to the historical key operation may also be greater than or equal to the operation weight corresponding to the historical voice operation.
[0144] like Figure 4 As shown, in one embodiment, the method for the smart device to self-build voice commands further includes:
[0145] S130: Obtain installation location information of the smart device.
[0146] Specifically, after obtaining the target control command, the installation location information of the smart device is further obtained. Specifically, a photo of the smart device after installation can be taken by a smart camera, and then the installation location of the smart device can be determined by image recognition to obtain the installation location information of the smart device. Of course, in other embodiments, the installation location information of the smart device can also be obtained by cloud positioning recognition.
[0147] S140: Add the installation location information to the target control instruction.
[0148] Specifically, after obtaining the installation location information of the smart device, the installation location information is added to the target control instruction, so that the field related to the installation location information of the smart device can be added to the trigger command finally obtained. For example, when the smart device is a smart air conditioner, the installation location of the air conditioner can be a living room, a master bedroom, a second bedroom, a study, etc. If the air conditioner for which the current self-built voice command is obtained is installed in the living room, the voice command finally established can be "living room, adjust the air conditioner temperature to 26 degrees". Then, through the self-built voice command, the air conditioner in the living room can be accurately controlled to adjust the temperature, instead of controlling the air conditioner in the master bedroom / second bedroom / study. In other words, by adding the installation location information of the smart device to the target control instruction, it is conducive to establishing a more accurate voice command, which is conducive to the user to more accurately control the smart device through the self-built voice command to enhance the user's experience. Of course, in other embodiments, the installation location information of the smart device may not be added.
[0149] In one embodiment, the voice command set is a set of at least one of precise voice commands and generalized voice commands that can implement the function corresponding to the target control instruction.
[0150] Specifically, precise voice commands refer to voice commands corresponding to target control instructions, while generalized voice commands refer to voice commands associated with target control instructions. For example, taking the target control instruction as "adjust the temperature to 26 degrees", the precise voice command can be "adjust the air conditioner temperature to 26 degrees", while the generalized voice command can be "I want to turn on the air conditioner", "I'm so hot / cold", etc. It can be seen that compared with precise voice commands, generalized voice commands are more colloquial and more in line with users' daily language habits. It can be understood that compared with precise voice commands, generalized voice commands can make self-built voice commands more colloquial and more in line with users' daily language habits, making them easier to be accepted by users and easier to improve the user experience.
[0151] It is worth noting that both precise voice commands and generalized voice commands must meet the basic requirement of being able to realize the functions corresponding to the target control instructions. It is also worth noting that generalized voice commands are more colloquial, so they can be manually configured by other users of the same type of smart devices and then shared to the cloud.
[0152] like Figure 5 As shown, in one embodiment, the above-mentioned obtaining a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction includes:
[0153] S161. Set the initial weight of each voice command in the voice command set to 0.
[0154] Specifically, after the voice command set is obtained from the cloud, the initial weight of each voice command in the voice command set is set to 0, that is, at this time, the weight of each voice command in the voice command set is the same.
[0155] S162: Split the voice commands in the voice command set into combinations of keywords.
[0156] Specifically, the voice command obtained from the cloud is usually a complete sentence, such as "adjust the temperature of the air conditioner to 26 degrees", "I want to turn on the air conditioner", "I'm so hot", etc. At this time, these voice commands can be split into a combination of keywords. For example, "adjust the temperature of the air conditioner to 26 degrees" can be split into a combination of three keywords: "air conditioner", "adjust temperature", and "26 degrees".
[0157] S163. Obtain historical input data of the user in different network environments.
[0158] Specifically, historical input data of the user in different network environments is obtained. The historical input data may be input data of the user in different network environments in all time before the self-created voice command, or input data of the user in different network environments within a preset time before the self-created voice command. By analyzing the input data of the user in different network environments, the user's usage preference can be analyzed to determine the user's preference for each voice command in the voice command set.
[0159] S164: When the keyword appears in the historical input data, the weight of the voice command corresponding to the keyword is increased by 1.
[0160] Specifically, when analyzing historical input data, when a keyword obtained by splitting a voice command appears once, the weight of the voice command corresponding to the keyword is increased by 1. Among them, the increase in the weight of a certain voice command indicates that the user's preference for the voice command has increased. It is worth noting that if the same keyword corresponds to multiple voice commands at the same time, the weights of the multiple voice commands are increased by 1. If a voice command corresponds to multiple keywords, the weight of the voice command will be increased when each keyword appears.
[0161] S165. Count the total weight of each of the voice commands, and select the top three voice commands with the highest total weight as the trigger commands.
[0162] Specifically, after increasing the weight of the voice command according to the number of times the keyword appears in the historical input data, the total weight of different voice commands can be obtained. At this time, the voice commands can be sorted in order according to the size of the weight, and then the top three voice commands can be selected as trigger commands.
[0163] It can be understood that based on historical input data, the voice command with a higher total weight is more in line with the user's usage preferences, is more easily accepted by users, and is more easily used by users, which is conducive to improving the usage of self-built voice commands.
[0164] Specifically, the network environment includes at least one of the following networks: a cloud network and a local wireless local area network. After the smart device is connected to the cloud network, it can communicate with the cloud; and after the smart device is connected to the local wireless local area network, the smart device cannot communicate with the cloud network, but can communicate with other devices connected to the local wireless local area network.
[0165] Specifically, the historical input data includes at least one of the following data: historical typing data and historical voice input data, wherein the typing data is data input through a physical keyboard or a virtual keyboard, and the voice input data is data input through voice.
[0166] like Figure 6 As shown, in one embodiment, the method for the smart device to self-build voice commands further includes:
[0167] S270: After the target control instruction is executed, feedback information indicating the execution is completed is displayed to the user.
[0168] Specifically, when the target control instruction is executed, the feedback information of the execution completion is displayed to the user to prompt the user. It can be understood that this feedback information is similar to the rebound of a physical button, which can give the user clear feedback prompts, thereby improving the user's experience. For example, taking a smart air conditioner as an example, when the target control instruction is "adjust the temperature to 26 degrees", when the air conditioner temperature is adjusted to 26 degrees, the smart air conditioner will feedback the following feedback information to the user: "The temperature has been adjusted to 26 degrees."
[0169] Furthermore, the feedback information is associated with the target control instruction. It can be understood that associating the feedback information after the control instruction is executed with the target control instruction can, on the one hand, make the feedback information and the control instruction compatible, and make the feedback information more accurate, thereby helping to improve the user experience; on the other hand, after the target control instruction is executed, the corresponding feedback information can be found and fed back in the first place, which can not only save the computing power of the smart device, but also be more efficient and quick.
[0170] like Figure 7 As shown, in one embodiment, the method for self-building voice commands by a smart device further includes:
[0171] S380: After detecting that the feedback information display is complete, recommending to the user a voice command selected from the voice command set according to a preset rule.
[0172] Specifically, when the target control instruction is executed and the smart device feeds back to the user that the target control instruction is executed, the smart device can further recommend to the user a voice command (i.e., the trigger command) selected from the above voice command set according to a preset rule. In this way, the user can be prompted to use the trigger command voice control smart device to execute the target control instruction, that is, after the voice command is self-built, the user can be guided to use the self-built voice command.
[0173] Furthermore, the method of recommending the voice command selected from the voice command set according to the preset rules is voice broadcast. That is, after the target control instruction is executed and the feedback is completed, the self-built voice command is recommended to the user by voice broadcast. Of course, the design method of the present application is not limited to this. In other embodiments, the method of recommending the voice command selected from the voice command set according to the preset rules can also be a combination of at least one or more of voice broadcast, text display, and picture display.
[0174] In addition, refer to Figure 8 , an embodiment of the present invention further provides a smart device, the smart device comprising:
[0175] An acquisition module 110 is used to acquire historical operation data of a smart device;
[0176] A statistical module 120, for counting the usage degree of the control instructions corresponding to the historical operation data, and obtaining a target control instruction based on the usage degree;
[0177] A cloud acquisition module 130, used to acquire a voice command set having the same function as the target control instruction from the cloud;
[0178] The selection module 140 is used to select a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction.
[0179] Among them, the steps implemented by each functional module of the smart device can refer to the various embodiments of the method for self-building voice commands of a smart device of the present invention, and will not be repeated here.
[0180] In addition, the embodiment of the present invention also proposes a computer-readable storage medium, which can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a self-built voice command program 10. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the above-mentioned method for self-built voice commands of smart devices and the specific implementation of the server 1, which will not be repeated here.
[0181] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented 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.
[0182] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0185] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0186] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the present invention.
[0187] Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for building voice commands for smart devices, characterized in that: include: Obtain historical operation data for smart devices; Counting the usage degree of the control instructions corresponding to the historical operation data, and acquiring the target control instructions based on the usage degree; Acquire from the cloud a set of voice commands having the same effect as the target control command; Selecting a voice command from the voice command set according to a preset rule as a trigger command for the target control instruction includes: Setting the initial weight of each voice command in the voice command set to 0; Splitting the voice commands in the voice command set into combinations of keywords; Obtain historical input data of users in different network environments; When the keyword appears in the historical input data, the weight of the voice command corresponding to the keyword is increased by 1; the total weight of each voice command is counted, and the top three voice commands with the highest total weight are selected as the trigger commands.
2. The method for self-constructing voice commands of an intelligent device according to claim 1, characterized in that: The counting of usage levels of the control instructions corresponding to the historical operation data and acquiring target control instructions based on the usage levels includes: Get the operation weight corresponding to each operation; When an operation occurs, the corresponding operation weight is increased for the control instruction corresponding to the operation; according to the historical operation data, the total operation weight of each control instruction is counted, and the target control instruction is obtained based on the total operation weight.
3. The method for self-constructing voice commands of an intelligent device as claimed in claim 2, characterized in that: The historical operation data includes at least one of historical key operations and historical voice operations; The counting of the total operation weight of each control instruction according to the historical operation data, and acquiring the target control instruction based on the total operation weight, includes: The historical key operations whose number of key presses is greater than the average number of key presses are weighted and accumulated; The weights of the historical voice operations whose number of uses is greater than the average number of operations are accumulated; the weights of the historical key operations and the historical voice operations corresponding to the same control instruction are summed as the total operation weight of the control instruction.
4. The method for self-constructing voice commands of an intelligent device according to claim 1, characterized in that: The method for the smart device to self-build voice commands also includes: Acquire the installation location information of the smart device; and add the installation location information to the target control instruction.
5. The method for self-constructing voice commands of an intelligent device as claimed in claim 1 or 4, characterized in that: The voice command set is a set of at least one of precise voice commands and generalized voice commands that can implement the function corresponding to the target control instruction.
6. The method for self-constructing voice commands of an intelligent device as claimed in claim 5, characterized in that: The method for the smart device to self-build voice commands also includes: After the target control instruction is executed, feedback information of the execution completion is displayed to the user.
7. The method for self-constructing voice commands of an intelligent device as claimed in claim 6, characterized in that: The feedback information is associated with the target control instruction.
8. The method for self-constructing voice commands of an intelligent device as claimed in claim 1, characterized in that: The network environment includes at least one of the following networks: a cloud network and a local wireless local area network; The historical input data includes at least one of the following data: historical typing data and historical voice input data.
9. The method for self-constructing voice commands of an intelligent device as claimed in claim 1, characterized in that: The method for the smart device to self-build voice commands also includes: After detecting that the feedback information display is completed, recommending to the user a voice command selected from the voice command set according to a preset rule.
10. A smart device, characterized in that: include: An acquisition module is used to obtain historical operation data of smart devices; A statistical module, used to count the usage degree of the control instructions corresponding to the historical operation data, and obtain the target control instructions based on the usage degree; A cloud acquisition module, used to acquire from the cloud a set of voice commands having the same function as the target control command; a selection module, used to select a voice command from the voice command set according to a preset rule as a trigger command for the target control command; The step of selecting a voice command from the voice command set as a trigger command for the target control instruction according to a preset rule includes: Setting the initial weight of each voice command in the voice command set to 0; Splitting the voice commands in the voice command set into combinations of keywords; Obtain historical input data of users in different network environments; When the keyword appears in the historical input data, the weight of the voice command corresponding to the keyword is increased by 1; the total weight of each voice command is counted, and the top three voice commands with the highest total weight are selected as the trigger commands.
11. A smart device, characterized in that: The invention comprises a memory, a processor and a self-built voice command program stored in the memory and executable on the processor, wherein when the processor executes the self-built voice command program, the steps of the method for self-built voice command of an intelligent device according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: A self-built voice command program is stored thereon, and when the self-built voice command program is executed by the processor, the steps of the method for self-building voice commands of an intelligent device as described in any one of claims 1-9 are implemented.
Citation Information
Patent Citations
Interaction method and system with whole-process voice control function
CN110060679A
Interaction method, device, equipment and system
CN111161706A