Resource loading method and device, equipment, storage medium and program product

By preloading the business resources of unfinished process nodes in the dual-record business process, the problem of resource loading time and server pressure caused by traditional real-time generation of speech reports is solved, and faster business processing speed and better user experience are achieved.

CN119806677APending Publication Date: 2025-04-11MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411879768.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the dual-recording service, the traditional real-time generation of speech broadcasting methods leads to a long time-consuming resource loading, high server pressure, and high network transmission delay, which affects the user experience.

Method used

By determining the unfinished process node in the business process, we judge whether the corresponding business resources have been preloaded. If it is not preloaded and the resource amount reaches the threshold, we send preload signaling to the client. After the client completes preload, we return the signaling and update the preload queue.

Benefits of technology

It effectively improves the processing speed of business processes, reduces the waiting time for resource loading, improves user experience, and reduces server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806677A_ABST
    Figure CN119806677A_ABST
Patent Text Reader

Abstract

The invention provides a resource loading method and device, equipment, a storage medium and a program product. The resource loading method comprises the following steps: determining a first process node in an unfinished state in a business process comprising a plurality of process nodes; in response to the fact that the first process node is not located in a preloading queue, the resource quantity of service resources corresponding to the first process node is determined, and the preloading queue is used for storing the process nodes of which the service resources are preloaded; in response to the fact that the resource quantity of the service resources reaches a resource quantity threshold value, a first signaling is sent to the client side, and the first signaling is used for indicating preloading of the service resources corresponding to the first process node; and in response to a second signaling returned by the client, the first process node is added to the preloading queue, and the second signaling is used for indicating that preloading of the service resources is completed. According to the invention, the processing speed of the business process can be effectively improved, and the waiting time of resource loading is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource loading method, device, equipment, storage medium and program product. Background Art

[0002] In the dual recording business (i.e. simultaneous audio and video recording, which refers to recording the key links and important contents of the relevant business process through audio and video recording in a specific business scenario, helping to determine the true identity and intention of the business handler, thereby realizing the traceable management of the business process), broadcasting scripts and information display are important links in providing services to customers. With the increase in the volume of dual recording business and the diversification of customer needs, the traditional real-time generation of script broadcasting methods takes a long time to load resources in real time and puts a lot of pressure on the server, resulting in high network transmission delays, which in turn affects the user experience. Summary of the invention

[0003] The embodiments of the present application provide a resource loading method, device, electronic device, computer-readable storage medium and computer program product, which can effectively improve the processing speed of business processes and reduce the waiting time for resource loading.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a resource loading method, including:

[0006] In a business process including a plurality of process nodes, determining a first process node in an unfinished state;

[0007] In response to the first process node not being in a preloading queue, determining a resource amount of a business resource corresponding to the first process node, wherein the preloading queue is used to store process nodes for which business resource preloading has been completed;

[0008] In response to the resource amount of the service resource reaching the resource amount threshold, sending a first signaling to the client, wherein the first signaling is used to instruct to preload the service resource corresponding to the first process node;

[0009] In response to a second signaling returned by the client, the first process node is added to the preloading queue, wherein the second signaling is used to indicate that preloading of the business resource has been completed.

[0010] The present application provides a resource loading device, including:

[0011] A determination module, used to determine a first process node in an unfinished state in a business process including a plurality of process nodes;

[0012] The determination module is further configured to determine the resource amount of the business resource corresponding to the first process node in response to the first process node not being in the preloading queue, wherein the preloading queue is configured to store process nodes for which business resource preloading has been completed;

[0013] A first processing module, configured to send a first signaling to a client in response to the resource amount of the service resource reaching a resource amount threshold, wherein the first signaling is configured to instruct to preload the service resource corresponding to the first process node;

[0014] The second processing module is used to add the first process node to the preloading queue in response to a second signaling returned by the client, wherein the second signaling is used to indicate that the preloading of the business resource has been completed.

[0015] An embodiment of the present application provides an electronic device, including:

[0016] A memory for storing executable instructions;

[0017] The processor is used to implement the resource loading method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0018] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the resource loading method provided in the embodiment of the present application when executed by a processor.

[0019] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which are used to implement the resource loading method provided in the embodiment of the present application when executed by a processor.

[0020] The embodiments of the present application have the following beneficial effects:

[0021] In a business process including multiple process nodes, determine the first process node in an unfinished state, when the first process node is not in the preloading queue, determine the resource amount of the business resource corresponding to the first process node, by determining the unprocessed process node in the current business process, to confirm whether the unprocessed process node has completed preloading, if the preloading is not completed (i.e., not in the preloading queue), then obtain the resource amount of the business resource corresponding to the process node, to determine whether the process node needs to be preloaded according to the resource amount of the business resource, which can effectively improve the management efficiency of the business node; when the resource amount of the business resource reaches the resource amount threshold, that is, confirm that the current process node needs to be preloaded, then a first signaling can be sent to the client to instruct the client to preload the business resource corresponding to the process node, after the preloading is completed, the client can return a second signaling to inform that the preloading is completed, at this time, the preloading queue can be updated according to the second signaling returned by the client, so that the waiting time for resource loading is reduced, and the processing speed of the business process is effectively improved. In summary, through the preloading mechanism of the embodiment of the present application, the processing speed of the business process can be significantly accelerated, and the waiting time for resource loading can be effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a schematic diagram of the architecture of a resource loading system 100 provided in an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;

[0024] Figure 3 It is a flowchart of a resource loading method provided in an embodiment of the present application;

[0025] Figure 4 It is a flowchart of a resource loading method provided in an embodiment of the present application;

[0026] Figure 5A It is a flowchart of a resource loading method provided in an embodiment of the present application;

[0027] Figure 5B It is a flowchart of a resource loading method provided in an embodiment of the present application;

[0028] Figure 6 It is a process diagram of a resource loading method in a dual recording scenario provided by an embodiment of the present application;

[0029] Figure 7 It is a schematic diagram illustrating the resource preprocessing triggering principle and related signaling provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0031] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0032] It is understandable that in the embodiments of the present application, when user information and other related data (such as name, identity proof, etc.) are involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.

[0033] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0034] In the following description, the terms "first\second\..." involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0037] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0038] 2) WebSocket Protocol: WebSocket is a protocol that implements full-duplex communication on a single Transmission Control Protocol (TCP) connection, allowing real-time, two-way data transmission between the client and the server. It can significantly reduce communication overhead and provide a more efficient data exchange method. It is particularly suitable for applications that require fast response and frequent data transmission.

[0039] 3) Text-to-Speech (TTS) technology: TTS technology is a technology that converts written text into natural speech. TTS technology imitates the human language synthesis process, allowing machines to output text information in the form of voice, realizing interaction between humans and machines. TTS technology is widely used in self-service voice services and other fields, providing users with a more convenient interaction method and a richer user experience.

[0040] Take the dual recording service as an example. In the dual recording service, broadcasting and data display are important links in providing services to customers. With the increase in the volume of dual recording services and the diversification of customer needs, the solutions provided by related technologies have the following defects:

[0041] (1) The real-time generation of TTS takes a long time, resulting in a slow response speed for dual recording services and a long waiting time for customers.

[0042] (2) The concurrent performance pressure of the server is relatively high, which affects the stability and reliability of the system.

[0043] (3) Network transmission delays can cause the timeliness of speech broadcast resources to be poor or even unavailable, affecting the user experience.

[0044] In view of this, the embodiments of the present application provide a resource loading method, device, electronic device, computer-readable storage medium and computer program product, which can effectively improve the processing speed of business processes and reduce the waiting time for resource loading. The electronic device provided by the embodiments of the present application is described below. The electronic device provided by the embodiments of the present application can be implemented as a server, or implemented by a server and a terminal in collaboration. The following is an example of a resource loading method provided by an embodiment of the present application being implemented in collaboration by a server and a terminal.

[0045] For example, see Figure 1 , Figure 1is a schematic diagram of the architecture of a resource loading system 100 provided in an embodiment of the present application, in order to support a resource loading application, such as Figure 1 As shown, the resource loading system 100 includes: a server 200, a network 300, and a terminal 400. The terminal 400 is connected to the server 200 via the network 300, wherein the network 300 can be a local area network or a wide area network, or a combination of the two; the terminal 400 is a terminal associated with the user, and a client 410 runs on the terminal 400. The client 410 can be various types of clients, such as a speech broadcast client, an intelligent voice dialogue client, etc.

[0046] In some embodiments, taking the dual recording service as an example, the server 200 first determines a first process node in an unfinished state in a business process including multiple process nodes. Then, in response to the first process node not being in the preloading queue, the server 200 determines the resource amount of the business resource corresponding to the first process node, wherein the preloading queue is used to store process nodes for which the preloading of business resources has been completed; then, in response to the resource amount of the business resource reaching (i.e., greater than or equal to) the resource amount threshold, the server 200 sends a first signaling to the client 410 running on the terminal 400 through the network 300, wherein the first signaling is used to indicate that the business resource corresponding to the first process node is to be preloaded; thereafter, the client 410 returns a second signaling to the server 200 through the network 300, and the server 200 responds to the second signaling returned by the client 410, wherein the second signaling is used to indicate that the preloading of the business resource has been completed, and finally the server 200 can add the first process node to the preloading queue.

[0047] It should be noted that the technical solution provided by the present application can be applied to various scenarios, such as speech broadcasting, intelligent voice interaction and other scenarios. For example, the resource loading method provided in the embodiment of the present application can be applied to the speech broadcasting scenario, and the target process to be preloaded with resources in the subsequent process can be determined for the processing process of the current business (that is, the first process node in an unfinished state, and the resource amount of the business resources corresponding to the first process node is greater than or equal to the resource amount threshold), and a first signaling is sent to the client to instruct the client to cache the business resources corresponding to the target process; in the intelligent voice interaction scenario, the audio content that may need to be interacted can be pre-cached in the client in advance according to the current voice interaction content for use in voice interaction; the embodiment of the present application does not specifically limit the application scenario of the resource loading method.

[0048] In addition, it should be noted that Figure 1The server 200 in the example may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, etc., but is not limited thereto. The terminal 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0049] The structure of the electronic device provided in the embodiment of the present application is further described below. Taking the electronic device as a server as an example, see Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 540, and at least one network interface 520. The various components in the electronic device 500 are coupled together via a bus system 530. It is understood that the bus system 530 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 530 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 530 is not described in detail. Figure 2 Various buses are labeled as bus system 530 .

[0050] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0051] The memory 540 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.

[0052] The memory 540 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 540 described in the embodiments of the present application is intended to include any suitable type of memory.

[0053] In some embodiments, memory 540 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0054] Operating system 541, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0055] A network communication module 542, for reaching other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Authentication (WiFi), and Universal Serial Bus (USB);

[0056] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The resource loading device 543 stored in the memory 540 is shown, which can be software in the form of a program or a plug-in, including the following software modules: a determination module 5431, a first processing module 5432, a second processing module 5433 and a prediction module 5434. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. It should be noted that in Figure 2 For the sake of convenience, all the above modules are shown at once, but it should not be considered that the resource loading device 543 excludes the implementation that can only include the determination module 5431, the first processing module 5432 and the second processing module 5433. The functions of each module will be explained below.

[0057] The resource loading method provided in the embodiment of the present application will be specifically described below from the perspective of the server.

[0058] See also Figure 3 , Figure 3 is a flowchart of a resource loading method provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0059] In step 101, in a business process including a plurality of process nodes, a first process node in an unfinished state is determined.

[0060] Here, a business process refers to a series of logically related business activities or task sequences carried out in a specific environment to achieve a specific goal. The execution of a business process includes multiple process nodes, and each process node will be executed in sequence during the business processing.

[0061] For example, take the loan approval double recording business as an example, which includes six process nodes: submitting a loan application, credit review, approval decision, signing a loan contract, and loan disbursement. The loan is completed by executing each process node in sequence: submitting a loan application, credit review, approval decision, signing a loan contract, and loan disbursement.

[0062] It should be noted that the first process node in an unfinished state means that the task or transaction corresponding to the process node is not completed. For example, in a business process, process node 1, process node 2, process node 3, process node 4 and process node 5 are included in sequence. Assume that the current business process is executing the task corresponding to process node 3, among which the tasks corresponding to process node 1 and process node 2 have been completed, while the tasks corresponding to process node 4 and process node 5 have not been executed, that is, process node 3 is in an execution state, process node 1 and process node 2 are in a completed state, and process node 4 and process node 5 are in an unfinished state.

