Voice control method, device, electronic device and storage medium

By obtaining and matching the semantic information of voice control commands, judging and segmenting the interface, and determining the control object, the problem of low efficiency and accuracy of voice control in the existing technology is solved, and the responsiveness and user experience of the terminal device to voice commands are improved.

CN111968639BActive Publication Date: 2024-10-25BEIJING XIAOMI PINECONE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010820551.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2024-10-25
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

The information acquisition efficiency and accuracy of the existing voice control methods are low, resulting in low response efficiency and accuracy of the terminal device to the user's voice control commands.

Method used

By obtaining the semantic information of the voice control command, it is judged whether the layout information of the display interface is stable, and when it is stable, the interface is segmented, the target information of the interface elements is determined, the control object is determined based on the semantic information matching, and the corresponding operation is performed.

Benefits of technology

It improves the response efficiency and accuracy of voice control commands, makes the user experience more direct and natural, and enhances the terminal device's processing capabilities for voice control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111968639B_ABST
    Figure CN111968639B_ABST
Patent Text Reader

Abstract

The present invention relates to a voice control method, device, electronic device and storage medium. The method is applied to a terminal device, comprising: obtaining first semantic information of a voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command; judging whether the layout information of a current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtaining a plurality of interface elements obtained by segmenting the display interface; determining target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element; determining a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and performing an operation corresponding to the voice control command on the control object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of voice control technology, and in particular to a voice control method, device, electronic equipment and storage medium. Background Art

[0002] With the continuous advancement of science and technology, the way users interact with machines such as terminal devices is also changing. More and more voice assistants have emerged to identify users' voice control commands and give corresponding replies and perform corresponding operations, thus enabling users to control terminal devices by voice. However, the information acquisition efficiency and accuracy of voice control methods are low, resulting in low efficiency and low accuracy of terminal devices' responses to users' voice control commands. Summary of the invention

[0003] The present invention provides a voice control method, device, electronic equipment and storage medium to solve the deficiencies in the related art.

[0004] According to a first aspect of an embodiment of the present invention, a voice control method is provided, which is applied to a terminal device. The control method includes:

[0005] Acquire first semantic information of the voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command;

[0006] Determining whether layout information of a current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtaining a plurality of interface elements obtained by segmenting the display interface;

[0007] Determining target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element;

[0008] According to the first semantic information and the target information of the at least one interface element, a control object is determined in the at least one interface element, and an operation corresponding to the voice control command is performed on the control object.

[0009] In one embodiment, the display interface includes at least one control element;

[0010] The obtaining of a plurality of interface elements obtained by segmenting the display interface includes:

[0011] Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element;

[0012] Each of the control elements is regarded as an interface element.

[0013] In one embodiment, determining whether the layout information of the current display interface of the terminal device is stable includes:

[0014] Acquiring control information of the display interface multiple times within a preset time;

[0015] Comparing the control information obtained multiple times, wherein the control information includes at least any one of the following: the number, position, and attribute of each control element in the display interface;

[0016] The control information obtained multiple times is compared, and if the control information obtained multiple times is the same, it is determined that the layout information of the display interface is stable.

[0017] In one embodiment, determining target information of at least one of the interface elements includes:

[0018] The text content contained in the interface element is identified, and the second semantic information of the interface element is determined according to the text content.

[0019] In one embodiment, determining target information of at least one of the interface elements includes:

[0020] Image recognition is performed on the interface element to obtain text description information corresponding to the interface element, and the text description information is used as second semantic information corresponding to the interface element.

[0021] In one embodiment, the target information further includes location information of the interface element;

[0022] The determining a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element includes:

[0023] Acquire an interface element corresponding to second semantic information matching the first semantic information;

[0024] According to the acquired position information of the interface element, the interface element at the corresponding position of the display interface is determined as a control object.

[0025] In one embodiment, the performing the operation corresponding to the voice control command on the control object includes:

[0026] Acquire third semantic information of the voice control command, wherein the third semantic information is used to determine the control content of the voice control command;

[0027] An operation corresponding to the third semantic information is performed on the control object.

[0028] According to a second aspect of an embodiment of the present invention, there is provided a voice control device, which is applied to a terminal device, and the control device includes:

[0029] A first semantic module, used to obtain first semantic information of a voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command;

[0030] A segmentation module, used to determine whether the layout information of the current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtain a plurality of interface elements obtained by segmenting the display interface;

[0031] A second semantic module, used to determine target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element;

[0032] A determination module is used to determine a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and perform an operation corresponding to the voice control command on the control object.

[0033] In one embodiment, the display interface includes at least one control element;

[0034] The segmentation module is specifically used for:

[0035] Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element;

[0036] Each of the control elements is regarded as an interface element.

[0037] In one embodiment, the segmentation module is specifically used for:

[0038] Acquire the control information of the display interface multiple times within a preset time, wherein the control information includes at least any one of the following: the number, position, and attribute of each control element;

[0039] The control information obtained multiple times is compared, and if the control information obtained multiple times is the same, it is determined that the layout information of the display interface is stable.

[0040] In one embodiment, the second semantic module is specifically used for:

[0041] The text content contained in the interface element is identified, and the second semantic information of the interface element is determined according to the text content.

[0042] In one embodiment, the second semantic module is specifically used for:

[0043] Image recognition is performed on the interface element to obtain text description information corresponding to the interface element, and the text description information is used as second semantic information corresponding to the interface element.

[0044] In one embodiment, the target information further includes location information of the interface element;

[0045] The determination module is specifically used for:

[0046] Acquire an interface element corresponding to second semantic information matching the first semantic information;

[0047] According to the acquired position information of the interface element, the interface element at the corresponding position of the display interface is determined as a control object.

[0048] In one embodiment, the determining module is specifically used to:

[0049] Acquire third semantic information of the voice control instruction, wherein the third semantic information is used to determine the control content of the voice control instruction;

[0050] An operation corresponding to the third semantic information is performed on the control object.

[0051] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to perform voice control based on the method described in any one of the first aspects when executing the computer instructions.

[0052] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the first aspects is implemented.

[0053] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0054] The present disclosure obtains first semantic information for determining the control object targeted by the voice control command and multiple interface elements obtained by segmenting the display interface when the display interface is stable, and determines the target information of at least one interface element containing second semantic information, and finally determines the control object in the at least one interface element according to the first semantic information and the second semantic information of the at least one interface element, and performs corresponding operations on the control object. Determining the control object by comparing the semantic information not only makes the voice command more direct and natural, but also can more accurately and efficiently identify the voice control command and determine the control object, thereby improving the response efficiency and response accuracy of the terminal device to the voice control command, improving the efficiency and accuracy of voice control, and enhancing the user experience.

[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] 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.

[0057] Figure 1 is a schematic diagram showing a screen segmentation result according to an exemplary embodiment of the present invention;

[0058] Figure 2 is a schematic diagram showing a screen segmentation result according to another exemplary embodiment of the present invention;

[0059] Figure 3 is a flow chart of a voice control method shown in an exemplary embodiment of the present invention;

[0060] Figure 4 is a structural schematic diagram of a voice control device shown in an exemplary embodiment of the present disclosure;

[0061] Figure 5 It is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0063] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0064] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0065] With the continuous advancement of science and technology, the way users interact with machines such as terminal devices is also changing. More and more voice assistants have emerged to identify users' voice control commands and give corresponding replies and perform corresponding operations, thus enabling users to control terminal devices by voice. However, the information acquisition efficiency and accuracy of voice control methods are low, resulting in low efficiency and low accuracy of terminal devices' responses to users' voice control commands.

[0066] First, the present disclosure provides a voice control method, in which, when entering a state allowing voice control, the screen will be divided into different parts, and the different parts will be numbered. Then, the user inputs a voice control command based on the above division results and numbering results, and the corresponding operation area can be determined according to the numbering information contained in the voice control command.

[0067] Among them, the numbering can be in many different forms, and can be digital numbering (such as 1, 2, 3, 4...), letter numbering (such as a, b, c, d...) or combination numbering (such as 1a, 1b, 2a, 2b...), etc.

[0068] Please refer to the attached Figure 1 , the screen can be divided into equal parts in equal proportions. However, this division method cannot accurately select the operation area by numbering, especially when the division ratio is large and the divided parts are small, it is not only more difficult to accurately select the operation area, but also affects the visual experience.

[0069] Please refer to the attached Figure 2 , the screen can be divided into non-uniform parts in proportion to achieve non-equal division of the screen, for example, it can be divided according to the effective operation area, so that each divided part corresponds to a valid operation area. However, the user needs to select the corresponding operation area by number, which is not intuitive enough (for example, the user's operation is for a clear object on the screen, but he needs to check the number of the operation area first, and then enter the voice control command for the number). The voice control command is not direct and natural enough, and it is easy to enter the wrong voice control command, so the control difficulty is greater, which reduces the user experience.

[0070] Based on this, in the first aspect, at least one embodiment of the present invention provides a voice control method, please refer to Figure 3 , which shows the process of the control method, including steps S301 to S304.

[0071] Among them, the voice control method is applied to a terminal device, and the terminal device has a voice collection function. For example, the terminal device can be a smart phone, a tablet computer, a desktop / laptop / handheld computer, a wearable device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmentedreality, AR) / virtual reality (virtual reality, VR) device and other devices including a touch screen. The embodiments of the present disclosure are not intended to limit the specific form of the terminal device.

[0072] In step S301, first semantic information of a voice control command is acquired, wherein the first semantic information is used to indicate a control object targeted by the voice control command.

[0073] In this step, the terminal device is in a state of allowing voice control, that is, the terminal device collects the voice control command input by the user in real time. The user's voice control command can be input based on the content of the display interface, so the voice control command at least includes a control object and a control content. After the terminal device collects the voice control command, it can process the voice control command by voice recognition and natural language processing to obtain the first semantic information.

[0074] In one example, the user's voice control command may be "open WeChat", and the first semantic information obtained is the semantic information of "WeChat".

[0075] In step S302, it is determined whether the layout information of the current display interface of the terminal device is stable. When the layout information of the display interface is stable, a plurality of interface elements obtained by segmenting the display interface are obtained.

[0076] In this step, after receiving the voice control command, the stability of the display interface can be monitored, and multiple interface elements can be obtained when the display interface is stable. A stable display interface has the practical significance of being controlled, which prevents the display interface from being miscontrolled and misoperated during dynamic changes, and improves the accuracy of the determined interface elements.

[0077] In some embodiments, the determination of whether the layout information of the current display interface of the terminal device is stable includes: segmenting the display interface multiple times within a preset time, comparing the multiple segmentation results, and if the multiple segmentation results are the same, determining that the layout information of the current display interface of the terminal device is stable. In other words, the display interface can be segmented multiple times within a preset time, and the multiple segmentation results can be compared. If the multiple segmentation results are the same, the layout information is determined to be stable, and multiple interface elements are determined based on the segmentation results; wherein, the duration of the preset time can be automatically generated by the system or set by the user, the frequency of segmentation can be automatically generated by the system or set by the user, and the number of segmentation times (the duration of the preset time and the frequency of segmentation can jointly determine the number of segmentation times within the preset time) needs to be greater than a preset number threshold (for example, 3 times).

[0078] In step S303, target information of at least one of the interface elements is determined, wherein the target information includes second semantic information of the interface element.

[0079] Among them, each interface element has certain characteristics and identifications, and the voice control command input by the user is input based on these characteristics and identifications. For example, if an interface element is the application icon of WeChat, its identification is "WeChat". The second semantic information determined in this step is determined based on the above characteristics and identifications, that is, the second semantic information is used to determine the characteristics and identifications of the interface element. For example, the second semantic information of the interface element corresponding to the above WeChat application icon is determined based on the text identification information of "WeChat".

[0080] Among them, the second semantic information of all interface elements can be determined at one time, and then the operation in step S304 is performed. The second semantic information of the interface elements can also be determined in batches, and then after the second semantic information of each batch of interface elements is determined, the operation in step S304 is performed. If step S304 can be executed smoothly (that is, the control object is successfully determined), the second semantic information of the subsequent interface elements is stopped from being determined. If step S304 cannot be executed smoothly (that is, the control object is successfully determined), the second semantic information of the subsequent interface elements continues to be determined. The batch principle of the interface elements can be determined according to the difficulty of determining the second semantic information, and can also be determined according to other conditions. The embodiments of the present disclosure do not intend to limit this.

[0081] In one example, determining the target information of at least one of the interface elements includes: determining the target information of all the interface elements according to a preset priority order. The preset priority order may be an order determined according to the difficulty of determining the second semantic information of the interface element. For example, when the second semantic information of the interface element only contains text content or text description information corresponding to the interface element, the difficulty of determining the second semantic information of the interface element is determined to be easy; when the second semantic information of the interface element contains both text content and text description information corresponding to the interface element, the difficulty of determining the second semantic information of the interface element is determined to be difficult. The preset priority order is to determine the target information of the interface element in order from easy to difficult.

[0082] In step S304, a control object is determined in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and an operation corresponding to the voice control command is performed on the control object.

[0083] In this step, the second semantic information of each interface element may be compared with the first semantic information respectively, and then the interface element corresponding to the second semantic information matching or identical to the first semantic information is selected as the control object, and then the corresponding operation is performed.

[0084] The embodiment of the present disclosure obtains the first semantic information for determining the control object targeted by the voice control command and the multiple interface elements obtained by segmenting the display interface when the display interface is stable, and determines the target information of at least one interface element containing the second semantic information, and finally determines the control object in the at least one interface element according to the first semantic information and the second semantic information of the at least one interface element, and performs the corresponding operation on the control object. The control object is determined by comparing the semantic information, so the user can directly input the corresponding voice control command according to the control object, avoiding the unintuitive, indirect and unnatural problems caused by inputting voice commands according to numbers, making voice commands more direct and natural, and being able to more accurately and efficiently identify voice control commands and determine control objects, thereby improving the response efficiency and response accuracy of the terminal device to the voice control command, improving the efficiency and accuracy of voice control, and enhancing the user experience.

[0085] It should be noted that the order of description of the above steps does not limit the order of the individual steps. Combining the above steps in other reasonable orders also belongs to the technical solution claimed for protection by the present disclosure. For example, steps S302 and S303 can be changed to be executed before step S301, that is, before collecting the voice control command, the stability of the display interface is pre-determined, and the interface is segmented when stable and the target information of the segmentation result is determined. Then, after collecting the voice control command and obtaining its first semantic information, step S304 can be directly executed, which increases the response efficiency of the voice control command. For another example, step S302 and step S303 can be cross-combined with step S301. That is, before the voice control command is collected, step S302 and step S303 are partially executed (for example, the target information of the interface elements containing text are identified and determined in advance), and then after the voice control command is collected and its first semantic information is obtained, step S304 can be directly executed. If S304 can be successfully executed, the response to the voice control command is completed. If step S304 cannot be successfully executed, the remaining parts of step S302 and step S303 are continued to be executed (for example, the target information of the remaining interface elements is identified and determined), and then step S304 is executed again. This can not only increase the response efficiency of the voice control command, but also avoid memory waste caused by too much prerequisite preparation work.

[0086] In some embodiments of the present disclosure, the display interface includes at least one control element, wherein the control element may be a navigation text, an icon, a combination of text and an icon, etc., and multiple control elements may correspond to a response action, for example, a navigation text and an icon correspond to the same response action, and in the combination of text and an icon, the icon may be the control element body, and the text may be the corresponding identifier. For example, in an application list of a mobile terminal, each application corresponds to a control element, and the control element includes both the icon of the application and the name of the application. The control information in the page can be directly obtained by using a page processing tool in the system of the terminal device, and the control information includes at least any one of the following: the number (ID), position, attributes, etc. of each control element in the page. For example, in the Android system, the control information in the page can be obtained by using the system's built-in Accessibility Service.

[0087] Based on the structure of the display interface, the multiple interface elements obtained by segmenting the display interface are obtained in the following manner: first, the display interface is segmented using the boundary of the adjacent control elements as a segmentation line to obtain at least one control element; then, each control element is used as an interface element. In this case, the control information can be obtained by using a page processing tool, and then the boundary of the adjacent control elements is determined according to the position of each control element in the page.

[0088] In one example, the display interface includes at least one control element; the obtaining of the plurality of interface elements obtained by segmenting the display interface includes:

[0089] Using a page processing tool to obtain control information of the control element in advance, and determining the boundaries of adjacent control elements according to the positions of the control elements in the page;

[0090] Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element;

[0091] Each of the control elements is regarded as an interface element.

