Method for improving page response speed, storage medium and electronic device
By receiving and parsing all page element information from the intelligent control center, the problem of the intelligent control center being unable to operate across pages is solved, enabling faster page response and more flexible voice interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
- Filing Date
- 2024-12-18
- Publication Date
- 2026-06-19
AI Technical Summary
The intelligent control center cannot perform operations across page elements, which limits the flexibility and intelligence of multimodal interaction.
It receives all page element information from the intelligent control center, determines the target page element information corresponding to the voice interaction request through a semantic parsing algorithm, generates operation instructions, and sends them to the intelligent control center to execute the operation.
It enables cross-page element operations, improves page response speed and the flexibility and accuracy of voice interaction, and ensures seamless and consistent device control.
Smart Images

Figure CN122247822A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a method, storage medium, and electronic device for improving page response speed. Background Technology
[0002] In the smart home field, smart control centers (such as brain-screen displays) serve as the control hub and information display platform for smart homes, playing a crucial role in connecting various smart devices, processing user commands, and providing personalized services. To achieve both visual and voice-enabled functionality—meaning users can view the status of home devices and control them via voice through the smart control center, while device control and status feedback can also be presented to users through voice and visual means—the smart control center needs to be able to understand and operate the elements and information displayed on the screen.
[0003] In related technologies, the intelligent control center reports page element information to the cloud via an HTTP interface and stores it in a MongoDB database. This process allows the cloud to obtain element information of the current page from the intelligent control center, thereby supporting basic voice interaction. However, existing technologies have the following limitations:
[0004] The cloud can only acquire and process element information from the current page of the smart control center, but cannot acquire element information from other pages. This limits the flexibility and intelligence of the smart control center in multimodal interactions. For example, if a user is viewing a page about kitchen appliances but wants to control the living room air conditioner via voice, current technology cannot achieve this cross-page interaction.
[0005] There is no effective solution yet for the problem that the intelligent control center cannot perform operations across page elements in related technologies. Summary of the Invention
[0006] This application provides a method, storage medium, and electronic device for improving page response speed, so as to at least solve the problem in the related art that the intelligent control center cannot realize cross-page element operation.
[0007] According to one embodiment of this application, a method for improving page response speed is provided, comprising: receiving full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate element information on multiple pages of the intelligent control center; receiving a voice interaction request sent by a target object, and determining target page element information corresponding to the voice interaction request in the full page element information; and requesting the intelligent control center to respond to the voice interaction request based on the target page element information.
[0008] In one exemplary embodiment, determining the target page element information corresponding to the voice interaction request from the full set of page element information includes: converting the voice interaction request into first text information and determining first intent information corresponding to the first text information using a semantic parsing algorithm; verifying the first intent information based on the full set of page element information; if the first intent information fails verification, determining second intent information corresponding to the text information using the semantic parsing algorithm and determining the target page element information based on the second intent information; and if the first intent information passes verification, determining the target page element information corresponding to the first intent information.
[0009] In one exemplary embodiment, determining the target page element information corresponding to the voice interaction request from the full page element information includes: slicing the first voice interaction request received in real time to obtain a first interaction request, wherein the voice interaction request includes: the first voice interaction request; and determining the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request.
[0010] In one exemplary embodiment, determining the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request includes: converting the first interaction request into second text information and determining the third intent information corresponding to the second text information through a semantic parsing algorithm; determining whether the page element information corresponding to the third intent information exists in the full page element information; and, if the page element information corresponding to the third intent information exists in the full page element information, determining the target page element information based on the page element information corresponding to the third intent information.
[0011] In an exemplary embodiment, determining the target page element information based on the page element information corresponding to the third intent information includes: determining the number of page element information corresponding to the third intent information; if the number is greater than a preset number, further slicing the real-time received second voice interaction request to obtain a second interaction request, wherein the second voice interaction request includes at least the first voice interaction request; determining the fourth intent information corresponding to the second interaction request; and determining the target page element information from the page element information corresponding to the third intent information based on the fourth intent information.
[0012] In one exemplary embodiment, requesting the intelligent control center to respond to the voice interaction request based on the target page element information includes: generating an operation instruction corresponding to the voice interaction request based on the target page element information; and sending the operation instruction to the intelligent control center so that the intelligent control center controls the target device to execute the operation instruction.
[0013] In an exemplary embodiment, after receiving the full page element information of the intelligent control center sent by the intelligent control center, the method further includes: if the intelligent control center determines that the full page element information has been updated, receiving an adjustment request sent by the intelligent control center, wherein the adjustment request includes: incremental page element information or decremental page element information of the target page; and adjusting the full page element information stored in the database according to the incremental page element information or decremental page element information.
[0014] In one exemplary embodiment, receiving full page element information of the intelligent control center sent by the intelligent control center includes: receiving a compressed package sent by the intelligent control center; and decompressing the compressed package to obtain full page element information of the intelligent control center.
[0015] According to another embodiment of this application, an apparatus for improving page response speed is also provided, comprising: a receiving module, configured to receive full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate element information on multiple pages of the intelligent control center; a determining module, configured to receive a voice interaction request sent by a target object, and determine the target page element information corresponding to the voice interaction request in the full page element information; and a responding module, configured to request the intelligent control center to respond to the voice interaction request based on the target page element information.
[0016] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for improving page response speed when running.
[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for improving page response speed through the computer program.
[0018] In this embodiment, the system receives full page element information of the intelligent control center, which is used to indicate element information on multiple pages of the intelligent control center. It also receives a voice interaction request from a target object and determines the target page element information corresponding to the voice interaction request from the full page element information. Based on the target page element information, it requests the intelligent control center to respond to the voice interaction request. In other words, by receiving full page element information from the intelligent control center, the cloud receives element information from all pages of the intelligent control center. Therefore, even if the voice interaction request is used to operate other page elements outside the current page, the cloud can control the intelligent control center to operate other page elements besides the current page. The cloud can quickly generate operation instructions based on the full page elements and send them back to the intelligent control center. After receiving the instructions, the intelligent control center immediately executes the corresponding operation, further improving page response speed. This technical solution solves the problem that the intelligent control center cannot perform cross-page element operations. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the hardware environment for a method to improve page response speed according to an embodiment of this application;
[0022] Figure 2 This is a flowchart (a) of a method for improving page response speed according to an embodiment of this application;
[0023] Figure 3 This is a flowchart (II) of a method for improving page response speed according to an embodiment of this application;
[0024] Figure 4 This is a structural block diagram (a) of an apparatus for improving page response speed according to an embodiment of this application;
[0025] Figure 5 This is a structural block diagram (II) of an apparatus for improving page response speed according to an embodiment of this application. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] According to one aspect of the embodiments of this application, a method for improving page response speed is provided, which can also be understood as a method for responding to voice interaction requests. This method for improving page response speed is widely used in whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned method for improving page response speed can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0029] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0030] This embodiment provides a method for improving page response speed, applied to the aforementioned server. Figure 2 This is a flowchart (a) of a method for improving page response speed according to an embodiment of this application, which includes the following steps:
[0031] Step S202: Receive the full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate the element information on multiple pages of the intelligent control center;
[0032] When the intelligent control center (such as a brain-screen) is activated or at set time intervals, it sends information about all elements on its pages to the cloud—that is, information about all page elements. This includes, but is not limited to, information about the current page and pages that the user has visited in the past.
[0033] Element information may include the status (such as switch, temperature setting, etc.), location, type, etc. of various devices and controls on the page, as well as possible user operation history.
[0034] Step S204: Receive a voice interaction request sent by the target object, and determine the target page element information corresponding to the voice interaction request in the full page element information;
[0035] The cloud receives a voice interaction request from the user through the smart control center, such as the user saying, "Raise the living room air conditioner by 2 degrees." By analyzing the voice interaction request, the cloud searches for the target page information related to the request in the full set of page element information, such as the element information of the living room air conditioner page.
[0036] Step S206: Based on the target page element information, request the intelligent control center to respond to the voice interaction request.
[0037] Based on the target page element information (such as the current living room air conditioner temperature being set to 22 degrees Celsius), the cloud generates specific control commands (such as setting the temperature to 24 degrees Celsius). These commands are then sent back to the smart control center, which performs the corresponding operations, such as adjusting the living room air conditioner temperature.
[0038] For example, suppose a user is viewing kitchen equipment information on a brain-computer interface and then says via voice, "Raise the temperature of the living room air conditioner." In existing technologies, the brain-computer interface might not understand this instruction because it is currently processing element information on the kitchen equipment page, while the user's goal is to operate on the living room air conditioner page. However, in this embodiment: When the brain-computer interface starts, it sends all page element information, including the living room air conditioner page, to the cloud. The cloud receives the user's voice instruction "Raise the temperature of the living room air conditioner," and determines through parsing that the user's intention is to adjust the temperature setting of the living room air conditioner. The cloud finds the element information of the living room air conditioner page in the full set of page element information and confirms that the current temperature is 22 degrees Celsius. Based on the target page element information, the cloud generates the instruction "Set the temperature of the living room air conditioner to 24 degrees Celsius" and sends it to the brain-computer interface. The brain-computer interface receives the instruction, adjusts the living room air conditioner temperature to 24 degrees Celsius, and simultaneously sends confirmation information back to the cloud.
[0039] Through the above steps, the system receives full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate element information on multiple pages of the intelligent control center; it receives a voice interaction request sent by a target object and determines the target page element information corresponding to the voice interaction request in the full page element information; it requests the intelligent control center to respond to the voice interaction request based on the target page element information; that is, in this embodiment, by receiving full page element information of the intelligent control center, the cloud receives element information on all pages of the intelligent control center. Therefore, when a voice interaction request is received, even if the voice interaction request is used to operate other page elements outside the current page, the cloud can control the intelligent control center to operate other page elements besides the current page, thereby improving page response speed. The above technical solution solves the problem that the intelligent control center cannot perform cross-page element operations.
[0040] Optionally, to better understand step S204, "determining the target page element information corresponding to the voice interaction request from the full set of page element information," this application provides an implementation method, including: converting the voice interaction request into first text information, and determining the first intent information corresponding to the first text information using a semantic parsing algorithm; verifying the first intent information based on the full set of page element information; if the first intent information fails verification, determining the second intent information corresponding to the text information using the semantic parsing algorithm, and determining the target page element information based on the second intent information; if the first intent information passes verification, determining the target page element information corresponding to the first intent information.
[0041] This application embodiment defines how the cloud determines the target page element information corresponding to a voice interaction request through semantic parsing and intent recognition. It ensures the accuracy of voice commands and the intelligence of responses through multi-layered intent recognition and verification. Specifically:
[0042] The user issues a voice command, "Raise the living room air conditioner by 2 degrees." The cloud-based voice recognition module first converts this voice command into text information, namely, "Raise the living room air conditioner by 2 degrees." Next, the cloud uses NLP technology to perform semantic analysis on the first text information, extracting the user's intent—"raise the temperature"—and the target object—"living room air conditioner." This analysis result serves as the first intent information.
[0043] The cloud checks all page element information to see if it contains target page element information (i.e., element information of the living room air conditioner page) that is associated with the primary intent information. If the current page element information does not contain information related to "living room air conditioner", then the primary intent information cannot be directly supported by the current page element information.
[0044] If the first intent information fails validation (i.e., the current page element information does not include living room air conditioner information), the cloud will try to understand the user's command more broadly, and may associate "increase temperature" with the air conditioners or temperature control devices in the whole house to generate second intent information, such as "increase the temperature of any air conditioner in the house".
[0045] Based on the verified intent information (first or second intent information), the cloud searches for page information containing relevant elements within the full set of page element information. For example, if "raise living room air conditioner temperature by 2 degrees" passes verification, the target page element information will be the element information from the living room air conditioner page.
[0046] Through this process, even if the user is currently controlling the page, the cloud can accurately determine the target page element information through intent recognition and verification, thereby enabling control of the target device and improving the flexibility and accuracy of voice interaction.
[0047] Optionally, determining the target page element information corresponding to the voice interaction request from the full page element information includes: slicing the first voice interaction request received in real time to obtain a first interaction request, wherein the voice interaction request includes: the first voice interaction request; and determining the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request.
[0048] In this embodiment, the first voice interaction request received in real time is sliced to obtain the first interaction request: this step involves dividing the voice interaction request issued by the user into smaller, manageable information blocks. For example, if the user wants to say, "Please turn up the temperature of the living room air conditioner to 25 degrees," the cloud will receive "Please turn up," "Please turn up the living room," "Please turn up the living room air conditioner," "Please turn up the temperature of the living room air conditioner," etc. in real time. First, the received voice command is sliced to obtain smaller voice commands. For example, "Please turn up the temperature of the living room air conditioner" is sliced into "Please turn up the living room air conditioner."
[0049] For each segmented first interaction request, the cloud analyzes all page element information to determine the specific target page element information associated with the request. For example, when processing the request "turn on the living room air conditioner", the cloud will look for page element information related to "living room air conditioner".
[0050] Based on the content of the first interaction request, the cloud filters out the relevant target page elements from the full set of page element information, such as the humidity setting control information of the living room air conditioner page, and the temperature setting control information of the living room air conditioner page.
[0051] This process analyzes the voice interaction requests of the target object in real time, improving the response rate.
[0052] Optionally, determining the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request includes: converting the first interaction request into second text information and determining the third intent information corresponding to the second text information through a semantic parsing algorithm; determining whether there is page element information corresponding to the third intent information in the full page element information; and, if there is page element information corresponding to the third intent information in the full page element information, determining the target page element information based on the page element information corresponding to the third intent information.
[0053] In this embodiment, the target page element matching the full set of page element information is determined by converting the first interaction request into text and further parsing it into intent information. Specifically, the cloud converts the received first interaction request into text. For example, a user's voice command "Turn on the living room air conditioner" will be recognized and converted into corresponding text information. Next, the cloud uses NLP technology to perform semantic parsing on the second text information to understand the user's request intent. In the example above, the cloud will parse out the third intent information "Adjust the living room air conditioner," which includes the target object (living room air conditioner) that the user wants to execute. The cloud will then check the full set of page element information to determine if there is a page element matching the third intent information. For example, the cloud will search for control information for the living room air conditioner page in the full set of page element information. If page element information matching the third intent information is found in the full set of page element information, then this information is identified as the target page element information. In this example, the temperature and humidity adjustment controls on the living room air conditioner page will be identified as target page element information for subsequent control operations.
[0054] Optionally, determining the target page element information based on the page element information corresponding to the third intent information includes: determining the number of page element information corresponding to the third intent information; if the number is greater than a preset number, further slicing the real-time received second voice interaction request to obtain a second interaction request, wherein the second voice interaction request includes at least the first voice interaction request; determining the fourth intent information corresponding to the second interaction request; and determining the target page element information from the page element information corresponding to the third intent information based on the fourth intent information.
[0055] In this embodiment, through the parsing and slicing of multi-layer intent information, the system can more accurately locate the target page element that the user truly wants to operate on, avoiding the risk of performing errors or unexpected operations. Specifically:
[0056] First, the cloud will count the number of page elements associated with the user's original request (third-party intent information). If the number of these elements exceeds a preset threshold, it indicates that the user request may involve multiple different devices or functions, and further refinement is needed to determine the specific target.
[0057] If the number exceeds the preset number, it indicates that the collected voice interaction requests may not be specific enough. Therefore, it is necessary to collect more user voice interaction requests. For example, if the request "Please turn up the living room air conditioner temperature to 25 degrees" is received, it can be segmented into a more specific second interaction request to further clarify the user's intent.
[0058] The cloud-based system uses NLP technology again to parse the second interaction request, extracting more specific operational intents. For example, from the request "Please adjust the living room air conditioner temperature to 25 degrees Celsius," the system will parse that the user is interested in operations related to air conditioning, thus obtaining the fourth intent information.
[0059] Based on the fourth intent information, the cloud further filters the page element information related to the third intent information to find the page element that perfectly matches the fourth intent information, that is, the target page element information that the user really wants to interact with.
[0060] Through the embodiments of this application, even if a user's initial request may involve multiple page elements, the system can accurately understand the user's intent and execute the correct operation by progressively refining and supplementing information. This approach improves the intelligent control center's responsiveness to complex and ambiguous voice interaction requests, ensuring operational accuracy and user satisfaction.
[0061] Optionally, requesting the intelligent control center to respond to the voice interaction request based on the target page element information includes: generating an operation instruction corresponding to the voice interaction request based on the target page element information; and sending the operation instruction to the intelligent control center so that the intelligent control center controls the target device to execute the operation instruction.
[0062] This defines how to generate operation instructions based on the target page element information and send the instructions to the intelligent control center so that the intelligent control center can control the corresponding devices to execute the operations requested by the user through voice interaction.
[0063] After identifying the target page element information that matches the user's voice request in the cloud, the next step is to generate specific operation instructions based on this information. For example, if the target page element information is the temperature adjustment control on the living room air conditioner page, and the current temperature is 22 degrees Celsius, then for the user's request to "raise the living room air conditioner temperature to 25 degrees Celsius," the cloud will generate an operation instruction, such as "adjust the living room air conditioner temperature setting from 22 degrees Celsius to 25 degrees Celsius."
[0064] After generating the operation command, the cloud sends the command back to the intelligent control center (such as a brain-computer interface). Upon receiving the command, the intelligent control center parses the command content and understands the specific operation to be performed.
[0065] Based on the received operation instructions, the intelligent control center sends control signals to the target device through its connection or communication protocol, so that the device can perform the corresponding operation. For example, the intelligent control center might send a signal to the living room air conditioner to adjust the temperature to 25 degrees Celsius. Upon receiving the signal, the air conditioner's temperature control system will then adjust the temperature accordingly.
[0066] In this embodiment, the cloud can not only parse the user's voice commands, but also understand and manipulate all page element information uploaded by the intelligent control center, thereby achieving seamless voice control across multiple devices and pages. Simultaneously, by generating specific operation instructions, the accuracy of control commands and the consistency of device responses are ensured.
[0067] Optionally, after receiving the full page element information of the intelligent control center sent by the intelligent control center, the method further includes: if the intelligent control center determines that the full page element information has been updated, receiving an adjustment request sent by the intelligent control center, wherein the adjustment request includes: incremental page element information or decremental page element information of the target page; adjusting the full page element information stored in the database according to the incremental page element information or decremental page element information.
[0068] The cloud receives and processes full page element information update requests sent by the intelligent control center (such as the brain screen) to keep the page element information in the cloud database synchronized with the information displayed on the brain screen. By receiving incremental or decremental page element information and updating the full page element information stored in the cloud, the cloud can respond to data changes more efficiently while reducing bandwidth consumption and storage costs.
[0069] Upon startup of the intelligent control center or at specific times, it sends all page element information to the cloud as part of initialization or periodic synchronization. This includes element information for all controllable devices and functional pages. When page element information on the brain screen changes—for example, when a user adds a new intelligent device or changes the settings of a device—the brain screen detects these changes and determines whether to update the full page element information in the cloud. The adjustment request sent by the brain screen includes a description of the changes; it can be newly added element information (incremental page element information) or removed element information (decrease page element information). After receiving the adjustment request, the cloud updates its database based on the information contained in the request. If it is incremental page element information, the cloud adds these new elements to the database; if it is decrement page element information, the cloud removes these no longer existing elements from the database.
[0070] For example, suppose the cloud database stores all page element information, including information on all smart devices in a user's home, such as a smart air conditioner, two smart lights, and a smart curtain. The user adds a smart humidifier and configures it on the user's smart screen. The user's smart screen detects the update to the page element information and determines that cloud information needs to be synchronized. The user's smart screen sends an adjustment request, which includes incremental page element information for the smart humidifier, such as the humidifier's control page and current humidity settings. After receiving the adjustment request, the cloud updates its database based on the incremental page element information, adding the smart humidifier's page element information to the database and synchronizing it with the existing smart device information.
[0071] In another example, a user decides to remove a smart light. The brain-computer interface detects this change and sends a request to reduce page elements as part of the adjustment. Upon receiving the adjustment request, the cloud updates its database based on the reduced page element information and removes the page element information of the removed smart light from the full set of page element information.
[0072] Through the embodiments of this application, the cloud can always maintain synchronization with the page element information on the brain screen, ensuring that the user's voice interaction requests can be accurately understood and executed. Simultaneously, by using incremental or decremental updates, the amount of data transmission is reduced, resource utilization is optimized, and the system's response efficiency and data processing capabilities are improved. This ensures that when the user uses the intelligent control center, whether adding, modifying, or deleting devices, the cloud can always maintain synchronization with the page element information on the brain screen.
[0073] Optionally, receiving the full page element information of the intelligent control center sent by the intelligent control center includes: receiving a compressed package sent by the intelligent control center; decompressing the compressed package to obtain the full page element information of the intelligent control center.
[0074] In this embodiment, the specific steps for the cloud to receive and process the full page element information sent by the intelligent control center involve efficiently obtaining complete page element information through receiving and decompressing a compressed file. Specifically, upon startup of the brain screen or at a specific synchronization point, the brain screen compresses all page element information using gzip to form a compressed file, which is then sent to the cloud server via the network. The transmission of the compressed file significantly reduces data volume, lowers network latency, and improves data transmission efficiency.
[0075] The cloud server decompresses the received compressed file. To read and process all page element information sent by the brain-computer interface, the cloud server must use the same compression algorithm (such as gzip) as the brain-computer interface to decompress the compressed file. After decompression, the cloud server can obtain complete information about all page elements on the brain-computer interface, including but not limited to device name, device status, control options, icons, and text descriptions.
[0076] The decompressed data is parsed and stored, becoming part of the cloud database for subsequent functions such as voice interaction request processing, device status monitoring, and user operation recording. Through this embodiment, the cloud can monitor device information changes in the intelligent control center in real time, providing users with accurate and timely voice control services.
[0077] In this embodiment of the application, by compressing and decompressing data, the amount of data transmitted can be effectively reduced, network latency can be lowered, and the data synchronization efficiency between the intelligent control center and the cloud can be improved.
[0078] To better understand the process of the above-described method for improving page response speed, the implementation flow of the above-described method for improving page response speed will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.
[0079] This embodiment provides a method to improve page response speed. Figure 3 This is a flowchart (II) of a method for improving page response speed according to an embodiment of this application, as shown below. Figure 3 As shown, the specific steps are as follows:
[0080] Step S301: When the brain screen is started, the initial full upload task is automatically executed to upload the element information of all pages of the brain screen to the cloud database completely and in detail, so as to ensure that the cloud has the latest device status and control interface information.
[0081] Step S302: After the first full upload, the brain screen monitors the currently displayed page element information in real time to determine whether there are any updates.
[0082] Step S303: If changes are detected in the element information of the current page, immediately perform an incremental update and upload the changed page element information to the cloud to ensure a high degree of synchronization between the cloud data and the information displayed on the brain screen.
[0083] Step S304: If the element information of the current page has not changed, the brain screen will no longer upload duplicate data. This strategy reduces unnecessary network bandwidth consumption and improves system efficiency.
[0084] Step S305: Before uploading page element information, the brain screen automatically applies the gzip compression algorithm to compress the information.
[0085] Step S306: Upload the compressed page element information to the cloud to ensure secure and efficient data transmission.
[0086] Step S307: The cloud continuously monitors whether the brain screen has sent a voice interaction request.
[0087] Step S308: If the cloud receives a voice interaction request, the system will preload the relevant page element information of the brain screen to prepare for subsequent processing and improve response speed.
[0088] Step S309: If no voice interaction request is received, the cloud will remain on standby, ready to receive new interaction requests at any time, and the process will return to step S302.
[0089] Step S310: After receiving the voice command, the cloud enters the semantic parsing stage, using NLP technology to analyze the user's intent and identify the specific device and control operation related to the request.
[0090] Step S311: Based on the results of semantic parsing, the cloud calls the pre-loaded page element information to assist in understanding and making decisions regarding user commands, ensuring the accuracy and rationality of the operation.
[0091] Step S312: Based on the final results of the analysis and decision-making, the cloud sends control commands to the brain screen to guide the brain screen to perform specific operations requested by the user through voice interaction, such as adjusting the air conditioning temperature or turning the equipment on and off.
[0092] Through the embodiments of this application, not only is data synchronization between the brain screen and the cloud ensured, but the use of network resources is also optimized. At the same time, it provides a fast and accurate response for users' voice interaction, and improves the multimodal interaction experience and operation efficiency of the intelligent control center as a whole.
[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0094] Figure 4This is a structural block diagram (a) of an apparatus for improving page response speed according to an embodiment of this application; as shown... Figure 4 As shown, it includes:
[0095] The receiving module 42 is used to receive the full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate the element information on multiple pages of the intelligent control center;
[0096] The determination module 44 is used to receive a voice interaction request sent by the target object and determine the target page element information corresponding to the voice interaction request in the full page element information;
[0097] The response module 46 is used to request the intelligent control center to respond to the voice interaction request based on the target page element information.
[0098] The above-described device receives full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate element information on multiple pages of the intelligent control center; receives a voice interaction request sent by a target object, and determines the target page element information corresponding to the voice interaction request in the full page element information; and requests the intelligent control center to respond to the voice interaction request based on the target page element information. That is, in this embodiment, by receiving the full page element information of the intelligent control center, the cloud receives element information on all pages of the intelligent control center. Therefore, when a voice interaction request is received, even if the voice interaction request is used to operate other page elements outside the current page, the cloud can control the intelligent control center to operate other page elements besides the current page. By adopting the above technical solution, the problem that the intelligent control center cannot perform cross-page element operations is solved.
[0099] In an exemplary embodiment, the determining module 44 is configured to convert the voice interaction request into first text information and determine first intent information corresponding to the first text information using a semantic parsing algorithm; verify the first intent information based on the full page element information; if the first intent information fails verification, determine second intent information corresponding to the text information using the semantic parsing algorithm and determine the target page element information based on the second intent information; if the first intent information passes verification, determine the target page element information corresponding to the first intent information.
[0100] In an exemplary embodiment, the determining module 44 is configured to slice the first voice interaction request received in real time to obtain a first interaction request, wherein the voice interaction request includes: the first voice interaction request; and to determine the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request.
[0101] In an exemplary embodiment, the determining module 44 is configured to convert the first interaction request into second text information and determine the third intent information corresponding to the second text information through a semantic parsing algorithm; determine whether the page element information corresponding to the third intent information exists in the full page element information; and if the page element information corresponding to the third intent information exists in the full page element information, determine the target page element information based on the page element information corresponding to the third intent information.
[0102] In an exemplary embodiment, the determining module 44 is configured to determine the number of page element information corresponding to the third intent information; if the number is greater than a preset number, the second voice interaction request received in real time is sliced again to obtain a second interaction request, wherein the second voice interaction request includes at least the first voice interaction request; the second interaction request includes at least the first interaction request; determine the fourth intent information corresponding to the second interaction request; and determine the target page element information from the page element information corresponding to the third intent information based on the fourth intent information.
[0103] In an exemplary embodiment, the response module 46 is configured to generate an operation instruction corresponding to the voice interaction request based on the target page element information; and send the operation instruction to the intelligent control center so that the intelligent control center controls the target device to execute the operation instruction.
[0104] In one exemplary embodiment, such as Figure 5 As shown, the above-mentioned device further includes: an update module 52, configured to receive an adjustment request sent by the intelligent control center when the intelligent control center determines that the full page element information has been updated, wherein the adjustment request includes: incremental page element information or decremental page element information of the target page; and adjust the full page element information stored in the database according to the incremental page element information or decremental page element information.
[0105] In an exemplary embodiment, the receiving module 42 is further configured to receive a compressed package sent by the intelligent control center; decompress the compressed package to obtain the full page element information of the intelligent control center.
[0106] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.
[0107] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0108] S1, receive the full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate the element information on multiple pages of the intelligent control center;
[0109] S2, receive the voice interaction request sent by the target object, and determine the target page element information corresponding to the voice interaction request in the full page element information;
[0110] S3, based on the target page element information, request the intelligent control center to respond to the voice interaction request.
[0111] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0112] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0113] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0114] S1, receive the full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate the element information on multiple pages of the intelligent control center;
[0115] S2, receive the voice interaction request sent by the target object, and determine the target page element information corresponding to the voice interaction request in the full page element information;
[0116] S3, based on the target page element information, request the intelligent control center to respond to the voice interaction request.
[0117] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0118] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0119] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0120] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0121] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0122] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0123] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for improving page response speed, characterized in that, include: Receive the full page element information of the intelligent control center sent by the intelligent control center, wherein the full page element information is used to indicate the element information on multiple pages of the intelligent control center; Receive a voice interaction request sent by the target object, and determine the target page element information corresponding to the voice interaction request from the full page element information; Based on the target page element information, the intelligent control center is requested to respond to the voice interaction request.
2. The method for improving page response speed according to claim 1, characterized in that, Determining the target page element information corresponding to the voice interaction request from the full set of page element information includes: The voice interaction request is converted into first text information, and the first intent information corresponding to the first text information is determined by a semantic parsing algorithm. The first intent information is verified based on the full page element information; If the first intent information fails the verification, the second intent information corresponding to the text information is determined by the semantic parsing algorithm, and the target page element information is determined based on the second intent information; If the first intent information passes the verification, the target page element information corresponding to the first intent information is determined.
3. The method for improving page response speed according to claim 1, characterized in that, Determining the target page element information corresponding to the voice interaction request from the full set of page element information includes: The first voice interaction request received in real time is sliced to obtain the first interaction request, wherein the voice interaction request includes: the first voice interaction request; The target page element information corresponding to the voice interaction request is determined based on the full page element information and the first interaction request.
4. The method for improving page response speed according to claim 3, characterized in that, Determining the target page element information corresponding to the voice interaction request based on the full page element information and the first interaction request includes: The first interaction request is converted into second text information, and the third intent information corresponding to the second text information is determined by a semantic parsing algorithm. Determine whether the page element information corresponding to the third intent information exists in the full set of page element information; If the page element information corresponding to the third intent information exists in the full page element information, the target page element information is determined based on the page element information corresponding to the third intent information.
5. The method for improving page response speed according to claim 4, characterized in that, Determining the target page element information based on the page element information corresponding to the third intent information includes: Determine the number of page element information corresponding to the third intent information; If the number is greater than the preset number, the second voice interaction request received in real time is sliced again to obtain the second interaction request, wherein the second voice interaction request includes at least the first voice interaction request; Determine the fourth intent information corresponding to the second interaction request; The target page element information is determined from the page element information corresponding to the third intent information based on the fourth intent information.
6. The method for improving page response speed according to claim 1, characterized in that, Requesting the intelligent control center to respond to the voice interaction request based on the target page element information includes: Based on the target page element information, generate the operation instructions corresponding to the voice interaction request; The operation command is sent to the intelligent control center so that the intelligent control center controls the target device to execute the operation command.
7. The method for improving page response speed according to claim 1, characterized in that, After receiving the full page element information of the intelligent control center sent by the intelligent control center, the method further includes: When the intelligent control center determines that the full page element information has been updated, it receives an adjustment request sent by the intelligent control center, wherein the adjustment request includes: incremental page element information or reduced page element information of the target page; Adjust the total number of page element information stored in the database based on the incremental or reduced page element information.
8. The method for improving page response speed according to claim 1, characterized in that, Receive the full page element information of the intelligent control center sent by the intelligent control center, including: Receive the compressed package sent by the intelligent control center; The compressed package is decompressed to obtain the full page element information of the intelligent control center.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 8.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 via the computer program.