[0063] In some embodiments, after receiving the currently executed process node reported by the client, the server can analyze the execution order of the tasks and the relationship between the various process nodes according to the execution logic of the business process (such as linear logic), so as to determine the position of the currently executed process node in the business process, and then determine the process nodes in an unfinished state from the business process including multiple process nodes; it can also determine the position of the currently executed process node in the business process through the timeline according to the estimated time of each process node (for example, process node 1 takes 10 seconds, process node 2 takes 18 seconds, etc.), so as to determine the process nodes in an unfinished state from the business process including multiple process nodes; it can also determine the position of the currently executed process node in the business process through process node tracking (for example, adding specific conditions or event triggers to each process node) to determine the process nodes in an unfinished state based on the position of the currently executed process node in the business process; the method for determining the process nodes in an unfinished state can be specifically determined according to actual needs, and is not specifically limited here.

[0064] In some embodiments, see Figure 4 , Figure 4is a flow chart of a resource loading method provided in an embodiment of the present application, such as Figure 4 As shown, Figure 3 Step 101 shown may be performed by Figure 4 Steps 1011 to 1014 shown in the figure are implemented by combining Figure 4 The steps shown are explained.

[0065] In step 1011, the order of the second process node in the execution state in the business process is determined.

[0066] In some embodiments, first, the entire business process is determined, including all process nodes and the logical relationship and execution order between the process nodes, and each process node has a unique identifier (such as an ID) to distinguish different process nodes; then, the execution status of each process node is tracked, such as "not started", "in execution" and "completed", etc.; then, the sorting of each process node is determined according to the execution status of each process node, so as to determine the arrangement position of the process nodes in the execution state in the business process based on the sequence relationship between the process nodes.

[0067] For example, assuming that the business process includes process node 1, process node 2, process node 3 and process node 4, where the execution status of process node 1 and process node 2 is "completed", the execution status of process node 4 is "executing", and the execution status of process node 3 is "uncompleted", then the order of each process node can be determined as process node 1, process node 2, process node 4, process node 3, and the arrangement position of process node 4 in the executing state in the business process can be determined based on the ordering result.

[0068] In step 1012, based on the order of the second process node in the business process, a process node located after the second process node is searched in the business process, and a first number of process nodes located after the second process node is determined.

[0069] For example, assuming that the order of process nodes in the business process is process node 1, process node 2, process node 3, process node 4, process node 5, process node 6, where the execution status of process node 2 is "executing", the process nodes located after process node 2 are found to include process node 3, process node 4, process node 5, and process node 6, that is, the first number of process nodes is 4.

[0070] It should be noted that after executing step 1012, the first quantity may be compared with a preset quantity threshold, and the following step 1013 or step 1014 may be executed according to the comparison result.

[0071] In step 1013, if the first quantity is less than the quantity threshold, the process node located after the second process node is used as the first process node.

[0072] It should be noted that a suitable threshold may be selected as the quantity threshold according to the business process or according to user needs. The specific selection method may be determined according to actual conditions and is not specifically limited here.

[0073] For example, assuming that the first quantity is 4 and the quantity threshold is 6, all process nodes corresponding to the first quantity may be used as first process nodes.

[0074] In step 1014 , if the first number is greater than or equal to the number threshold, a second number of process nodes are selected from the first number of process nodes as first process nodes.

[0075] Here, the ratio of the second number to the first number is a preset ratio. That is, when the number of process nodes after the second process node is large, only some of the process nodes can be selected as the first process nodes.

[0076] For example, assuming that the first quantity is 4 and the quantity threshold is 2, the two nodes after the node in the executing state are taken as the first process nodes.

[0077] In step 102, in response to the first process node not being in the preload queue, the resource amount of the business resource corresponding to the first process node is determined.

[0078] Here, the preload queue is used to store process nodes that have completed business resource preloading.

[0079] It should be noted that business resources refer to the data or files required for the execution of the current process node. For example, business resources can be audio files, video files, text files and other files, or a combination of multiple types of files. No specific limitation is made here.

[0080] In some embodiments, see Figure 5A , Figure 5A is a flow chart of a resource loading method provided in an embodiment of the present application, such as Figure 5A As shown, Figure 3 Step 102 shown may be performed by Figure 5A Steps 1021A to 1022A shown in the figure are implemented by combining Figure 5A The steps shown are explained.

[0081] In step 1021A, based on the order of the second process node in the business process, a process node located before the second process node is searched in the business process as the third process node.

[0082] For example, assuming that in a business process, the order of process nodes is process node 1, process node 2, process node 3 and process node 4, and assuming that the second process node is process node 3, then searching forward from the position of process node 3, you can find process node 1 and process node 2, and process node 1 and process node 2 as the third process node.

[0083] In step 1022A, the node information of the third process node is input into the model for prediction to obtain the resource amount of the business resource corresponding to the first process node.

[0084] Here, the node information includes the resource amount of the business resources corresponding to the third process node and the load parameter of the third process node.

[0085] In some embodiments, when a new business occurs, the information of the third process node is input into the trained model. The model predicts the resource quantity of the business resources corresponding to the first process node based on the input third process node information, and outputs the prediction result of the model and the resource quantity of the business resources corresponding to the first process node.

[0086] In some embodiments, before executing step 1022A, the following processing can also be performed: obtaining node information of historical process nodes, and masking the node information of historical process nodes to obtain masked process nodes; predicting the resource quantity of business resources of the masked process nodes based on the node information of historical process nodes to obtain predicted resource quantity; determining the loss based on the predicted resource quantity and the resource quantity of business resources corresponding to the process node, and adjusting the parameters of the model according to the loss.

[0087] In some embodiments, first, the resource quantity and load parameter data of the business resources of the historical process nodes are collected; then, the acquired data is preprocessed, wherein the preprocessing includes data cleaning, feature extraction, data standardization, normalization, etc.; then, a suitable prediction model is selected, such as ARIMA, SARIMA, LSTM, etc.; then, the historical data is input into the prediction model for prediction, the loss is calculated based on the predicted result and the actual result, and back propagation is performed based on the loss to adjust the parameters of the prediction model.

