CN116088331A - Equipment control method, device, electronic device and storage medium - Google Patents

Equipment control method, device, electronic device and storage medium Download PDF

Info

Publication number
CN116088331A
CN116088331A CN202211651647.1A CN202211651647A CN116088331A CN 116088331 A CN116088331 A CN 116088331A CN 202211651647 A CN202211651647 A CN 202211651647A CN 116088331 A CN116088331 A CN 116088331A
Authority
CN
China
Prior art keywords
control
target
household
user
equipment
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
CN202211651647.1A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211651647.1A priority Critical patent/CN116088331A/en
Publication of CN116088331A publication Critical patent/CN116088331A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application relates to a device control method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving control voice data sent by a current user, and acquiring user data from the control voice data, wherein the user data comprises identity information of the current user and intention keywords corresponding to the current user, and the intention keywords are used for representing target operations to be executed by corresponding household equipment; acquiring control authority of a current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information; under the condition that the current user has control authority, determining target household equipment capable of responding to target operation corresponding to the intention key words and corresponding equipment control instructions from the knowledge graph information based on the intention key words; and controlling the target household equipment to execute target operation according to the equipment control instruction. Through the method and the device, the beneficial effects of accurately controlling household equipment and improving user experience based on short instructions are achieved.

Description

Equipment control method, device, electronic device and storage medium
Technical Field
The present disclosure relates to the field of intelligent control technologies, and in particular, to a device control method, a device, an electronic apparatus, and a storage medium.
Background
With the rapid development of smart home, smart home technologies bring more and more convenience to people, they can operate through application program APP or voice, users can start or close devices through voice, and only the issued instruction can execute the control of devices with voice entrance (supporting voice control), for example: simultaneously, voice air conditioner, intelligent audio amplifier can also control through the voice assistant on the APP.
In the related technology, home equipment in a home scene is controlled by adopting equipment names and control intentions, and although the corresponding home equipment responds quickly, a user needs to use longer voice to indicate own intention every time in the interaction process, so that the user experience is poor, and when the user needs to restate a speaking operation, the emotion of the user is influenced; meanwhile, in the related art, a user is also adopted to control household equipment based on a simple instruction, but single control can be realized through multiple rounds of speaking interaction, which is time-consuming and has poor user experience.
Aiming at the problems that the adoption of simple instruction control on household equipment in the related technology requires multiple rounds of interaction and the user experience is poor, a better technical scheme does not exist yet.
Disclosure of Invention
The application provides a device control method, a device, an electronic device and a storage medium, which at least solve the problems that in the related art, multiple-wheel interaction is needed by adopting simple instruction control on household equipment, and user experience is poor.
In a first aspect, the present application provides an apparatus control method, including: receiving control voice data sent by a current user, and acquiring user data from the control voice data, wherein the user data comprises identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used for representing target operation required to be executed by corresponding household equipment; acquiring control authority of the current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information; under the condition that the current user has the control authority, determining target household equipment capable of responding to the target operation corresponding to the intention key word and a corresponding equipment control instruction from the knowledge graph information based on the intention key word; and controlling the target household equipment to execute the target operation according to the equipment control instruction.
In a second aspect, the present application provides an apparatus control device, including:
the system comprises a receiving module, a control module and a control module, wherein the receiving module is used for receiving control voice data sent by a current user and obtaining user data from the control voice data, the user data comprises identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used for representing target operation required to be executed by corresponding household equipment;
the acquisition module is used for acquiring the control authority of the current user for controlling the household equipment in the corresponding household scene from preset knowledge graph information according to the identity information;
the processing module is used for determining target household equipment which can respond to the target operation corresponding to the intention key word and a corresponding equipment control instruction from the knowledge graph information based on the intention key word under the condition that the current user has the control right;
and the control module is used for controlling the target household equipment to execute the target operation according to the equipment control instruction.
In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the device control method according to any one of the embodiments of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the device control method according to any one of the embodiments of the first aspect.
Compared with the related art, the embodiment provides a device control method, a device, an electronic device and a storage medium, by receiving control voice data sent by a current user and acquiring user data from the control voice data, wherein the user data comprises identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used for representing a target operation to be executed by corresponding household equipment; acquiring control authority of the current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information; under the condition that the current user has the control authority, determining target household equipment capable of responding to the target operation corresponding to the intention key word and a corresponding equipment control instruction from the knowledge graph information based on the intention key word; according to the equipment control instruction, the target household equipment is controlled to execute the target operation, the problem that the household equipment needs multiple-round interaction due to simple instruction control in the related technology is solved, and the problem of poor user experience is solved, so that the beneficial effects of accurately controlling the household equipment and improving the user experience based on the short instruction are realized.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a device control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of device control according to a preferred embodiment of the present application;
fig. 3 is a block diagram of a device control apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a schematic flow chart of a device control method according to an embodiment of the present application. As shown in fig. 1, an embodiment of the present application provides a device control method, including the following steps:
step S101, receiving control voice data sent by a current user, and acquiring user data from the control voice data, wherein the user data comprises identity information of the current user and intention keywords corresponding to the current user, and the intention keywords are used for representing target operations to be executed by corresponding household equipment.
In this embodiment, an execution body for executing the device control method in the embodiment of the present application includes, but is not limited to, an intelligent terminal, for example: the intelligent sound box can also be a voice assistant on an application program APP corresponding to the household equipment; meanwhile, the intelligent terminal receives corresponding voice control data through interaction with a user, and obtains control intention corresponding to the user from the control voice data.
In this embodiment, the control voice data received by the intelligent terminal is control voice data of a short conversation, where the control voice data is control voice data without a device name, for example: the wind speed is a little bit, a bit hot, the intelligent terminal carries out voice recognition and voiceprint recognition through the control voice data, correspondingly obtains the keyword of the control intention corresponding to the user, and characterizes the intention of the control voice data sent by the user through the keyword, and the intention is also the function or operation required to be executed by the corresponding household equipment, for example: when the air conditioner is hot, controlling the air conditioner to refrigerate; in this embodiment, the identity information of the current user is determined by identifying voiceprint information corresponding to the control voice data, for example: under the home scene, the users allowed to control all home devices under the home scene comprise a user A and a user B, and the current user can be determined to be the user A according to the voiceprint information.
Step S102, according to the identity information, the control authority of the current user for controlling the household equipment in the corresponding household scene is obtained from the preset knowledge graph information.
In this embodiment, the intelligent terminal records knowledge graph information, where the knowledge graph information is generated by machine learning in advance according to family personnel information in a corresponding home scene, including age, voiceprint information, corresponding device permissions set according to family member information, use conditions of home devices by users, corresponding environment parameters during use, and corresponding device operation instructions, and meanwhile, writing and updating knowledge graph information according to use of home devices by users and conditions of operating devices during interactive control operation by users.
In this embodiment, the knowledge graph information records the authority information of the corresponding user for controlling the device, that is, the corresponding device authority is set according to the identity information of the user, for example: some users are restricted from inhibiting control rights to operate devices, in particular, certain devices that a child cannot control.
Step S103, under the condition that the current user has control authority, determining target household equipment capable of responding to target operation corresponding to the intention key words and corresponding equipment control instructions from the knowledge graph information based on the intention key words.
In this embodiment, when the current user has the control right, in the knowledge graph information, determining the corresponding target home device according to the intended keyword without the device name, and using the operation instruction recorded in the knowledge graph information for the target home device as the device control instruction corresponding to the current control.
Step S104, according to the equipment control instruction, the target household equipment is controlled to execute the target operation.
Through the steps S101 to S104, receiving control voice data sent by a current user, and obtaining user data from the control voice data, where the user data includes identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used to characterize a target operation to be executed by a corresponding home device; acquiring control authority of a current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information; under the condition that the current user has control authority, determining target household equipment capable of responding to target operation corresponding to the intention key words and corresponding equipment control instructions from the knowledge graph information based on the intention key words; according to the equipment control instruction, the target household equipment is controlled to execute target operation, the problem that the household equipment needs multiple-round interaction due to simple instruction control in the related technology is solved, and the user experience is poor is solved, so that the beneficial effects of accurately controlling the household equipment and improving the user experience based on the short instruction are achieved.
It should be noted that, the method of the embodiment of the application combines the knowledge graph information to determine the equipment information, personnel identity and the location information under the home, and firstly determines the functions owned by the home equipment according to the home equipment information under the home, and the personnel identity (the user can set the relative equipment authority), the location information and the like to realize the equipment name-free control of the user voice control equipment; in this embodiment, the intelligent terminal needs to record resident population information such as family members, including age and voiceprint information, and also needs to set corresponding device permissions according to family member information corresponding to the current user, for example: the kids cannot control some household equipment, and also need to record the corresponding functions of household equipment in the home and the service condition of the household equipment by the user, and record and store the corresponding functions in the knowledge graph information; recording knowledge-graph information mainly relates to control authority problems, such as: parents set that children cannot control the water heater, can know who controls the household equipment according to voiceprints, and use habits of all people are different, and inquire records in knowledge graph information to control the corresponding household equipment after identity information is judged; if the control does not involve on/off (the on/off needs to be provided with a device name, and the control command is short, the user will not forget to provide the device name generally) and the knowledge-graph information is not recorded, the function of the household equipment under the household is inquired, for example: the household equipment A can regulate and control the temperature, the household equipment B can regulate and control the wind speed, and then the condition that the household members have control authority control and a plurality of household equipment have the temperature regulation/wind speed regulation function is judged, equipment with a close distance is preferentially selected, if the user quickly changes the household equipment control, correct household equipment is interactively recorded into knowledge graph information, weights are set, the weight is added with 1 each time, and the equipment with high follow-up weight is preferentially controlled.
It is further described that after the current user sends out the control voice data, the identity information of the user needs to be identified through voiceprint recognition, and meanwhile, whether the household equipment under the household corresponding to the current user has a corresponding function is searched, if the corresponding function is unique to the household equipment, and the control authority of the user can open the household equipment, the household equipment is directly opened; if no household equipment has the function, the user is directly replied; if the function is that a plurality of household devices are provided, but if the corresponding function is that operations of all household devices are enabled such as power on, power off and the like, a multi-round dialogue is carried out with a user, the user is inquired about which device is to be controlled, then a device control instruction is issued, if the issued instruction is that the wind speed is a little larger, the wind speed is somewhat cold, the wind speed is somewhat hot, the air conditioner, the fan and other devices with temperature regulation and wind speed regulation are found to have the function, and then the corresponding target household device can be determined according to the distance between the user and the target household device is directly controlled.
In some of these embodiments, the user data is obtained from the control voice data by: and carrying out voiceprint recognition on the control voice data to obtain a current voiceprint, wherein the identity information comprises the current voiceprint.
In this embodiment, the identity information of the current user is determined by the user information corresponding to the voiceprint recorded in the knowledge graph, and in this embodiment, voiceprint recognition is performed on the control voice data, where the obtained current voiceprint refers to the identity information corresponding to the current user, but no confirmation of the corresponding identity information is performed, so that the embodiment of the present application performs the acquisition of the voiceprint information.
In some of these embodiments, the user data is obtained from the control voice data by:
and step 21, performing voice recognition on the control voice data to obtain control intention information.
And 22, performing word segmentation processing on the control intention information, and determining an intention keyword from the obtained word segmentation result.
In this embodiment, the voice data sent by the current user is converted into the intended machine language that can be recognized by the intelligent terminal by performing voice recognition processing on the control voice data.
Performing voice recognition on the control voice data in the steps to obtain control intention information; the word segmentation processing is carried out on the control intention information, and the intention keywords are determined in the word segmentation result, so that the intention of the user is identified, and a data basis is provided for controlling the corresponding household equipment.
In some embodiments, according to the identity information, the control authority of the current user to control the home equipment in the corresponding home scene is obtained from the preset knowledge graph information, and the control authority is realized through the following steps:
step 31, obtaining user information corresponding to the preset voiceprint in the knowledge graph information, wherein the user information comprises preset device permission, and the device permission is used for representing whether to allow a user corresponding to the user information to control household equipment in a household scene.
And step 32, detecting the user information corresponding to the current voiceprint in the user information corresponding to the preset voiceprint to obtain target user information, and taking the equipment authority corresponding to the target user information as the control authority of the current user to control the household equipment in the corresponding household scene.
In this embodiment, the knowledge graph information records the authority information of the corresponding user for controlling the device, that is, the corresponding device authority is set according to the identity information of the user, for example: some users are restricted from inhibiting control rights to operate devices, in particular, certain devices that a child cannot control.
Acquiring user information corresponding to the preset voiceprint from the knowledge graph information in the steps, wherein the user information comprises preset equipment authority which is used for representing whether a user corresponding to the user information is allowed to control household equipment in a household scene; in the user information corresponding to the preset voiceprint, detecting the user information corresponding to the current voiceprint to obtain target user information, taking the equipment authority corresponding to the target user information as the control authority of the household equipment in the household scene corresponding to the current user control, and realizing the confirmation of the control authority of the current user and the preset equipment authority so as to determine whether the current user can be allowed to operate the corresponding household equipment or not, and providing the user experience sense on the basis of determining safety.
In some embodiments, based on the intention keyword, determining, from the knowledge graph information, the target home device capable of responding to the target operation corresponding to the intention keyword, and the corresponding device control instruction are implemented by:
and step 41, determining the operation which can be responded by all the household devices in the household scene.
And 42, judging whether the operation responded by all the household devices has the target operation or not, and obtaining a judging result.
And 43, determining target household equipment according to the judging result and the preset strategy, and taking a control instruction of the target household equipment as an equipment control instruction.
In this embodiment, after the current user sends out the control voice data, the identity information of the user needs to be identified through voiceprint recognition, and meanwhile, whether the home equipment under the home corresponding to the current user has a corresponding function is searched, if the corresponding function is unique to the home equipment, and the control authority of the user can open the home equipment, the home equipment is directly opened; if no household equipment has the function (corresponding to the target operation), the user is also directly replied; if the function is that a plurality of household devices are provided, but if the corresponding function is that operations of all household devices are enabled such as power on, power off and the like, a multi-round dialogue is carried out with a user, the user is inquired about which device is to be controlled, then a device control instruction is issued, if the issued instruction is that the wind speed is a little larger, the wind speed is somewhat cold, the wind speed is somewhat hot, the air conditioner, the fan and other devices with temperature regulation and wind speed regulation are found to have the function, and then the corresponding target household device can be determined according to the distance between the user and the target household device is directly controlled.
Through the operation of determining the response of all the household devices in the household scene in the steps; judging whether operations corresponding to the target operations exist in the operations responded by all the household devices or not, and obtaining a judging result; according to the judging result and the preset strategy, the target household equipment is determined, and the control instruction of the target household equipment is used as the equipment control instruction, so that the determination of the target household equipment based on the knowledge graph information is realized, the household equipment is controlled based on short control voice data without equipment names, and corresponding functional operation is realized.
In some embodiments, according to the judgment result and the preset policy, the target home device is determined, which is implemented by the following steps:
step 51, when the judging result is that a plurality of target operations exist in the operations responded by all the household devices, taking the household devices which are corresponding to the target operations as candidate household devices;
and step 52, determining the positions of all candidate home devices relative to the current user, and taking the candidate home device closest to the current user position as the target home device.
In this embodiment, when a plurality of home devices can perform a target operation, and the target operation is not an operation that can be performed by all home devices, for example, the corresponding target operation is: at the moment, the air conditioner and the fan have the functions of temperature regulation and air speed regulation, so that corresponding target household equipment can be determined according to the distance between the air conditioner and the fan and the user, and the target household equipment can be directly controlled.
When a plurality of target operations exist in the operations responded by all the household devices according to the judging result in the steps, the household devices which are operated correspondingly as the target operations are taken as candidate household devices; the method comprises the steps of determining the positions of all candidate home devices relative to a current user, and taking the candidate home device closest to the current user position as a target home device, so that the determination of the target home device based on a strategy is realized.
In some embodiments, determining the target home device according to the determination result and the preset policy includes the following steps: when the judging result shows that one target operation exists in the operations responded by all the household devices, determining that the target household devices comprise household devices which are operated as the target operation.
In this embodiment, when the function corresponding to the target operation is unique to the home device and the control authority of the user can open the home device, the home device is directly controlled to execute the target operation, so as to realize the corresponding function; meanwhile, when one target operation exists in the operations which are responded by all the household devices according to the judging result in the steps, the fact that the target household device comprises the household device which is correspondingly operated as the target operation is confirmed, and the fact that the target household device based on another strategy is confirmed is achieved.
In some embodiments, determining the target home device according to the determination result and the preset policy includes the following steps: and when the judging result is that the target operation does not exist in the operations responded by all the household devices, determining the household devices without the response control voice data, and replying to the current user to resend the voice control data.
In this embodiment, when no home device can be implemented, that is, no home device can execute a function corresponding to the target operation, the current user is replied that the corresponding device cannot be found or an interactive sentence for controlling the voice data is reissued to the current user.
In some embodiments, before determining whether there is a target operation among the operations that all home devices can respond to, the following steps are further implemented: judging whether the target operation is an enabling operation for all the household devices, and determining the target household devices by performing voice interaction with the current user when the target operation is judged to be the enabling operation.
In this embodiment, when the target operation is an operation that can be performed by all home devices, for example: when the device is turned on or turned off, the device interacts with the current user, so as to define the home equipment which needs to execute the target operation, for example: the current user may be sent interactive voice data of "which device is powered off".
In some of these embodiments, in the case that the current user does not have control authority, the following steps are further implemented: rejecting the control request corresponding to the current user, and recording that the current user does not have control authority and the control request which is currently rejected.
In this embodiment, when the current user does not have the control right, the current user is replied that the control on the device cannot be realized, and the corresponding information is formed into new map knowledge and recorded into the knowledge map information.
In some embodiments, after the target home device is controlled to execute the target operation according to the device control instruction, the following steps are further implemented: and recording target operation executed by the target household equipment according to the control voice data.
In this embodiment, after the current control is completed, the corresponding information is formed into new map knowledge and recorded into the knowledge map information.
Fig. 2 is a flowchart of a device control method according to a preferred embodiment of the present application, and referring to fig. 2, the flowchart includes the steps of:
step S201, control voice data input, and thereafter, step S202 and step S213 are performed simultaneously.
Step S202, whether the household equipment in the family has the function or not is searched, if yes, step S203 is executed, and if not, step S212 is executed.
Step S203, it is determined whether the on/off control is performed, if yes, step S204 is performed, and if not, step S205 is performed.
Step S204, a plurality of rounds of interaction determination target household equipment is entered.
Step S205, judging whether the knowledge-graph information has records, if yes, executing step S206, otherwise, executing step 207.
Step S206, directly controlling the target household equipment and adding weight to the knowledge graph information.
Step S207, determining whether a plurality of home devices have the function, if yes, executing step S208, otherwise, executing step S209.
Step S208, judging whether the user position is far or near, controlling the target household equipment, judging the user authority, and storing records after control.
Step S209, determining whether the user has the device authority, if so, executing step S210, otherwise, executing step S211.
Step S210, controlling the target household equipment and storing records.
Step S211, directly returning to the phone call and storing the record.
Step S212, directly returning to the phone call and storing the record.
In step S213, the voiceprint identifies the identity information.
In this embodiment, a device control apparatus is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. The terms "module," "unit," "sub-unit," and the like as used below may refer to a combination of software and/or hardware that performs a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 3 is a block diagram of a device control apparatus according to an embodiment of the present application, and as shown in fig. 3, the embodiment of the present application provides a device control apparatus, including:
the receiving module 31 is configured to receive control voice data sent by a current user, and obtain user data from the control voice data, where the user data includes identity information of the current user and an intent keyword corresponding to the current user, and the intent keyword is used to characterize a target operation to be executed by a corresponding home device.
The obtaining module 32 is coupled to the receiving module 31, and is configured to obtain, according to the identity information, from the preset knowledge graph information, a control authority of the current user to control the home device in the corresponding home scene.
The processing module 33 is coupled to the obtaining module 32, and is configured to determine, based on the intent keyword, a target home device capable of responding to the target operation corresponding to the intent keyword and a corresponding device control instruction from the knowledge graph information if the current user has the control right.
And the control module 34 is coupled with the processing module 33 and is used for controlling the target household equipment to execute the target operation according to the equipment control instruction.
By the device control device, control voice data sent by a current user is received, and user data are obtained from the control voice data, wherein the user data comprise identity information of the current user and intention keywords corresponding to the current user, and the intention keywords are used for representing target operations to be executed by corresponding household devices; acquiring control authority of a current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information; under the condition that the current user has control authority, determining target household equipment capable of responding to target operation corresponding to the intention key words and corresponding equipment control instructions from the knowledge graph information based on the intention key words; according to the equipment control instruction, the target household equipment is controlled to execute target operation, the problem that the household equipment needs multiple-round interaction due to simple instruction control in the related technology is solved, and the user experience is poor is solved, so that the beneficial effects of accurately controlling the household equipment and improving the user experience based on the short instruction are achieved.
In some embodiments, the receiving module 31 is further configured to perform voiceprint recognition on the control voice data to obtain a current voiceprint, where the identity information includes the current voiceprint.
In some embodiments, the receiving module 31 is further configured to perform voice recognition on the control voice data to obtain control intention information; and performing word segmentation processing on the control intention information, and determining intention keywords in the obtained word segmentation result.
In some of these embodiments, the acquisition unit 32 further comprises:
the first acquisition unit is used for acquiring user information corresponding to the preset voiceprint in the knowledge graph information, wherein the user information comprises preset equipment authority which is used for representing whether a user corresponding to the user information is allowed to control household equipment in a household scene.
The detection unit is coupled with the acquisition unit and is used for detecting the user information corresponding to the current voiceprint in the user information corresponding to the preset voiceprint to obtain target user information, and taking the equipment authority corresponding to the target user information as the control authority of the home equipment under the current user control corresponding home scene.
In some of these embodiments, the processing module 33 further comprises:
the second acquisition unit is used for determining the operation which can be responded by all the household devices in the household scene.
And the judging unit is coupled with the second obtaining unit and used for judging whether the operation responded by all the household equipment has the target operation or not, so as to obtain a judging result.
The determining unit is coupled with the judging unit and is used for determining target household equipment according to the judging result and a preset strategy and taking a control instruction of the target household equipment as an equipment control instruction.
In some embodiments, the determining unit is further configured to, when the determination result indicates that there are multiple target operations in the operations that all the home devices can respond to, use the home device that corresponds to the target operation as the candidate home device; and determining the positions of all candidate home devices relative to the current user, and taking the candidate home device closest to the current user position as the target home device.
In some embodiments, the determining unit is further configured to determine that the target home device includes a home device whose corresponding operation is a target operation when the determination result indicates that there is one target operation among operations to which all home devices can respond.
In some embodiments, the determining unit is further configured to determine, when the determination result indicates that the target operation does not exist in the operations to which all the home devices can respond, the home devices that do not respond to the control voice data, and reply the current user with the control voice data that is sent again.
In some embodiments, the processing module 33 is further configured to determine whether the target operation is an enabling operation for all home devices, and determine the target home device by performing voice interaction with the current user when the target operation is determined to be the enabling operation.
In some embodiments, the device control apparatus is further configured to reject the control request corresponding to the current user if the current user does not have the control right, and record that the current user does not have the control right and the currently rejected control request.
In some embodiments, the device control apparatus is further configured to record, after the target home device is controlled to perform the target operation according to the device control instruction, the target operation performed by the target home device according to the control voice data. .
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, the embodiment of the present application provides an electronic device including a processor 41, a communication interface 42, a memory 43, and a communication bus 44, where the processor 41, the communication interface 42, and the memory 43 complete communication with each other through the communication bus 44,
a memory 43 for storing a computer program;
the processor 41 is configured to execute the program stored in the memory 43, thereby implementing the method steps in fig. 1.
The processing in the electronic device implements the method steps in fig. 1, and the technical effects brought by the processing are consistent with those of the embodiment executing the device control method in fig. 1, and are not described herein again.
The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated to PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated to EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other equipment.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the device control method provided by any one of the method embodiments described above.
In a further embodiment provided herein, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the device control method of any of the above embodiments.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include others that are expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. A device control method, characterized by comprising:
receiving control voice data sent by a current user, and acquiring user data from the control voice data, wherein the user data comprises identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used for representing target operation required to be executed by corresponding household equipment;
acquiring control authority of the current user to control household equipment in a corresponding household scene from preset knowledge graph information according to the identity information;
under the condition that the current user has the control authority, determining target household equipment capable of responding to the target operation corresponding to the intention key word and a corresponding equipment control instruction from the knowledge graph information based on the intention key word;
and controlling the target household equipment to execute the target operation according to the equipment control instruction.
2. The method of claim 1, wherein obtaining user data from the control voice data comprises:
and carrying out voiceprint recognition on the control voice data to obtain a current voiceprint, wherein the identity information comprises the current voiceprint.
3. The method of claim 2, wherein obtaining user data from the control voice data comprises:
performing voice recognition on the control voice data to obtain control intention information;
and performing word segmentation on the control intention information, and determining the intention keywords in the obtained word segmentation result.
4. The method according to claim 2, wherein obtaining, from the preset knowledge-graph information, the control authority of the current user to control the home device in the corresponding home scene according to the identity information, includes:
acquiring user information corresponding to preset voiceprints from the knowledge graph information, wherein the user information comprises preset equipment rights, and the equipment rights are used for representing whether a user corresponding to the user information is allowed to control the household equipment in the household scene;
and detecting the user information corresponding to the current voiceprint in the user information corresponding to the preset voiceprint to obtain target user information, and taking the equipment authority corresponding to the target user information as the control authority of the current user to control the household equipment in the corresponding household scene.
5. The method according to claim 1, wherein determining, based on the intent keyword, from the knowledge-graph information, a target home device that can respond to the target operation corresponding to the intent keyword, and a corresponding device control instruction, includes:
determining the operation which can be responded by all the household devices in the household scene;
judging whether the operation responded by all the household equipment is the target operation or not, and obtaining a judging result;
and determining the target household equipment according to the judging result and a preset strategy, and taking a control instruction of the target household equipment as the equipment control instruction.
6. The method of claim 5, wherein determining the target home device according to the determination result and a preset policy comprises:
when the judging result shows that a plurality of target operations exist in the operations responded by all the household devices, taking the household devices which correspond to the target operations as candidate household devices;
and determining the positions of all the candidate home devices relative to the current user, and taking the candidate home device closest to the current user position as the target home device.
7. The method of claim 5, wherein determining the target home device according to the determination result and a preset policy comprises:
and when the judging result shows that one target operation exists in the operations responded by all the household devices, determining that the target household devices comprise the household devices with the corresponding operations as the target operations.
8. The method of claim 5, wherein determining the target home device according to the determination result and a preset policy comprises: and when the judging result is that the target operation does not exist in the operations responded by all the household devices, determining the household devices which do not respond to the control voice data, and replying to the current user to resend the voice control data.
9. The method of claim 5, wherein prior to determining whether there is any operation with the target among the operations to which all of the home devices can respond, the method further comprises:
judging whether the target operation is an enabling operation on all household equipment, and determining the target household equipment by performing voice interaction with the current user when the target operation is judged to be the enabling operation.
10. The method of claim 1, wherein in the event that the current user does not have the control authority, the method further comprises: rejecting the control request corresponding to the current user, and recording that the current user does not have the control authority and the control request which is currently rejected.
11. The method of claim 1, wherein after controlling the target home device to perform the target operation according to the device control instruction, the method further comprises: and recording the target operation executed by the target household equipment according to the control voice data.
12. An apparatus control device, comprising:
the system comprises a receiving module, a control module and a control module, wherein the receiving module is used for receiving control voice data sent by a current user and obtaining user data from the control voice data, the user data comprises identity information of the current user and an intention keyword corresponding to the current user, and the intention keyword is used for representing target operation required to be executed by corresponding household equipment;
the acquisition module is used for acquiring the control authority of the current user for controlling the household equipment in the corresponding household scene from preset knowledge graph information according to the identity information;
the processing module is used for determining target household equipment which can respond to the target operation corresponding to the intention key word and a corresponding equipment control instruction from the knowledge graph information based on the intention key word under the condition that the current user has the control right;
and the control module is used for controlling the target household equipment to execute the target operation according to the equipment control instruction.
13. The electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the device control method according to any one of claims 1 to 11 when executing a program stored on a memory.
14. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the device control method according to any one of claims 1-11.
CN202211651647.1A 2022-12-21 2022-12-21 Equipment control method, device, electronic device and storage medium Pending CN116088331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211651647.1A CN116088331A (en) 2022-12-21 2022-12-21 Equipment control method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211651647.1A CN116088331A (en) 2022-12-21 2022-12-21 Equipment control method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN116088331A true CN116088331A (en) 2023-05-09

Family

ID=86200230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211651647.1A Pending CN116088331A (en) 2022-12-21 2022-12-21 Equipment control method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116088331A (en)

Similar Documents

Publication Publication Date Title
CN111512365B (en) Method and system for controlling multiple home devices
JP7044415B2 (en) Methods and systems for controlling home assistant appliances
JP7198861B2 (en) Intelligent assistant for home automation
US11373644B2 (en) Wakeword detection
US11455418B2 (en) Assembling and evaluating automated assistant responses for privacy concerns
US10733222B1 (en) Profile disambiguation
US20190304466A1 (en) Voice control method, voice control device and computer readable storage medium
CN112051743A (en) Device control method, conflict processing method, corresponding devices and electronic device
JP2018533064A (en) Rapid identification method and intelligent robot for home use
US20200193982A1 (en) Terminal device and method for controlling thereof
US10825451B1 (en) Wakeword detection
WO2018075178A1 (en) Voice categorisation
CN111354357A (en) Audio resource playing method and device, electronic equipment and storage medium
CN111128168A (en) Voice control method, device and storage medium
CN110543129A (en) intelligent electric appliance control method, intelligent electric appliance control system and storage medium
CN112017663A (en) Voice generalization method and device and computer storage medium
CN111613229A (en) Voiceprint control method of television loudspeaker box, storage medium and smart television
CN113016212A (en) Electronic device and WiFi connection method thereof
US11240641B1 (en) Automated device grouping
CN116088331A (en) Equipment control method, device, electronic device and storage medium
KR102485339B1 (en) Apparatus and method for processing voice command of vehicle
JP6997554B2 (en) Home appliance system
KR102403315B1 (en) Voice recognition supporting system and method for vehicle control
CN114495921A (en) Voice processing method and device and computer storage medium
CN108922547B (en) Identity identification method and device and electronic equipment

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