Intelligent device location matching method, storage medium, and electronic device

By setting priority matching order and voice timbre recognition, the problem of inaccurate location name matching for smart devices was solved, achieving more efficient device positioning.

CN118432966BActive Publication Date: 2025-12-26QINGDAO HAIER TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410665424.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2025-12-26
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

In existing technologies, due to the diversity of user-input voice commands and the increase in the number of smart devices, the location name matching of smart devices fails, making it impossible to accurately locate the target device.

Method used

By receiving control commands, the priority matching order of the initial position name, master position, and hierarchical position name is set sequentially, or the target position is determined by recognizing voice timbre and contextual relationships, including the arrangement of position names in a multi-branch tree structure and the matching of historical control commands.

Benefits of technology

It improves the matching rate of smart devices, ensuring that the target location can be accurately found regardless of whether the control command contains the initial location name, thus enhancing the matching effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118432966B_ABST
    Figure CN118432966B_ABST
Patent Text Reader

Abstract

The application provides a position matching method of a smart device, a storage medium and an electronic device, and relates to the technical field of smart homes. The method comprises the following steps: receiving a control instruction, determining whether the initial position name of the smart device is contained in the control instruction; if it is determined that the initial position name is contained in the control instruction, successively taking the comparison between the initial position name and the preset standard position name as the first priority, taking the target position determined according to the master control position and the initial position name of the control instruction as the second priority, taking the comparison between the initial position name and the preset hierarchical position name as the third priority, and determining the target position corresponding to the initial position name; and if it is determined that the initial position name is not contained in the control instruction, successively taking the voice tone of the recognized control instruction as the first priority, taking the context relationship of the recognized control instruction as the second priority, taking the master control position corresponding to the control instruction as the third priority, and determining the target position corresponding to the control instruction.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of smart home, and in particular to a position matching method and device of a smart device, a storage medium and an electronic device. BACKGROUND

[0002] In the solution of smart home, the control of smart home appliances through voice is becoming more and more popular. For example, to turn on a TV, a voice instruction of "turn on the TV" can be input through an interactive device, and then the voice instruction is uploaded to the cloud through the interactive device. The cloud finds the matched smart TV according to the voice instruction, and then controls the corresponding smart TV to turn on.

[0003] In the prior art, due to the diversity of voice instructions input by users and the increase in the number of smart devices in the home environment, it may happen that no matched smart device can be found. For example, to turn on the light in the bathroom, if the room list does not have the name of the bathroom, only the washroom, it will reply that no light is found in the bathroom, which is not the expected result. The reason is that in the current matching scheme, when matching the position name according to the voice instruction, it is implemented according to the preset position name dictionary. Each position name in the position name dictionary is preset, and if it is a similar word or a synonym, the corresponding position name may not be found, and the matching fails.

[0004] In view of the above problems, how to correctly match the position name of the smart device to improve the matching rate of the smart device and improve the matching effect is a technical problem to be solved. SUMMARY

[0005] The present application provides a position matching method and device of a smart device, a storage medium and an electronic device to solve the defect of poor matching effect of position name when voice input in the prior art.

[0006] The present application provides a position matching method of a smart device, comprising:

[0007] receiving a control instruction for controlling a smart device, and determining whether the initial position name of the smart device is contained in the control instruction;

[0008] If it is determined that the initial position name is contained in the control instruction, the comparison between the initial position name and the preset standard position name is sequentially taken as the first priority, the comparison between the main control position of the control instruction and the initial position name is taken as the second priority, and the comparison between the initial position name and the preset hierarchical position name is taken as the third priority, and the target position corresponding to the initial position name is determined.

[0009] If it is determined that the initial position name is not included in the control instruction, the voice tone of the control instruction is identified as a first priority, the context relationship of the control instruction is identified as a second priority, and the master position corresponding to the control instruction is determined as a third priority, and the target position corresponding to the control instruction is determined.

[0010] According to the position matching method of the intelligent device provided in the application, the initial position name is compared with the preset standard position name as a first priority, the master position of the control instruction is compared with the initial position name as a second priority, and the initial position name is compared with the preset hierarchical position name as a third priority, and the target position corresponding to the initial position name is determined, comprising:

[0011] If the comparison is successful, the target position is determined according to the standard position name corresponding to the initial position name.

[0012] If the comparison fails, the master position of the control instruction is determined, and the target position is determined according to the master position and the initial position name.

[0013] If the target position corresponding to the master position and the initial position name is not determined, the initial position name is compared with the preset hierarchical position name, and the target position is determined according to the initial position name and the preset hierarchical position name.

[0014] According to the position matching method of the intelligent device provided in the application, the target position is determined according to the master position and the initial position name, comprising:

[0015] In the case that the initial position corresponding to the initial position name is multiple, it is determined whether the control position has a corresponding relationship with any initial position.

[0016] If it is determined that the control position has a corresponding relationship with any initial position, the initial position corresponding to the control position is determined as the target position corresponding to the initial position name.