[0088] In some embodiments, see Figure 5B , Figure 5B is a flow chart of a resource loading method provided in an embodiment of the present application, such as Figure 5B As shown, Figure 3 Step 102 shown may be performed by Figure 5B Steps 1021B to 1024B shown in the figure are implemented by combining Figure 5B The steps shown are explained.

[0089] In step 1021B, when the business resources include media files, business constants and business variables corresponding to the first process node are determined.

[0090] In some embodiments, first, determine the content to be included in the business constant (such as a paragraph of speech, commentary text, or other information that needs to be conveyed by audio); then, based on the determined content, write a script file to generate the corresponding text, wherein the text includes opening words, main content, and closing words, etc.; then, you can select a suitable voice type (such as a professional announcer, intelligent voice, etc.); at the same time, determine the content to be included in the business variables (such as user name, ID number, etc.); then, based on the determined business variables, write a script file to generate text containing the business variables; after that, you can select a suitable voice type (such as a professional announcer, intelligent voice, etc.).

[0091] In some embodiments, the business needs and purposes of the first process node are analyzed; then, based on the business needs of the first process node, the information points that the corresponding constants need to include (such as product features, service advantages, etc.) are determined; then, based on the determined information points, constants are written to ensure that the written constants are clear, concise, and logical, and the language style and expression are adjusted according to the audience.

[0092] For example, assuming that in the speech broadcasting scenario, the first process node needs to introduce the product to the audience, the corresponding constant can be "Hello, I am the product introducer of XX company. Today I would like to introduce our XX product to you. This is a XXXXX product, which can XXXXXXX. If you are interested, I can provide you with more detailed instructions"; for another example, assuming that the first process node needs to provide service consultation to the audience, the corresponding constant can be "Hello, I am the customer service of XX company. We provide XXX service to help customers XXXX. Many customers have used our service XXXXX. If you are looking for related services, I believe we can help you. Do you have any specific questions or needs?".

