Control instruction code determination method and device, storage medium and home appliance
By downloading configuration files into home appliances and decoupling the voice module from the device baseboard, the high development cost problem caused by changes in the device baseboard is solved, and low-cost device updates are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2026-03-20
AI Technical Summary
Because the voice module and the device's baseboard are highly coupled, if the baseboard changes, a new voice module needs to be developed, resulting in high development costs.
By determining the device identification information of the home appliance, downloading the corresponding configuration file, using the voice module for voice recognition, determining the control command code corresponding to the text information based on the configuration file, and sending it to the device baseboard to execute the operation, the voice module and the device baseboard are decoupled.
When the equipment baseboard changes, only the configuration file needs to be updated without redeveloping the voice module, which reduces development costs and improves development and maintenance efficiency.
Smart Images

Figure CN116208436B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a control instruction code determination method and device, a storage medium and a household appliance. BACKGROUND
[0002] With the progress of science and technology, more and more smart home appliances have entered our families, such as smart sound boxes, smart air conditioners, smart water heaters, etc. But for developers, it is actually to add the function of "intelligence" on the basis of the original device, such as adding a voice module to the traditional air conditioner to make it have the ability of sound pickup, automatic speech recognition, natural language processing, text-to-speech, etc.
[0003] But the relationship between the text information in the voice module and the control instruction code has been determined in the development stage of the device, and cannot be modified in the later stage, that is, the voice module and the device board are highly coupled. At this time, if the board changes, the control instruction code for controlling the board to execute the operation will change, and then the voice module needs to be redeveloped, and the corresponding relationship between the text information in the voice module and the control instruction code needs to be determined again, resulting in difficulty in updating the device.
[0004] In view of the related art, since the coupling degree between the voice module of the device and the device board is high, in the case that the device board changes, a new voice module needs to be redeveloped, resulting in high development cost. Therefore, an effective solution has not been proposed yet.
[0005] Therefore, it is necessary to improve the related art to overcome the defects in the related art. SUMMARY
[0006] The embodiments of the present application provide a control instruction code determination method and device, a storage medium and a household appliance, to at least solve the problem of high development cost due to the high coupling degree between the voice module of the device and the device board, which requires redeveloping a new voice module in the case that the device board changes.
[0007] According to an aspect of an embodiment of the present application, a method for determining a control instruction is provided, comprising: determining device identification information of an electric appliance, and downloading a first configuration file corresponding to the electric appliance according to the device identification information; performing voice recognition on received voice data through a voice module in the electric appliance to obtain text information corresponding to the voice data; searching for the text information in a first configuration file stored in the electric appliance to determine a target control instruction code corresponding to the text information, wherein the first configuration file is located outside the voice module, and the first configuration file has a corresponding relationship between text information and a control instruction code; and sending the target control instruction code to a device motherboard of the electric appliance to enable the device motherboard to perform a target operation corresponding to the target control instruction code.
[0008] Further, the method for determining device identification information of an electric appliance and downloading a first configuration file corresponding to the electric appliance according to the device identification information comprises: determining a device model of the electric appliance, wherein the device identification information comprises the device model; sending a download request carrying the device model to a cloud server, wherein the cloud server stores a corresponding relationship between a device model and a first configuration file; and receiving the first configuration file corresponding to the device model sent by the cloud server. Further, in the process of searching for the text information in the first configuration file, the method further comprises: determining first reply information in the case that the text information does not exist in the first configuration file, wherein the first reply information is used to prompt a target object to reissue voice data; and playing the first reply information through a sound box of the voice module.
[0009] Further, after the target control instruction code is sent to the device motherboard of the electric appliance to enable the device motherboard to perform a target operation corresponding to the target control instruction code, the method further comprises: determining a first version number of the first configuration file; sending a second request to the cloud server to obtain a second version number of the first configuration file corresponding to the device identification information sent by the cloud server, wherein the second request carries the device identification information; and in the case that the second version number is higher than the first version number, sending a third request to the cloud server to obtain the first configuration file corresponding to the second version number sent by the cloud server.
[0010] Further, after sending the control command code to the device baseboard to cause the device baseboard to perform the target operation, the process includes: obtaining the response code sent by the device baseboard, wherein the response code is sent after the device baseboard performs the target operation; determining the second response information through the response code, and playing the second response information through the speaker of the voice module, wherein the second response information is used to prompt the target object, the home appliance, about the execution result.
[0011] Further, determining the second response information through the response code includes: obtaining a second configuration file sent by the cloud server, wherein the second configuration file contains a correspondence between response codes and second response information; and determining the second response information corresponding to the response code based on the second configuration file.
[0012] Further, searching in the first configuration file stored in the home appliance based on the text information includes: obtaining the voice data received by the voice module and extracting the voiceprint information of the voice data; determining whether the voiceprint information exists in a preset voiceprint list, wherein the voiceprint list stores voiceprint information that allows operation on the first configuration file; and if the voiceprint information exists in the preset voiceprint list, searching in the first configuration file stored in the home appliance based on the text information.
[0013] According to another aspect of the present invention, a control command code determination device is also provided, comprising: a download module, configured to determine device identification information of a home appliance and download a first configuration file corresponding to the home appliance according to the device identification information; an acquisition module, configured to perform speech recognition on received speech data through a speech module in the home appliance to obtain text information corresponding to the speech data; a determination module, configured to search in the first configuration file stored in the home appliance according to the text information to determine a target control command code corresponding to the text information, wherein the first configuration file is located outside the speech module and has a correspondence between text information and control command codes; and a sending module, configured to send the target control command code to the device base plate of the home appliance to cause the device base plate to perform a target operation corresponding to the target control command code.
[0014] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for determining control instructions when it is run.
[0015] According to a further aspect of the embodiment of the present application, there is also provided a household appliance comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the determination method of the control instruction code by the computer program.
[0016] According to the present application, in the case of obtaining the first configuration file, the voice module is used to perform voice recognition on the received voice data to obtain the text information corresponding to the voice data, and the target control instruction code corresponding to the text information is determined according to the first configuration file, and then the target control instruction code is sent to the device bottom plate of the household appliance to make the device bottom plate perform the target operation corresponding to the target control instruction code. By using the above technical solution, the voice module is used to determine the text information of the user, and then the control instruction corresponding to the text information is determined according to the first configuration file, and then only the first configuration file needs to be updated in the case of changing the device bottom plate, and the voice module does not need to be redeveloped, thereby solving the problem that the coupling degree between the voice module of the device and the device bottom plate is high, and the new voice module needs to be redeveloped in the case of changing the device bottom plate, resulting in high development cost. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the principles of the present application, and do not limit the present application in any manner. In the drawings:
[0018] Figure 1 is a hardware structure block diagram of a computer terminal of the determination method of the control instruction code according to the embodiment of the present application;
[0019] Figure 2 is a flow chart of the determination method of the control instruction code according to the embodiment of the present application (one);
[0020] Figure 3 is a framework diagram of the determination method of the control instruction code according to the embodiment of the present application;
[0021] Figure 4 is a flow chart of the determination method of the control instruction code according to the embodiment of the present application (two);
[0022] Figure 5 is a structure block diagram of the determination device of the control instruction code according to the embodiment of the present application (one);
[0023] Figure 6 is a structure block diagram of the determination device of the control instruction code according to the embodiment of the present application (two). DETAILED DESCRIPTION
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal for the method of determining control instruction codes according to an embodiment of the present invention. For example... Figure 1 As shown, a computer terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. In one exemplary embodiment, the computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 Equivalent functions or ratios shown Figure 1 The functions shown have more different configurations.
[0027] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the control instruction code determination method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, implements the above-mentioned method. The memory 104 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, which can be connected to the computer terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0028] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to be able to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0029] In order to solve the above-mentioned problems, in the embodiments of the present application, a control instruction code determination method is provided, Figure 2 is a flowchart of the control instruction determination method according to the embodiments of the present application, which includes the following steps:
[0030] Step S202: determining the device identification information of the home appliance device, and downloading a first configuration file corresponding to the home appliance device according to the device identification information;
[0031] Step S204: performing voice recognition on the received voice data by a voice module in the home appliance device to obtain text information corresponding to the voice data;
[0032] It should be noted that the voice module is located in the home appliance device, and the voice data is data collected by a microphone in the voice module;
[0033] Step S206: searching in a first configuration file saved in the home appliance device according to the text information to determine a target control instruction code corresponding to the text information, wherein the first configuration file is located outside the voice module, and the first configuration file has a corresponding relationship between text information and control instruction code;
[0034] It should be noted that the target control instruction code is a code that can be recognized by the device board, and in an exemplary embodiment, the target control instruction code is 001.
[0035] In step S208, the target control instruction code is sent to the device board of the home appliance, so that the device board performs a target operation corresponding to the target control instruction code.
[0036] It should be noted that the technical solution of the embodiment can be applied to a home appliance, and can be executed by a controller in the home appliance.
[0037] Through the above steps, in the case of obtaining the configuration file, the voice module is used to determine the text information of the user, and then the control instruction corresponding to the text information is determined according to the first configuration file, and then only the first configuration file needs to be updated in the case of change of the device board, without the need to redevelop the voice module, solving the problem that the coupling degree between the voice module of the device and the device board is high, and in the case of change of the device board, a new voice module needs to be redeveloped, resulting in high development cost.
[0038] It should be noted that the above step S202 has multiple execution modes, and in an optional embodiment, it can be implemented by the following manner: determining the device model of the home appliance, wherein the device identification information includes the device model; sending a download request carrying the device model to a cloud server; wherein the cloud server has a correspondence between the device model and the first configuration file; receiving the first configuration file corresponding to the device model sent by the cloud server.
[0039] That is, the cloud server has configuration files of multiple devices, and then the cloud server can determine the corresponding first configuration file according to the device model of the home appliance. It should be noted that the cloud server sends the highest version of the first configuration file to the home appliance.
[0040] In an optional embodiment, the voice data is recognized by the voice module to obtain the text information in the voice data, which can be implemented by the following manner: the first voice recognition module in the voice module processes the voice data to obtain the first text information; and the second voice recognition module in the voice module processes the voice data to obtain the second text information, wherein the voice recognition algorithms of the first voice recognition module and the second voice recognition model are different; the text information in the voice data is determined by the first text information and the second text information.
[0041] For better understanding, the following is specifically described. In order to prevent the text information recognized by the voice module from the voice data from being incorrect, the voice module can first recognize the voice data through two different voice recognition modules. The voice recognition algorithms of the two voice recognition modules are different, and are respectively a first voice recognition module and a second voice recognition module. In an exemplary embodiment, the neural networks adopted by the first voice recognition module and the second voice recognition module are different. First text information is obtained through the first voice recognition module, and second text information is obtained through the second voice recognition module. If the first text information and the second text information are the same, it can be considered that the recognition is correct, and the first text information or the second text information is taken as the text information in the voice data. If the first text information and the second text information are different, the voice module will adopt a third voice recognition module to recognize the voice data to obtain third text information. The voice recognition algorithm adopted by the third voice recognition module is different from the first voice recognition module and the second voice recognition module. In the case that the third text information is the same as one of the first text information and the second text information, the third text information is taken as the text information in the voice data.
[0042] It should be noted that, in the process of determining the control instruction code corresponding to the text information according to the first configuration file, if the text information does not exist in the first configuration file, a first reply information is determined, wherein the first reply information is used to prompt the target object to reissue voice data; the first reply information is played through the sound box of the voice module.
[0043] That is, if the text information does not exist in the first configuration file, it also indicates that the voice data of the target object is incorrect, and the household appliance needs to inform the target object through the sound box of the voice module that the input is incorrect, please re-input the instruction. It should be noted that the instruction input by the target object is sent in the form of voice data. In an exemplary embodiment, the target object is a user using the household appliance.
[0044] It should be noted that after the target control instruction code is sent to the device bottom plate of the household appliance to make the device bottom plate perform a target operation corresponding to the target control instruction code, it is also necessary to determine a first version number of the first configuration file; a second request is sent to the cloud server to obtain a second version number of the first configuration file corresponding to the device identification information sent by the cloud server, wherein the device identification information is carried in the second request; in the case that the second version number is higher than the second version number, a third request is sent to the cloud server to obtain the first configuration file corresponding to the second version number sent by the cloud server.
[0045] That is, after the preset time, the configuration file in the home appliance needs to be updated regularly, and then the home appliance needs to determine whether the version number of the latest version of the first configuration file in the cloud server is higher than the version number of the first configuration file itself. If it is higher, the home appliance needs to obtain the latest version of the first configuration file from the cloud server, and then update the original first configuration file. It should be noted that the preset time can be one day.
[0046] Further, after sending the control instruction code to the device backboard to make the device backboard execute the target operation, the home appliance also needs to obtain the response code sent by the device backboard, wherein the response code is sent by the device backboard after executing the target operation; determine the second reply information through the response code, and play the second reply information through the speaker of the voice module, wherein the second reply information is used to prompt the target object the execution result of the home appliance.
[0047] In an exemplary embodiment, the second reply information determined through the response code can be achieved by the following way: obtaining the second configuration file sent by the cloud server, wherein the second configuration file has a corresponding relationship between the response code and the second reply information; determining the second reply information corresponding to the response code according to the second configuration file.
[0048] That is, after the device backboard executes the target operation, it will feedback an execution result, that is, a response code, and then the home appliance can determine the second reply information from the second configuration file according to the response code. For example, if the device executes the boot operation successfully, the device backboard will feedback a response code 002, and then the home appliance can determine the second reply information as “boot success” from the second configuration file according to the response code 002, and then the home appliance plays “boot success” to the user through the speaker in the voice module. It should be noted that the developer of the device can customize the second reply message corresponding to the response code in the cloud server.
[0049] In an exemplary embodiment, the searching in the first configuration file saved in the home appliance according to the text information includes: obtaining the voice data received by the voice module, and extracting the voiceprint information of the voice data; determining whether the voiceprint information exists in a preset voiceprint list, wherein the voiceprint list saves voiceprint information allowed to operate the first configuration file; in the case that the voiceprint information exists in the preset voiceprint list, searching in the first configuration file saved in the home appliance according to the text information.
[0050] That is, for some dangerous home appliances, if the parents do not want the children to use, a voiceprint list can be set, so that the voiceprint of the children does not appear in the voiceprint list, and thus in the process of using the voice control home appliance, the children cannot control the home appliance because the voiceprint of the children cannot be found in the voiceprint list.
[0051] It should be noted that because the device bottom plates of different devices are different, the control instruction codes required by the device bottom plates to realize the same function are different, and the traditional voice module and the device bottom plate are highly coupled, that is, the relationship between the text information and the control instruction is uniquely determined in the process of device development, and the text information of different devices to realize the same function is different, and thus one voice data cannot control multiple devices to execute the same function.
[0052] In the embodiment, different configuration files can be configured for different devices, and thus one voice data can control multiple devices to execute the same function. Specifically, the following methods can be used:
[0053] Figure 3 is a framework diagram of the control instruction code determination method according to the embodiment of the present application. It should be noted that, Figure 3 The bottom plate 1, the bottom plate 2, and the bottom plate 3 in the embodiment are to realize the same function, but the control instruction codes required are different. As shown in Figure 3 different devices can be configured with corresponding configuration files, so that the control instruction codes determined by the text information 1 of different devices are to realize the same function. Thus, one voice data can control multiple devices to execute the same function.
[0054] Obviously, the above-described embodiments are only part of the embodiments of the present application, not all the embodiments. In order to better understand the above control instruction determination method, the above process is described below in combination with the embodiments, but it is not used to limit the technical solutions of the embodiments of the present application, specifically:
[0055] In an alternative embodiment, an abstract control command set is formulated by adding an instruction abstraction layer. After the motherboard receives the abstract control command (equivalent to the text information in the above embodiment), it is mapped to the real control command corresponding to itself. For example, the abstract command is: 1 start, 2 shut down, 3 increase temperature, and 4 decrease temperature. For air conditioner A, the actual control command corresponding to the abstract command 1 is 0001, and for air conditioner B, the actual control command corresponding to the abstract command 1 is 0008. In this way, the control command can be automatically converted into the corresponding real control command according to different devices. Similarly, a prompt set (equivalent to the second configuration file in the above embodiment) can also be written, and the control logic conflict, success or failure of the device can be automatically broadcast by looking up the table.
[0056] Figure 4 is a flowchart of the determination method of the control instruction code according to an embodiment of the present application. For better understanding, the following is specifically described:
[0057] Specifically, the home appliance device checks whether there is a configuration file (equivalent to the first configuration file in the above embodiment) locally when starting, and requests whether the latest version number of the configuration file is higher than the version number of the local file from the cloud. If there is no configuration file locally or there is a higher version on the cloud, the latest version of the configuration file is downloaded, otherwise it is not updated. If the configuration file is downloaded successfully, the configuration file is updated, if the download fails, the old configuration file is used, and if the home appliance device has no configuration file before, it prompts “download failure”.
[0058] Secondly, after receiving the voice control command, the home appliance device converts the abstract control command (equivalent to the text information in the above embodiment) into the actual control command by looking up the table. For example, for air conditioner A, the abstract command “1” (start) corresponds to the actual command “0001”, then only “0001” needs to be sent to the air conditioner motherboard, and the motherboard knows that it is to execute the start command.
[0059] Finally, the prompt of the device can also be described by the configuration file, for example, for air conditioner A, 1 corresponds to “air conditioner opening success”, 2 corresponds to “air conditioner opening failure”, and 3 corresponds to “intelligent mode cannot adjust temperature”. Therefore, according to the response code reported by the motherboard, the corresponding configuration table (equivalent to the second configuration file in the above embodiment) is looked up to know what the content to be prompted to the target object is.
[0060] In addition, the voice module and the device backboard are decoupled, so that the same voice module can be matched with different configuration files to adapt to all devices, and the development and maintenance cost is greatly reduced; the configuration file can be written by the backboard developer who is more familiar with the device function, so that the development and debugging efficiency is greatly improved; the configuration file can be dynamically downloaded and updated through the backboard model, so that the iteration of product function becomes convenient.
[0061] Through the description of the above implementation, those skilled in the art can clearly understand that the method according to the above embodiment can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device) execute the method of each embodiment of the present application.
[0062] In the embodiment, a control instruction determination device is also provided, which is used to implement the above embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware or a combination of software and hardware is also possible and is contemplated.
[0063] Figure 5 Fig. 1 is a structural block diagram of a control instruction code determination device according to an embodiment of the present application, which comprises:
[0064] The downloading module 52 is configured to determine the device identification information of the home appliance device, and download the first configuration file corresponding to the home appliance device according to the device identification information;
[0065] The obtaining module 54 is configured to perform voice recognition on the received voice data through the voice module in the home appliance device, to obtain the text information corresponding to the voice data;
[0066] The determining module 56 is configured to search the first configuration file saved in the home appliance device according to the text information, to determine the target control instruction code corresponding to the text information, wherein the first configuration file is located outside the voice module, and the first configuration file has a corresponding relationship between the text information and the control instruction code;
[0067] The sending module 58 is configured to send the target control instruction code to a device backboard of the home appliance, so that the device backboard performs a target operation corresponding to the target control instruction code.
[0068] By using the voice module to determine the text information of the user when the first configuration file is acquired, and then determining the control instruction corresponding to the text information according to the first configuration file, only the first configuration file needs to be updated in the case where the device backboard changes, and the voice module does not need to be redeveloped, thereby solving the problem that the coupling degree between the voice module and the device backboard of the device is high, the new voice module needs to be redeveloped in the case where the device backboard changes, and the development cost is high.
[0069] In an optional embodiment, the downloading module 52 is further configured to determine a device model of the home appliance, wherein the device identification information includes the device model, send a downloading request carrying the device model to a cloud server, wherein the cloud server stores a correspondence between the device model and the first configuration file, and receive the first configuration file corresponding to the device model sent by the cloud server.
[0070] In an optional embodiment, the obtaining module 54 is further configured to process the voice data by using a first voice recognition module in the voice module to obtain first text information, and process the voice data by using a second voice recognition module in the voice module to obtain second text information, wherein the voice recognition algorithm of the first voice recognition module is different from that of the second voice recognition module, and the text information in the voice data is determined by using the first text information and the second text information.
[0071] Optionally, the determining module 56 is further configured to determine first reply information in the case where the text information does not exist in the first configuration file, wherein the first reply information is used to prompt the target object to reissue the voice data, and the voice module is used to play the first reply information through a sound box.
[0072] That is, if the text information does not exist in the first configuration file, it means that the voice data of the target object is incorrect, and the home appliance needs to inform the target object through the sound box of the voice module that the input is incorrect, and the target object needs to reinput the instruction. It should be noted that the instruction input by the target object is in the form of voice data. In an exemplary embodiment, the target object is a user using the home appliance.
[0073] Figure 6 is a structure block diagram of a control instruction code determination device according to an embodiment of the present application, which comprises an updating module 60.
[0074] Optionally, the updating module 60 is further configured to determine a first version number of the first configuration file, and send a second request to the cloud server to obtain a second version number of the first configuration file corresponding to the device identification information sent by the cloud server, wherein the device identification information is carried in the second request; and in a case where the second version number is higher than the second version number, send a third request to the cloud server to obtain the first configuration file corresponding to the second version number sent by the cloud server.
[0075] That is, after a preset time, the configuration file in the home appliance needs to be updated regularly, and then the home appliance needs to determine whether the version number of the latest version of the first configuration file in the cloud server is higher than the version number of the first configuration file itself, if yes, the home appliance needs to obtain the latest version of the first configuration file from the cloud server, and then update the original first configuration file. Optionally, the determining module 56 is further configured to obtain a response code sent by the device board, wherein the response code is sent after the device board executes a target operation; determine second reply information through the response code, and play the second reply information through a sound box of the voice module, wherein the second reply information is used to prompt an execution result of the target object device.
[0076] Optionally, the determining module 56 is further configured to obtain a second configuration file sent by the cloud server, wherein the second configuration file has a corresponding relationship between a response code and second reply information; and determine the second reply information corresponding to the response code according to the second configuration file.
[0077] That is, after the device board executes a target operation, an execution result, i.e., a response code, is fed back, and then the home appliance can determine second reply information from the second configuration file according to the response code, for example, if the device executes a start operation successfully, the device board will feed back a response code 002, and then the home appliance can determine that the second reply information is “start operation successful” from the second configuration file according to the response code 002, and then the home appliance plays “start operation successful” to the user through the sound box in the voice module. It should be noted that the developer of the device can customize the second reply message corresponding to the response code in the cloud server.
[0078] Optionally, the determining module 56 is further configured to obtain the voice data received by the voice module, and extract voiceprint information of the voice data; determine whether the voiceprint information exists in a preset voiceprint list, wherein the voiceprint list stores voiceprint information allowed to operate the first configuration file; and in a case where the voiceprint information exists in the preset voiceprint list, search the first configuration file saved in the home appliance according to the text information.
[0079] That is, for some dangerous household appliances, if the parents do not want the children to use, a voiceprint list can be set, so that the voiceprint of the child does not appear in the voiceprint list, and then in the process of using the voice control household appliance by the child, the child cannot control the household appliance because the voiceprint of the child cannot be found in the voiceprint list.
[0080] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is arranged to execute the steps in any of the method embodiments.
[0081] Optionally, in the embodiment, the storage medium can be arranged to store a computer program for executing the following steps:
[0082] S1, determining device identification information of a household appliance, and downloading a first configuration file corresponding to the household appliance according to the device identification information;
[0083] S2, performing voice recognition on the received voice data by a voice module in the household appliance to obtain text information corresponding to the voice data;
[0084] S3, searching the first configuration file saved in the household appliance according to the text information to determine a target control instruction code corresponding to the text information, wherein the first configuration file is located outside the voice module, and the first configuration file has a corresponding relationship between the text information and the control instruction code;
[0085] S4, sending the target control instruction code to a device backplane of the household appliance, so that the device backplane performs a target operation corresponding to the target control instruction code.
[0086] In an example embodiment, the computer readable storage medium can include but is not limited to a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk and various media that can store computer programs.
[0087] The specific examples in the embodiment can refer to the examples described in the above embodiments and example embodiments, and the embodiment will not be described here.
[0088] The embodiment of the present application also provides a household appliance, which comprises a memory and a processor, the memory stores a computer program, and the processor is arranged to execute the computer program to execute the steps in any of the method embodiments.
[0089] Optionally, in the embodiment, the processor can be configured to perform the following steps by a computer program:
[0090] S1, determining the device identification information of the home appliance device, and downloading the first configuration file corresponding to the home appliance device according to the device identification information;
[0091] S2, performing voice recognition on the received voice data by the voice module in the home appliance device to obtain the text information corresponding to the voice data;
[0092] S3, searching in the first configuration file saved in the home appliance device according to the text information to determine the target control instruction code corresponding to the text information, wherein the first configuration file is located outside the voice module, and the first configuration file has a corresponding relationship between the text information and the control instruction code;
[0093] S4, sending the target control instruction code to the device bottom plate of the home appliance device, so that the device bottom plate performs the target operation corresponding to the target control instruction code.
[0094] In one example embodiment, the home appliance device can further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
[0095] The specific examples in the embodiment can refer to the examples described in the above embodiments and example embodiments, which will not be repeated here.
[0096] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0097] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining control instruction codes, characterized in that, include: Determine the device identification information of the home appliance, and download the first configuration file corresponding to the home appliance based on the device identification information; The received voice data is recognized by the voice module in the home appliance to obtain the text information corresponding to the voice data. The target control command code corresponding to the text information is determined by searching in the first configuration file stored in the home appliance according to the text information. The first configuration file is located outside the voice module and has a correspondence between text information and control command codes. The target control command code is a code that can be recognized by the device base plate. The target control command code is sent to the device base plate of the home appliance so that the device base plate performs the target operation corresponding to the target control command code; The method involves using a voice module in the home appliance to perform voice recognition on received voice data to obtain corresponding text information. This includes: processing the voice data using a first voice recognition module in the voice module to obtain first text information; and processing the voice data using a second voice recognition module in the voice module to obtain second text information. The first and second voice recognition modules use different voice recognition algorithms. If the first and second text information are the same, either the first or second text information is used as the text information corresponding to the voice data. If the first and second text information differ, the voice data is recognized using a third voice recognition module in the voice module to obtain third text information. If the third text information is the same as either the first or second text information, the third text information is used as the text information corresponding to the voice data. The third voice recognition module uses a different voice recognition algorithm than both the first and second voice recognition modules.
2. The method according to claim 1, characterized in that, Determine the device identification information of the home appliance, and download the first configuration file corresponding to the home appliance based on the device identification information, including: The device model of the home appliance is determined, wherein the device identification information includes: the device model; A download request carrying the device model is sent to a cloud server; wherein the cloud server stores the correspondence between device models and the first configuration file; Receive the first configuration file corresponding to the device model sent by the cloud server.
3. The method according to claim 1, characterized in that, During the process of searching in the first configuration file stored in the home appliance based on the text information, the method further includes: If the text information is not present in the first configuration file, a first response message is determined, wherein the first response message is used to prompt the target object to resend the voice data; The first reply message is played through the speaker of the voice module.
4. The method according to claim 1, characterized in that, After sending the target control command code to the device base plate of the home appliance, so that the device base plate executes the target operation corresponding to the target control command code, the method further includes: Determine the first version number of the first configuration file; A second request is sent to the cloud server to obtain a second version number of the first configuration file corresponding to the device identification information sent by the cloud server, wherein the second request carries the device identification information; If the second version number is higher than the first version number, a third request is sent to the cloud server to obtain the first configuration file corresponding to the second version number sent by the cloud server.
5. The method according to claim 1, characterized in that, After sending the control command code to the device baseboard to cause the device baseboard to perform the target operation, the process includes: Obtain the response code sent by the device baseboard, wherein the response code is sent by the device baseboard after performing the target operation; The second response information is determined by the response code and played through the speaker of the voice module. The second response information is used to prompt the target object of the execution result of the home appliance.
6. The method according to claim 5, characterized in that, The second response information is determined by the response code, including: Obtain the second configuration file sent by the cloud server, wherein the second configuration file contains a correspondence between response codes and second reply information; The second response information corresponding to the response code is determined based on the second configuration file.
7. The method according to claim 1, characterized in that, The search is performed based on the text information in the first configuration file stored in the home appliance, including: The voice data received by the voice module is acquired, and the voiceprint information of the voice data is extracted. Determine whether the voiceprint information exists in a preset voiceprint list, wherein the voiceprint list stores voiceprint information that allows operation on the first configuration file; If the voiceprint information exists in the preset voiceprint list, it is searched in the first configuration file saved in the home appliance according to the text information.
8. A device for determining control instruction codes, characterized in that, include: The download module is used to determine the device identification information of the home appliance and download the first configuration file corresponding to the home appliance based on the device identification information; The acquisition module is used to perform voice recognition on the received voice data through the voice module in the home appliance to obtain the text information corresponding to the voice data; The determination module is used to search in the first configuration file stored in the home appliance according to the text information to determine the target control command code corresponding to the text information. The first configuration file is located outside the voice module and has a correspondence between text information and control command codes. The target control command code is a code that can be recognized by the device base plate. The sending module is used to send the target control command code to the device base plate of the home appliance, so that the device base plate performs the target operation corresponding to the target control command code; The device is further configured to process speech data through a first speech recognition module in the speech module to obtain first text information; and to process speech data through a second speech recognition module in the speech module to obtain second text information, wherein the speech recognition algorithms of the first speech recognition module and the second speech recognition module are different; if the first text information and the second text information are the same, then the first text information or the second text information is used as the text information corresponding to the speech data; if the first text information and the second text information are different, then the speech data is recognized through a third speech recognition module in the speech module to obtain third text information; if the third text information is the same as one of the first text information and the second text information, then the third text information is used as the text information corresponding to the speech data, wherein the speech recognition algorithm used by the third speech recognition module is different from that of the first speech recognition module and the second speech recognition module.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 7.
10. A household appliance, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Data processing method and device based on intelligent household electrical appliance
CN106782535A
Voice control method and device, household appliance and storage medium
CN110808037A
Voice control method and device, computer equipment and storage medium
CN112071314A
Text information generation method and device
CN112765981A