[0017] If it is determined that the control position has no corresponding relationship with any initial position or that the initial position having a corresponding relationship with the control position is multiple, the determination of the target position according to the master position and the initial position name fails.

[0018] According to the position matching method of the intelligent device provided in the application, the preset hierarchical position name comprises: a plurality of levels of position names arranged in the form of a multi-way tree, and an upper level position name is a child node of a lower level position name.

[0019] The initial position name is compared with the preset position names of each level, and the target position is determined according to the initial position name and the preset position names of each level, including:

[0020] The position name of any level is selected as a current level position name, the initial position name is compared with the current level position name, and the target position is determined according to the current level position name that succeeds in comparison;

[0021] If the comparison of the initial position name and the current level position name fails, a last level position name of the current level is queried, the comparison of the initial position name and the last level position name is continued, and the target position is determined according to the last level position name that succeeds in comparison;

[0022] If the comparison of the initial position name and the last level position name fails, a next level position name of the current level is queried, the comparison of the initial position name and the next level position name is continued, and the target position is determined according to the next level position name that succeeds in comparison.

[0023] According to the position matching method of the intelligent device provided in the application, the target position is determined according to the current level position name that succeeds in comparison, including: if the corresponding positions of the current level position name that succeeds in comparison are multiple, the user is continuously prompted to input an instruction to determine the target position;

[0024] The target position is determined according to the next level position name that succeeds in comparison, including: if the corresponding positions of the next level position name that succeeds in comparison are multiple, the user is continuously prompted to input an instruction to determine the target position.

[0025] According to the position matching method of the intelligent device provided in the application, the voice tone of the control instruction is identified as a first priority, the context relationship of the control instruction is identified as a second priority, and the master position corresponding to the control instruction is determined as a third priority, and the target position corresponding to the control instruction is determined, including:

[0026] The voice tone of the control instruction is identified, if the voice tone is determined to be a child tone, the target position corresponding to the control instruction is determined to be a child room; if the voice tone is determined to be a non-child tone, historical control instructions in a preset time interval of the control instruction are continuously identified, and the positions corresponding to the historical control instructions are determined as target positions;

[0027] If the identification of the historical control instructions in the preset time interval of the control instruction fails, the master position corresponding to the control instruction is determined, and the corresponding target position is determined according to the master position.

[0028] According to the position matching method of the intelligent device provided in the application, the historical control instructions in the preset time interval of the control instruction are identified, the position corresponding to the historical control instruction is determined as the target position, and the method comprises the following steps:

[0029] If the historical control instructions in the preset time interval of the control instruction are multiple, the position corresponding to the historical control instruction with the smallest time interval of the control instruction is determined as the target position.

[0030] According to the position matching method of the intelligent device provided in the application, the master control position comprises a master control floor and / or a master control room.

[0031] The target position corresponding to the master control position is determined, which comprises the following steps: the target position corresponding to the master control floor and / or the master control room of the control instruction is determined.

[0032] The application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to realize the position matching method of the intelligent device according to any one of the above.

[0033] The application further provides a computer-readable storage medium comprising a stored program, wherein the program is executed to realize the position matching method of the intelligent device according to any one of the above.

[0034] The application further provides a computer program product comprising a computer program, wherein the computer program is executed by a processor to realize the position matching method of the intelligent device according to any one of the above.

[0035] The position matching method of the intelligent device provided in the application comprises the following steps: a control instruction for controlling the intelligent device is received; in the case that the control instruction contains an initial position name, the initial position name is compared with preset standard position names as a first priority, the master control position and the initial position name according to the control instruction are compared as a second priority, and the initial position name is compared with preset hierarchical position names as a third priority, so as to determine the target position corresponding to the initial position name; in the case that the control instruction does not contain the initial position name, the voice tone of the control instruction is identified as a first priority, the context relationship of the control instruction is identified as a second priority, and the master control position corresponding to the control instruction is determined as a third priority, so as to determine the target position corresponding to the control instruction, thereby realizing that the target position can be found according to the initial position name no matter whether the control instruction contains the initial position name or not, and whether the initial position name is accurate or not, so as to improve the matching rate of the intelligent device and improve the matching effect. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art without creative work based on these drawings also belong to the protection scope of the present application.

[0037] Figure 1 Fig. 1 is a schematic diagram of a hardware environment of a position matching method of a smart device according to an embodiment of the present application.

[0038] Figure 2 Fig. 2 is a schematic diagram of one of the flowcharts of the position matching method of the smart device provided by the present application.

[0039] Figure 3 Fig. 3 is a schematic diagram of the position name matching device provided by the present application.

[0040] Figure 4 Fig. 4 is a schematic diagram of another of the flowcharts of the position matching method of the smart device provided by the present application.

[0041] Figure 5 Fig. 5 is a schematic diagram of a third of the flowcharts of the position matching method of the smart device provided by the present application.

[0042] Figure 6 Fig. 6 is a schematic diagram of the structure of the position name matching device provided by the present application.

