CN112420052B - Equipment control method, device, storage medium and electronic device - Google Patents
Equipment control method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN112420052B CN112420052B CN202011296511.4A CN202011296511A CN112420052B CN 112420052 B CN112420052 B CN 112420052B CN 202011296511 A CN202011296511 A CN 202011296511A CN 112420052 B CN112420052 B CN 112420052B
- Authority
- CN
- China
- Prior art keywords
- information
- sub
- server
- mobile terminal
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/282—Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention provides a device control method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: collecting first voice information of control equipment; converting the first voice message into a text message; the text information is subpackaged and transmitted to the server, so that the server controls the equipment according to the text information, the problem that the server processing speed is low due to the fact that a user needs to wait for a long time to obtain a response due to the fact that a control instruction is directly uploaded to the server in the related technology can be solved, the server uploads the text information through subpackaging, the processing speed is improved, the time of waiting for the response is shortened, and user experience is improved.
Description
Technical Field
The invention relates to the field of Internet of things, in particular to a device control method and device, a storage medium and an electronic device.
Background
At present, along with the popularization of intelligent household appliances, more and more intelligent household appliances support networking and remote control, and human life is changed invisibly, but the existing household appliances are controlled directly by a mobile phone end, the control process needs manual operation, some scenes that the mobile phone is inconvenient to use exist, and the control process needs to be optimized.
In the related art, the control instruction is directly uploaded to the server, so that the processing speed of the server is low, and a user needs to wait for a long time to obtain a response.
Aiming at the problem that in the related technology, the processing speed of the server is low and the user needs to wait for a long time to obtain the response because the control instruction is directly uploaded to the server in the related technology, a solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a device control method, a device, a storage medium and an electronic device, which at least solve the problem that in the related technology, the processing speed of a server is low and a user can wait for a long time to obtain a response because a control instruction is directly uploaded to the server.
According to an embodiment of the present invention, there is provided an apparatus control method including:
collecting first voice information of control equipment;
converting the first voice information into character information;
and uploading the character information sub-packets to a server so that the server controls the equipment according to the character information.
Optionally, uploading the text information sub-package to a server includes:
the character information is verified, and a demand code is sent to a server after the character information passes the verification;
receiving a confirmation code sent by the server after the server verifies the demand code, wherein the confirmation code comprises handshake information and subpackage information;
splitting the text information according to the sub-package information to obtain a sub-package file, generating a connection code, sending the sub-package file carrying the connection code to the server according to the handshake information, wherein the server is used for checking the handshake information, storing the sub-package file into a temporary folder generated after checking the requirement code, and restoring the sub-package file according to the connection code to obtain the text information.
Optionally, the method further comprises:
receiving an interaction reminding message sent by the server, wherein the interaction reminding message is sent by the server under the condition that an analysis result obtained by analyzing the text information is a non-control instruction;
displaying a voice acquisition interface according to the interaction reminding message;
and acquiring second voice information again through the voice acquisition interface, and sending the second voice information to the server.
Optionally, the method further comprises:
starting a multi-round interaction mode before a voice acquisition interface is displayed according to the interaction reminding message;
and after receiving an instruction of stopping multi-round interaction sent by the server, closing the multi-round interaction mode.
According to another embodiment of the present invention, there is also provided an apparatus control method including:
receiving character information uploaded by a mobile terminal in a subpackage manner, wherein the character information is obtained by converting the mobile terminal according to collected first voice information of control equipment;
and controlling the equipment according to the text information.
Optionally, the receiving text information uploaded by the mobile terminal sub-package includes:
receiving a demand code sent by the mobile terminal after the text information is verified;
verifying the requirement code, generating a temporary folder, and then sending a confirmation code to the mobile terminal, wherein the confirmation code comprises handshake information and subpackage information;
receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal;
and checking the handshake information, storing the sub-packet file into the temporary folder, and restoring the sub-packet file according to the connection code to obtain the text information.
Optionally, controlling the device according to the text information includes:
analyzing the character information to obtain an analysis result;
and if the analysis result is a control instruction, sending the control instruction to the equipment, wherein the control instruction is used for controlling the equipment.
Optionally, the method further comprises:
and if the analysis result is a non-control instruction, sending an interaction reminding message to the mobile terminal, wherein the interaction reminding message is used for reminding the mobile terminal to start a multi-round interaction mode and to re-collect voice information.
Optionally, the method further comprises:
receiving second voice information which is collected again by the mobile terminal;
and sending the control instruction to the equipment and sending a multi-round interactive termination instruction to the mobile terminal under the condition that the analysis result of the second voice message is a control instruction, wherein the multi-round interactive termination instruction is used for indicating the mobile terminal to close the multi-round interactive mode.
According to another embodiment of the present invention, there is also provided an apparatus control device including:
the acquisition module is used for acquiring first voice information of the control equipment;
the conversion module is used for converting the first voice information into character information;
and the uploading module is used for uploading the character information sub-packets to a server so that the server controls the equipment according to the character information.
Optionally, the uploading module includes:
the verification submodule is used for verifying the character information and sending a demand code to the server after the character information passes the verification;
the first receiving submodule is used for receiving a confirmation code sent by the server after the server checks the requirement code, wherein the confirmation code comprises handshake information and subpackage information;
and the first sending submodule is used for splitting the text information according to the sub-packet information to obtain a sub-packet file, generating a connection code, sending the sub-packet file carrying the connection code to the server according to the handshake information, wherein the server is used for verifying the handshake information, storing the sub-packet file into a temporary folder generated after the requirement code is verified, and restoring the sub-packet file according to the connection code to obtain the text information.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving an interaction reminding message sent by the server, wherein the interaction reminding message is sent by the server under the condition that an analysis result obtained by analyzing the text message is a non-control instruction;
the display module is used for displaying a voice acquisition interface according to the interactive reminding message;
and the re-acquisition module is used for re-acquiring second voice information through the voice acquisition interface and sending the second voice information to the server.
Optionally, the apparatus further comprises:
the starting module is used for starting a multi-round interaction mode before a voice acquisition interface is displayed according to the interaction reminding message;
and the closing module is used for closing the multi-round interaction mode after receiving a multi-round interaction termination instruction sent by the server.
According to another embodiment of the present invention, there is also provided an apparatus control device including:
the second receiving module is used for receiving text information uploaded by the mobile terminal in a subpackage mode, wherein the text information is obtained by converting the mobile terminal according to the collected first voice information of the control equipment;
and the control module is used for controlling the equipment according to the text information.
Optionally, the second receiving module includes:
the second receiving submodule is used for receiving a demand code sent by the mobile terminal after the character information is verified;
the generation submodule is used for verifying the requirement code, generating a temporary folder and then sending a confirmation code to the mobile terminal, wherein the confirmation code comprises handshake information and subpackage information;
the second receiving submodule is used for receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal;
and the recovery submodule is used for checking the handshake information, storing the sub-packet file into the temporary folder, and recovering the sub-packet file according to the connection code to obtain the text information.
Optionally, the control module comprises:
the analysis submodule is used for analyzing the character information to obtain an analysis result;
and the second sending submodule is used for sending the control instruction to the equipment if the analysis result is the control instruction, wherein the control instruction is used for controlling the equipment.
Optionally, the apparatus further comprises:
and the first sending module is used for sending an interaction reminding message to the mobile terminal if the analysis result is a non-control instruction, wherein the interaction reminding message is used for prompting the mobile terminal to start a multi-turn interaction mode and reacquiring voice information.
Optionally, the apparatus further comprises:
the third receiving module is used for receiving second voice information which is acquired by the mobile terminal again;
and the second sending module is used for sending the control instruction to the equipment and sending a multi-round interaction termination instruction to the mobile terminal under the condition that the analysis result of the second voice message is a control instruction, wherein the multi-round interaction termination instruction is used for indicating the mobile terminal to close the multi-round interaction mode.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, first voice information of the control equipment is collected; converting the first voice information into character information; the text information is subpackaged and uploaded to the server, so that the server controls the equipment according to the text information, the problem that in the related technology, the processing speed of the server is low and a user can obtain a response only after waiting for a long time due to the fact that a control instruction is directly uploaded to the server in the related technology can be solved, the processing speed of the server is improved, the time for waiting for the response is shortened, and user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an apparatus control method of an embodiment of the present invention;
FIG. 2 is a first flowchart of a device control method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a device control method according to an embodiment of the present invention;
FIG. 4 is a flow chart of an APP Voice control interaction method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a device control apparatus according to an embodiment of the present invention
Fig. 6 is a block diagram two of the device control apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of the device control method according to the embodiment of the present invention, as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station 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.
Based on the above mobile terminal or network architecture, in this embodiment, an apparatus control method is provided, and fig. 2 is a first flowchart of the apparatus control method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, collecting first voice information of control equipment;
step S204, converting the first voice information into character information;
and step S206, uploading the character information sub-package to a server so that the server controls the equipment according to the character information.
In an embodiment of the present invention, the step S206 may specifically include: the text information is verified, specifically, the size of the text information is only verified, and a demand code is sent to a server after the verification is passed; receiving a confirmation code sent by the server after the server verifies the demand code, wherein the confirmation code comprises handshake information and subpackage information; splitting the text information according to the sub-package information to obtain a sub-package file, generating a connection code, sending the sub-package file carrying the connection code to the server according to the handshake information, wherein the server is used for checking the handshake information, storing the sub-package file into a temporary folder generated after checking the requirement code, and restoring the sub-package file according to the connection code to obtain the text information.
Through the steps S202 to S206, the problem that in the related art, the processing speed of the server is low and the user needs to wait for a long time to obtain a response due to the fact that the control instruction is directly uploaded to the server in the related art can be solved, and the server improves the processing speed, shortens the time for waiting for the response and improves the user experience due to the fact that the text information is uploaded in a sub-package mode.
In an optional embodiment, an interactive reminding message sent by the server is received, wherein the interactive reminding message is sent by the server under the condition that an analysis result obtained by analyzing the text message is a non-control instruction; displaying a voice acquisition interface according to the interaction reminding message; and acquiring second voice information again through the voice acquisition interface, and sending the second voice information to the server.
In another optional embodiment, before the voice acquisition interface is displayed according to the interaction reminding message, a multi-round interaction mode is started; and after receiving an instruction of stopping multi-round interaction sent by the server, closing the multi-round interaction mode.
Example 2
According to another embodiment of the present invention, there is also provided an apparatus control method, and fig. 3 is a second flowchart of the apparatus control method according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, receiving text information uploaded by a mobile terminal sub-package, wherein the text information is obtained by converting the mobile terminal according to collected first voice information of a control device;
in an embodiment of the present invention, the step S302 may specifically include: receiving a demand code sent by the mobile terminal after the character information is verified; verifying the requirement code, generating a temporary folder, and then sending a confirmation code to the mobile terminal, wherein the confirmation code comprises handshake information and subpackage information; receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal; and checking the handshake information, storing the sub-packet file into the temporary folder, and restoring the sub-packet file according to the connection code to obtain the text information.
And step S304, controlling the equipment according to the text information.
In an embodiment of the present invention, the step S304 may specifically include: analyzing the character information to obtain an analysis result; and if the analysis result is a control instruction, sending the control instruction to the equipment, wherein the control instruction is used for controlling the equipment.
Through the steps S302 to S304, the problem that in the related art, the processing speed of the server is low and the user needs to wait for a long time to obtain a response due to the fact that the control instruction is directly uploaded to the server in the related art can be solved, and the server improves the processing speed, shortens the time for waiting for the response and improves the user experience due to the fact that the text information is uploaded in a sub-package mode.
In an optional embodiment, if the analysis result is a non-control instruction, an interaction reminding message is sent to the mobile terminal, wherein the interaction reminding message is used for reminding the mobile terminal to start a multi-round interaction mode and to reacquire voice information.
In another optional embodiment, receiving second voice information re-collected by the mobile terminal; and under the condition that the analysis result of the second voice message is a control instruction, sending the control instruction to the equipment, and sending a multi-round interaction termination instruction to the mobile terminal, wherein the multi-round interaction termination instruction is used for instructing the mobile terminal to close the multi-round interaction mode.
In the embodiment of the invention, the safety and the confidentiality of voice information processing are ensured by adopting a mode of mutually isolating the equipment terminal, the mobile phone terminal, the analysis system and the voice platform; and the method of subpackaging and uploading the corpus information is adopted to make up the defect of analysis speed. Fig. 4 is a flowchart of an APP voice control interaction method according to an embodiment of the present invention, as shown in fig. 4, including:
s401, a mobile phone terminal collects user linguistic data and analyzes the user linguistic data into characters;
s402, the mobile phone terminal uploads the character sub-packets to an artificial intelligent voice platform;
s403, the intelligent voice platform analyzes and processes the words;
s404, when the voice platform can analyze and determine the user control equipment command, directly executing an equipment control processing flow;
s405, the equipment side sends a confirmation message to the artificial intelligent voice platform;
s406, when the user semantics are not clear after the voice platform is analyzed, returning multiple rounds of interactive reminding information and command symbols to the mobile phone APP through the voice interface;
s407, the APP at the mobile phone end processes the information returned by the AI interface, the popup displays the voice interaction reminding message for guiding the user to perform voice interaction again, and the multi-round voice interaction mode is started until the AI voice interface returns the command information for stopping multi-round interaction.
When the system is in a multi-round interactive mode, all user command characters analyzed by the system are analyzed and processed by the AI voice platform, and the APP end only provides an AI voice interface to return a popup window display function of the reminding information;
a voice system of the mobile phone end is responsible for voice recognition of the user, and semantically analyzes the voice into a character string which accords with the equipment standard and sends the character string to the APP; the APP is responsible for analyzing the standard character string and uploading the standard character string to the voice platform, and the APP does not receive the non-standard character string and uploads the non-standard character string; the APP is responsible for popup display of standard reminding information returned by the AI voice interface, and the returned non-standard reminding information is not displayed in a popup mode; the AI is responsible for semantic parsing processing and equipment control processing of user commands uploaded by the APP, and returning of voice interaction reminding information.
According to the embodiment of the invention, the parsing speed of the artificial intelligent voice platform is increased by sub-packaging and uploading the corpus parsing characters.
Example 3
According to another embodiment of the present invention, there is also provided an apparatus control device, and fig. 5 is a first block diagram of the apparatus control device according to the embodiment of the present invention, as shown in fig. 5, including:
the acquisition module 52 is used for acquiring first voice information of the control equipment;
a conversion module 54, configured to convert the first voice message into a text message;
and the uploading module 56 is used for uploading the text information sub-packages to a server so that the server controls the equipment according to the text information.
Optionally, the uploading module 56 includes:
the verification submodule is used for verifying the character information and sending a demand code to the server after the character information passes the verification;
the first receiving submodule is used for receiving a confirmation code sent by the server after the server checks the requirement code, wherein the confirmation code comprises handshake information and subpackage information;
the first sending submodule is used for splitting the text information according to the sub-packet information to obtain a sub-packet file, generating a connection code, and sending the sub-packet file carrying the connection code to the server according to the handshake information, wherein the server is used for checking the handshake information, storing the sub-packet file into a temporary folder generated after checking the requirement code, and restoring the sub-packet file according to the connection code to obtain the text information.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving an interaction reminding message sent by the server, wherein the interaction reminding message is sent by the server under the condition that an analysis result obtained by analyzing the text message is a non-control instruction;
the display module is used for displaying a voice acquisition interface according to the interactive reminding message;
and the re-acquisition module is used for re-acquiring second voice information through the voice acquisition interface and sending the second voice information to the server.
Optionally, the apparatus further comprises:
the starting module is used for starting a multi-round interaction mode before a voice acquisition interface is displayed according to the interaction reminding message;
and the closing module is used for closing the multi-round interaction mode after receiving a multi-round interaction termination instruction sent by the server.
Example 4
According to another embodiment of the present invention, there is further provided a device control apparatus, and fig. 6 is a second block diagram of the device control apparatus according to the embodiment of the present invention, as shown in fig. 6, including:
the second receiving module 62 is configured to receive text information uploaded by the mobile terminal in a subpackage manner, wherein the text information is obtained by converting the mobile terminal according to the collected first voice information of the control device;
and the control module 64 is used for controlling the equipment according to the text information.
Optionally, the second receiving module 62 includes:
the second receiving submodule is used for receiving a demand code sent by the mobile terminal after the character information is verified;
the generation submodule is used for verifying the requirement code, generating a temporary folder and then sending a confirmation code to the mobile terminal, wherein the confirmation code comprises handshake information and subpackage information;
the second receiving submodule is used for receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal;
and the recovery submodule is used for verifying the handshake information, storing the sub-packet file into the temporary folder, and recovering the sub-packet file according to the connection code to obtain the text information.
Optionally, the control module 64 includes:
the analysis submodule is used for analyzing the character information to obtain an analysis result;
and the sending submodule is used for sending the control instruction to the equipment if the analysis result is the control instruction, wherein the control instruction is used for controlling the equipment.
Optionally, the apparatus further comprises:
and the first sending module is used for sending an interaction reminding message to the mobile terminal if the analysis result is a non-control instruction, wherein the interaction reminding message is used for prompting the mobile terminal to start a multi-turn interaction mode and reacquiring voice information.
Optionally, the apparatus further comprises:
the third receiving module is used for receiving second voice information which is acquired by the mobile terminal again;
and the second sending module is used for sending the control instruction to the equipment and sending a multi-round interactive termination instruction to the mobile terminal under the condition that the analysis result of the second voice message is a control instruction, wherein the multi-round interactive termination instruction is used for indicating the mobile terminal to close the multi-round interactive mode.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 5
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, collecting first voice information of control equipment;
s12, converting the first voice information into character information;
and S13, uploading the character information sub-package to a server so that the server controls the equipment according to the character information.
Optionally, in this embodiment, the storage medium may be further configured to store a computer program for executing the following steps:
s21, receiving character information uploaded by a mobile terminal sub-package, wherein the character information is obtained by converting the mobile terminal according to collected first voice information of a control device;
and S22, controlling the equipment according to the character information.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 6
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, collecting first voice information of control equipment;
s12, converting the first voice information into character information;
and S13, uploading the character information sub-package to a server so that the server controls the equipment according to the character information.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps:
s21, receiving character information uploaded by the mobile terminal in a subpackage mode, wherein the character information is obtained by converting the mobile terminal according to collected first voice information of the control equipment;
and S22, controlling the equipment according to the text information.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims (8)
1. An apparatus control method characterized by comprising:
the method comprises the steps that a mobile terminal collects first voice information of control equipment;
converting the first voice information into character information;
uploading the text information sub-packets to a server so that the server analyzes the text information to obtain an analysis result, and sending the control instruction to the equipment under the condition that the analysis result is the control instruction;
wherein, the sub-package uploading of the text information to the server comprises:
the character information is verified, and a demand code is sent to a server after the character information passes the verification; receiving a confirmation code sent by the server after the server verifies the demand code, wherein the confirmation code comprises handshake information and subpackage information;
splitting the text information according to the sub-package information to obtain a sub-package file, generating a connection code, sending the sub-package file carrying the connection code to the server according to the handshake information, wherein the server is used for verifying the handshake information, storing the sub-package file into a temporary folder generated after the requirement code is verified, and restoring the sub-package file according to the connection code to obtain the text information.
2. The method of claim 1, further comprising:
receiving an interaction reminding message sent by the server, wherein the interaction reminding message is sent by the server under the condition that an analysis result obtained by analyzing the text information is a non-control instruction;
displaying a voice acquisition interface according to the interaction reminding message;
and re-acquiring second voice information through the voice acquisition interface, and sending the second voice information to the server.
3. An apparatus control method characterized by comprising:
receiving character information uploaded by a mobile terminal in a subpackage manner, wherein the character information is obtained by converting the mobile terminal according to collected first voice information of control equipment;
controlling the equipment according to the text information, comprising: analyzing the character information to obtain an analysis result; if the analysis result is a control instruction, sending the control instruction to the equipment, wherein the control instruction is used for controlling the equipment;
wherein, receiving the text information uploaded by the mobile terminal in different packages comprises: receiving a demand code sent by the mobile terminal after the text information is verified;
verifying the requirement codes, generating a temporary folder, and then sending confirmation codes to the mobile terminal, wherein the confirmation codes comprise handshake information and sub-package information;
receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal;
and checking the handshake information, storing the sub-packet file into the temporary folder, and restoring the sub-packet file according to the connection code to obtain the text information.
4. The method of claim 3, further comprising:
and if the analysis result is a non-control instruction, sending an interaction reminding message to the mobile terminal, wherein the interaction reminding message is used for reminding the mobile terminal to start a multi-turn interaction mode and to acquire voice information again.
5. An apparatus control device, characterized by comprising:
the acquisition module is used for acquiring first voice information of the control equipment;
the conversion module is used for converting the first voice information into character information;
the uploading module is used for uploading the text information sub-packets to a server so that the server analyzes the text information to obtain an analysis result, and sends the control instruction to the equipment under the condition that the analysis result is the control instruction;
wherein, the upload module comprises:
the verification submodule is used for verifying the character information and sending a demand code to the server after the character information passes the verification;
the first receiving submodule is used for receiving a confirmation code sent by the server after the requirement code is verified, wherein the confirmation code comprises handshake information and sub-packet information;
the first sending submodule is used for splitting the text information according to the sub-packet information to obtain a sub-packet file, generating a connection code, and sending the sub-packet file carrying the connection code to the server according to the handshake information, wherein the server is used for checking the handshake information, storing the sub-packet file into a temporary folder generated after checking the requirement code, and restoring the sub-packet file according to the connection code to obtain the text information.
6. An apparatus control device, characterized by comprising:
the second receiving module is used for receiving text information uploaded by the mobile terminal in a subpackage mode, wherein the text information is obtained by converting the mobile terminal according to the collected first voice information of the control equipment;
the control module is used for controlling the equipment according to the text information and comprises: analyzing the character information to obtain an analysis result; if the analysis result is a control instruction, sending the control instruction to the equipment, wherein the control instruction is used for controlling the equipment;
wherein the second receiving module comprises:
the second receiving submodule is used for receiving a demand code sent by the mobile terminal after the character information is verified;
the generation submodule is used for verifying the requirement code, generating a temporary folder and then sending a confirmation code to the mobile terminal, wherein the confirmation code comprises handshake information and subpackage information;
the second receiving submodule is used for receiving a sub-packet file which is sent by the mobile terminal according to the handshake information and carries a connection code, wherein the sub-packet file is obtained by splitting the text information by the mobile terminal according to the sub-packet information, and the connection code is generated by the mobile terminal;
and the recovery submodule is used for checking the handshake information, storing the sub-packet file into the temporary folder, and recovering the sub-packet file according to the connection code to obtain the text information.
7. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 2, 3 to 4 when executed.
8. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any one of claims 1 to 2 and 3 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011296511.4A CN112420052B (en) | 2020-11-18 | 2020-11-18 | Equipment control method, device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011296511.4A CN112420052B (en) | 2020-11-18 | 2020-11-18 | Equipment control method, device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112420052A CN112420052A (en) | 2021-02-26 |
CN112420052B true CN112420052B (en) | 2023-03-31 |
Family
ID=74773436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011296511.4A Active CN112420052B (en) | 2020-11-18 | 2020-11-18 | Equipment control method, device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112420052B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018038385A2 (en) * | 2016-08-23 | 2018-03-01 | 삼성전자 주식회사 | Method for voice recognition and electronic device for performing same |
CN110392158A (en) * | 2018-04-19 | 2019-10-29 | 成都野望数码科技有限公司 | A kind of message treatment method, device and terminal device |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6453290B1 (en) * | 1999-10-04 | 2002-09-17 | Globalenglish Corporation | Method and system for network-based speech recognition |
JP4073668B2 (en) * | 2001-12-28 | 2008-04-09 | モトローラ・インコーポレイテッド | Data transmission method for mobile communication device, data reception method for mobile communication device, mobile communication device, and voice portal system |
CN101494547A (en) * | 2009-03-05 | 2009-07-29 | 广东威创视讯科技股份有限公司 | Method and system for implementing conference combining local conference and network conference equipment |
CN102013254A (en) * | 2010-11-17 | 2011-04-13 | 广东中大讯通信息有限公司 | Man-machine interactive system and method for digital television voice recognition |
JP5699202B1 (en) * | 2013-12-25 | 2015-04-08 | エヌ・ティ・ティ・コムウェア株式会社 | Call processing system, load distribution method, and load distribution program |
CN104575502A (en) * | 2014-11-25 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | Intelligent toy and voice interaction method thereof |
CN104539739B (en) * | 2015-01-26 | 2019-03-29 | 浙江大学 | A kind of system, method and device that file uploads |
KR102281341B1 (en) * | 2015-01-26 | 2021-07-23 | 엘지전자 주식회사 | Method for controlling source device at sink device and apparatus for the same |
CN106057205B (en) * | 2016-05-06 | 2020-01-14 | 北京云迹科技有限公司 | Automatic voice interaction method for intelligent robot |
KR20180110974A (en) * | 2017-03-30 | 2018-10-11 | 엘지전자 주식회사 | Voice server, voice recognition server system, and method for operating the same |
CN109166576A (en) * | 2018-08-06 | 2019-01-08 | 佛山科学技术学院 | A kind of intelligent home control system based on voice control |
CN110738994A (en) * | 2019-09-25 | 2020-01-31 | 北京爱接力科技发展有限公司 | Control method, device, robot and system for smart homes |
CN110992955A (en) * | 2019-12-25 | 2020-04-10 | 苏州思必驰信息科技有限公司 | Voice operation method, device, equipment and storage medium of intelligent equipment |
CN111245868B (en) * | 2020-03-10 | 2021-04-13 | 诺领科技(南京)有限公司 | Narrowband Internet of things voice message communication method and system |
CN111510871A (en) * | 2020-03-16 | 2020-08-07 | 浙江时空道宇科技有限公司 | Beidou satellite capacity expansion communication method, electronic equipment and storage medium |
-
2020
- 2020-11-18 CN CN202011296511.4A patent/CN112420052B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018038385A2 (en) * | 2016-08-23 | 2018-03-01 | 삼성전자 주식회사 | Method for voice recognition and electronic device for performing same |
CN110392158A (en) * | 2018-04-19 | 2019-10-29 | 成都野望数码科技有限公司 | A kind of message treatment method, device and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN112420052A (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618780B (en) | Electrical equipment control method and system | |
CN109360564B (en) | Method and device for selecting language identification mode and household appliance | |
CN109561002B (en) | Voice control method and device for household electrical appliance | |
CN107274882B (en) | Data transmission method and device | |
CN109637534A (en) | Voice remote control method, system, controlled device and computer readable storage medium | |
CN111865736A (en) | Equipment control method and device | |
CN109067883B (en) | Information pushing method and device | |
CN108538289A (en) | The method, apparatus and terminal device of voice remote control are realized based on bluetooth | |
CN102984578A (en) | Method, video terminal and system for processing program channel list information | |
CN108932947B (en) | Voice control method and household appliance | |
CN107086949A (en) | It is a kind of to be used for people and the auxiliary intelligent apparatus of smart machine interactive operation | |
CN103607641A (en) | Method and apparatus for user registration in intelligent television | |
CN103049244B (en) | Method and device for transmitting operating instructions | |
EP3040877A1 (en) | Method and system for processing associated content | |
CN104424036A (en) | Synchronous operation method and device of smart terminal | |
CN112420052B (en) | Equipment control method, device, storage medium and electronic device | |
CN111090770A (en) | Data information acquisition method, device and system and household appliance | |
CN111832273A (en) | Method and device for determining destination message, storage medium and electronic device | |
KR101351264B1 (en) | System and method for message translation based on voice recognition | |
EP2908312A1 (en) | Self-adaptive intelligent voice device and method | |
CN110880994A (en) | Control method and control equipment of household appliance | |
CN108965905A (en) | A kind of live data plug-flow and offer and the method, apparatus for obtaining plug-flow address | |
CN112181147A (en) | Wearable device interaction method and device based on applet and electronic device | |
CN107291460A (en) | Television terminal and compiler server code control method and storage medium | |
CN113190565B (en) | Data updating method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |