Voice interaction method and device, computer device and computer readable storage medium

By combining operating system auxiliary services and Aspect interception, and decoupling semantic analysis and control operations using control association configuration files, voice interaction control of target applications in the automotive central control system is achieved. This solves the problems of high development costs and loss of functionality, and improves the efficiency and adaptability of voice interaction.

CN115910063BActive Publication Date: 2026-11-24ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211539085.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-01
Publication Date
2026-11-24
Estimated Expiration
2042-12-01

AI Technical Summary

Technical Problem

In existing technologies, the development cost of voice interaction in automotive central control systems is high, and voice interaction control cannot be achieved when third-party applications do not integrate voice operation interfaces, resulting in the loss of functionality.

Method used

By collaborating with the operating system's auxiliary services and Aspect interception methods, and combining control association configuration files, it enables operation and control of any target application in the vehicle's central control system. This eliminates the need for the target application to develop an additional voice operation interface. Through semantic analysis and decoupling from the control operation module, it obtains and executes control operation commands.

Benefits of technology

Significantly reduce the development cost of target applications, prevent third-party applications from losing voice interaction functionality due to inability to connect to the voice operation interface, ensure voice interaction performance, and adapt to control acquisition and control when the content of interactive pages changes frequently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115910063B_ABST
    Figure CN115910063B_ABST
Patent Text Reader

Abstract

This invention discloses a voice interaction method, apparatus, computer device, and computer-readable storage medium. The method is applied to an automotive central control system and includes: receiving a user's voice request through a first interactive page of a target application; wherein the first interactive page displays a target control; the target control corresponds to first control attribute data; matching semantic text data corresponding to the user's voice request with the first control attribute data to determine the interactive target control corresponding to the semantic text data; generating a control operation instruction based on the control operation type of the interactive target control; and executing the control operation instruction to output the response content of the user's voice request. This decouples the user's voice recognition and semantic analysis from the specific target application control, effectively reducing the development cost of the target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of voice control technology, and in particular to a voice interaction method, device, computer equipment, and computer-readable storage medium. Background Technology

[0002] Voice interaction technology is widely used in various smart terminals, enabling users to control these terminals without physical contact. Using voice interaction technology to control the software in a car's central control system is of significant practical importance for ensuring vehicle safety.

[0003] In related technologies, when controlling a target application in a car's central control system via voice interaction, an additional interface for voice interaction needs to be developed in the target application, which increases the development cost of the target application. Summary of the Invention

[0004] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, the first objective of this invention is to propose a voice interaction method that decouples user speech recognition and semantic analysis from specific target application controls, thereby reducing the development cost of target applications in automotive central control systems. Simultaneously, it avoids situations where third-party target applications installed in automotive central control systems lose their voice interaction control functionality due to inability to interface with the voice operation interface.

[0005] The second objective of this invention is to provide a voice interaction device.

[0006] The third objective of this invention is to provide a computer device.

[0007] The fourth objective of this invention is to provide a computer-readable storage medium.

[0008] To achieve the above objectives, a first aspect of the present invention proposes a voice interaction method applied to an automotive central control system, comprising: receiving a user's voice request through a first interactive page of a target application; wherein the first interactive page displays a target control; the target control is a controllable control determined from the controls displayed on the first interactive page of the target application based on the control type in a control association configuration file; the target control corresponds to first control attribute data; the first control attribute data is generated based on the control identifier information, control text, and control number of the target control if a switch from a second interactive page to the first interactive page is detected; matching the semantic text data corresponding to the user's voice request in the first control attribute data to determine the interactive target control corresponding to the semantic text data; generating a control operation instruction based on the control operation type of the interactive target control; and executing the control operation instruction to output the response content of the user's voice request.

[0009] According to one embodiment of the present invention, when the controls of the target application are updated, the control association configuration file can be modified to generate a new control association configuration file, which is used to determine the target control in the interactive page of the updated target application.

[0010] According to one embodiment of the present invention, the second control attribute data corresponding to the target control in the second interactive page is stored in a cache space; the voice interaction method further includes at least one of the following: if the second control attribute data is inconsistent with the first control attribute data, the second control attribute data in the cache space is cleared and the first control attribute data is saved to the cache space; if the second control attribute data is consistent with the first control attribute data, the second control attribute data in the cache space is retained and the first control attribute data is discarded.

[0011] According to one embodiment of the present invention, at least one of the following methods is used to obtain the first control attribute data corresponding to the control displayed on the first interactive page: obtaining the first control attribute data corresponding to the control displayed on the first interactive page based on a message queue; if no pop-up appears on the first interactive page, obtaining the first control attribute data corresponding to other controls on the first interactive page besides progress controls by calling the auxiliary service function of the operating system; if a pop-up appears on the first interactive page, obtaining the first control attribute data corresponding to the control displayed on the first interactive page using an Aspect interception method; if the first interactive page has the progress control, obtaining the first control attribute data corresponding to the progress control on the first interactive page using an Aspect interception method.

[0012] According to one embodiment of the present invention, the target application corresponds to a behavior parsing module and a control operation module; the generation method of the first control attribute data includes: if a switch from the second interactive page to the first interactive page is detected, the control operation module generates the first control attribute data according to the control identifier information, control text, and control number of the target control; and calls the control registration interface of the behavior parsing module to register the first control attribute data to the behavior parsing module.

[0013] According to one embodiment of the present invention, registering the first control attribute data to the behavior parsing module includes: registering the first control attribute data to the behavior parsing module according to the control association rules predefined in the control association configuration file.

[0014] According to one embodiment of the present invention, before executing the control operation instruction, the voice interaction method further includes: receiving a control operation instruction sent by the behavior parsing module through the instruction sending interface of the control operation module; executing the control operation instruction includes: calling the control operation interface of the control operation module to execute the control operation instruction on the interactive target control.

[0015] According to one embodiment of the present invention, the first control attribute data includes the control text of the control, and the step of matching the semantic text data corresponding to the user's voice request in the first control attribute data to determine the interactive target control corresponding to the semantic text data includes: determining the interactive target control corresponding to the semantic text data based on the matching result between the semantic text data corresponding to the user's voice request and the control text of the control.

[0016] To achieve the above objectives, a second aspect of the present invention provides a voice interaction device applied to an automotive central control system, comprising: a receiving module for receiving a user's voice request through a first interactive page of a target application; wherein the first interactive page displays a target control; the target control is a controllable control determined from the controls displayed on the first interactive page of the target application based on the control type in a control association configuration file; the target control corresponds to first control attribute data; the first control attribute data is generated based on the control identifier information, control text, and control number of the target control if a switch from a second interactive page to the first interactive page is detected; a matching module for matching the semantic text data corresponding to the user's voice request in the first control attribute data to determine the interactive target control corresponding to the semantic text data; an instruction generation module for generating a control operation instruction based on the control operation type of the interactive target control; and an instruction execution module for executing the control operation instruction to output the response content of the user's voice request.

[0017] To achieve the above objectives, a third aspect of the present invention provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any one of the above embodiments.

[0018] To achieve the above objectives, a fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the above embodiments.

[0019] According to multiple embodiments provided by the present invention, by employing the cooperative approach of operating system auxiliary service functions and Aspect interception, it is possible to control the operation of any target application installed in the vehicle's central control system. Furthermore, the target application does not need to interface with the voice operation interface, significantly reducing the development cost of the target application and preventing third-party target applications from losing voice interaction functionality due to inability to interface with the voice operation interface. Through control association configuration files, control operations of the target application can be added or modified without modifying the code for control acquisition and control operation. By using rule filtering and message queue caching, the number and frequency of controls acquired on the interactive page can be controlled, preventing excessively high frequencies of acquiring control identification information and other data due to frequent changes in the interactive page content, thereby ensuring the performance of the vehicle's central control system's voice interaction.

[0020] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0021] Figure 1a This is a schematic diagram illustrating an application scenario of a voice interaction method provided according to one embodiment of this specification.

[0022] Figure 1b This is a flowchart illustrating a voice interaction method provided according to one embodiment of this specification.

[0023] Figure 2 This is a flowchart illustrating a voice interaction method provided according to one embodiment of this specification.

[0024] Figure 3 This is a schematic diagram of a first interactive page that displays a pop-up window according to one embodiment of this specification.

[0025] Figure 4 This is a schematic diagram of a process for obtaining attribute data of a first control according to one embodiment of this specification.

[0026] Figure 5a This is a schematic diagram of a page including a list control according to one embodiment of this specification.

[0027] Figure 5b This is a schematic diagram illustrating the interaction flow between the control operation module and the behavior parsing module according to one embodiment of this specification.

[0028] Figure 5c This is a schematic diagram illustrating the interaction flow between the behavior parsing module and the control operation module according to one embodiment of this specification.

[0029] Figure 6 This is a schematic diagram illustrating the interaction flow between the semantic analysis module, the behavior parsing module, and the control operation module provided according to one embodiment of this specification.

[0030] Figure 7 This is a structural block diagram of a voice interaction device provided according to one embodiment of this specification.

[0031] Figure 8 This is a structural block diagram of a computer device provided according to one embodiment of this specification. Detailed Implementation

[0032] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.

[0033] With the development of intelligent and voice technologies, voice interaction technology has been widely applied to various smart terminals, enabling users to control these terminals without contact. In the automotive industry, since users need to hold the steering wheel with both hands while driving, manually operating the software on the in-vehicle infotainment screen while driving poses a certain degree of danger. Therefore, enabling users to control the software in the vehicle's infotainment system through voice interaction technology has significant practical implications, and voice interaction technology has received particularly widespread attention in the automotive industry. Some automakers have already conducted research on voice interaction control technology. In these technologies, voice control software is typically used to enable users to interact with target applications within the vehicle's infotainment system. In an interactive scenario, the voice control software first continuously receives the user's spoken voice through a voice module, then parses the voice to obtain semantic text, analyzes the semantic text to determine the user's desired action, and finally calls the target application's operation interface to implement the required function. For example, when a navigation application is running, if the user says "search for Oriental Pearl Tower," the voice module parses the received voice and determines that the user needs to search for the Oriental Pearl Tower in the navigation application. The voice module calls the navigation application's interface based on the parsed results, pops up a search box, and asks for the search parameter "Oriental Pearl Tower." This triggers the search button and provides directions to the Oriental Pearl Tower. This method requires the target application installed in the car's central control system to be customizable, enabling the development of additional interfaces for voice interaction. When new functions appear in the target application, new interfaces need to be developed, resulting in high development costs and insufficient flexibility. For target applications that do not support customization, voice operation and control are not possible. Related technologies also employ an aspect-based control acquisition and manipulation method, which can achieve voice-interactive control operation functionality in target applications at a low cost. However, this requires the target application to integrate the aspect's JAR file. If the third-party target application does not integrate the relevant JAR file, it cannot interface with voice-interactive control operation functionality.

[0034] However, users expect voice interaction functionality in automotive infotainment systems to allow control of any function on the infotainment screen via voice, achieving a "see-is-say" functionality. Therefore, it is necessary to provide a voice interaction method, device, computer equipment, and computer-readable storage medium. This method utilizes the operating system's auxiliary services and Aspect interception to acquire and manipulate controls on the current interactive page. It enables control of any target application installed on the automotive infotainment system without requiring the target application to interface with voice operation, significantly reducing development costs and preventing third-party applications from lacking voice interaction support due to incompatibility. By associating controls with configuration files, controls can be added or modified without modifying the code for acquiring or manipulating them. Furthermore, rule filtering and message queue caching control the number and frequency of controls acquired on the current interactive page, preventing excessive control acquisition due to frequent page changes and ensuring high voice interaction performance.

[0035] Figure 1a This document provides an application scenario illustration of a voice interaction method, device, computer equipment, and computer-readable storage medium. Taking a voice interaction method in an automotive central control system as an example, for a target application running on the automotive central control screen, the control operation module listens to the current interactive page of the target application. When a change is detected in the content of the current interactive page, the control operation module obtains the control identifier information, control text, and control number corresponding to the controls in the changed current interactive page, and configures this data according to the predefined control association rules in the control association configuration file. The configured content is assembled into control attribute data and registered to the behavior parsing module through the control registration interface defined by the behavior parsing module for subsequent generation of corresponding control operation instructions.

[0036] When a user issues a voice request for the current interactive page, the semantic analysis module receives the request, performs text conversion and semantic analysis, and parses the corresponding semantic text data, which is then sent to the behavior analysis module. The behavior analysis module receives the semantic text data and matches it against the control text in the control attribute data of the controls on the current interactive page. It identifies the control corresponding to the matching text, determines the target control, and recognizes the corresponding control operation type to generate control operation instructions. The behavior analysis module sends the generated control operation instructions to the control operation module via an instruction sending interface. Upon receiving the control operation instructions, the control operation module calls the control operation interface to execute the corresponding control operation instructions on the target control. The execution result can be displayed on the car's central control screen. Therefore, by dividing the process into three modules—semantic analysis, behavior analysis, and control operation—based on voice interaction, semantic analysis, behavior analysis, and specific control operations can be decoupled. No additional interface development is required for the target application. For target applications installed on the car's central control system, after configuration according to the control association configuration file, the "see and speak" functionality can be achieved.

[0037] In this example scenario, the control operation module listens to the interactive page, retrieves data such as the control identifier information corresponding to the controls, and executes corresponding control operation commands. This is implemented using AccessibilityService + Aspect, which can meet the operation requirements of all types of controls. Simultaneously, the number of times the control identifier information is retrieved after detecting changes in the content of the interactive page is controlled by the control type in the control association configuration file. Furthermore, the frequency of retrieving this data is controlled through a message queue, reducing the power consumption of the car's central control system when the content of the current interactive page on the car's central control screen changes too frequently.

[0038] This specification provides a voice interaction method applied to a car's central control system. (See reference...) Figure 1b As shown, the method may include the following steps.

[0039] S110. Receive a user's voice request through the first interactive page of the target application; wherein, the first interactive page displays a target control; the target control is a controllable control determined from the controls displayed on the first interactive page of the target application based on the control type in the control association configuration file; the target control corresponds to first control attribute data; the first control attribute data is generated based on the control identifier information, control text, and control number of the target control if a switch from the second interactive page to the first interactive page is detected.

[0040] The first interactive page is the current interactive page of the target application running in the car's central control system. The control association configuration file can be used to filter and select control types. The first control attribute data can be used to generate corresponding control operation instructions based on the user's voice requests.

[0041] Specifically, when the target application is running and displaying the first interactive page, it can receive voice requests from the user for the controls displayed on the first interactive page, so as to perform text conversion and semantic analysis on the voice request in the future to obtain the corresponding semantic text data.

[0042] Before responding to a user's voice request, the first interactive page of the target application can be used to obtain the control text, control identification information, control number, etc., corresponding to the controls displayed on the first interactive page, and assemble them to generate corresponding first control attribute data, which is used to generate corresponding control operation instructions later. For example, for a search control in the navigation homepage, its control text can be "search", its control identification information can be 01, and its control number can be 1. By obtaining the control text, control identification information, control number, etc. of the search control and assembling them, the first control attribute data corresponding to the search control can be obtained, which is used to generate corresponding control operation instructions when it is recognized that the user needs to operate the control.

[0043] In some cases, the controls displayed on the first interactive page may include non-clickable controls that do not respond to manipulation events, such as label controls. Based on the first control attribute data for these controls, it is usually impossible to generate directly corresponding control operation instructions. Therefore, when obtaining the control text, control identifier information, and control number, rule filtering can be performed first to filter the control types on the interactive page, filtering out controls without clickable events. This reduces the amount of control identifier information and other data obtained, lowering the operational load on the voice interaction method.

[0044] Specifically, the types of controls to be acquired can be configured in advance in the control association configuration file. Before acquiring the control identifier information, control text, and control number corresponding to the controls displayed on the first interactive page, the control types corresponding to the controls displayed on the first interactive page are matched with the control types in the file according to the control types configured in advance. Controls with matching control types can be filtered out as target control controls, while controls with mismatched control types are filtered out.

[0045] Furthermore, the objects that users interact with via voice are typically the content of the target application's current interactive page. Therefore, the current interactive page can be monitored, and when its content changes, data such as the control identifiers of the target controls on the changed page can be obtained in real time. This data is then used to generate corresponding control operation commands. This allows any target application installed in the car's central control system to operate the controls on the target application's current interactive page without needing to develop an additional interface for voice interaction control within the target application.

[0046] Specifically, after detecting changes in window and page content when the current interactive page switches from the second interactive page to the first interactive page, the controls displayed on the first interactive page are filtered and selected. The control identifier information, control text, and control number corresponding to the selected target controls are then obtained from the first interactive page. The control identifier information, control text, and other data are assembled to generate corresponding first control attribute data. In some embodiments, the current interactive page can be monitored through operating system auxiliary services and / or interception methods to obtain the control identifier information, control text, and control number corresponding to the controls in the changed current interactive page.

[0047] For example, the operating system's accessibility services monitor the current interactive page. When changes to the window and page content are detected, the controls displayed on the transformed interactive page are filtered and selected based on the control types pre-configured in the control association configuration file to determine the target control on the page. Then, the control identifier, control text, and control number corresponding to the target control on the transformed page can be obtained through the monitoring callback method and assembled to generate corresponding first control attribute data. This data is then used for subsequent matching with semantic text data to identify the interactive target control that the user needs to operate on and the corresponding control operation type. In some embodiments, the operating system's accessibility services can be the AccessibilityService service supported by the Android system, and the interception method can be Aspect interception.

[0048] In some embodiments, after obtaining the control text, control identification information, and control number corresponding to the target control in the first interactive page, these data can be configured and assembled according to the control association configuration file to generate the corresponding first control attribute data.

[0049] S120. Match the semantic text data corresponding to the user's voice request with the first control attribute data to determine the interactive target control corresponding to the semantic text data.

[0050] The semantic text data may include the control text of the interactive target control. The first control attribute data may be a data set that includes the control text of all target manipulated controls in the first interactive page.

[0051] Specifically, upon receiving a user's voice request, semantic analysis is first performed on the voice request to obtain the corresponding semantic text data. Based on the control text of the interactive target control contained in the semantic text data, a match is made among the control texts of all target control controls in the first interactive page to find the target control corresponding to that control text, which is then identified as the interactive target control.

[0052] For example, on the navigation homepage, upon receiving a user's voice request "Search Oriental Pearl Tower," text conversion and analysis of the user's voice request "Search Oriental Pearl Tower" can yield corresponding semantic text data, which includes "search" and "Oriental Pearl Tower." Based on the semantic text data, a match is made between the text of all target control controls on the navigation homepage. Control text matching "search" is found, thus identifying the search control corresponding to the control text "search," and determining this control as the interactive target control.

[0053] S130. Generate control operation instructions based on the control operation type of the interactive target control.

[0054] The operation type of a control corresponds to its type. For example, if the control type is a button, the corresponding operation type can be click, double-click, long press, etc.; if the control type is a checkbox, the corresponding operation type can be checkmark, etc.; if the control type is a drag bar, the corresponding operation type can be drag, etc.; and if the control type is a text box, the corresponding operation type can be text input, etc.

[0055] Specifically, after determining the interactive target control corresponding to the semantic text data, the corresponding control operation type can be identified according to the type of the interactive target control. Then, the behavior relationship data corresponding to the control operation behavior of the interactive target control can be obtained by parsing the semantic text data, thereby generating control operation instructions to operate the interactive target control.

[0056] For example, after finding the search control based on semantic text data, the type of the search control can be identified as a composite control of a text control and a button control. Therefore, the corresponding control operation types can be identified as entering text in the text control and clicking the button control. Combining the semantic text data "search" and "Oriental Pearl Tower," as well as the control operation types of the search control, instructions for operating the search control can be generated, which may include entering "Oriental Pearl Tower" in the search text control and then clicking the search button control.

[0057] S140, Execute control operation instructions to output the response content of the user's voice request.

[0058] The response content can be the result of executing control operation instructions.

[0059] Specifically, based on control operation instructions, the control operation interface can be invoked to perform corresponding operations on the interactive target control on the first interactive page, and the results of the operations can be fed back to the current interactive page for display. In some embodiments, the control operation interface may be provided by the auxiliary service function of the vehicle's central control system where the target application is located. In other embodiments, the control operation interface may be obtained through interception.

[0060] For example, based on the generated instructions to operate the search control, the control operation interface provided by the auxiliary service function of the vehicle's central control system where the target application is located is invoked to perform the corresponding search operation on the search control on the navigation home page. This may include entering "Oriental Pearl Tower" in the search box and then clicking the search button. The search result may be the route from the current location to the Oriental Pearl Tower, and then the route is displayed on the current interactive page.

[0061] In the above embodiments, rule filtering is implemented through control association configuration files to reduce the amount of data such as control identifier information obtained from the current interactive page, thereby improving the efficiency of voice interaction. Real-time acquisition of control identifier information and other data in the current interactive page is achieved by monitoring changes in the window and page content of the current interactive page and obtaining the corresponding control identifier information after the change. Semantic behavior analysis and control operation are isolated by decoupling user speech recognition and semantic analysis from specific target application controls. Compared to traditional methods that use the target application's interface to connect to voice operation to achieve voice interaction control of the target application in the car's central control system, this method does not require additional development of an interface for voice interaction control in the target application, significantly reducing the development cost of the target application. It also avoids situations where third-party target applications installed in the car's central control system cannot support voice interaction due to inability to connect to the voice operation interface.

[0062] This specification provides a voice interaction method, referencing... Figure 2 As shown, the method may include the following steps:

[0063] S210. If a switch from the second interactive page to the first interactive page is detected, determine the target control that can be manipulated on the first interactive page from the controls displayed on the first interactive page, based on the control type in the control association configuration file.

[0064] S220. Obtain the first control attribute data corresponding to the target control in the first interactive page.

[0065] S230: Receive user voice requests through the first interactive page of the target application.

[0066] S240. Match the semantic text data corresponding to the user's voice request with the first control attribute data to determine the interactive target control corresponding to the semantic text data.

[0067] S250. Generate control operation instructions based on the control operation type of the interactive target control.

[0068] S260, Execute control operation instructions to output the response content of the user's voice request.

[0069] Specifically, if a switch from the second interactive page to the first interactive page is detected, the control types of the control objects on the first interactive page are filtered and selected based on the control types pre-configured in the control association configuration file. The corresponding controls that match the control types in the control association configuration file are identified as the target control. The control identifier information, control text, and control number corresponding to the target control are obtained from the first interactive page, and the control identifier information, control text, and other data are assembled to generate the corresponding first control attribute data.

[0070] The system receives voice requests from users targeting controls displayed on the first interactive page, performs semantic analysis on the voice requests to obtain corresponding semantic text data. Based on the control text of the target interactive control contained in the semantic text data, it matches the control text in the first control attribute data of all target control controls on the first interactive page to find the target control corresponding to that control text, and identifies it as the target interactive control.

[0071] Based on the type of the interactive target control, the corresponding control operation type is identified. Then, based on the semantic text data, the behavior relationship data corresponding to the control operation behavior of the interactive target control is obtained, thereby generating control operation instructions to operate the interactive target control.

[0072] Based on the control operation instructions, the control operation interface is called to perform the corresponding operation on the target control on the first interactive page, and the result of the operation is fed back to the current interactive page for display.

[0073] In some implementations, when the controls of the target application are updated, the control association profile can be modified to generate a new control association profile, which is used to identify the target control in the updated interactive page of the target application.

[0074] The control association configuration file can include control association rules, which are used to configure the association between the control identifier information and control text of the target control. The target control can have association relationships with other controls.

[0075] In some cases, some controls in a target application may be displayed as icons, or the control content may be separate from the control text content. Typically, the corresponding control text associated with these controls cannot be directly obtained, making it impossible to accurately identify the interactive target control corresponding to the semantic text data. Since the identification information of a control is unique, the control text corresponding to the control identification information can be configured so that the corresponding control identification information can be found through the identified control text, thereby locating the corresponding control.

[0076] Specifically, for the obtained control identifier information, control text, etc., corresponding to the target control, they can be configured according to the control association rules in the control association configuration file. When the controls in the target application are updated, the control association rules in the control association configuration file can be modified accordingly to generate a new control association configuration file. The new control association configuration file is published so that after the interactive page of the target application is updated, when a switch from the second interactive page to the first interactive page is detected, the new control association configuration file can be obtained. This file is used to identify the target control in the updated first interactive page and to configure the control identifier information, control text, etc., of the target control to generate new first control attribute data. The new first control attribute data is matched with semantic text data to generate corresponding control operation instructions. Compared to unconfigured first control attribute data, configured first control attribute data can better match the logic of behavior parsing of semantic text data. When new functions appear in the target application, only the corresponding control association configuration file needs to be modified to modify the configuration of the first control attribute data, thereby enabling the addition or modification of control operations. In some embodiments, the control association configuration file can be a JSON file.

[0077] In the above embodiments, the configuration of control attribute data can be modified by modifying the control association configuration file. This allows for adding or modifying controls in the target application without modifying the code implementing the control operations. For new target applications, there is no need to interface with voice interaction control or add corresponding logic to the control operation implementation code; operations on controls in the new target application can be supported simply by modifying the control association configuration file. The control association configuration file supports online modification. After modifying and publishing the control association configuration file, the new control association configuration file can be obtained whenever the corresponding control attribute data is needed.

[0078] In some implementations, the attribute data of the second control corresponding to the target control on the second interactive page is stored in a cache space. The voice interaction method also includes at least one of the following:

[0079] If the attribute data of the second control is inconsistent with the attribute data of the first control, clear the attribute data of the second control in the cache space and save the attribute data of the first control to the cache space.

[0080] If the attribute data of the second control is consistent with the attribute data of the first control, the attribute data of the second control in the cache space is retained, and the attribute data of the first control is discarded.

[0081] The control attribute data in the cache space can be used to match semantic text data to determine the target control for interaction.

[0082] In some cases, when switching from the second interactive page to the first interactive page, the content of the current interactive page may change, but the target control may remain the same. For example, during video playback, the attribute data of the first control in the current video playback page and the attribute data of the second control in the video playback page obtained 5 seconds ago show that, apart from the different video content, the target control has not changed, and the corresponding first and second control attribute data are identical. In this case, it is unnecessary to update the second control attribute data to the first control attribute data, thus saving performance in voice interaction. Therefore, a cache space can be set up to compare the first and second control attribute data to determine whether the target control in the first and second interactive pages is the same.

[0083] In some embodiments, the consistency between the second control attribute data and the first control attribute data can be determined using the MD5 message digest value. Specifically, the MD5 message digest values ​​of the second control attribute data in the cache space and the first control attribute data corresponding to all target control controls are calculated and compared. If the MD5 message digest value corresponding to the second control attribute data is inconsistent with the MD5 message digest value corresponding to the first control attribute data, the cache space is cleared and the first control attribute data is saved in the cache space; if the MD5 message digest value corresponding to the second control attribute data is consistent with the MD5 message digest value corresponding to the first control attribute data, the second control attribute data in the cache space is retained and the first control attribute data is discarded.

[0084] In some implementations, the voice interaction method obtains the first control attribute data corresponding to the control displayed on the first interaction page using at least one of the following methods:

[0085] Retrieve the first control attribute data corresponding to the control displayed on the first interactive page based on the message queue.

[0086] The message queue can be used to control the frequency at which the first interactive page is switched from the second interactive page to the first interactive page, and the attribute data of the first control is obtained.

[0087] In some situations, the window and content of the current interactive page may be constantly changing, with a potentially high frequency of change. If the control property data of the controls on the changed page is retrieved immediately after a change is detected, the retrieval frequency would be too high, potentially impacting the performance of the voice interaction. Therefore, a message queue can be set up, and its frequency control function can be used to regulate the frequency of retrieving control property data, preventing sudden increases in frequency from affecting the performance of the car's central control system and reducing its overhead.

[0088] Specifically, after obtaining the first control attribute data according to any of the foregoing embodiments, the first control attribute data is sent to a message queue. The message queue processes the first control attribute data in the queue at regular intervals, for example, by sending it to a cache space. In some embodiments, the message queue may process the first control attribute data in the queue every 10 seconds.

[0089] If no pop-up appears on the first interactive page, the first control attribute data corresponding to other controls on the first interactive page, excluding progress controls, is obtained by calling the operating system's auxiliary service function.

[0090] The operating system is the vehicle's central control system. Auxiliary service functions can provide users with replacement or enhanced feedback assistance services. It supports accessing controls on the interactive page (excluding progress bars) and provides control operation interfaces, enabling most operations such as clicking, double-clicking, checking, long-pressing, and dragging. The first control attribute data can be assembled from the control's corresponding control text, control identification information, control number, etc.

[0091] Specifically, when no pop-up window appears on the first interactive page, all controls on the first interactive page are visible to the operating system's accessibility services. Through the operating system's accessibility services, the control text, control identification information, control number, etc., corresponding to other controls on the first interactive page (excluding progress controls) can be obtained and assembled according to certain rules to generate the first control attribute data. In some embodiments, the operating system's accessibility services can be the AccessibilityService function supported by the Android system.

[0092] If a pop-up appears on the first interactive page, the first control attribute data corresponding to the control displayed on the first interactive page is obtained by intercepting it using the Aspect method.

[0093] In some cases, refer to Figure 3 As shown, the dialog component in the first interactive page rises, and the toolbox control beneath it becomes visible to the user. However, because the toolbox control is covered by the dialog component, it is invisible to the operating system's accessibility services (AHS). In other words, the AHS cannot access the control property data corresponding to the toolbox control beneath the dialog component. Therefore, Aspect interception can be used to obtain the control property data corresponding to this type of control.

[0094] Specifically, the system uses Aspect interception to hook the control object below the pop-up window on the first interactive page, thereby obtaining the control attribute data corresponding to the hooked control object. When it is necessary to execute corresponding control operation instructions on the hooked control object, reflection can be used to call the corresponding control operation interface.

[0095] If the first interactive page contains a progress control, obtain the attribute data of the first control corresponding to the progress control in the first interactive page using the Aspect interception method.

[0096] In some cases, the operating system's accessibility services support most operations on controls, such as clicking, long-pressing, double-clicking, and checking. However, for progress bar controls, the operating system's accessibility services cannot call the corresponding value setting methods. Therefore, this implementation uses Aspect interception to obtain the control attribute data corresponding to progress bar controls and to implement operations on progress bar controls.

[0097] Specifically, the progress bar control object in the first interactive page is hooked using an Aspect interception method to obtain the control property data corresponding to the hooked control object. When it is necessary to execute corresponding control operation instructions on the hooked progress bar control, reflection can be used to call the control operation method of the progress bar control, thereby realizing the operation of the progress bar control. For example, the `invoke` method can be used to call the `setRate` method of the progress bar control to set a specific value on the progress bar control.