[0043] Figure 7 Fig. 7 is a schematic diagram of the structure of the electronic device provided by the present application. DETAILED DESCRIPTION

[0044] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art without creative work based on these drawings also belong to the protection scope of the present application.

[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0046] According to an aspect of an embodiment of the present application, a position matching method of a smart device is provided. The position matching method of the smart device is widely applied to smart home, smart home, smart home device ecology, intelligence house ecology, and whole-house intelligent digital control application scenarios. Optionally, in the present embodiment, the position matching method of the smart device can be applied to the hardware environment composed of a terminal device 102 and a server 104 as shown in the figure. Figure 1 As shown in the figure, the server 104 is connected with the terminal device 102 through a network, can be used to provide services (such as application services, etc.) for terminals or clients installed on terminals, can set a database on the server or independently of the server, and can be used to provide data storage services for the server 104, can configure cloud computing and / or edge computing services on the server or independently of the server, and can be used to provide data operation services for the server 104. Figure 1 As shown in the figure, the server 104 is connected with the terminal device 102 through a network, can be used to provide services (such as application services, etc.) for terminals or clients installed on terminals, can set a database on the server or independently of the server, and can be used to provide data storage services for the server 104, can configure cloud computing and / or edge computing services on the server or independently of the server, and can be used to provide data operation services for the server 104.

[0047] The network can include but is not limited to at least one of the following: wired network, wireless network. The wired network can include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network. The wireless network can include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 can not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart oven, smart refrigerator, smart oven, smart oven, smart washing machine, smart water heater, smart washing device, smart dishwasher, smart projection device, smart television, smart clothesline, smart curtain, smart audio and video, smart socket, smart sound, smart sound box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

[0048] The embodiment of the application discloses a position matching method of an intelligent device, and an execution subject can be a corresponding cloud in a smart home environment. Referring to Figure 2 , the method comprises the following steps.

[0049] 201. A control instruction for controlling an intelligent device is received, and it is judged whether the initial position name of the intelligent device is contained in the control instruction.

[0050] In the embodiment, the control instruction can be received in various ways, such as a control instruction received by a user through a touch screen, a voice control instruction received by a voice device, and the like.

[0051] In the embodiment, taking a home environment as an example, positions correspond to various rooms, and position names correspond to various room names.

[0052] Taking a voice control instruction of a user received by an intelligent voice dialogue module of an intelligent device as an example, the user inputs a voice: “Xiaoyou Xiaoyou, turn on the bedside lamp”, the intelligent voice dialogue module judges that the intelligent device contained in the voice control instruction is “the bedside lamp”, the control instruction is “turn on”, and the initial position name is “the bedroom”, and then determines that the target position corresponding to the initial position name is “the bedroom”, and then controls the bedside lamp in the bedroom to turn on, and replies “OK, turned on”.

[0053] It should be noted that in the smart home environment, there are intelligent devices corresponding to multiple target positions, such as lamps, including bedroom lamps, living room lamps, toilet lamps, and corridor lamps, and air conditioners, including bedroom air conditioners and living room air conditioners. Therefore, when the intelligent device is controlled, the target position of the intelligent device needs to be determined, so that the intelligent device can be further controlled according to the control instruction.

[0054] 202. If it is determined that the initial position name is contained in the control instruction, the comparison between the initial position name and a preset standard position name is sequentially taken as a first priority, the comparison between a main control position of the control instruction and the initial position name is taken as a second priority, and the comparison between the initial position name and a preset hierarchical position name is taken as a third priority, and the target position corresponding to the initial position name is determined.

[0055] It should be explained that the standard position name can be a pre-set position name pre-stored in an IOT cloud. For example, in a smart home scene, the standard position names include a living room, a bathroom, a master bedroom, a secondary bedroom, a dining room, and a balcony. In the comparison process, the intelligent voice dialogue module can upload the obtained initial position name to the cloud for comparison, so as to determine the standard position name corresponding to the initial position name.

[0056] The preset hierarchical position name can be a multi-branch tree structure formed by multiple position names. Referring to Figure 3, a schematic diagram of a hierarchical position name of the embodiment is shown. For example, the first level is a bathroom, the second level includes a master bathroom and a guest bathroom, and the master bathroom in the third level includes a washroom, a toilet, a bathroom, etc., and the guest bathroom includes a washroom, a toilet, and a bathroom, etc.

[0057] If the voice control instruction input by the user is "turn on the light in the toilet", the hierarchical position name is obtained first, and "toilet" in the voice control instruction is compared with the second level position name. Since the second level position name is "master bathroom" and "guest bathroom", the comparison fails. The upper level position name is continued to be searched, and "toilet" is compared with the upper level position name "bathroom". If the comparison fails, "toilet" in the voice control instruction is continued to be compared with the lower level position name. When two position names "toilet" are found, the user is asked to determine whether the light in the master bathroom or the light in the guest bathroom is to be turned on according to the content input by the user.