[0092] The embodiments of the present disclosure divide the control elements into units, so that each interface element after division is an independent control unit, which not only has independent second semantic information, but also can be used as an independent control object, thereby improving the efficiency and accuracy of segmentation of the display interface, and improving the efficiency and accuracy of subsequent determination of the control object.

[0093] Based on the structure of the above display interface, determine whether the layout information of the current display interface of the terminal device is stable in the following manner: first, obtain the control information of the display interface multiple times within a preset time, wherein the control information includes at least any one of the following: the number, position, and attribute of each control element in the display interface; next, compare the control information obtained multiple times, and if the control information obtained multiple times is the same, determine that the layout information of the display interface is stable. Among them, the page processing tool in the system of the terminal device can be used to directly obtain the control information in the page, for example, in the Android system, the system's own Accessibility Service can be used to obtain the control information in the page; when comparing the control information obtained multiple times, at least one item in the control information can be selected for comparison, for example, the number (ID) of the control element in the page can be compared. If the numbers of the control elements included in the control information obtained multiple times are the same, it can be determined that the control information obtained multiple times is the same, and then the layout information of the display interface is determined to be stable.

[0094] In the embodiments of the present disclosure, the control information is used to determine whether the layout information of the display interface is stable, which can prevent the display interface from being miscontrolled and misoperated during dynamic changes, and can control the display interface when the display interface is in an invalid dynamic change (for example, individual control elements are dynamically displayed, and although there are dynamic changes, the control elements are not switched). In addition, when the control element is used as an interface element, the attributes of the control element in the control information can be directly used as all or part of the second semantic information of the interface element.

[0095] In some embodiments of the present disclosure, the second semantic information of at least one of the interface elements is determined in the following manner: traverse each interface element to determine whether the interface element contains text content, and three results can be obtained, namely, all interface elements contain text content, all interface elements do not contain text content, and some interface elements contain text content; the following steps are performed correspondingly for the above three results:

[0096] The case where all interface elements contain text content: the text content contained in each interface element can be identified, and the second semantic information of the interface element can be determined based on the text content, and then step S304 is executed. If the control object can be successfully determined, the corresponding control operation is performed. If the control object cannot be successfully determined, image recognition can be performed on each interface element to obtain the text description information corresponding to the interface element, and the second semantic information corresponding to the interface element is updated to the text description information, and then step S304 is executed again.

[0097] The case where all interface elements do not contain text content: image recognition can be performed on the interface elements to obtain text description information corresponding to the interface elements, and the text description information is used as the second semantic information corresponding to the interface elements, and then step S304 is executed.

[0098] The case where some interface elements contain text content: For interface elements containing text content, the text content contained in each interface element can be identified, and the second semantic information of the interface element can be determined based on the text content. Then, step S304 is executed for the interface elements containing text content. If the control object can be successfully determined, the corresponding control operation is executed. If the control object cannot be successfully determined, for interface elements that do not contain text content, image recognition can be performed on each interface element to obtain text description information corresponding to the interface element, and the text description information is used as the second semantic information corresponding to the interface element. Then, step S304 is executed for the interface elements that do not contain text content.

[0099] Among them, optical character recognition (OCR) and natural language processing (NLP) can be used to recognize text content and determine the second semantic information of the interface element based on the recognition result; optical character recognition (OCR) and natural language processing (NLP) can be used to perform image recognition on the interface elements, and a neural network that can be used for image recognition and extraction of text description information can be pre-trained, and then the neural network can be used to perform image recognition on the interface elements.

[0100] In one example, determining target information of at least one of the interface elements includes:

[0101] Traversing each of the interface elements to determine whether the interface element contains text content;

[0102] When the interface element includes text content, the text content included in the interface element is identified, and second semantic information of the interface element is determined according to the text content.

[0103] In one example, determining target information of at least one of the interface elements includes:

[0104] Traversing each of the interface elements to determine whether the interface element contains image content;

[0105] When the interface element includes image content, image recognition is performed on the interface element to obtain text description information corresponding to the interface element, and the text description information is used as the second semantic information corresponding to the interface element.

[0106] In one example, determining target information of at least one of the interface elements includes:

[0107] Traversing each of the interface elements to determine whether the interface element contains text content;

[0108] When the interface element does not contain text content, determining whether the interface element contains image content;

