CN-121979588-A - Data loading method and data loading system
Abstract
The embodiment of the specification provides a data loading method and a data loading system, wherein the data loading method comprises the steps of obtaining user data aiming at a target multimedia application, determining an association relation between multimedia data units in the target multimedia application based on the user data, predicting and generating target multimedia data based on the association relation, and preloading the target multimedia data into a memory. Based on the association relation between the user data modeling multimedia data units, the possibility of user selection is quantized, target multimedia data is generated, target voice resources of specific language versions are preloaded, memory occupation is remarkably reduced, immediate calling can be achieved during switching, waiting delay of immediate loading is thoroughly eliminated, the running stability of a system is ensured, real-time response of language switching is achieved, user experience under a multi-language interaction scene is practically improved, and therefore the method can be widely applied to the field of digital cultural product manufacturing software.
Inventors
- Zheng jinxin
- ZHANG PENGYU
- ZHENG TINGTING
Assignees
- 珠海金山数字网络科技有限公司
- 珠海西山居数字科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260129
Claims (15)
- 1. A method of loading data, comprising: acquiring user data aiming at a target multimedia application; determining an association relationship between multimedia data units in the target multimedia application based on the user data; predicting and generating target multimedia data based on the association relation; and preloading the target multimedia data to a memory.
- 2. The method of claim 1, wherein the user data comprises one or more of current multimedia data, user behavior data, scene status data, and multimedia application data; the predicting and generating the target multimedia data based on the association relation comprises the following steps: predicting candidate multimedia data corresponding to the current multimedia data based on the association relation by using a rule engine; and correcting the candidate multimedia data based on one or more of the user behavior data, the scene state data and the multimedia application data to generate the target multimedia data.
- 3. The method of claim 2, wherein the modifying the candidate multimedia data based on one or more of the user behavior data, the scene status data, and the multimedia application data, generating the target multimedia data, comprises: Determining a target decision tree based on the current multimedia data and the candidate multimedia data, wherein each decision node in the target decision tree represents an evaluation decision of the candidate multimedia data based on one or more of user behavior data, scene state data and multimedia application data and an association relation; Determining a target decision branch from the decision tree based on the association and one or more of the user behavior data, the scene state data and the multimedia application data; and generating target multimedia data based on the target decision branch.
- 4. The method of claim 1, wherein the target multimedia data comprises a plurality of different language versions; before preloading the target multimedia data into the memory, the method further comprises: Acquiring user language preference; if the user language preference is acquired, determining a target language identification according to the user language preference; if the user language preference is not acquired, acquiring a history common language, and determining a target language identification according to the history common language; the preloading the target multimedia data into a memory includes: and acquiring target multimedia data of a target language version from storage based on the target language identifier, and preloading the target multimedia data to a memory.
- 5. The method of claim 4, wherein the storing comprises local storage and cloud storage; The obtaining, based on the target language identifier, target multimedia data of a target language version from a storage, and preloading the target multimedia data to a memory, includes: Generating a preloading request based on the target language identification; Calling a stream loading module, determining a storage position of the target multimedia data of the target language version, and sending the preloading request to the storage position; If the storage position is a local storage, invoking a non-priority loading thread to preload the target multimedia data of the target language version to the memory; and if the storage position is cloud storage, invoking a non-priority loading thread to preload the target multimedia data of the target language version to the memory based on a streaming protocol.
- 6. The method as recited in claim 1, further comprising: Determining whether the switching multimedia data is loaded to the memory or not under the condition that a switching instruction for switching the multimedia data is received; if yes, calling the switching multimedia data from the memory to replace the current multimedia data; If not, loading the switching multimedia data to the memory, and calling the switching multimedia data from the memory to replace the current multimedia data.
- 7. The method of claim 6, wherein if not, loading the handover multimedia data into the memory comprises: if not, starting a priority loading thread to load the switching multimedia data to the memory.
- 8. The method of claim 7, wherein after the if not, starting a priority load thread to load the switch multimedia data into the memory, further comprising: and stopping the preferential loading thread and switching back to the non-preferential loading thread when loading is completed.
- 9. The method according to any one of claims 6-8, wherein the switching instruction comprises a preset switching instruction and an instant switching instruction, the preset switching instruction triggers a preset trigger condition to be generated in response to an access behavior of a user, and the instant switching instruction is generated in response to the switching instruction of the user.
- 10. The method of claim 1, further comprising, prior to said obtaining user data for the target multimedia application: responding to a starting instruction of a user for a front-end multimedia interface, loading interface data of the front-end multimedia interface, initial multimedia data and interface interaction sound effects of the front-end multimedia interface into a memory, wherein the accessed frequency of the initial multimedia data is higher than a preset frequency threshold; And calling the interface data, the initial multimedia data and the interface interaction sound effect from the memory, displaying the front-end multimedia interface at the front end, and displaying the initial multimedia data at the front-end multimedia interface so that a user accesses the initial multimedia data and plays the interface interaction sound effect.
- 11. The method as recited in claim 1, further comprising: detecting the data occupation proportion of the memory; And under the condition that the data occupation ratio exceeds a preset occupation ratio threshold, releasing the multimedia data with calling frequency lower than the preset calling frequency threshold from the memory.
- 12. The data loading system is characterized by comprising a data prediction module and a stream loading module; The data prediction module is used for acquiring user data aiming at a target multimedia application, determining an association relation between multimedia data units in the target multimedia application based on the user data, and predicting and generating the target multimedia data based on the association relation; The stream loading module is used for preloading the target multimedia data to a memory.
- 13. A computing device, comprising: A memory and a processor; the memory is adapted to store a computer program/instruction, the processor being adapted to execute the computer program/instruction, which when executed by the processor, performs the steps of the method of any of claims 1 to 11.
- 14. A computer-readable storage medium, characterized in that a computer program/instruction is stored, which, when executed by a processor, carries out the steps of the method according to any one of claims 1 to 11.
- 15. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 11.
Description
Data loading method and data loading system Technical Field The embodiment of the specification relates to the technical field of digital cultural products, in particular to a data loading method and a data loading system. Background Currently, multi-language interactive multimedia applications are rapidly developed, and voice resources are used as core interaction media to directly influence the audio-visual experience of users. Therefore, the existing multi-language interactive multimedia application requires that the voice resource needs to support multiple language versions, and flexible switching is realized in the operation process of the user, which puts higher requirements on the resource loading mechanism, memory occupation control and scheduling instantaneity. At present, the multi-language speech resource switching mainly adopts two modes, namely a full-load mode is used for loading all speech resources of a single language when an application is started, the language switching needs to restart the application to reload target language resources, and an instant loading mode is used for dynamically downloading or reading the target language speech resources when the language is switched, but the resources are required to be used after being completely loaded. The full loading mode is used for resident voice resources of all languages, so that memory occupation is increased rapidly, application blocking, slow response and even memory overflow are easy to cause, operation stability is reduced, each loading can only aim at a single language, instant loading is highly dependent on equipment performance, loading time delay is long, and real-time acquisition requirements of users are difficult to meet. Therefore, the existing multilingual voice resource management scheme has obvious defects in terms of switching efficiency, memory optimization and user experience, and a dynamic and efficient resource management scheme is needed. Disclosure of Invention In view of this, the present embodiments provide a data loading method. One or more embodiments of the present specification are also directed to a data loading system, a computing device, a computer-readable storage medium, and a computer program product that address the deficiencies of the prior art. According to a first aspect of embodiments of the present disclosure, there is provided a data loading method, including: acquiring user data aiming at a target multimedia application; determining an association relationship between multimedia data units in a target multimedia application based on user data; Predicting and generating target multimedia data based on the association relation; And preloading the target multimedia data into the memory. According to a second aspect of embodiments of the present disclosure, there is provided a data loading system, including a data prediction module and a streaming loading module; The system comprises a data prediction module, a target multimedia data generation module, a data prediction module and a data processing module, wherein the data prediction module is used for acquiring user data aiming at a target multimedia application; and the streaming loading module is used for preloading the target multimedia data to the memory. According to a third aspect of embodiments of the present specification, there is provided a computing device comprising: A memory and a processor; The memory is used for storing computer programs/instructions, and the processor is used for executing the computer programs/instructions, and the computer programs/instructions realize the steps of the data loading method when being executed by the processor. According to a fourth aspect of embodiments of the present specification, there is provided a computer readable storage medium storing a computer program/instruction which, when executed by a processor, implements the steps of the data loading method described above. According to a fifth aspect of embodiments of the present specification, there is provided a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the data loading method described above. The data loading method provided by one or more embodiments of the present disclosure obtains user data for a target multimedia application, determines an association relationship between multimedia data units in the target multimedia application based on the user data, predicts and generates target multimedia data based on the association relationship, and preloads the target multimedia data to a memory. The method comprises the steps of acquiring user data aiming at a target multimedia application, determining an object generated by the multimedia data, determining an association relation between multimedia data units in the target multimedia application based on the user data, thereby quantifying the possibility of user selection based on the association relation betwee