[0058] In the embodiment, a plurality of priority comparison schemes are set, so that the target position corresponding to the initial position name can be determined level by level. If the target position can be found through the comparison scheme of the previous priority, the comparison scheme of the subsequent priority is no longer executed. If the target position cannot be found through the comparison scheme of the previous priority, the comparison scheme of the subsequent priority is continued to be executed.

[0059] Specifically, step 202 includes:

[0060] The initial position name is compared with the preset standard position name. If the comparison succeeds, the target position is determined according to the standard position name corresponding to the initial position name. If the comparison fails, the master position of the control instruction is determined, and the target position is determined according to the master position and the initial position name.

[0061] If the determination of the corresponding target position according to the master position and the initial position name fails, the initial position name is continued to be compared with the preset hierarchical position name, and the target position is determined according to the initial position name and the preset hierarchical position name.

[0062] For another situation, all the comparison schemes of the priorities are executed, and the target position corresponding to the initial position name still cannot be determined, and a prompt of comparison failure is returned. For example, in a smart home scene, the kitchen does not have an air conditioner, but the user inputs "Xiaoyou Xiaoyou, turn on the air conditioner in the kitchen". The intelligent voice dialogue module returns a voice prompt of "no such device".

[0063] In addition, for the situation of adding a smart device in a smart home, the name of the smart device, the target position, and other information need to be input when the smart device is added, and the information is uploaded to the IOT cloud. Otherwise, the situation of position name matching failure may occur in the subsequent process.

[0064] 203、If it is determined that the initial position name is not included in the control instruction, the voice tone of the control instruction is identified as a first priority, the context relationship of the control instruction is identified as a second priority, and the master position corresponding to the control instruction is determined as a third priority, and the target position corresponding to the control instruction is determined.

[0065] For the case where the initial position name is not included in the control instruction, for example, the user inputs the voice control instruction "Xiao You, turn on the table lamp", the intelligent voice dialogue module determines that the intelligent device included in the voice control instruction is "table lamp", the control instruction is "turn on", but the target position is missing. In this case, the target position needs to be determined according to other additional comparison schemes.

[0066] Similar to the case where the initial position name is included in the control instruction, in this embodiment, by setting multiple priority comparison schemes, the target position corresponding to the control instruction can be determined step by step. If the target position can be found through the comparison scheme of the previous priority, the comparison scheme of the subsequent priority will not be executed; if the target position cannot be found through the comparison scheme of the previous priority, the comparison scheme of the subsequent priority will be continued.

[0067] Specifically, step 203 includes:

[0068] The voice tone of the control instruction is identified. If it is determined that the voice tone is a child tone, the target position corresponding to the control instruction is determined as a child room. If it is determined that the voice tone is not a child tone, the historical control instructions within a preset time interval of the control instruction are identified, and the position corresponding to the historical control instruction is determined as the target position.

[0069] If the identification of the historical control instructions within the preset time interval of the control instruction fails, the master position corresponding to the control instruction is determined, and the target position corresponding to the master position is determined.

[0070] It needs to be explained that in the current smart home scene, the child room and the non-child room are relatively easy to distinguish, but for adults, there are few rooms specially distinguished. In addition, the child tone and the adult tone are also relatively easy to distinguish, so in this embodiment, only the child tone and the non-child tone are distinguished when identifying the voice tone.

[0071] For example, the sound "turn on the sound" is identified, and the tone is a child tone, then the sound in the child room is turned on.

[0072] In addition, the historical control instruction refers to a control instruction before the current control instruction. For a control instruction lacking an initial position name, the corresponding target position can be defaulted as the target position corresponding to the last historical control instruction.

[0073] For example, it is identified that the current control instruction is "turn on the light" and the voice tone is an adult voice tone. The target position corresponding to the historical control instruction is identified. If the target position corresponding to the historical control instruction is the living room, the target position corresponding to the current control instruction is defaulted as the living room, and then the light in the living room is turned on.

[0074] The position matching method of the smart device provided in the embodiments of the present application comprises the following steps: receiving a control instruction for controlling a smart device; in the case that the control instruction contains an initial position name, sequentially taking comparison between the initial position name and a preset standard position name as a first priority, taking comparison between a master position of the control instruction and the initial position name as a second priority, and taking comparison between the initial position name and preset position names of each level as a third priority, to determine a target position corresponding to the initial position name; in the case that the control instruction does not contain the initial position name, sequentially taking identification of a voice tone of the control instruction as a first priority, taking identification of a context relationship of the control instruction as a second priority, and taking determination of a master position corresponding to the control instruction as a third priority, to determine a target position corresponding to the control instruction, so that the target position can be found according to the initial position name no matter whether the control instruction contains the initial position name and whether the initial position name is accurate, thereby improving the matching rate of the smart device and improving the matching effect.

[0075] Further, the three priority comparison schemes in step 202 are described illustratively.

[0076] The first priority: comparison between the initial position name and the preset standard position name.