[0109] When the interface element includes image information, image recognition is performed on the interface element to obtain text description information corresponding to the interface element, and the text description information is used as the second semantic information corresponding to the interface element.

[0110] In some embodiments of the present disclosure, the target information also includes position information of the interface element; based on this, the control object is determined in the at least one interface element according to the first semantic information and the target information of the at least one interface element in the following manner: first, the interface element corresponding to the second semantic information matching the first semantic information is obtained; next, based on the obtained position information of the interface element, the interface element at the corresponding position of the display interface is determined to be the control object.

[0111] In one example, obtaining an interface element corresponding to second semantic information matching the first semantic information includes:

[0112] When the text similarity between the first semantic information and the second semantic information exceeds a preset threshold, determining that the second semantic information matches the first semantic information;

[0113] Acquire an interface element corresponding to the second semantic information.

[0114] For example: use the text matching technology in NLP natural language recognition technology to extract semantic features in the first semantic information and the second semantic information, calculate the text similarity between the first semantic information and the second semantic information, and when the text similarity exceeds a preset threshold, determine that the second semantic information matches the first semantic information, and then obtain the interface element corresponding to the second semantic information.

[0115] In one example, determining, based on the acquired position information of the interface element, that the interface element at a corresponding position on the display interface is a control object includes:

[0116] The position information of the control element in the page is obtained by using a page processing tool, and the control element at a corresponding position in the display interface is determined to be a control object.

[0117] In one example, the interface element is a control element, and the position information of the interface element is the position of the control element in the control information. Therefore, when determining the position information in the target information, the page processing tool in the system of the terminal device can be used to directly obtain the control information in the page, and then the position of each control element in the control information can be extracted; when a control element is determined to be a control object based on the matching of semantic information, its position is directly used to determine that the control element at the corresponding position of the display interface is the control object.

[0118] In some embodiments of the present disclosure, the voice control method further includes: obtaining third semantic information of the voice control instruction, wherein the third semantic information is used to determine the control content of the voice control instruction. Based on the above steps, the operation corresponding to the voice control command is performed on the control object in the following manner: performing the operation corresponding to the third semantic information on the control object.

[0119] In one example, the user's voice control command may be "open WeChat", and the third semantic information obtained is the semantic information of "open". Therefore, after the user determines that the control object is WeChat, the "open" operation is performed on WeChat.

[0120] Please refer to the attached Figure 4 According to a second aspect of an embodiment of the present invention, a voice control device is provided, which is applied to a terminal device. The control device includes:

[0121] A first semantic module 401 is used to obtain first semantic information of a voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command;

[0122] The segmentation module 402 is used to determine whether the layout information of the current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtain a plurality of interface elements obtained by segmenting the display interface;

[0123] A second semantic module 403, configured to determine target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element;

[0124] The determination module 404 is used to determine a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and perform the operation corresponding to the voice control command on the control object.

[0125] In some embodiments of the present disclosure, the display interface includes at least one control element;

[0126] The segmentation module is specifically used for:

[0127] Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element;

[0128] Each of the control elements is regarded as an interface element.

[0129] In some embodiments of the present disclosure, the segmentation module is specifically used to:

[0130] Acquiring layout information of the display interface multiple times within a preset time;

[0131] The layout information acquired for multiple times is compared, and if the layout information acquired for multiple times is the same, it is determined that the layout information of the display interface is stable.

[0132] In some embodiments of the present disclosure, the second semantic module is specifically used to:

[0133] The text content contained in the interface element is identified, and the second semantic information of the interface element is determined according to the text content.

[0134] In some embodiments of the present disclosure, the second semantic module is specifically used to:

[0135] Image recognition is performed on the interface element to obtain text description information corresponding to the interface element, and the text description information is used as second semantic information corresponding to the interface element.

[0136] In one embodiment, the target information further includes location information of the interface element;

[0137] The determination module is specifically used for:

[0138] Acquire an interface element corresponding to second semantic information matching the first semantic information;

[0139] According to the acquired position information of the interface element, the interface element at the corresponding position of the display interface is determined as a control object.

[0140] In some embodiments of the present disclosure, the determining module is specifically used to:

[0141] Acquire third semantic information of the voice control instruction, wherein the third semantic information is used to determine the control content of the voice control instruction;

