CN113284488A - Control method and device for household appliance, voice box and storage medium - Google Patents

Control method and device for household appliance, voice box and storage medium Download PDF

Info

Publication number
CN113284488A
CN113284488A CN202110340856.3A CN202110340856A CN113284488A CN 113284488 A CN113284488 A CN 113284488A CN 202110340856 A CN202110340856 A CN 202110340856A CN 113284488 A CN113284488 A CN 113284488A
Authority
CN
China
Prior art keywords
household appliance
voice
instruction
internet
control
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.)
Pending
Application number
CN202110340856.3A
Other languages
Chinese (zh)
Inventor
张新
薛祥玉
曹冠忠
管江勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Haier Smart Home Co Ltd, Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN202110340856.3A priority Critical patent/CN113284488A/en
Publication of CN113284488A publication Critical patent/CN113284488A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Cardiology (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application belongs to the technical field of household appliances, and particularly relates to a control method and device of a household appliance, a voice box and a storage medium. The application aims at solving the problem that the control accuracy of the existing household appliance is lower. The application provides a control method of a household appliance, which is applied to a voice box, wherein the voice box is connected with the household appliance through a local area network, and the method comprises the following steps: when a voice instruction is received, judging whether the connection state of the voice box is the internet online state or not, wherein the voice instruction is used for controlling the household appliance; if not, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library; based on LAN, send control instruction to domestic appliance to make domestic appliance carry out control instruction, realized non-pronunciation domestic appliance's speech control, improved the convenience of domestic appliance control, simultaneously, based on LAN sends control instruction, improved control instruction transmission's stability, and then improved speech control's the degree of accuracy.

Description

Control method and device for household appliance, voice box and storage medium
Technical Field
The application belongs to the technical field of household appliances, and particularly relates to a control method and device of a household appliance, a voice box and a storage medium.
Background
With the continuous development of voice technology, more and more household appliances based on voice control are applied to various aspects of life, such as household appliances, air conditioners and the like with voice functions, users can control the household appliances through voice instructions, and the control mode is convenient and fast.
For the installed household appliances without voice function, voice control of the household appliances is often realized through a voice box, such as a sound box. The existing control mode of the household appliance based on the voice box is usually performed by depending on the internet, namely, the voice box and the household appliance perform data communication through the internet, so that a user is required to provide an internet environment in advance, and the application range is limited. And the voice box is usually placed in the living room, thereby leading to household appliances far away from the living room, such as a water heater placed in a kitchen, a washing machine placed in a toilet and the like, and leading to control failure of the household appliances due to weak internet signals, and the voice box is low in control accuracy and cannot meet the requirements.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problem of low accuracy of voice control of the existing household appliance, the present application provides a control method, an apparatus, a voice box and a storage medium for a household appliance, and for a household appliance without a voice function, the voice control of the household appliance is realized through the voice box, so that the convenience of the control of the household appliance is improved, and when the device is in an internet offline state or does not have an internet function, data communication can still be performed based on a Local Area Network (LAN), so that the accuracy of the voice control is improved.
In a first aspect, an embodiment of the present application provides a method for controlling a home appliance, where the method is applied to a voice box, and the voice box is connected to the home appliance through a local area network, and the method includes:
when a voice instruction is received, judging whether the connection state of the voice box is the internet online state or not, wherein the voice instruction is used for controlling the household appliance; if not, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library; and sending the control instruction to the household appliance based on a local area network so that the household appliance executes the control instruction.
Optionally, determining whether the connection state of the voice box is online via the internet includes:
and judging whether the connection state of the voice box is on-line with the Internet or not according to the first heartbeat signal of the voice box and the cloud server.
Optionally, when the connection state of the voice box is internet online, the method further includes:
based on the Internet, sending the voice instruction to a cloud server so as to generate a control instruction of the household appliance according to the voice instruction through the cloud server; receiving the control instruction sent by the cloud server based on the Internet; judging whether the connection state of the household appliance is internet online or not; and if not, sending the control instruction to the household appliance based on the local area network.
Optionally, determining whether the connection state of the household appliance is online with the internet includes:
acquiring a second heartbeat signal of the household appliance and the cloud server; and judging whether the connection state of the household appliance is the internet online or not according to the second heartbeat signal.
Optionally, after receiving the control instruction sent by the cloud server based on the internet, the method further includes:
and when the connection state of the household appliance is that the internet is on-line, the control instruction is sent to the household appliance based on the internet.
Optionally, after sending the voice instruction to the cloud server based on the internet, the method further includes:
when the control instruction sent by the cloud server is not received within a preset time period, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library; and sending the control instruction to the household appliance based on a local area network.
Optionally, the method further includes:
when the voice box is bound to a preset user account, acquiring each household appliance corresponding to the preset user account; and binding the state parameters of the household appliances with the household appliances under the preset user account so as to send the control instruction to the bound household appliances.
Optionally, after sending the control instruction to the household appliance, the method further includes:
acquiring an execution result of the household appliance; and generating voice prompt information according to the execution result.
In a second aspect, an embodiment of the present application further provides a control apparatus for a home appliance, where the apparatus is applied to a voice box, the voice box is connected to the home appliance through a local area network, and the apparatus includes:
the connection state judgment module is used for judging whether the connection state of the voice box is the internet online state or not when a voice instruction is received, wherein the voice instruction is used for controlling the household appliance; the control instruction generating module is used for generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library if the connection state of the voice box is that the internet is on-line; and the control instruction sending module is used for sending the control instruction to the household appliance based on a local area network so as to enable the household appliance to execute the control instruction.
Optionally, the connection state determining module is specifically configured to:
and judging whether the connection state of the voice box is on-line with the Internet or not according to the first heartbeat signal of the voice box and the cloud server.
Optionally, the apparatus includes:
the voice instruction sending module is used for sending the voice instruction to a cloud server based on the Internet when the connection state of the voice box is the Internet online state, so that a control instruction of the household appliance is generated through the cloud server according to the voice instruction; the control instruction receiving module is used for receiving the control instruction sent by the cloud server based on the Internet; the internet state judging module is used for judging whether the connection state of the household appliance is internet online or not; and the second control instruction sending module is used for sending the control instruction to the household appliance based on the local area network if the control instruction is not sent to the household appliance.
Optionally, the networking state determining module includes:
acquiring a second heartbeat signal of the household appliance and the cloud server; and judging whether the connection state of the household appliance is the internet online or not according to the second heartbeat signal.
Optionally, the apparatus further comprises:
and the third control instruction sending module is used for sending the control instruction to the household appliance based on the internet when the connection state of the household appliance is the internet online after receiving the control instruction sent by the cloud server based on the internet.
Optionally, the apparatus further comprises:
the second control instruction generation module is used for generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library after the voice instruction is sent to a cloud server based on the internet and when the control instruction sent by the cloud server is not received within a preset time period; and the fourth control instruction sending module is used for sending the control instruction to the household appliance based on a local area network.
Optionally, the apparatus further comprises:
the binding module is used for acquiring each household appliance corresponding to a preset user account when the voice box is bound to the preset user account; and binding the state parameters of the household appliances with the household appliances under the preset user account so as to send the control instruction to the bound household appliances.
Optionally, the apparatus further comprises:
the execution result acquisition module is used for acquiring the execution result of the household appliance after the control instruction is sent to the household appliance; and the execution result prompting module is used for generating voice prompting information according to the execution result.
In a third aspect, an embodiment of the present application further provides a voice box, including: a memory and at least one processor; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the control method of the household appliance provided by any corresponding embodiment of the first aspect of the application.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer executes instructions, and when a processor executes the computer to execute the instructions, the method for controlling a home appliance according to any embodiment corresponding to the first aspect of the present application is implemented.
In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the control method of the household appliance is implemented as provided in any embodiment corresponding to the first aspect of the present application.
As can be understood by those skilled in the art, the method and the device for controlling a home appliance, the voice box and the storage medium provided in the embodiment of the present application implement voice control on the home appliance through the voice box connected to the home appliance for the home appliance without a voice function, and specifically include: when a voice instruction is received, whether the voice box is on line with the Internet is judged at first, if not, a corpus analysis library stored in the voice box in advance generates a control instruction of the voice instruction, and the control instruction is sent to the corresponding household appliance based on the local area network, so that the voice control of the household appliance is realized, the convenience of the control of the household appliance is improved, meanwhile, the user is not required to provide an Internet connection environment, the application range is wide, data communication is carried out based on the local area network, the signal stability is high, and the reliability and effectiveness of the voice control are improved.
Drawings
Preferred embodiments of a control method, apparatus, voice box, and storage medium of a home appliance of the present application are described below with reference to the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the application. The attached drawings are as follows:
fig. 1 is an application scenario diagram of a control method of a home appliance according to an embodiment of the present application;
fig. 2 is a flowchart of a control method of a home appliance according to an embodiment of the present application;
fig. 3 is a flowchart of a control method of a home appliance according to another embodiment of the present application;
FIG. 4 is a schematic structural diagram of a control system of the household appliance in the embodiment of FIG. 3 of the present application;
fig. 5 is a flowchart of a control method of a home appliance according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a control device of a household appliance according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a voice box according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the embodiments of the present application, and it is obvious that the described embodiments are some but not all of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The following explains an application scenario of the embodiment of the present application:
fig. 1 is an application scenario diagram of a control method for a home appliance according to an embodiment of the present application, as shown in fig. 1, a user installs various home appliances 110, such as a water heater, an air conditioner, and the like, indoors, and the home appliance 110 does not have a voice function, that is, the home appliance cannot directly recognize a voice instruction of the user. Therefore, in order to implement the voice control of the household appliances 110, a voice box 120 may be added, and the voice box 120 is usually placed in a living room, and converts the voice command of the user into the control command of each household appliance 110 through the internet, thereby implementing the voice control of the non-voice household appliance 110.
However, the control method needs the user to provide an internet environment, and cannot be applied to an environment which is not networked, so that the application range is limited; data communication is performed based on the internet, which is heavily dependent on the stability of internet signals, and some household appliances 110 may be installed in an area far from the voice box 120, thereby causing weak internet signals, failing to effectively transmit control commands, and causing voice control failure.
In view of the above problems, the control method of the household appliance provided in the embodiment of the present application, for each household appliance that does not have a voice function, realizes voice control of the household appliance through a voice box and a lan connection manner, and improves convenience and reliability of control of the household appliance.
Fig. 2 is a flowchart of a control method of a home appliance according to an embodiment of the present application, where the control method of a home appliance according to an embodiment of the present application is applied to a voice box, which may also be referred to as a smart speaker, a voice control device, and the like, and the voice box is connected to the home appliance through a local area network, as shown in fig. 2, the control method of a home appliance includes the following steps:
step S201, when a voice instruction is received, judging whether the connection state of the voice box is the Internet online state.
The voice instruction is used for controlling the household appliance, and the voice instruction can be any one voice instruction sent by a user, a user terminal or a third-party terminal. The household appliance can be one or more of a water heater, an air conditioner, a refrigerator, a washing machine, a water dispenser, an illuminating lamp, a television and the like, and the household appliance does not have a voice function, namely cannot directly recognize and execute voice instructions. The connection state of the voice box may include an internet on-line state and an internet off-line state, the internet on-line state indicates that the voice box is connected to the internet, and may perform data communication with other devices such as a server and a home appliance through the internet, and the internet off-line state indicates that the voice box is not connected to the internet and may not perform data communication with other devices through the internet.
Specifically, the user can directly send a voice instruction to the voice box, or the user can send the voice instruction through a user terminal, a sound box and other devices, so that when the voice instruction is received by the voice box, whether the connection state of the voice box is online or not is judged.
Specifically, the voice box can be arranged in the same room as the household appliance, so that voice control can be performed on the household appliance.
Further, the voice box may include a moving device, and when the voice box receives a voice instruction for controlling the home appliance, the moving instruction of the moving device may be generated according to a position where the home appliance is located, so that the voice box moves to the periphery of the home appliance, thereby improving reliability of voice control.
Further, when the voice box receives a voice instruction for controlling the household appliance, the voice box can identify keywords of the voice instruction, so that the household appliance corresponding to the voice instruction is determined according to an identification result.
Specifically, the connection state of the voice box may be determined based on a parameter value of a preset parameter of the voice box. If the parameter value of the preset parameter is 1, the connection state of the voice box is determined to be internet online, and if the parameter value of the preset parameter is 0, the connection state of the voice box is determined to be internet offline or internet offline.
Further, after the voice box receives the voice command, whether the voice command is used for controlling the household appliance can be judged firstly, and if yes, whether the connection state of the voice box is internet online is further judged.
Further, when the voice instruction is a voice instruction only interacting with the voice box, that is, the voice instruction only relates to interaction between the user and the voice box and does not relate to control of the household appliance or other third-party equipment, for example, the voice instruction is an "alarm clock reserving tomorrow seven points", the voice box generates a control instruction of the voice box or generates voice response information according to the voice instruction and the corpus analysis library, so that the voice box executes the voice instruction or responds to the voice instruction of the user.
For example, the voice command may be "turn on the water heater", and after the voice box receives the voice command, the voice box determines that the voice command is a voice command for controlling the water heater R1 bound to the voice box according to the keyword "water heater", and then the voice box needs to judge the connection state of its own network to determine whether the internet is online.
And S202, if not, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library.
The corpus analysis library is pre-stored for the voice box and comprises control instructions corresponding to the voice instructions.
Specifically, if the voice box is not connected to the internet, that is, the connection state is not internet on-line or internet off-line, the voice box determines the control instruction of the household appliance corresponding to the voice instruction according to the voice instruction and the stored corpus analysis library.
Further, when the voice box is in an internet offline state, the voice box firstly performs voice recognition on the voice command to extract each keyword in the reservation command, and then determines the household appliance to be controlled and generates a control command of the household appliance based on each keyword.
For example, if the voice command is "turn on water heater, 65 ℃", the control command generated by the voice box may be: (on, 65) so that the water heater R1 is turned on based on the control instruction and the target temperature of heating is set to 65 ℃.
Step S203, based on the local area network, the control instruction is sent to the household appliance, so that the household appliance executes the control instruction.
Specifically, when the voice box is not connected to the internet, after the control instruction of the home appliance is generated, the control instruction may be sent to the corresponding home appliance based on the local area network.
Due to the characteristics of high reliability and short time delay of the local area network, each household appliance far away from the voice box can be ensured to quickly and accurately receive corresponding control instructions, and the reliability of voice control is improved.
Optionally, after sending the control instruction to the household appliance, the method further includes: acquiring an execution result of the household appliance; and generating voice prompt information according to the execution result so that the user can know the execution result of the household appliance.
The embodiment of the application provides a control method of household appliance, to the household appliance who does not possess the pronunciation function, through the pronunciation box of being connected with this household appliance, realized the speech control to household appliance, specifically do: when a voice instruction is received, whether the voice box is on line with the Internet is judged at first, if not, a corpus analysis library stored in the voice box in advance generates a control instruction of the voice instruction, and the control instruction is sent to the corresponding household appliance based on the local area network, so that the voice control of the household appliance is realized, the convenience of the control of the household appliance is improved, meanwhile, the user is not required to provide an Internet connection environment, the application range is wide, data communication is carried out based on the local area network, the signal stability is high, and the reliability and effectiveness of the voice control are improved.
Fig. 3 is a flowchart of a control method of a home appliance according to another embodiment of the present application, where this embodiment is directed to a case where the connection state of the voice box is internet online, and this embodiment is based on the embodiment shown in fig. 2, and further refines step S201, adds a step of binding the voice box with the home appliance before step S201, and adds a step related to performing result prompting after step S203. As shown in fig. 3, the method for controlling a household appliance provided in this embodiment includes the following steps:
step S301, when the voice box is bound to a preset user account, acquiring each household appliance corresponding to the preset user account.
The preset user account can be account information such as a nickname and a mobile phone number of the user.
Specifically, the user can be bound with the voice box, each household appliance and the like through a preset application program of the user terminal.
Specifically, when the voice box is bound to the preset user account, each household appliance is bound to the preset user account at the same time, and each household appliance and the voice box are connected with the same router, so that the voice box can acquire each household appliance bound to the preset user account.
Step S302, binding the household appliances under the preset user account according to the state parameters of the household appliances, so as to send the control command to the bound household appliances.
The state parameters may include parameters such as a security level and a control attribute of the home appliance, the control attribute is used to describe whether the home appliance allows the voice box to control, and the control attribute may include an allowing attribute and a disabling attribute, when the control attribute is the allowing attribute, it indicates that the home appliance allows the user to control the home appliance through the voice box, and when the control attribute is the disabling attribute, it indicates that the home appliance prohibits the user from controlling the home appliance through the voice box.
Specifically, when the security level of the household appliance under the preset user account is smaller than the preset level and the control attribute is the allowable attribute, the voice box is bound with the household appliance.
Step S303, when a voice instruction is received, judging whether the connection state of the voice box is Internet online or not according to the first heartbeat signal of the voice box and the cloud server.
The first heartbeat signal is a data packet interacted between the voice box and the cloud server and used for detecting whether an internet communication link between the voice box and the cloud server is disconnected or not.
Specifically, after receiving the voice instruction, the voice box may acquire a first heartbeat signal which is sent by the cloud server within a set time period and is closest to the time, and then determine whether the connection state of the voice box is internet online based on the first heartbeat signal.
Step S304, when the connection state of the voice box is the internet online state, the voice instruction is sent to a cloud server based on the internet, and a control instruction of the household appliance is generated according to the voice instruction through the cloud server.
Specifically, when the voice box is connected with the cloud server, that is, the connection state of the voice box is online, the voice instruction can be sent to the cloud server based on the internet so as to be received and recognized by the cloud server, and therefore the control instruction of the household appliance corresponding to the voice instruction is generated.
The advantage that sets up like this lies in, because the high in the clouds server possesses powerful processing and analysis ability, consequently, carries out voice command's processing through the high in the clouds server, can improve domestic appliance speech control's the degree of accuracy.
Step S305, receiving the control instruction sent by the cloud server based on the internet.
Specifically, after the cloud server generates the control instruction, the control instruction can be sent to the voice box through the internet.
Of course, the control instruction can also be directly sent to the corresponding household appliance by the cloud server.
Optionally, after sending the voice instruction to the cloud server based on the internet, the method further includes:
when the control instruction sent by the cloud server is not received within a preset time period, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library; and sending the control instruction to the household appliance based on a local area network.
The preset time period may be 1min, 3min or other time periods.
Specifically, when the voice box does not receive the control instruction sent by the cloud server within a preset time period, it indicates that the current internet connection is unstable or the signal is weak, the voice box processes the voice instruction, specifically, the voice box generates the control instruction of the home appliance according to the voice instruction and the corpus analysis library stored locally, and then sends the control instruction to the corresponding home appliance based on the local area network, and the specific process is the same as that of step S203 and step S204, and is not described herein again.
And step S306, judging whether the connection state of the household appliance is the Internet online state.
Specifically, whether the household appliance is on-line with the internet can be determined according to the networking state parameters of the household appliance.
Optionally, determining whether the connection state of the household appliance is online with the internet includes:
acquiring a second heartbeat signal of the household appliance and the cloud server; and judging whether the connection state of the household appliance is the internet online or not according to the second heartbeat signal.
The second heartbeat signal is a data packet interacted between the household appliance and the cloud server and used for detecting whether an internet communication link between the household appliance and the cloud server is disconnected or not.
Specifically, after receiving the control instruction, the voice box may acquire a second heartbeat signal which is sent by the cloud server and the household appliance within a set time period and is closest to the time, and then judge whether the connection state of the household appliance is internet online or not based on the second heartbeat signal.
And step S307, if not, sending the control command to the household appliance based on the local area network.
Specifically, when the connection state of the household appliance is determined to be the internet offline state or the household appliance is not connected with the cloud server, the control instruction is sent to the household appliance based on the local area network.
And step S308, acquiring an execution result of the household appliance based on the local area network.
Wherein, the execution result may include the state parameter of the household appliance after the household appliance executes according to the control instruction.
For example, when the voice command is "turn on the water heater", the execution result is used to determine whether the turning on of the water heater is successful, and may be the turning on success or the turning on failure.
Specifically, after the control instruction is sent to the household appliance based on the local area network, the execution result of the household appliance can be obtained based on the local area network.
And step S309, when the connection state of the household appliance is the Internet online state, the control instruction is sent to the household appliance based on the Internet.
And step S310, acquiring the execution result of the household appliance based on the Internet.
Further, after sending the control instruction to the household appliance, the method further comprises:
when the connection states of the household appliance and the voice box are both internet online, acquiring an execution result of the household appliance based on the internet; and when at least one of the connection states of the household appliance and the voice box is not on-line with the Internet, acquiring an execution result of the household appliance based on a local area network.
Step S311, generating voice prompt information according to the execution result.
The voice prompt information is used for describing an execution result through a voice broadcasting form.
For example, when the control instruction is a voice instruction "reserve 8 pm for bathing", the water heater is separately turned on at 7 pm and 30 pm based on the control instruction setting, the target temperature is 60 ℃ which is the default temperature, namely the water heater is successfully executed, and the voice prompt message may be "reserve successfully" or "reserve 8 pm for bathing today for you".
Specifically, fig. 4 is a schematic structural diagram of a control system of a home appliance in the embodiment shown in fig. 3 of the present application, as shown in fig. 4, the control system is composed of each home appliance 410, a voice box 420, a router 430, and a cloud platform 440, in fig. 4, 2 home appliances 410 are taken as an example, the cloud platform 440 may be composed of one or more cloud servers, each home appliance 410 and the voice box 420 are both bound to the same preset user account and are both connected to the router 430, the voice box 420 is bound to each home appliance 410, or the voice box 420 subscribes to each home appliance 410, so as to obtain a state parameter of each home appliance 410 and control each home appliance 410, and the voice box 420 is securely connected to each home appliance 410 through a local area network constructed by the router 430, thereby improving security of voice control of the home appliance.
Exemplarily, fig. 5 is a flowchart of a control method of a household appliance according to another embodiment of the present application, as shown in fig. 5, in this embodiment, a household appliance is taken as an example of a water heater, which can be placed in a toilet or a kitchen, and the control method includes the following steps:
step S501, both the water heater and the voice box are bound to a certain account of a preset application program, and the voice box subscribes to the water heater under the account.
And step S502, establishing local area network safety connection between the voice box and the water heater, and confirming that the local area network of the water heater is on line through a third heartbeat signal.
Step S503, after receiving the voice command, confirming whether the voice box is on-line with the Internet through the first heartbeat signal; if the internet is online, step S504 is executed, and if the internet is not online, step S508 is executed.
Step S504, the voice command is sent to the cloud server.
And step S505, the cloud server analyzes the voice command, generates a control command and sends the control command to the water heater through the Internet.
Step S506, determining whether the control command is successfully sent. If yes, go to step S507, otherwise go to step S508.
Step S507, the voice box plays the execution result.
Step S508, the voice box parses the voice command to generate a control command.
And step S509, sending the control command to the water heater through the local area network.
Step S510, determine whether the control command is successfully sent. If yes, go to step S507; if not, go to step S511.
Step S511, the lan connection is disconnected and reestablished, and after the connection is successful, the process returns to step S509.
In the embodiment, in a scenario of performing voice control on a household appliance without a voice function based on a voice box, when the voice box receives a voice instruction and the internet of the voice box is online, the voice instruction is sent to a cloud server based on the internet, so that the voice instruction is recognized and a corresponding control instruction is generated through the powerful processing and analyzing capability of the cloud server, and the accuracy of voice instruction recognition and voice control is improved; the control instruction is sent to the corresponding household appliance through the Internet or the local area network based on the voice box, so that the reliability of instruction sending is improved, the household appliance can execute the control instruction, and the application scene and the reliability of voice control are improved; meanwhile, the execution result of the household appliance can be acquired, the execution result of the household appliance is informed to the user in a voice broadcasting mode, the convenience and the intelligent degree of voice control are improved, and the user experience is improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 6 is a schematic structural diagram of a control device of a household appliance, according to an embodiment of the present application, the device is applied to a voice box, the voice box is connected to the household appliance through a local area network, as shown in fig. 6, the control device of the household appliance includes: a connection state judging module 610, a control instruction generating module 620 and a control instruction sending module 630.
The connection state determining module 610 is configured to determine whether the connection state of the voice box is internet online when a voice instruction is received, where the voice instruction is used to control a household appliance; a control instruction generating module 620, configured to generate a control instruction of the home appliance according to the voice instruction and the corpus analysis library if the connection state of the voice box is that the internet is online; a control instruction sending module 630, configured to send the control instruction to the home appliance based on a local area network, so that the home appliance executes the control instruction.
Optionally, the connection state determining module 610 is specifically configured to:
and judging whether the connection state of the voice box is on-line with the Internet or not according to the first heartbeat signal of the voice box and the cloud server.
Optionally, the apparatus includes:
the voice instruction sending module is used for sending the voice instruction to a cloud server based on the Internet when the connection state of the voice box is the Internet online state, so that a control instruction of the household appliance is generated through the cloud server according to the voice instruction; the control instruction receiving module is used for receiving the control instruction sent by the cloud server based on the Internet; the internet state judging module is used for judging whether the connection state of the household appliance is internet online or not; and the second control instruction sending module is used for sending the control instruction to the household appliance based on the local area network if the control instruction is not sent to the household appliance.
Optionally, the networking state determining module includes:
acquiring a second heartbeat signal of the household appliance and the cloud server; and judging whether the connection state of the household appliance is the internet online or not according to the second heartbeat signal.
Optionally, the apparatus further comprises:
and the third control instruction sending module is used for sending the control instruction to the household appliance based on the internet when the connection state of the household appliance is the internet online after receiving the control instruction sent by the cloud server based on the internet.
Optionally, the apparatus further comprises:
the second control instruction generation module is used for generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library after the voice instruction is sent to a cloud server based on the internet and when the control instruction sent by the cloud server is not received within a preset time period; and the fourth control instruction sending module is used for sending the control instruction to the household appliance based on a local area network.
Optionally, the apparatus further comprises:
the binding module is used for acquiring each household appliance corresponding to a preset user account when the voice box is bound to the preset user account; and binding the state parameters of the household appliances with the household appliances under the preset user account so as to send the control instruction to the bound household appliances.
Optionally, the apparatus further comprises:
the execution result acquisition module is used for acquiring the execution result of the household appliance after the control instruction is sent to the household appliance; and the execution result prompting module is used for generating voice prompting information according to the execution result.
The control device of the household appliance provided by the embodiment of the application can execute the control method of the household appliance provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 7 is a schematic structural diagram of a voice box according to an embodiment of the present application, and as shown in fig. 7, the voice box includes: memory 710, processor 720, and computer programs.
The computer program is stored in the memory 710 and configured to be executed by the processor 720 to implement the control method of the home appliance provided by any embodiment corresponding to fig. 2, fig. 3 and fig. 5 of the present application.
Wherein the memory 710 and the processor 720 are connected by a bus 730.
The related description may be understood by referring to the related description and effects corresponding to the steps in fig. 2, fig. 3, and fig. 5, and redundant description is not repeated here.
The present application also provides a readable storage medium, in which execution instructions are stored, and when at least one processor of a control device of a household appliance executes the execution instructions, when the computer executes the instructions and the processor executes the instructions, the control method of the household appliance provided by the above various embodiments is realized.
The present application also provides a program product comprising executable instructions stored in a readable storage medium. The at least one processor of the voice box can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the control device of the household appliance to implement the control method of the household appliance provided by the above various embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: it is readily understood by the person skilled in the art that the scope of protection of the present application is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the present application, and the technical scheme after the changes or substitutions will fall into the protection scope of the present application.

Claims (12)

1. A control method of a household appliance is characterized in that the method is applied to a voice box, the voice box is connected with the household appliance through a local area network, and the method comprises the following steps:
when a voice instruction is received, judging whether the connection state of the voice box is the internet online state or not, wherein the voice instruction is used for controlling the household appliance;
if not, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library;
and sending the control instruction to the household appliance based on a local area network so that the household appliance executes the control instruction.
2. The method of claim 1, wherein determining whether the connection status of the voice box is internet online comprises:
and judging whether the connection state of the voice box is on-line with the Internet or not according to the first heartbeat signal of the voice box and the cloud server.
3. The method of claim 1, wherein when the connection status of the voice box is internet on-line, the method further comprises:
based on the Internet, sending the voice instruction to a cloud server so as to generate a control instruction of the household appliance according to the voice instruction through the cloud server;
receiving the control instruction sent by the cloud server based on the Internet;
judging whether the connection state of the household appliance is internet online or not;
and if not, sending the control instruction to the household appliance based on the local area network.
4. The method of claim 3, wherein determining whether the connection status of the household appliance is Internet on-line comprises:
acquiring a second heartbeat signal of the household appliance and the cloud server;
and judging whether the connection state of the household appliance is the internet online or not according to the second heartbeat signal.
5. The method of claim 3, wherein after receiving the control command sent by the cloud server based on the internet, the method further comprises:
and when the connection state of the household appliance is that the internet is on-line, the control instruction is sent to the household appliance based on the internet.
6. The method of claim 3, wherein after sending the voice command to a cloud server based on the internet, the method further comprises:
when the control instruction sent by the cloud server is not received within a preset time period, generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library;
and sending the control instruction to the household appliance based on a local area network.
7. The method according to any one of claims 1-6, further comprising:
when the voice box is bound to a preset user account, acquiring each household appliance corresponding to the preset user account;
and binding the state parameters of the household appliances with the household appliances under the preset user account so as to send the control instruction to the bound household appliances.
8. The method according to any one of claims 1-6, wherein after sending the control instruction to the household appliance, the method further comprises:
acquiring an execution result of the household appliance;
and generating voice prompt information according to the execution result.
9. A control device of a household appliance, characterized in that the device is applied to a voice box, the voice box is connected with the household appliance through a local area network, the device comprises:
the connection state judgment module is used for judging whether the connection state of the voice box is the internet online state or not when a voice instruction is received, wherein the voice instruction is used for controlling the household appliance;
the control instruction generating module is used for generating a control instruction of the household appliance according to the voice instruction and the corpus analysis library if the connection state of the voice box is that the internet is on-line;
and the control instruction sending module is used for sending the control instruction to the household appliance based on a local area network so as to enable the household appliance to execute the control instruction.
10. A speech box, comprising: a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory, so that the at least one processor performs the control method of the home appliance according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which when executed by a processor, implement the control method of the home appliance according to any one of claims 1 to 8.
12. A computer program product comprising a computer program, characterized in that the computer program realizes the control method of a household appliance according to any one of claims 1 to 8 when executed by a processor.
CN202110340856.3A 2021-03-30 2021-03-30 Control method and device for household appliance, voice box and storage medium Pending CN113284488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110340856.3A CN113284488A (en) 2021-03-30 2021-03-30 Control method and device for household appliance, voice box and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110340856.3A CN113284488A (en) 2021-03-30 2021-03-30 Control method and device for household appliance, voice box and storage medium

Publications (1)

Publication Number Publication Date
CN113284488A true CN113284488A (en) 2021-08-20

Family

ID=77276015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110340856.3A Pending CN113284488A (en) 2021-03-30 2021-03-30 Control method and device for household appliance, voice box and storage medium

Country Status (1)

Country Link
CN (1) CN113284488A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113921009A (en) * 2021-10-11 2022-01-11 南京创维信息技术研究院有限公司 Electric appliance control method, system, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113921009A (en) * 2021-10-11 2022-01-11 南京创维信息技术研究院有限公司 Electric appliance control method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN110211580B (en) Multi-intelligent-device response method, device, system and storage medium
CN110853619B (en) Man-machine interaction method, control device, controlled device and storage medium
CN109769234B (en) Network distribution method and device, smart home system, equipment and storage medium
US11301208B2 (en) Control method, control device, and control system
CN109039842A (en) The control method of household appliance, apparatus and system
CN110808886A (en) Voice equipment control method and device, storage medium and voice equipment
CN110767225B (en) Voice interaction method, device and system
CN110632854A (en) Voice control method and device, voice control node and system and storage medium
CN114019807A (en) Data processing method, device, system, equipment and readable storage medium
CN112151013A (en) Intelligent equipment interaction method
CN110850736A (en) Control method and system
CN113284488A (en) Control method and device for household appliance, voice box and storage medium
CN112908326A (en) Household voice control learning and application method and device
CN112002316A (en) Electric appliance control method and device, storage medium and terminal
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN112751734A (en) Household appliance control method based on cleaning robot, cleaning robot and chip
CN114253147A (en) Intelligent device control method and device, electronic device and storage medium
CN110648664A (en) Household appliance control method and device with storage function
CN114999484A (en) Election method and system of interactive voice equipment
CN115884434A (en) Connection method of terminal and household appliance, terminal, household appliance and readable storage medium
CN113296415A (en) Intelligent household electrical appliance control method, intelligent household electrical appliance control device and system
CN117031973A (en) Household appliance control method, device, equipment and storage medium
CN113300920A (en) Intelligent household appliance control method and control equipment based on household appliance control group
CN115460060B (en) Device upgrading method and device of intelligent device, storage medium and electronic device
CN115148204B (en) Voice wakeup processing 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