[0077] The standard position name can include position names such as a bedroom and a living room. The initial position name and the standard position name are directly compared to determine the corresponding target position. In actual application, the control instruction input by the user is random, and is not necessarily input according to the standard position name. For example, for a bedroom, the control instruction of the user can include a master bedroom, a south bedroom, a bedroom, a bedroom, and the like. Therefore, the second priority or the third priority comparison scheme needs to be executed.

[0078] The second priority: determining the target position according to the master position and the initial position name.

[0079] The master position can include a master floor and a master room. In order to realize positioning of the master position, the positions of the smart devices in the home environment are defined in advance and saved to the cloud.

[0080] Specifically, referring toFigure 4 determining the target position according to the master position and the initial position name comprises: 401. in the case that the initial position corresponding to the initial position name is multiple, determining whether the control position has a corresponding relationship with any initial position.

[0081] 402. if it is determined that the control position has a corresponding relationship with any initial position, determining the initial position corresponding to the control position as the target position corresponding to the initial position name.

[0082] 403. if it is determined that the control position has no corresponding relationship with any initial position or the initial position having a corresponding relationship with the control position is multiple, the determination of the target position according to the master position and the initial position name fails.

[0083] For example, the user inputs "turn on the bedroom light", and the initial positions possibly corresponding to the bedroom include the master bedroom, the first secondary bedroom and the second secondary bedroom. Then, it is determined whether the master position receiving the control instruction is the master bedroom, the first secondary bedroom or the second secondary bedroom, and the target position corresponding to the initial position name is further determined.

[0084] If the user inputs "turn on the exhaust fan in the bathroom", but the bathroom includes the master bathroom and the guest bathroom, and the master position receiving the control instruction is the living room, the final target position cannot be determined only by the master position, and the judgment of the next priority needs to be continued.

[0085] The third priority is to compare the initial position name with preset hierarchical position names.

[0086] The preset hierarchical position names include multiple-level position names arranged in the form of a multi-branch tree, and an upper-level position name is a child node of a lower-level position name.

[0087] Referring to Figure 5 comparing the initial position name with the preset hierarchical position names, and determining the target position according to the initial position name and the preset hierarchical position names comprises: 501. selecting any hierarchical position name as a current hierarchical position name, comparing the initial position name with the current hierarchical position name, and determining the target position according to the current hierarchical position name on which the comparison succeeds.

[0088] Determining the target position according to the current hierarchical position name on which the comparison succeeds comprises: if the current hierarchical position name on which the comparison succeeds determines that the corresponding position is multiple, continuing to prompt the user to input an instruction to determine the target position.

[0089] For example, if the current level includes Sub-Satellite 1 and Sub-Satellite 2, and the user inputs the control command "Turn on the Sub-Satellite Lights," then based on the current level's location names, the corresponding locations are determined to be two. The system continues to prompt the user for further commands. If the user inputs "Turn on the lights of Sub-Satellite 1," then the target location is determined to be Sub-Satellite 1; or the user is prompted "Do you want to turn on the lights of Sub-Satellite 1?" If the user replies "Yes," then the target location is determined to be Sub-Satellite 1; if the user replies "No," then the target location is determined to be Sub-Satellite 2.

[0090] 502. If the comparison between the initial position name and the current level position name fails, query the position name of the previous level of the current level, and continue to compare the initial position name with the previous level position name. Determine the target position based on the previous level position name that was successfully compared.

[0091] In this embodiment, if the comparison between the initial position name and the current level position name fails, the search is first performed on the position name of the previous level; if the current level is the highest level and there is no previous level, the subsequent step 503 is executed directly.

[0092] Depend on Figure 3 As can be seen, the highest level generally refers to location names with a broader scope, while the lowest level generally refers to location names with a narrower scope. It's important to note that the highest-level location name might be a standard location name. During the execution of the first priority step, there might be issues such as standard location name loading failures or identification errors. Therefore, in this third-priority step, if the highest-level location name is set to a standard location name, the initial location names that failed to be identified in the first-priority identification method can be compared with the standard location name in this step.

[0093] If the user inputs the control command "turn on the bathroom light", and the comparison of the second-level location name fails, the search continues to the first-level location name. If the comparison is successful, the target location is determined to be "bathroom". If "bathroom" includes both "master bathroom" and "secondary bathroom", the user will be prompted to input a command to determine whether the target location is "master bathroom" or "secondary bathroom".

[0094] 503. If the comparison between the initial position name and the position name of the previous level fails, then query the position name of the next level of the current level, and continue to compare the initial position name with the position name of the next level. The target position is determined based on the position name of the next level that is successfully compared.

[0095] Determining the target location based on the next-level location name that was successfully compared includes: if multiple locations are determined by the next-level location name that was successfully compared, the user is prompted to input an instruction to determine the target location.

[0096] According to steps 501-503, the target position can be determined according to the initial position name and the preset position names of each level.

[0097] Further, the three priority comparison schemes in step 203 are described respectively.

[0098] First priority: identifying the voice tone of the control instruction.