[0098] It should be noted that in some cases, the Aspect interception method can completely capture the controls in the first interactive page and execute corresponding control operation instructions. However, this requires the target application to integrate the corresponding function package, i.e., the JAR file corresponding to the Aspect function. If the target application does not integrate the JAR file, it cannot connect to the "See and Speak" function. In the above implementation, a combination of the operating system's accessibility services and the Aspect interception method can be used to obtain the control attribute data corresponding to the controls in the interactive page and to execute control operation instructions to manipulate the controls. When the target application does not integrate the JAR file, it can connect to the "See and Speak" function through the operating system's accessibility services. If there is no need to control progress bar controls or controls covered by pop-ups via voice interaction, the operating system's accessibility services can achieve voice interaction control of most controls in the interactive page without affecting the target application. If the target application needs to control progress bar controls or controls covered by pop-ups via voice interaction, then the target application can integrate the JAR file corresponding to the Aspect function. Using a combination of the operating system's accessibility services and the Aspect interception method can support a more complete "See and Speak" function. By combining the operating system's auxiliary services features with Aspect interception, it is possible to avoid situations where the target application is completely unable to integrate with voice interaction functionality.

[0099] In some implementations, the target application corresponds to a behavior parsing module and a control operation module. (See reference) Figure 4 As shown, the method for generating the first control's attribute data may include the following steps.

[0100] S310. If a switch from the second interactive page to the first interactive page is detected, the control operation module generates the first control attribute data based on the control identifier information, control text, and control number of the target control.

[0101] The control identification information is the ID value that uniquely identifies the control, and the control number can be a number value used to further identify the same control. The first control attribute data can be data used to describe a control and distinguish it from other controls.

[0102] The target application can connect to the control operation module through the control operation interface. The control operation module can be used to interface with the behavior parsing module and the controls in the target application. Specifically, the control operation module listens to the content on the current interactive page. When it detects a switch from the second interactive page to the first interactive page, it determines the target control on the first interactive page based on the control type in the control association configuration file. The control operation module then obtains the control identifier information, control text, and control number corresponding to the target control on the first interactive page, and configures and assembles this data according to the control association configuration file to generate the first control attribute data.

[0103] In some embodiments, the first control attribute data can be control messages. Listening to the interactive page and obtaining the corresponding control identifier information, control text, and control number through the control operation module can be achieved by using the operating system's auxiliary services or Aspect interception methods, or by using both the operating system's auxiliary services and Aspect interception methods.

[0104] It should be noted that the control operation module can be used to obtain the control identification information, control text, and control number of all controls in the first interactive page, or it can be used to obtain the control identification information, control text, and control number of the target control in the first interactive page based on the control type in the control association configuration file.

[0105] S320. Call the control registration interface of the behavior parsing module to register the first control attribute data to the behavior parsing module.

[0106] The behavior parsing module can be used to match semantic text data with the attribute data of the first control to determine the interactive target control corresponding to the semantic text data.

[0107] Specifically, the control operation module calls the control registration interface defined by the behavior parsing module to register the first control attribute data generated by the control operation module to the behavior parsing module. In some embodiments, the control operation module can register the first control attribute data to the control cache space, and then the behavior parsing module matches the semantic text data with the first control attribute data in the control cache space.

[0108] In the above implementation, the behavior parsing module and the control operation module are connected via an interface, each responsible for its corresponding functions and processes, and the technical selection of the behavior parsing module and the control operation module will not affect each other.

[0109] In some implementations, registering the first control attribute data to the behavior parsing module may include: registering the first control attribute data to the behavior parsing module according to the control association rules predefined in the control association configuration file.

[0110] Among them, control association rules can be used to associate control identification information with control text in order to accurately determine the target control for interaction.

[0111] In some cases, some controls in a target application may be displayed as icons, or the control content may be separate from the control text content. Typically, the corresponding control text associated with these controls cannot be directly obtained. Since control identification information is unique, control association rules can be predefined to configure the control text corresponding to the control identification information. This allows the corresponding control identification information to be found through the identified control text, thus locating the corresponding control.

[0112] In other cases, such as within a list control, each element of the same type shares the same control identifier information—that is, the list control's identifier information—and the corresponding control text may also be identical. In such situations, the control text alone cannot accurately identify which specific element in the list control the target interactive control is. Since some controls may have certain relationships, control association rules can be predefined. These rules configure the association of control text, which, along with the control identifier information, uniquely identifies the control, allowing the corresponding control to be accurately located through the identified association text.

[0113] Specifically, the control operation module obtains the control identification information, control text, and control number, configures them according to the predefined control association rules in the control association configuration file, assembles the configured content into the first control attribute data, and registers the first control attribute data to the behavior parsing module by calling the control registration interface defined by the behavior parsing module through the control operation module.

[0114] For example, refer to Figure 5a As shown, on the navigation homepage, the search results for addresses are presented in a list format, with each item in the list containing a button whose control text is "Route". If "Route" is directly used as the control text for identifying the button and involved in the semantic text data matching process, it's impossible to accurately determine which item in the list the "Route" button needs to be identified from. Considering that each "Route" button can be identified by associating it with the title text (i.e., the address text) of its corresponding list item, the association between the "Route" button and the title text of its list item can be written into the control association rules for configuring the control text of the "Route" button.

[0115] In some embodiments, control association rules can be JSON rules. For example, see [link to documentation]. Figure 5a As shown, the corresponding control association rules can be represented as follows:

[0116] {

[0117] "page": "Navigation Homepage"

[0118] "com.zeekr.automap:id / slv_search_button": {

[0119] "des": "search"

[0120] "itemType": "button"

[0121] }

[0122] "com.zeekr.automap:id / slv_search_list": {

[0123] "des": "route"

[0124] "itemid": "com.zeekr.automap:id / cl_auto_search_listview_item",

[0125] "itemdes":"com.zeekr.automap:id / cl_auto_search_listview_title",

[0126] "itemType": "list"

[0127] }

[0128] }