[0093] In other embodiments, the specific needs of the first process node are understood (such as the specific information of the user, the specific operations that the user needs to perform, or other specific information, etc.); then, based on the specific needs of the first process node, business variables corresponding to the business process (such as the user's name, ID number, etc.) are obtained from the business process; then, the obtained business variables can also be verified (such as checking the format of the data, confirming the source of the data, etc.) to ensure the accuracy and completeness of the business variables.

[0094] For example, assume that the specific requirement of the first process node is that user A is in company B and needs to perform transaction C, that is, the business variables are user A, company B, and transaction C.

[0095] In step 1022B, a first sub-media file corresponding to the first process node is generated based on the business constant, and a second sub-media file corresponding to the first process node is generated based on the business variable.

[0096] In some embodiments, TTS technology is used to convert business constants into corresponding first sub-media files (such as mp3, wav, etc.), and TTS technology is used to convert business variables into corresponding second sub-media files (such as mp3, wav, etc.).

[0097] In step 1023B, the first sub-media file and the second sub-media file are concatenated to obtain a media file corresponding to the first process node.

[0098] It should be noted that the first sub-media file and the second sub-media file can be media files of the same type, for example, the first sub-media file and the second sub-media file are respectively broadcast audio files with different expression contents; the first sub-media file and the second sub-media file can also be media files of different types, for example, the first sub-media file is a speech broadcast audio file, and the second sub-media file is a variable audio file, which is not specifically limited here.

[0099] In some embodiments, first, a suitable audio editing tool or software (such as Adobe Audition, Audacity, etc.) is selected to perform media file splicing through the editing software tool or software; then, the generated first sub-media file and the second sub-media file are imported into the selected media editing tool; then, the two sub-media files are aligned on the timeline so that the media files can be seamlessly transitioned when spliced, which includes operations such as adjusting the playback speed, increasing or decreasing the silent part, etc.; then, the part to be spliced ​​is selected in the media editing tool, and the splicing operation is performed; then, after the splicing is completed, a new media file is generated, and the new media file contains the spliced ​​first sub-media and second sub-media.

[0100] For example, assuming that the first sub-media file is a user's personal information confirmation and the second sub-media file is a transaction detail description, then these two sub-media files are concatenated together to form a complete audio file for confirming the user's personal information and transaction details.

[0101] In step 1024B, based on the media file corresponding to the first process node, the resource amount of the business resource corresponding to the first process node is determined.

[0102] It should be noted that the resource amount of the business resource corresponding to the first process node can be determined by directly obtaining the size of the media file as the resource amount of the business resource, or by obtaining the number and size of variables and constants included in the media file as the resource amount of the business resource, and no specific limitation is made here.

[0103] In step 103, in response to the resource amount of the service resources reaching the resource amount threshold, a first signaling is sent to the client.

[0104] Here, the first signaling (ie, resource preloading signaling) is used to instruct to preload the service resources corresponding to the first process node.

[0105] For example, the first signaling may be expressed in the following form:

[0106] "data": {

[0107] "cmd": "preLoad", / / resource preloading signaling identifier

[0108] "resource": {

[0109] "id": "21a4b2b3c70f458a87c72a1f03dd9770", / / unique resource code

[0110] "ncode": "N00000002", / / process node number

[0111] "orderSn": "12312312", / / Business order number

[0112] "type": "audio", / resource type, where audio is audio, video is video, pdf is document, and img is image

[0113] "duration": 120, / / duration of audio and video files, in seconds

[0114] fileld': "12312311", / / file ID

[0115] "url": "http: / / 10.246.21.112 / v3.0.0 / airtc-file / api / v3 / files / download / 21312312123?" / / Audio file online address

[0116] }}

[0117] In some embodiments, first, the resource amount of the business resources of the current process node is compared with a preset resource amount threshold. If the resource amount of the business resources reaches or exceeds the resource amount threshold, a signaling message is constructed, and the signaling message includes an instruction to the client, indicating the business resource information that needs to be preloaded, wherein the business resource information includes the resource identifier, type, priority, etc.; then, the first signaling is sent to the client through the communication protocol between the client and the server (such as HTTP, WebSocket, MQTT, etc.). After receiving the first signaling, the client starts to preload the specified business resources according to the instruction in the signaling.

[0118] For example, if the resource amount of the business resource of the current process node exceeds the threshold, the server triggers the signaling sending mechanism and creates a signaling containing a preload instruction, such as {"command":"preload","resource_id":"12345","resource_type":"video"}; then, the server sends the signaling to the client through the selected communication protocol; finally, after receiving the signaling, the client preloads the video resource with the resource ID "12345" according to the content of the signaling.

[0119] In some embodiments, before executing step 103, the following processing can also be performed: constructing a tuple based on the third process node, the tuple including the loading time of the business resource corresponding to the third process node and the resource amount of the business resource corresponding to the third process node; clustering the tuple to obtain at least one clustering cluster; determining the resource amount threshold based on the resource amount of the business resource corresponding to the center of each clustering cluster.

[0120] In some embodiments, first, data on the business resource loading time and resource amount of the third process node are collected; then, the business resource loading time and resource amount of each third process node are combined into a two-tuple (loading time, resource amount); then, the two-tuple data is cleaned and preprocessed, such as processing missing values, standardizing outliers, etc.; then, a clustering algorithm (such as K-means, hierarchical clustering, DBSCAN, etc.) is used to analyze the two-tuple data; then, at least one cluster is determined based on the clustering results, and the cluster is a set of data points with high similarity; then, for each cluster, its center point is calculated, and the center point is usually the average value of the coordinates of all points in the cluster; finally, according to the business resource amount corresponding to the center of each cluster, a threshold value of the resource amount is determined, and the threshold value can be set based on the resource amount of the cluster center, such as being set to the maximum value, minimum value, average value or median of the resource amount of each cluster center.

[0121] For example, suppose that in an e-commerce platform, the third process node is "user adds product to shopping cart", the business resource loading time is "product details page loading time", and the resource quantity is "the number of products added to shopping cart"; then, for each user operation, create a tuple, such as (loading time: 2.5 seconds, resource quantity: 3); then, delete any incomplete or abnormal data, such as records with too long loading time or negative resource quantity; then, select a suitable clustering algorithm, such as K-means, to cluster the tuple data set; then, calculate the center point of each cluster cluster, for example, the center of the first cluster may be (loading time: 1.8 seconds, resource quantity: 5), and the center of the second cluster may be (loading time: 3.2 seconds, resource quantity: 1); finally, based on the resource quantity of the cluster center, the resource quantity threshold can be determined. For example, the resource quantity threshold can be set to the mean of the central resource quantity of the two clusters, that is, 3.

[0122] In some embodiments, after executing step 104, the following processing can also be performed: when the business resources include audio files, in response to the client's resource acquisition request for the business resources, the resource acquisition request is parsed to obtain the business variables of the first process node and the identifier of the first text resource of the first process node; based on the identifier, the business variables are integrated into the first text resource of the first process node to obtain the second text resource; the second text resource is converted into speech to obtain the audio file corresponding to the first process node.

[0123] In some embodiments, when a client initiates a resource acquisition request, first, the resource acquisition request is parsed to extract relevant information, such as business resource type, business variables, and text resource identifiers; then, the business variables of the first process node and the text resource identifier of the first process node are parsed from the resource acquisition request. The business variables are dynamic data, such as user information, timestamps, etc., and the resource identifier is an identifier used to locate a specific text resource. The text resource of the first process node is static data and belongs to fixed text; then, the corresponding text resource is found according to the extracted resource identifier; then, the business variables are merged into the text resource to generate a merged text resource; finally, the merged text resource is converted into speech through TTS to obtain an audio file corresponding to the first process node.

[0124] For example, the client sends a resource acquisition request to the server, where the resource request includes business variables (such as user name John, learning progress 50%) and resource identifiers (such as "lesson 1"); then, after receiving the resource acquisition request, the server parses and obtains the business variables (John, 50%) and resource identifier (lesson 1); then, the server finds "lesson1.txt" according to the resource identifier, and inserts John's name and learning progress into the text to generate a fused text: "Hello, John. Today, you are at 50% completion of lesson 1."; finally, the server uses TTS technology to convert the fused text into an audio file, that is, obtains the audio file corresponding to the current process node.

[0125] In some embodiments, during the client preloading process, the business resources can be preloaded into the client, or the business resources can be pre-cached locally for storage; then, after the business resources are preloaded, a reply processing is required for the first instruction to inform the server that the business resources of the current node have been preloaded; finally, the preloaded business resources are effectively managed, such as caching and elimination strategies of the business resources, to ensure that the cached business resources can be effectively utilized.

[0126] It should be noted that in the actual preloading process, it is also necessary to consider multiple factors such as the priority of business resource loading, network conditions, user behavior, and so on, and then optimize the system's preloading strategy. For example, when the network condition is poor, key business resources and content can be loaded first, and some non-critical business resources can be appropriately delayed in loading. Parsing the first signaling related to business resource preloading and obtaining the required resource identification is a key step in achieving efficient resource management, and is widely used in multiple technical fields such as front-end development, network programming, and resource management.

[0127] In step 104 , in response to the second signaling returned by the client, the first process node is added to the preloading queue.

[0128] Here, the second signaling is used to indicate that preloading of the service resource has been completed.

[0129] In some embodiments, first, the server receives a second signaling sent by the client through a preset communication protocol, wherein the second signaling includes status information about the preloading operation, such as whether it is successful, the preloaded resource ID, the preloading progress, etc.; then, the server parses the content of the second signaling and extracts key information about the preloading operation; finally, based on the information provided by the second signaling, the server updates the preloading status of the business resource, that is, if the second signaling indicates that the business resource preloading is successful, the first process node is added to the preloading queue to record that the first process node has performed preloading.

[0130] For example, first, the server receives the second signaling sent back by the client; then, the server parses the content of the second signaling, such as {"status":"success","resource_id":"12345","preload_status":"completed"}; finally, the server updates the preloading status of the business resource according to the information provided by the second signaling, that is, if the second signaling indicates that the business resource is preloaded successfully, the first process node is added to the preloading queue.

[0131] In some embodiments, after executing step 104, the following processing can also be performed: receiving an address query request sent by the client, the address query request is used to request a query for the network address of the business resource corresponding to the first process node, and the address query request is sent by the client when the business resource loading fails based on the preloaded business resources; sending the network address to the client, the network address is used for the client to display the business resources online.

[0132] For example, an address query request can be expressed as follows:

[0133] "data": {

[0134] "cmd": "ttsExe", / / speech broadcast atomic execution signaling identifier

[0135] "id": "213121392914821112", / / Signaling unique identifier

[0136] "ncode": "N00000254", / / process node number,

[0137] "nname": "speech broadcast node", / / Chinese name of the process node

[0138] "toRole": "all" / / Execute client role

[0139] "step": 1, / / The location of the signaling inside the process node

[0140] "resourceld": "46c4136ec5334d589c028d5119916b20", / / resource file ID, give priority to using the locally cached resource file ID (resource preloading reservation)

[0141] "duration": 5.24, / / duration of the audio file in seconds

[0142] "url": "http: / / 10.246.21.112 / v3.0.0 / airtc-file / api / v3 / files / download / 21312312123?t=" / / Playback address

[0143] }

[0144] In some embodiments, first, the server receives an address query request from the client, wherein the address query request includes an identifier for uniquely identifying the requested business resource; then, the server parses the address query request and extracts the requested business resource identifier; then, the server verifies the validity of the request to ensure that the requested business resource exists and the client has access to it; then, the server queries a database or service that stores the network addresses of the business resources to find the network address of the requested business resource; thereafter, the server constructs a response message, wherein the response message includes the network address of the requested business resource, and sends the response message back to the client through a preset communication protocol; finally, after receiving the response including the network address, the client uses this address to load and display the business resource.

[0145] For example, first, the server receives an address query request sent by the client, such as {"request_type":"address_query","resource_id":"12345"}; then, the server parses the request and extracts the business resource identifier "12345"; then, the server verifies the request to confirm that the business resource exists and the client has access rights; then, the server queries the database or service to find the network address of the business resource with the resource ID "12345", such as http: / / example.com / resources / 12345; then, the server constructs a response message, such as {"response_type":"address_response","resource_id":"12345","network_address":"http: / / example.com / resources / 12345"}, and sends the response containing the network address back to the client through the preset communication protocol; finally, after receiving the response, the client uses the provided network address to load and display the business resource.

[0146] In some embodiments, when the business resource is an audio file, first, after parsing to obtain the identifier of the audio file (including the ID and online address of the audio file, such as the URL), the audio file is queried in the local cache system through the identifier obtained by parsing. Here, the local cache can be a cache in the memory or a file system on the disk; then, after finding the audio file locally, the audio file is taken out of the cache; then, some adjustments can be made to the audio file (such as format conversion, encryption and decoding, etc.) to ensure that subsequent audio files can be played normally; finally, the processed audio file is transferred to the audio playback component for playback.

[0147] Continuing with the above example, after obtaining the ID of the audio file to be played, search from the local cache according to the ID of the audio file to obtain the corresponding audio file in mp3 format. Assuming that the playback format requirement of the audio playback component is wav, the audio file needs to be format converted to obtain an audio file in wav format. Finally, the converted audio file in wav format is transferred to the audio playback component for playback.

[0148] In some embodiments, when the client cannot find the audio file from the local cache data based on the identifier, the following processing may also be performed: obtaining the audio file from the server based on the identifier, and playing the audio file.

[0149] It should be noted that obtaining the audio file from the server based on the identifier specifically refers to obtaining the online audio file from the server based on the online address and playing it online.

[0150] In some embodiments, a query is first performed locally based on the audio file ID. If no corresponding locally cached audio file is found, the audio file is played online based on the online address of the audio file.

[0151] Continuing with the above example, assuming that the corresponding audio file is not found in the local cache according to the ID of the audio file, the corresponding audio file is obtained from the server through the online address of the audio file, and the audio file is transferred to the audio playback component for playback.

[0152] In some embodiments, after executing the above-mentioned receiving the address query request sent by the client, the following processing may also be performed: verifying the client's access authority to the network address to obtain a verification result.

[0153] It should be noted that the client's identity information can be queried to confirm whether the client has the authority to obtain the network address; the client's identity information can also be confirmed through SMS verification or biometric (such as face, fingerprint, etc.) recognition to confirm whether the client has the authority to obtain the network address. No specific limitation is made here.

[0154] In some embodiments, the server first needs to verify the identity of the client to ensure that the request is initiated by a legitimate user, such as checking the identity credentials provided by the client, such as username, password, API key or token; then, after the identity of the client is verified, the server will check whether the user has the authority to access the requested network address, where the authority can be based on the user's role, subscription level, geographic location or other business rules; finally, by performing a permission check on the client, a verification result is obtained. If the verification result indicates that the permission check has passed, the request will continue to be processed; if the verification result indicates that the permission check has not passed, the request may be rejected or an alternative resource may be provided. In this way, the security and compliance of business resources can be effectively protected.

[0155] For example, when the client sends a request with an API token, the server verifies the validity of the API token and checks whether the user corresponding to the API token has permission to access specific resources. If the user has sufficient permissions, the server allows access and provides the resource address or content. If the permissions are insufficient, the server sends a permission error response, such as HTTP403Forbidden.

[0156] In some embodiments, the sending of the network address to the client can be implemented in the following manner: when the verification result indicates that the client has the access authority, the network address is sent to the client.

[0157] For example, the server responds to the client request. If the permission is sufficient, it may return {"status":"success","network_address":"http: / / example.com / resource"}; if the permission is insufficient, it may return {"status":"error","code":"403","message":"Access denied"}.

[0158] In some embodiments, the server may further perform the following processing: in response to the service corresponding to the service process being terminated, stop sending the resource preloading signaling to the client.

[0159] For example, when the server detects a business process termination event (which can be an abnormal interruption or a normal interruption), the server stops sending resource preloading signaling to the client.

[0160] For example, suppose that on an e-commerce platform, during the business process processing, for example, the user is currently at the business consultation process node, and the user is not interested in the business content and finally does not proceed to the subsequent process. That is, the server will detect that the business process is terminated at the business consultation process node, and the server will stop sending resource preloading signaling to the client, such as stopping preloading resource files corresponding to the subsequent order-related product process node. In this way, resources can be effectively managed to avoid unnecessary resource waste.

[0161] Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described. The exemplary application describes the specific implementation process of the resource loading method in a dual recording business scenario.

[0162] In the dual recording business, broadcasting scripts and displaying materials are important links in providing services to customers. With the increase in the volume of dual recording business and the diversification of customer needs, the traditional real-time generation of script broadcasting has some problems: first, the real-time generation of script broadcasting takes a long time, causing customers to wait too long; second, the server is under great pressure, affecting the stability and reliability of the system; third, network transmission delays may result in poor broadcast effects and affect user experience; therefore, a resource loading method is needed that can preload script resources in advance and reduce real-time generation and network transmission delays to improve the processing speed and user satisfaction of dual recording services.

[0163] In some embodiments, see Figure 6 , Figure 6 is a schematic diagram of the process of resource loading method in dual recording scenario provided by the embodiment of the present application, which will be combined with Figure 6 The specific implementation of the resource loading method in the dual recording business scenario is explained in detail.

[0164] Before the dual recording service, first, the server will analyze the speech broadcast content required by the business link (corresponding to the first process node mentioned above) in the dual recording process to obtain the speech broadcast content required by the business link; then, the server will determine the length of the fixed text according to the speech broadcast content, and judge whether it is necessary to call TTS technology in advance according to the length of the fixed text, and pre-generate the corresponding speech broadcast audio file (corresponding to the first media file mentioned above), and form the resource number corresponding to the business link, that is, form a mapping relationship between the audio file and the business link.

[0165] In the dual recording business processing, first, the client requests to initiate the dual recording business process and passes the business variables corresponding to the dual recording business process (that is, the dynamically replaceable part of the speech broadcast content); then, the server will calculate the preloading process link in the dual recording process, and determine the resource number corresponding to the process link to be preloaded, and obtain the corresponding speech broadcast audio file and speech broadcast content through the resource number; then, the position of the business variables (such as name, ID number, company, etc.) used in the speech broadcast content is used to generate a variable audio file (corresponding to the above-mentioned second media file); then, the server will The pre-generated speech broadcast audio file is merged and spliced ​​with the variable audio file to obtain an audio file suitable for the process link in the dual-recording business process; then, the server will obtain the client's current business process progress (that is, the second process node in the business process), and determine whether to send a resource preloading signaling to the client based on the current completion link of the business; then, when the conditions for sending the resource preloading signaling are met, the server sends the resource preloading signaling to the client through the Websocket protocol; then, after receiving the resource preloading signaling, the client will download and locally cache the audio file contained in the resource signaling in advance.

[0166] When the current business process reaches the preloading process stage, the server will send a speech broadcast signal or a data display signal to the client through the Websocket protocol, where the signal carries the file ID and online address of the resource corresponding to the preloading process stage; then, the client will first search for local cache data according to the file ID of the resource in the signal. When the corresponding resource file in the signal is found in the local cache data, the audio file will be played or the data will be previewed locally; when the corresponding resource file is not found in the local cache data, the audio file will be played online or the data will be previewed through the online address of the file carried in the signal.

[0167] During the business processing process, the server will pre-load the corresponding speech broadcast resources for subsequent business process links according to the progress of the business processing; when the business process is terminated prematurely due to an abnormality, all pre-loading operations in the business process will be stopped to avoid waste of resources.

[0168] In some embodiments, see Figure 7 , Figure 7 The resource preprocessing trigger principle and related signaling diagram provided in the embodiment of the present application are shown below. Figure 7 The triggering principle and related signaling of resource preloading are explained.

[0169] First, the client reports the execution result of the current link in the business process to the server. The server will determine whether the execution result of the current link is successful. When the execution result of the current link fails, the preloading operation in the business process is stopped and the business is terminated. When the execution result of the current link is successful, the resource preprocessing event will be triggered asynchronously.

[0170] Next, the preloading phase array is calculated according to the following calculation rules.

[0171] (1) Update the process configuration to calculate the location of the currently completed link and increase the location by 1;

[0172] (2) Determine the included subsequent links based on the preloading threshold (20% preloading);

[0173] (3) Subsequent links in the calculation process that need to be preloaded;

[0174] (4) Filter the data that already exists in the resource preloading queue.

[0175] Next, when the number in the preloading link array is equal to 0, it means that there is no subsequent link to be preloaded, that is, no preloading processing is required; when the number in the preloading link array is greater than 0, the link preloading logic is called to confirm whether the link needs resource preloading. When the link needs to be preloaded, the resources of the link are preprocessed, and the resource preloading signaling is sent to the client through the Websocket protocol; when the link does not need to preload resources, the position of the resource preprocessing link is updated, and the next link in the link array is judged.

[0176] like Figure 7 As shown, the speech broadcast signaling or resource display signaling may include the speech broadcast atomic execution signaling identifier, signaling unique identifier, link number, Chinese name of the link, execution client role, signaling version function reservation, the position of the signaling within the process link, TTS display text, resource ID, TTS audio file ID, audio file length, online playback address and other attributes; the resource preloading signaling may include the resource preloading signaling identifier, resource unique code, link number, business processing order number, resource type, audio file length, file ID, audio file URL and other attributes.

[0177] The following further describes an exemplary structure of the resource loading device 543 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example Figure 2 As shown, the software modules stored in the resource loading device 543 of the memory 540 may include: a determination module 5431 , a first processing module 5432 , and a second processing module 5433 .

[0178] The determination module 5431 is used to determine a first process node in an unfinished state in a business process including multiple process nodes; the determination module 5431 is also used to determine the resource amount of the business resources corresponding to the first process node in response to the first process node not being in the preloading queue, wherein the preloading queue is used to store process nodes for which the preloading of business resources has been completed; the first processing module 5432 is used to send a first signaling to the client in response to the resource amount of the business resources reaching a resource amount threshold, the first signaling being used to indicate that the business resources corresponding to the first process node are to be preloaded; the second processing module 5433 is used to add the first process node to the preloading queue in response to a second signaling returned by the client, the second signaling being used to indicate that the preloading of the business resources has been completed.

[0179] In some embodiments, the determination module 5431 is also used to determine the order of the second process node in the execution state in the business process; based on the order of the second process node in the business process, search the process node located after the second process node from the business process, and determine the first number of process nodes located after the second process node; if the first number is less than the quantity threshold, the process node located after the second process node is used as the first process node; if the first number is greater than or equal to the quantity threshold, a second number of process nodes are selected from the first number of process nodes as the first process node, wherein the ratio of the second number to the first number is a preset ratio.

[0180] In some embodiments, the determination module 5431 is also used to search for a process node located before the second process node in the business process as a third process node based on the order of the second process node in the business process; input the node information of the third process node into the model for prediction to obtain the resource quantity of the business resources corresponding to the first process node; wherein the node information includes the resource quantity of the business resources corresponding to the third process node, and the load parameters of the third process node.

[0181] In some embodiments, the resource loading device also includes a prediction module 5434, which is used to construct a tuple based on the third process node, the tuple including the loading time of the business resource corresponding to the third process node and the resource amount of the business resource corresponding to the third process node; clustering the tuple to obtain at least one cluster; and determining the resource amount threshold based on the resource amount of the business resource corresponding to the center of each cluster.

[0182] In some embodiments, the first processing module 5432 is also used to, when the business resources include audio files, respond to a resource acquisition request from a client for business resources, parse the resource acquisition request, obtain the business variables of the first process node and the identifier of the first text resource of the first process node; based on the identifier, fuse the business variables into the first text resource of the first process node to obtain the second text resource; perform speech conversion on the second text resource to obtain the audio file corresponding to the first process node.

[0183] In some embodiments, the second processing module 5433 is also used to receive an address query request sent by the client, where the address query request is used to request a query for the network address of the business resource corresponding to the first process node, and the address query request is sent by the client when the business resource loading fails based on the preloaded business resources; the network address is sent to the client, and the network address is used by the client to display the business resources online.

[0184] In some embodiments, the second processing module 5433 is further used to verify the client's authority to obtain the network address and obtain a verification result.

[0185] In some embodiments, the second processing module 5433 is further configured to send the network address to the client when the verification result indicates that the client has the access authority.

[0186] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 , Figure 4 , Figure 5A ,or Figure 5B The present invention should be understood by referring to the description of any one of the accompanying drawings.

[0187] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the computer device executes the resource loading method described in the embodiment of the present application.

[0188] The embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the resource loading method provided by the embodiment of the present application, for example, Figure 3 , Figure 4 , Figure 5A ,or Figure 5B The resource loading method shown.

[0189] In some embodiments, the computer-readable storage medium may be a ferroelectric random access memory (FRAM), ROM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM) and other memories; it may also be various devices including one or any combination of the above memories.