[0099] In this embodiment, identifying the voice tone mainly refers to identifying the child tone and the non-child tone. Correspondingly, in the smart home scene, a special child room is set. If the voice tone is identified as a child, the target position of the control instruction is determined as the child room; if the voice tone is identified as a child, the second priority comparison scheme is continued to be executed.

[0100] Second priority: identifying the context relationship of the control instruction.

[0101] If the historical control instruction within the preset time interval of the control instruction is identified, the position corresponding to the historical control instruction is determined as the target position.

[0102] If multiple historical control instructions within the preset time interval of the control instruction are identified, the position corresponding to the historical control instruction with the smallest time interval of the control instruction is determined as the target position.

[0103] In this embodiment, the preset time interval can be set to 1 minute.

[0104] For example, there are three historical control instructions within 1 minute of the control instruction, and according to the order from small to large of the time interval of the control instruction, the target positions corresponding to the three historical control instructions are the master bedroom, the living room and the balcony respectively. Then, the position corresponding to the historical control instruction with the smallest time interval of the control instruction, i.e. the master bedroom, is determined as the target position.

[0105] If the time intervals of the historical control instruction and the current control instruction both exceed 1 minute, it is determined that the identification of the second priority fails.

[0106] Third priority: determining the master control position corresponding to the control instruction.

[0107] According to the master control floor and / or the master control room corresponding to the control instruction, the corresponding target position is determined.

[0108] In this case, it means that the target position corresponding to the control instruction cannot be identified according to the voice tone and the context relationship of the control instruction, so the master control position corresponding to the control instruction is determined according to the room where the smart device receiving the control instruction is located, and the master control position is taken as the target position.

[0109] For example, the control instruction corresponds to the second floor as the master control floor, and the master control room is the master bedroom. Thus, the final target position is determined as "the second floor master bedroom".

[0110] The three priority comparison schemes in step 203 are used to determine the target position corresponding to the control instruction through other additional conditions in the case where the initial position name is not included in the control instruction.

[0111] The position name matching device of the intelligent device provided in the present application is described below. The position name matching device of the intelligent device described below can be correspondingly referred to the position matching method of the intelligent device described above.

[0112] The embodiment of the present application discloses a position name matching device of an intelligent device, referring to Figure 6 , comprising:

[0113] The instruction receiving module 601 is configured to receive a control instruction for controlling the intelligent device, and determine whether the initial position name of the intelligent device is included in the control instruction.

[0114] The first matching module 602 is configured to, if it is determined that the initial position name is included in the control instruction, sequentially compare the initial position name with the preset standard position name as the first priority, compare the master control position of the control instruction with the initial position name as the second priority, and compare the initial position name with the preset hierarchical position name as the third priority, to determine the target position corresponding to the initial position name.

[0115] The second matching module 603 is configured to, if it is determined that the initial position name is not included in the control instruction, sequentially identify the voice tone of the control instruction as the first priority, identify the context relationship of the control instruction as the second priority, and determine the master control position corresponding to the control instruction as the third priority, to determine the target position corresponding to the control instruction.

[0116] Optionally, the first matching module 602 is specifically configured to:

[0117] Compare the initial position name with the preset standard position name. If the comparison is successful, the target position is determined according to the standard position name corresponding to the initial position name.

[0118] If the comparison fails, the master control position of the control instruction is determined, and the target position is determined according to the master control position and the initial position name.

[0119] If the target position corresponding to the master control position and the initial position name fails to be determined, the initial position name is compared with the preset hierarchical position name, and the target position is determined according to the initial position name and the preset hierarchical position name.

[0120] Optionally, the first matching module 602 is specifically configured to:

[0121] determine whether the control position has a corresponding relationship with any initial position in a case where the initial position corresponding to the initial position name is multiple;

[0122] if it is determined that the control position has a corresponding relationship with any initial position, determine the initial position corresponding to the control position as the target position corresponding to the initial position name;

[0123] if it is determined that the control position has no corresponding relationship with any initial position or the initial position having a corresponding relationship with the control position is multiple, fail to determine the target position according to the control position and the initial position name.

[0124] Optionally, the preset position names of each level include: multi-level position names arranged in the form of a multi-ary tree, and a position name of a higher level is a child node of a position name of a lower level.

[0125] The first matching module 602 is specifically configured to:

[0126] select a position name of any level as a current level position name, compare the initial position name with the current level position name, and determine the target position according to the current level position name that succeeds in comparison;

[0127] if the comparison of the initial position name with the current level position name fails, query a position name of a previous level of the current level, continue to compare the initial position name with the position name of the previous level, and determine the target position according to the position name of the previous level that succeeds in comparison;

[0128] if the comparison of the initial position name with the position name of the previous level fails, query a position name of a next level of the current level, continue to compare the initial position name with the position name of the next level, and determine the target position according to the position name of the next level that succeeds in comparison.

[0129] Optionally, the first matching module 602 is specifically configured to:

[0130] if the corresponding position determined by the current level position name that succeeds in comparison is multiple, continue to prompt a user to input an instruction to determine the target position;