[0129] The above control association rules indicate that on the navigation homepage, there are two controls. The first control has an ID of com.zeekr.automap:id / slv_search_button, and its corresponding control text is "search". The second control has an ID of com.zeekr.automap:id / slv_search_list, and its corresponding control text is "route". `itemid` defines the control operation type identifier for each element in the second control; `itemdes` defines the text for each element in the second control. By using the identifiers `itemid` and `itemdes`, the element and its corresponding operation type for each item in the list can be defined. For example, "No. 100 Haike Road, Pudong New Area, Shanghai" (this text is the text of the ID corresponding to `itemdes`, i.e., com.zeekr.automap:id / cl_auto_search_listview_title) and the text "route" defined in the second control's `des` are used together as the identifier text for the first route button. The control operation type identifier for the first route button is generated by the button control (i.e., com.zeekr.automap:id / cl_auto_search_listview_item).

[0130] The control operation module assembles the configured content into control attribute data and registers this data with the behavior parsing module by calling the control registration interface defined in the behavior parsing module. When a user says "No. 100 Haike Road, Pudong New Area, Shanghai" or "route," the behavior parsing module matches the semantic text data to determine if the user needs to click the route button corresponding to "No. 100 Haike Road, Pudong New Area, Shanghai." This generates a control operation command for that button. The control operation module then clicks the first route button according to the command, thus selecting the route to "No. 100 Haike Road, Pudong New Area, Shanghai."

[0131] For example, Figure 5b This is a schematic diagram illustrating the control message registration process between the control operation module and the behavior parsing module. (Reference) Figure 5b As shown, the control message registration process may include: the control operation module uses AccessibilityService+Aspect to obtain the control identifier information, control text, and control number corresponding to the control in the current interactive page, and configures and assembles this data according to the predefined control association rules in the control association configuration file to obtain the first control attribute data. The control operation module calls the control registration interface defined by the behavior parsing module to register the first control attribute data to the control cache space.

[0132] In the above embodiments, the use of control association rules to configure controls helps to add or modify the control operations of the target application without modifying the code of the control operation module. Furthermore, the control association configuration file supports online configuration and publishing, eliminating the need to upgrade the functionality of related modules through over-the-air download technology.

[0133] In some implementations, before executing control operation instructions, the voice interaction method may further include: receiving control operation instructions sent by the behavior parsing module through the instruction sending interface of the control operation module.

[0134] Specifically, the behavior parsing module can match the control text of the interactive target control contained in the user's semantic text data within the first control attribute data to find the control corresponding to that control text and identify it as the interactive target control. Then, based on the type of the interactive target control, it identifies the corresponding control operation type, thereby parsing the semantic text data to obtain the behavior relationship data corresponding to the control operation behavior for the interactive target control. This allows it to generate control operation instructions to operate on the interactive target control. The behavior parsing module calls the instruction sending interface of the control operation module to send the generated control operation instructions to the control operation module. The control operation module receives the control operation instructions and can then perform the corresponding operations on the interactive target control.

[0135] In some embodiments, semantic text data can be obtained by the semantic analysis module through text conversion and semantic analysis of the received user's voice request. The behavior parsing module can be used to interface with the semantic analysis module and the control operation module.

[0136] Executing control operation instructions may include: calling the control operation interface of the control operation module to execute control operation instructions on the interactive target control.

[0137] For example, Figure 5c This is a schematic diagram illustrating the interaction flow between the behavior parsing module and the control operation module. (Reference) Figure 5c As shown, the interaction flow for control operations can include: the behavior parsing module matches semantic text data with the control text in the first control attribute data of the control cache space to determine the target control and its corresponding control operation type, and generates the corresponding control operation instruction. The behavior parsing module calls the instruction sending interface of the control operation module to send the control operation instruction to the control operation module. After receiving the control operation instruction, the control operation module calls the control operation interface to perform the corresponding operation on the target control on the current interaction page.

[0138] In some embodiments, the control operation interface may be provided by the operating system's accessibility service, which may be the AccessibilityService function of the Android system. Specifically, after receiving a control operation instruction through the control operation module, the control operation interface provided by the AccessibilityService function can be called to perform corresponding control operations on the interactive target control, including most control operations such as clicking, double-clicking, checking, long-pressing, and dragging.

[0139] In other embodiments, the control operation interface can be obtained through Aspect interception. Specifically, the control operation module uses Aspect interception to hook the control object displayed on the first interactive page. When it is necessary to execute corresponding control operation instructions on the hooked interactive target control object, reflection can be used to call the control operation method of the interactive target control object, thereby realizing the operation of the interactive target control. Using the control operation interface obtained through Aspect interception, complete control operation can be achieved.

[0140] Since calling the control operation interface obtained through Aspect interception to execute control operation instructions requires the target application to integrate the corresponding Aspect functionality JAR file, a combination of operating system auxiliary services and Aspect interception can be used to execute control operation instructions. When there is no need to operate progress bar controls or controls covered by pop-ups, control operations on interactive pages can be achieved by calling the control operation interface provided by the operating system's auxiliary services. When there is a need to operate progress bar controls or controls covered by pop-ups, the corresponding Aspect functionality JAR file can be integrated into the target application, and the control operation interface obtained through Aspect interception can be called to implement the corresponding control operations.

[0141] In some implementations, the first control attribute data includes the control text of the control. Matching the semantic text data corresponding to the user's voice request in the first control attribute data to determine the interactive target control corresponding to the semantic text data may include: determining the interactive target control corresponding to the semantic text data based on the matching result between the semantic text data corresponding to the user's voice request and the control text of the control.

[0142] The semantic text data can be obtained by the semantic analysis module through text conversion and semantic analysis of the user's voice request.

[0143] Specifically, refer to Figure 6As shown, the semantic analysis module receives user voice requests, performs text conversion and semantic analysis on the user voice requests, parses the corresponding semantic text data, and sends it to the behavior analysis module. The behavior analysis module receives the semantic text data and matches it against the control text included in the first control attribute data. The control corresponding to the control text that matches the text in the semantic text data is identified as the interactive target control. Based on the type of the interactive target control, the corresponding control operation type is identified to associate the interactive target control and its corresponding control operation type, parsing out the corresponding behavior relationship data. The behavior analysis module generates control operation instructions for the interactive target control and sends them to the control operation module through the instruction sending interface. The control operation module receives the control operation instructions and calls the control operation interface to execute the corresponding control operation instructions on the interactive target control, thus completing the control of the target application through voice interaction.