[0190] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0191] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0192] In summary, the embodiments of the present application have the following beneficial effects:

[0193] (1) Improved the processing speed of dual-recording services and reduced waiting time Improved the processing speed of dual-recording services and reduced customers' waiting time;

[0194] (2) Reduced server load, improved system stability, resistance to weak networks, and reliability;

[0195] (3) Optimized user experience and improved service efficiency and satisfaction;

[0196] (4) Determining whether the subsequent links included in the link array are in the preloading queue can effectively avoid the link preloading concurrency problem.

[0197] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A resource loading method, characterized in that: The method comprises: In a business process including a plurality of process nodes, determining a first process node in an unfinished state; In response to the first process node not being in a preloading queue, determining a resource amount of a business resource corresponding to the first process node, wherein the preloading queue is used to store process nodes for which business resource preloading has been completed; In response to the resource amount of the service resource reaching the resource amount threshold, sending a first signaling to the client, wherein the first signaling is used to instruct to preload the service resource corresponding to the first process node; In response to a second signaling returned by the client, the first process node is added to the preloading queue, wherein the second signaling is used to indicate that preloading of the business resource has been completed.

2. The method according to claim 1, characterized in that The step of determining, in a business process including a plurality of process nodes, a first process node in an unfinished state comprises: Determine the order of the second process node in the execution state in the business process; Based on the order of the second process node in the business process, searching the business process for a process node that is located after the second process node, and determining a first number of the process nodes that are located after the second process node; If the first number is less than the number threshold, taking the process node after the second process node as the first process node; If the first number is greater than or equal to the number threshold, a second number of process nodes are selected from the first number of process nodes as the first process nodes, wherein a ratio of the second number to the first number is a preset ratio.