[0131] if the corresponding position determined by the position name of the next level that succeeds in comparison is multiple, continue to prompt the user to input the instruction to determine the target position.

[0132] Optionally, the second matching module 603 is specifically configured to:

[0133] identifying a voice tone of the control instruction, if it is determined that the voice tone is a child voice tone, determining that a target position corresponding to the control instruction is a child room, if it is determined that the voice tone is a non-child voice tone, continuing to identify a historical control instruction within a preset time interval of the control instruction, and determining a position corresponding to the historical control instruction as the target position;

[0134] if the identification of the historical control instruction within the preset time interval of the control instruction fails, determining a master control position corresponding to the control instruction, and determining a target position corresponding to the master control position.

[0135] Optionally, the second matching module 603 is specifically configured to:

[0136] if the historical control instruction within the preset time interval of the control instruction is multiple, determining a position corresponding to a historical control instruction with a smallest time interval as the target position.

[0137] Optionally, the master control position includes a master control floor and / or a master control room.

[0138] The second matching module 603 is specifically configured to: determine a target position corresponding to the master control floor and / or the master control room of the control instruction.

[0139] The position name matching apparatus of the intelligent device provided by the embodiment of the application receives a control instruction for controlling the intelligent device, in the case that the control instruction contains an initial position name, successively takes comparison between the initial position name and a preset standard position name as a first priority, takes the master control position and the initial position name of the control instruction as a second priority, and takes comparison between the initial position name and a preset hierarchical position name as a third priority, to determine a target position corresponding to the initial position name; in the case that the control instruction does not contain the initial position name, successively takes identification of a voice tone of the control instruction as a first priority, takes identification of a context relationship of the control instruction as a second priority, and takes determination of a master control position corresponding to the control instruction as a third priority, to determine a target position corresponding to the control instruction, so that the target position can be found according to the initial position name no matter whether the control instruction contains the initial position name or not, and whether the initial position name is accurate or not, thereby improving the matching rate of the intelligent device and improving the matching effect.

[0140] Figure 7 An example of a schematic diagram of a physical structure of an electronic device is shown in FIG. 1. Figure 7As shown, the electronic device can include a processor 710, a communications interface 720, a memory 730, and a communications bus 740, wherein the processor 710, the communications interface 720, and the memory 730 complete communications with each other through the communications bus 740. The processor 710 can invoke a logical instruction in the memory 730 to execute a location matching method of a smart device, including: receiving a control instruction for controlling a smart device, determining whether the control instruction contains an initial location name of the smart device; if it is determined that the control instruction contains the initial location name, sequentially comparing the initial location name with a preset standard location name as a first priority, comparing a master control location of the control instruction with the initial location name as a second priority, comparing the initial location name with a preset each level location name as a third priority, and determining a target location corresponding to the initial location name; if it is determined that the control instruction does not contain the initial location name, sequentially identifying a voice timbre of the control instruction as a first priority, identifying a context relationship of the control instruction as a second priority, determining a master control location corresponding to the control instruction as a third priority, and determining a target location corresponding to the control instruction.

[0141] In addition, the logical instruction in the memory 730 described above can be implemented in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.

[0142] In another aspect, the present application also provides a computer program product, which comprises a computer program stored in a computer readable storage medium, and the computer program is capable of executing the position matching method of the intelligent device provided by the above method when executed by a processor, and the position matching method comprises: receiving a control instruction for controlling the intelligent device, determining whether the control instruction contains an initial position name of the intelligent device; if it is determined that the control instruction contains the initial position name, successively taking a comparison between the initial position name and a preset standard position name as a first priority, taking a comparison between a master position of the control instruction and the initial position name as a second priority, taking a comparison between the initial position name and preset hierarchical position names as a third priority, and determining a target position corresponding to the initial position name; if it is determined that the control instruction does not contain the initial position name, successively taking a voice tone of the control instruction as a first priority, taking a context relationship of the control instruction as a second priority, taking a determination of the master position corresponding to the control instruction as a third priority, and determining a target position corresponding to the control instruction.

[0143] In another aspect, the present application also provides a computer readable storage medium, which comprises a stored program, and the program is capable of executing the position matching method of the intelligent device provided by the above method when executed, and the position matching method comprises: receiving a control instruction for controlling the intelligent device, determining whether the control instruction contains an initial position name of the intelligent device; if it is determined that the control instruction contains the initial position name, successively taking a comparison between the initial position name and a preset standard position name as a first priority, taking a comparison between a master position of the control instruction and the initial position name as a second priority, taking a comparison between the initial position name and preset hierarchical position names as a third priority, and determining a target position corresponding to the initial position name; if it is determined that the control instruction does not contain the initial position name, successively taking a voice tone of the control instruction as a first priority, taking a context relationship of the control instruction as a second priority, taking a determination of the master position corresponding to the control instruction as a third priority, and determining a target position corresponding to the control instruction.