[0144] It should be noted that the semantic analysis module can use mature semantic analysis technology, and the behavior parsing module can use mature behavior parsing technology. The technology choices of the semantic analysis module and the behavior parsing module do not affect each other.

[0145] In the above implementation, based on the flow of controlling the target application's controls via voice interaction, three modules are divided: semantic analysis, behavior parsing, and control operation. Each of these modules is responsible for a specific part of the process, and their technical choices do not affect each other, thus achieving decoupling between semantic analysis, behavior parsing, and specific control operations. Whether the target application is self-developed by the service provider offering the "see-and-say" functionality or provided by a third party, no additional interface for semantic analysis or behavior parsing is required; both can connect to the "see-and-say" functionality of the automotive central control system.

[0146] This specification provides a voice interaction device applied to a car central control system. (See reference...) Figure 7 As shown, the voice interaction device 400 may include: a receiving module 410, a matching module 420, an instruction generation module 430, and an instruction execution module 440.

[0147] The receiving module 410 is used to receive user voice requests through the first interactive page of the target application. The first interactive page displays target control controls; these target control controls are determined from the controls displayed on the first interactive page of the target application based on the control types in the control association configuration file; each target control control corresponds to first control attribute data; this first control attribute data is generated based on the control identifier information, control text, and control number of the target control control if a switch from the second interactive page to the first interactive page is detected.

[0148] The matching module 420 is used to match the semantic text data corresponding to the user's voice request with the first control attribute data to determine the interactive target control corresponding to the semantic text data.

[0149] The instruction generation module 430 is used to generate control operation instructions based on the control operation type of the interactive target control.

[0150] The instruction execution module 440 is used to execute control operation instructions to output the response content of the user's voice request.

[0151] For specific limitations regarding the voice interaction device, please refer to the limitations on the voice interaction method above, which will not be repeated here. Each module in the aforementioned voice interaction device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0152] This specification also provides a computer device, see embodiments thereof. Figure 8 As shown, the computer device 500 includes a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 530, it implements the voice interaction method of any of the aforementioned embodiments.

[0153] This specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the voice interaction method of any of the foregoing embodiments.

[0154] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0155] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0156] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0157] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0158] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0159] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A voice interaction method, characterized in that, The method, applied to automotive central control systems, includes: The system receives user voice requests through the first interactive page of the target application; wherein, the first interactive page displays target control controls; the target control controls are controllable controls determined from the controls displayed on the first interactive page of the target application based on the control types in the control association configuration file; the target control controls correspond to first control attribute data; the first control attribute data is generated based on the control identifier information, control text, and control number of the target control controls if a switch from the second interactive page to the first interactive page is detected. The semantic text data corresponding to the user's voice request is matched in the first control attribute data to determine the interactive target control corresponding to the semantic text data; Generate control operation instructions based on the control operation type of the interactive target control; Execute the control operation instructions to output the response content of the user's voice request; The first control attribute data corresponding to the control displayed on the first interactive page can be obtained using at least one of the following methods: The first control attribute data corresponding to the control displayed on the first interactive page is obtained based on the message queue; If no pop-up appears on the first interactive page, the first control attribute data corresponding to other controls on the first interactive page, excluding progress controls, is obtained by calling the auxiliary service function of the operating system. If a pop-up window appears on the first interactive page, the first control attribute data corresponding to the control displayed on the first interactive page is obtained by intercepting it using the Aspect method; If the first interactive page contains the progress-type control, the first control attribute data corresponding to the progress-type control in the first interactive page is obtained by Aspect interception.

2. The method of claim 1, wherein, When the controls of the target application are updated, the control association configuration file can be modified to generate a new control association configuration file, which is used to identify the target control in the interactive page of the updated target application.

3. The method of claim 1, wherein, The second control attribute data corresponding to the target control in the second interactive page is stored in the cache space; the method further includes at least one of the following: If the second control attribute data is inconsistent with the first control attribute data, clear the second control attribute data in the cache space and save the first control attribute data to the cache space; If the second control attribute data is consistent with the first control attribute data, the second control attribute data in the cache space is retained, and the first control attribute data is discarded.

4. The method of claim 1, wherein, The target application corresponds to a behavior parsing module and a control operation module; The methods for generating the first control attribute data include: If a switch from the second interactive page to the first interactive page is detected, the control operation module generates the first control attribute data based on the control identifier information, control text, and control number of the target control. The control registration interface of the behavior parsing module is called to register the first control attribute data to the behavior parsing module.

5. The method of claim 4, wherein, Registering the first control attribute data to the behavior parsing module includes: According to the control association rules predefined in the control association configuration file, the first control attribute data is registered to the behavior parsing module.

6. The method according to claim 4, characterized in that, Before executing the control operation instructions, the method further includes: The control operation module receives control operation instructions sent by the behavior parsing module through its instruction sending interface. The execution of the control operation instructions includes: The control operation interface of the control operation module is invoked to execute the control operation instructions on the interactive target control.

7. The method according to any one of claims 1 to 6, characterized in that, The first control attribute data includes the control text of the control. The step of matching the semantic text data corresponding to the user's voice request within the first control attribute data to determine the interactive target control corresponding to the semantic text data includes: Based on the matching result between the semantic text data corresponding to the user's voice request and the control text of the control, the interactive target control corresponding to the semantic text data is determined.

8. A voice interaction device, characterized in that, Applied to an automotive central control system, the device performs the method according to any one of claims 1 to 7, comprising: A receiving module is used to receive a user's voice request through a first interactive page of a target application; wherein, the first interactive page displays a target control; the target control is a controllable control determined from the controls displayed on the first interactive page of the target application according to the control type in the control association configuration file; the target control corresponds to first control attribute data; the first control attribute data is generated based on the control identifier information, control text, and control number of the target control if a switch from a second interactive page to the first interactive page is detected; The matching module is used to match the semantic text data corresponding to the user's voice request in the first control attribute data to determine the interactive target control corresponding to the semantic text data. The instruction generation module is used to generate control operation instructions based on the control operation type of the interactive target control; The instruction execution module is used to execute the control operation instructions to output the response content of the user's voice request.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Speech control method, information processing method, vehicle, and server

    WO2022000859A1