[0142] An operation corresponding to the third semantic information is performed on the control object.

[0143] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.

[0144] According to the third aspect of the embodiment of the present disclosure, please refer to the attached Figure 5 , which exemplarily shows a block diagram of an electronic device. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0145] Reference Figure 5, the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0146] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0147] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0148] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0149] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0150] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0151] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0152] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500 and the temperature change of the device 500. The sensor assembly 514 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0153] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0154] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the power supply method for the above-mentioned electronic device.

[0155] In a fourth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of the device 500 to complete the power supply method of the electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0156] In the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0157] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the disclosure disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0158] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A voice control method, characterized in that: Applied to a terminal device, the control method includes: Acquire first semantic information of the voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command; Determining whether layout information of a current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtaining a plurality of interface elements obtained by segmenting the display interface; Determining target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element; Determine a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and perform an operation corresponding to the voice control command on the control object; The determining target information of at least one of the interface elements includes: Performing image recognition on the interface element to obtain text description information corresponding to the interface element, and using the text description information as second semantic information corresponding to the interface element; The display interface includes at least one control element; The obtaining of a plurality of interface elements obtained by segmenting the display interface includes: Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element; Treat each of the control elements as an interface element; The determining whether the layout information of the current display interface of the terminal device is stable includes: segmenting the display interface multiple times within a preset time, comparing the multiple segmentation results, and if the multiple segmentation results are the same, determining that the layout information of the current display interface of the terminal device is stable.

2. The voice control method according to claim 1, characterized in that: The determining target information of at least one of the interface elements includes: The text content contained in the interface element is identified, and the second semantic information of the interface element is determined according to the text content.

3. The voice control method according to claim 1, characterized in that: The target information also includes the position information of the interface element; The determining a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element includes: Acquire an interface element corresponding to second semantic information matching the first semantic information; According to the acquired position information of the interface element, the interface element at the corresponding position of the display interface is determined as a control object.

4. The voice control method according to claim 1, characterized in that: The performing the operation corresponding to the voice control command on the control object includes: Acquire third semantic information of the voice control command, wherein the third semantic information is used to determine the control content of the voice control command; An operation corresponding to the third semantic information is performed on the control object.

5. A voice control device, characterized in that: Applied to terminal equipment, the control device comprises: A first semantic module, used to obtain first semantic information of a voice control command, wherein the first semantic information is used to indicate a control object targeted by the voice control command; A segmentation module, used to determine whether the layout information of the current display interface of the terminal device is stable, and when the layout information of the display interface is stable, obtain a plurality of interface elements obtained by segmenting the display interface; A second semantic module, used to determine target information of at least one of the interface elements, wherein the target information includes second semantic information of the interface element; a determination module, configured to determine a control object in the at least one interface element according to the first semantic information and the target information of the at least one interface element, and perform an operation corresponding to the voice control command on the control object; The second semantic module is specifically used for: Performing image recognition on the interface element to obtain text description information corresponding to the interface element, and using the text description information as second semantic information corresponding to the interface element; The display interface includes at least one control element; The segmentation module is specifically used for: Dividing the display interface by using the boundary between adjacent control elements as a dividing line to obtain at least one control element; Treat each of the control elements as an interface element; The segmentation module is specifically used for: The display interface is segmented multiple times within a preset time, and the segmentation results are compared. If the segmentation results are the same, it is determined that the layout information of the current display interface of the terminal device is stable.

6. The voice control device according to claim 5, characterized in that: The second semantic module is specifically used for: The text content contained in the interface element is identified, and the second semantic information of the interface element is determined according to the text content.

7. The voice control device according to claim 5, characterized in that: The target information also includes the position information of the interface element; The determination module is specifically used for: Acquire an interface element corresponding to second semantic information matching the first semantic information; According to the acquired position information of the interface element, the interface element at the corresponding position of the display interface is determined as a control object.

8. The voice control device according to claim 5, characterized in that: The determination module is specifically used for: Acquire third semantic information of the voice control command, wherein the third semantic information is used to determine the control content of the voice control command; An operation corresponding to the third semantic information is performed on the control object.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to perform voice control based on the method described in any one of claims 1 to 4 when executing the computer instructions.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.