[0144] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0145] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0146] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A location matching method for intelligent devices, characterized in that, The method comprises the following steps: receiving a control instruction for controlling an intelligent device, and determining whether the control instruction contains an initial position name of the intelligent device; if it is determined that the control instruction contains the initial position name, successively taking comparison between the initial position name and a preset standard position name as a first priority, comparison between a master control position of the control instruction and the initial position name as a second priority, comparison between the initial position name and preset hierarchical position names as a third priority, and determining a target position corresponding to the initial position name; if it is determined that the control instruction does not contain the initial position name, successively taking identification of a voice tone of the control instruction as a first priority, identification of a context relationship of the control instruction as a second priority, and determination of a master control position corresponding to the control instruction as a third priority, and determining a target position corresponding to the control instruction. 2.The method of claim 1, wherein, The step of successively taking comparison between the initial position name and a preset standard position name as a first priority, comparison between a master control position of the control instruction and the initial position name as a second priority, and comparison between the initial position name and preset hierarchical position names as a third priority, and determining a target position corresponding to the initial position name comprises the following steps: comparing the initial position name with the preset standard position name, and if the comparison is successful, determining the target position according to a standard position name corresponding to the initial position name; if the comparison fails, determining a master control position of the control instruction, and determining the target position according to the master control position and the initial position name; if the target position corresponding to the master control position and the initial position name fails to be determined, continuing to compare the initial position name with the preset hierarchical position names, and determining the target position according to the initial position name and the preset hierarchical position names. 3.The method of claim 2, wherein, The step of determining the target position according to the master control position and the initial position name comprises the following steps: in a case where the initial position corresponding to the initial position name is multiple, determining whether the control position has a corresponding relationship with any initial position; if it is determined that the control position has a corresponding relationship with any initial position, determining the initial position corresponding to the control position as the target position corresponding to the initial position name; if it is determined that the control position has no corresponding relationship with any initial position or the initial position having a corresponding relationship with the control position is multiple, the determination of the target position according to the master control position and the initial position name fails. 4.The method of claim 2, wherein, The preset hierarchical position names comprise: multiple levels of position names arranged in a form of a multi-way tree, and an upper level of position names being child nodes of a lower level of position names. The step of comparing the initial position name with the preset hierarchical position names, and determining the target position according to the initial position name and the preset hierarchical position names comprises the following steps: selecting a position name of any level as a current level position name, comparing the initial position name with the current level position name, and determining the target position according to the current level position name on which the comparison is successful; If the initial position name fails to match the current level position name, a previous level position name of the current level is queried, and the initial position name is continuously matched with the previous level position name, and the target position is determined according to the previous level position name that succeeds in matching; If the initial position name fails to match the previous level position name, a next level position name of the current level is queried, and the initial position name is continuously matched with the next level position name, and the target position is determined according to the next level position name that succeeds in matching. 5.The method of claim 4, wherein, The target position is determined according to the current level position name that succeeds in matching, and the method comprises the following steps of: if the corresponding position of the current level position name that succeeds in matching is multiple, a user is continuously prompted to input an instruction to determine the target position. The target position is determined according to the next level position name that succeeds in matching, and the method comprises the following steps of: if the corresponding position of the next level position name that succeeds in matching is multiple, a user is continuously prompted to input an instruction to determine the target position. 6.The method of claim 1, wherein, The target position corresponding to the control instruction is determined by sequentially taking the voice tone of the control instruction as a first priority, taking the context relationship of the control instruction as a second priority, and taking the master position corresponding to the control instruction as a third priority, and the method comprises the following steps of: the voice tone of the control instruction is identified, if the voice tone is determined to be a child tone, the target position corresponding to the control instruction is determined to be a child room; if the voice tone is determined to be a non-child tone, historical control instructions within a preset time interval of the control instruction are continuously identified, and the positions corresponding to the historical control instructions are determined as target positions; If the historical control instructions within the preset time interval of the control instruction fail to be identified, the master position corresponding to the control instruction is determined, and the corresponding target position is determined according to the master position. 7.The method of claim 6, wherein, The historical control instructions within the preset time interval of the control instruction are identified, and the positions corresponding to the historical control instructions are determined as target positions, and the method comprises the following steps of: if the historical control instructions within the preset time interval of the control instruction are multiple, the position corresponding to the historical control instruction with the smallest time interval of the control instruction is determined as the target position. 8.The method of claim 6, wherein, The master position comprises a master floor and / or a master room; The corresponding target position is determined according to the master position, and the method comprises the following steps of: The corresponding target position is determined according to the master floor and / or the master room corresponding to the control instruction.

9. A computer readable storage medium, characterized in that, The computer-readable storage medium comprises a stored program, wherein the program executes the method of any one of claims 1 to 8 when running. 10.An electronic device comprising a memory and a processor, the electronic device characterized by, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 8 by using the computer program.

Citation Information

Patent Citations

  • Speech recognition control method and device, computer equipment and computer storage medium

    CN110767232A

  • Control instruction sending method and device and electronic device

    CN115930378A