3. The method according to claim 2, characterized in that The determining the resource amount of the business resource corresponding to the first process node includes: Based on the order of the second process node in the business process, searching the business process for a process node located before the second process node as a third process node; Inputting the node information of the third process node into the model for prediction to obtain the resource amount of the business resources corresponding to the first process node; The node information includes the resource amount of the business resources corresponding to the third process node and the load parameter of the third process node.

4. The method according to claim 3, characterized in that Before sending the first signaling to the client, the method further includes: Constructing a tuple based on the third process node, the tuple including the loading time of the business resource corresponding to the third process node and the resource amount of the business resource corresponding to the third process node; Performing clustering processing on the two-tuple to obtain at least one cluster; The resource amount threshold is determined based on the resource amount of the business resources corresponding to the center of each cluster.

5. The method according to claim 1, characterized in that The determining the resource amount of the business resource corresponding to the first process node includes: In a case where the business resource includes a media file, determining a business constant and a business variable corresponding to the first process node; generating a first sub-media file corresponding to the first process node based on the business constant, and generating a second sub-media file corresponding to the first process node based on the business variable; splicing the first sub-media file and the second sub-media file to obtain a media file corresponding to the first process node; Based on the media file corresponding to the first process node, a resource amount of the business resource corresponding to the first process node is determined.

6. The method according to any one of claims 1 to 4, characterized in that: After sending the first signaling to the client, the method further includes: In a case where the business resource includes an audio file, in response to a resource acquisition request from the client for the business resource, parsing the resource acquisition request to obtain a business variable of the first process node and an identifier of a first text resource of the first process node; Based on the identifier, the business variable is integrated into the first text resource of the first process node to obtain a second text resource; The second text resource is converted into speech to obtain an audio file corresponding to the first process node.

7. The method according to claim 1, characterized in that After adding the first process node to the preload queue, the method further includes: receiving an address query request sent by the client, wherein the address query request is used to request to query the network address of the business resource corresponding to the first process node, and the address query request is sent by the client when loading of the business resource fails based on the preloaded business resource; The network address is sent to the client, where the network address is used by the client to display the service resource online.

8. The method according to claim 7, characterized in that After receiving the address query request sent by the client, the method further includes: Verifying the client's access authority to the network address and obtaining a verification result; The sending the network address to the client comprises: When the verification result indicates that the client has the acquisition authority, the network address is sent to the client.

9. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the resource loading method according to any one of claims 1 to 8 when executing the executable instructions stored in the memory.

10. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the resource loading method described in any one of claims 1 to 8 is implemented.