Script generation method and device, equipment and storage medium

By displaying the prompt information template in the script generation method, users can fill the slot information generation script, solving the problem of low script generation efficiency in the prior art and achieving efficient script generation.

CN119922390AActive Publication Date: 2025-05-02BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411896742.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-05-02
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In the prior art, the generation efficiency of video scripts is low, and users need to manually create or input scripts, resulting in a large time consumption.

Method used

Provide a script generation method. By displaying a prompt information template, users can fill slot information according to script creation needs to generate scripts. This method does not require the user to manually create scripts or manually enter prompt information.

Benefits of technology

Simplifies script generation operations, improves the efficiency of generating scripts, and shortens the time for creating scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922390A_ABST
    Figure CN119922390A_ABST
Patent Text Reader

Abstract

The invention provides a script generation method and device, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the steps that a prompt information template is displayed on a script generation page, the prompt information template comprises multiple content dimensions of a to-be-generated script and slots corresponding to the content dimensions, and the prompt information template is used for generating prompt information capable of prompting the content of the to-be-generated script; in response to a filling operation on any slot position, displaying filling information in the slot position; generating prompt information based on the information filled in the slots corresponding to the content dimensions; and generating a script based on the prompt information. By adopting the method to generate the script, a user does not need to manually create the script or manually input the prompt information, so that the script generation operation is simplified, the script creation time is shortened, and the script generation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a script generation method, device, equipment and storage medium. Background Art

[0002] With the popularity of video platforms, videos have gradually become an important way for people to obtain information. Among them, the script is the basis of the video, and the script determines the main content of the video. At present, the script of the video is usually created manually by the creator, such as manually entering the script, or modifying and editing the script case to obtain a new script. However, in the above method, the creator usually spends a lot of time, resulting in low efficiency of script generation. Therefore, how to efficiently generate scripts is a technical problem that needs to be solved. Summary of the invention

[0003] The present disclosure provides a script generation method, apparatus, device and storage medium, which can eliminate the need for users to manually create scripts or manually input prompt information during the script generation process, thereby simplifying the script generation operation and improving the script generation efficiency. The technical solution of the present disclosure is as follows:

[0004] According to one aspect of an embodiment of the present disclosure, there is provided a script generation method, including:

[0005] Displaying a prompt information template on the script generation page, the prompt information template including multiple content dimensions of the script to be generated and slots corresponding to each content dimension, the prompt information template being used to generate prompt information capable of prompting the content of the script to be generated;

[0006] In response to a filling operation on any slot, displaying filled information in the slot;

[0007] Generate prompt information based on the information filled in the slots corresponding to the respective content dimensions;

[0008] A script is generated based on the prompt information.

[0009] In some embodiments, displaying a prompt information template on a script generation page includes:

[0010] In response to a triggering operation on an input box in the script generation page, in a case where the terminal object information includes pre-filled information of a first content dimension, a slot corresponding to the first content dimension in the prompt information template is filled with the pre-filled information, the first content dimension being any content dimension of the multiple content dimensions, and the input box being used to input prompt information;

[0011] The prompt information template with at least one slot filled is displayed on the script generation page.

[0012] In some embodiments, displaying a prompt information template on a script generation page includes:

[0013] Based on multiple content dimensions of the terminal object information, multiple prompt information templates are displayed on the script generation page, and the prompt information template includes at least one content dimension of the terminal object information; or based on multiple content dimensions of historical scripts, multiple prompt information templates are displayed on the script generation page, and the historical scripts are scripts generated by the terminal, and the prompt information template includes at least one content dimension of the historical scripts;

[0014] In response to a triggering operation on any prompt information template, the triggered prompt information template is displayed as being in a selected state.

[0015] In some embodiments, in response to a filling operation on any slot, displaying filled information in the slot includes:

[0016] In response to a triggering operation on any slot, a plurality of recommended texts are displayed based on a content dimension corresponding to the slot, wherein the recommended texts are used to describe the script to be generated on the content dimension;

[0017] In response to a triggering operation on any recommended text, the triggered recommended text is displayed in the slot.

[0018] In some embodiments, in response to a filling operation on any slot, displaying filled information in the slot includes:

[0019] In response to a filling operation on any slot, obtaining information filled by the filling operation;

[0020] The information filled by the filling operation is displayed in the slot.

[0021] In some embodiments, in response to a filling operation on any slot, displaying filled information in the slot includes:

[0022] In response to a filling operation on any slot, if there is a historical text corresponding to the slot, display the historical text, the historical text being the text filled in the slot by the terminal;

[0023] In response to a triggering operation on the historical text, the historical text is displayed in the slot.

[0024] In some embodiments, the method further comprises:

[0025] Displaying a plurality of recommended prompt information on the script generation page, wherein the plurality of recommended prompt information includes at least one of historical prompt information and predicted prompt information, wherein the historical prompt information is prompt information used by the terminal in the process of generating scripts in the past, and the predicted prompt information is predicted based on the historical prompt information;

[0026] In response to a selection operation on any piece of recommended prompt information, a script is generated based on the selected recommended prompt information.

[0027] In some embodiments, the method further comprises:

[0028] The script and a summary of the script are displayed, where the summary is used to briefly describe the content of the script.

[0029] In some embodiments, the method further comprises:

[0030] In response to an interactive operation on the summary, text content corresponding to the summary in the script is highlighted.

[0031] In some embodiments, the method further comprises:

[0032] In response to the use operation of the script, a material acquisition page is displayed, wherein the material acquisition page is used to acquire multimedia materials;

[0033] Based on the material acquisition page, acquire multimedia materials;

[0034] The video is obtained by editing the script and the acquired multimedia material.

[0035] In some embodiments, the step of editing the script and the acquired multimedia material to obtain a video includes:

[0036] In the case where a plurality of multimedia materials are acquired, based on the script, respectively determining the start and end times at which the plurality of multimedia materials appear in the video;

[0037] Based on the start and end times of the multiple multimedia materials appearing in the video, the script and the multiple multimedia materials are edited to obtain the video.

[0038] According to another aspect of an embodiment of the present disclosure, there is provided a script generating device, including:

[0039] A first display unit is configured to display a prompt information template on a script generation page, wherein the prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension, and the prompt information template is used to generate prompt information that can prompt the content of the script to be generated;

[0040] The first display unit is further configured to display filled information in any slot in response to a filling operation on the slot;

[0041] A first generating unit is configured to generate prompt information based on the information filled in the slots corresponding to the respective content dimensions;

[0042] The second generating unit is configured to generate a script based on the prompt information.

[0043] In some embodiments, the first display unit is configured to respond to a triggering operation on an input box in the script generation page, and when the terminal object information includes pre-filled information of a first content dimension, fill the pre-filled information in a slot corresponding to the first content dimension in the prompt information template, wherein the first content dimension is any content dimension of the multiple content dimensions, and the input box is used to input prompt information; and display the prompt information template with at least one slot filled on the script generation page.

[0044] In some embodiments, the first display unit is configured to display multiple prompt information templates on the script generation page based on multiple content dimensions of the terminal object information, and the prompt information template includes at least one content dimension of the terminal object information; or, based on multiple content dimensions of historical scripts, display multiple prompt information templates on the script generation page, and the historical scripts are scripts generated by the terminal, and the prompt information templates include at least one content dimension of the historical scripts; in response to a triggering operation on any prompt information template, the triggered prompt information template is displayed as a selected state.

[0045] In some embodiments, the first display unit is configured to, in response to a trigger operation on any slot, display multiple recommended texts based on the content dimension corresponding to the slot, wherein the recommended texts are used to describe the script to be generated on the content dimension; in response to a trigger operation on any recommended text, display the triggered recommended text in the slot.

[0046] In some embodiments, the first display unit is configured to, in response to a filling operation on any slot, obtain information filled by the filling operation; and display the information filled by the filling operation in the slot.

[0047] In some embodiments, the first display unit is configured to respond to a filling operation on any slot and, if there is historical text corresponding to the slot, display the historical text, which is the text filled in the slot by the terminal; and respond to a triggering operation on the historical text to display the historical text in the slot.

[0048] In some embodiments, the first display unit is further configured to display a plurality of recommended prompt information on the script generation page, the plurality of recommended prompt information including at least one of historical prompt information and predicted prompt information, the historical prompt information being prompt information used by the terminal in the process of generating scripts in the past, and the predicted prompt information being predicted based on the historical prompt information;

[0049] The second generating unit is further configured to generate a script based on the selected recommendation prompt information by using the large language model in response to a selection operation on any recommendation prompt information.

[0050] In some embodiments, the apparatus further comprises:

[0051] The second display unit is configured to display the script and a summary of the script, where the summary is used to describe brief content of the script.

[0052] In some embodiments, the second display unit is further configured to highlight text content in the script corresponding to the summary in response to an interactive operation on the summary.

[0053] In some embodiments, the apparatus further comprises:

[0054] The editing unit is configured to display a material acquisition page in response to the use operation of the script, wherein the material acquisition page is used to acquire multimedia materials; acquire multimedia materials based on the material acquisition page; and perform editing based on the script and the acquired multimedia materials to obtain a video.

[0055] In some embodiments, the editing unit is configured to, when multiple multimedia materials are acquired, determine the start and end times of the multiple multimedia materials appearing in the video based on the script; and edit the script and the multiple multimedia materials based on the start and end times of the multiple multimedia materials appearing in the video to obtain the video.

[0056] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0057] one or more processors;

[0058] A memory for storing program codes executable by the processor;

[0059] The processor is configured to execute the program code to implement the script generation method.

[0060] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned script generation method.

[0061] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which implements the above script generation method when executed by a processor.

[0062] The disclosed embodiment provides a script generation solution, which can display a prompt information template during the script generation process, and support the user to fill in the prompt information template according to the script creation requirements to obtain prompt information, and then generate a script that meets the user's creation requirements according to the prompt information. In the above method, the user does not need to manually create the script or the prompt information, which simplifies the script generation operation, shortens the script creation time, and improves the efficiency of script generation.

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

[0064] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0065] Figure 1 The present invention is a schematic diagram of an implementation environment of a script generation method according to an exemplary embodiment.

[0066] Figure 2 The present invention is a flowchart of a script generation method according to an exemplary embodiment.

[0067] Figure 3 The figure is a flowchart of another script generation method according to an exemplary embodiment.

[0068] Figure 4 The diagram is a schematic diagram of a prompt information template according to an exemplary embodiment.

[0069] Figure 5 The figure is a schematic diagram showing a script generating page according to an exemplary embodiment.

[0070] Figure 6 The figure is a schematic diagram showing recommendation prompt information according to an exemplary embodiment.

[0071] Figure 7 is a schematic diagram of a script according to an exemplary embodiment.

[0072] Figure 8 The diagram is a schematic diagram of another script generating page according to an exemplary embodiment.

[0073] Fig. 9 The invention is a block diagram of a script generating device according to an exemplary embodiment.

[0074] Fig.10 It is a block diagram of another script generating device according to an exemplary embodiment.

[0075] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0076] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0077] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0078] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the prompt information template and prompt information involved in this disclosure are obtained with full authorization.

[0079] The script generation method provided by the embodiment of the present disclosure can be executed by a terminal. Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a script generation method according to an exemplary embodiment. Figure 1 , the implementation environment specifically includes: a terminal 101 and a server 102. The terminal 101 can be connected to the server 102 via a wireless network or a wired network.

[0080] The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. The terminal 101 has a communication function and can access a wired network or a wireless network. The terminal 101 may generally refer to one of a plurality of terminals, and those skilled in the art may know that the number of the above terminals may be more or less.

[0081] In some embodiments, the terminal 101 has an application installed or running. The application can be any type of application with a script generation function, such as a video application, a social application, etc. The user can input prompt information to the application through the terminal 101 according to the actual script creation needs, so that the application can generate a script that meets the creation needs according to the prompt information. Among them, the prompt information is used to prompt the content of the script to be generated. The server 102 is a background server of the terminal 101, which is used to provide background services for the terminal 101.

[0082] Server 102 can be an independent physical server, or a server cluster or distributed file system composed of multiple physical servers. It can also be 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, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0083] In some embodiments, the server 102 is directly or indirectly connected to the terminal 101 through wired or wireless communication, which is not limited in the embodiments of the present disclosure. Optionally, the number of the above-mentioned servers 102 may be more or less, which is not limited in the embodiments of the present disclosure. Of course, the server 102 may also include other functional servers to provide more comprehensive and diversified services. Among them, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or, the server 102 or the terminal 101 can each undertake the computing work independently, which is not limited in the embodiments of the present disclosure.

[0084] Figure 2 is a flowchart of a script generation method according to an exemplary embodiment. Figure 2 As shown, the method is executed by the terminal and includes the following steps:

[0085] In step 201, the terminal displays a prompt information template on a script generation page, where the prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension.

[0086] In an embodiment of the present disclosure, a target application is installed or running on the terminal. The target application may be any type of application with a script generation function, such as a video application, a search engine, a social application, and the like. The user can use the script generation service in the target application through the terminal. For example, in response to an operation of generating a script in the target application, the terminal displays a script generation page. The script generation page is used to input prompt information to generate a script according to the prompt information, such as a recommended information script, a game script, and the like. Among them, the prompt information is used to prompt the content of the script to be generated. The recommended information is used to recommend items. Accordingly, the recommended information script may refer to a script created for shooting items recommended by the recommended information. The script generation page is also used to display the script generated according to the prompt information for user selection and use.

[0087] In response to the operation of inputting prompt information on the script generation page, the terminal can display the prompt information template on the script generation page. Among them, the prompt information template is used to generate prompt information. The prompt information template includes multiple content dimensions of the script to be generated, which can facilitate the large language model to generate a script including the above multiple content dimensions. The prompt information template also includes slots for each content dimension, so that users can fill in relevant information in the slot according to actual needs. Among them, the slot refers to a position or area reserved in the prompt information template for filling in information. The user can fill in the corresponding content dimension information in the slot. For example, when the prompt information template is "The script I want belongs to () industry", () is a slot. The content dimension corresponding to the slot is the industry dimension. Users can fill in industry information in the slot according to actual needs.

[0088] The content dimension is used to represent the content contained in the script. Different content dimensions can describe the characteristics of the script, the elements contained in the script, etc. in different aspects. For example, when the script to be generated is a recommendation information script, the content dimension includes the industry dimension, the name dimension, and the feature dimension. The industry dimension is used to describe the industry to which the product promoted by the recommendation information script belongs. The name dimension is used to describe the name of the product. The feature dimension is used to describe the characteristics of the product.

[0089] In step 202, in response to a filling operation on any slot, the terminal displays the filled information in the slot.

[0090] In the embodiment of the present disclosure, the user can fill in the slots in the prompt information template. In response to the user filling operation on any slot in the prompt information template, the terminal can display the information filled in by the user in the slot.

[0091] In some embodiments, when information is displayed in a slot, the user can also edit the information filled in the slot.

[0092] In step 203, the terminal generates prompt information based on the information filled in the slots corresponding to each content dimension.

[0093] In the disclosed embodiment, the terminal can generate prompt information according to the prompt information template and the information filled in each slot in the prompt information template. The prompt information includes the preset text in the prompt information template and the information filled in each slot by the user. The prompt information can prompt to generate a script according to the filled information in the above multiple content dimensions.

[0094] In step 204, the terminal generates a script based on the prompt information.

[0095] In the embodiment of the present disclosure, after the terminal generates the prompt information, the terminal generates a script according to the prompt information. Optionally, the terminal can display at least one script generated according to the prompt information on a script generation page so that the user can select according to actual needs.

[0096] In some embodiments, the terminal can input the prompt information into the large language model to generate a script according to the prompt information through the large language model.

[0097] The disclosed embodiment provides a script generation method, which can display a prompt information template during the script generation process, and support the user to fill in the prompt information template according to the script creation requirements to obtain prompt information, and then generate a script that meets the user's creation requirements according to the prompt information. In the above method, the user does not need to manually create the script or the prompt information, which simplifies the script generation operation, shortens the script creation time, and improves the efficiency of script generation.

[0098] In some embodiments, a prompt information template is displayed on the script generation page, including:

[0099] In response to a triggering operation on an input box in a script generation page, in a case where the terminal object information includes pre-filled information of a first content dimension, the pre-filled information is filled in a slot corresponding to the first content dimension in the prompt information template, the first content dimension being any content dimension of a plurality of content dimensions, and the input box being used to input prompt information;

[0100] A tooltip template showing that at least one slot has been filled in the script generation page.

[0101] In the disclosed embodiment, by automatically filling some slots in the prompt information template according to the terminal object information, the number of slots manually filled by users can be reduced, the information filling cost can be reduced, and the information filling efficiency and prompt information generation efficiency can be improved.

[0102] In some embodiments, a prompt information template is displayed on the script generation page, including:

[0103] Based on multiple content dimensions of the terminal object information, multiple prompt information templates are displayed on the script generation page, and the prompt information template includes at least one content dimension of the terminal object information; or based on multiple content dimensions of the historical script, multiple prompt information templates are displayed on the script generation page, and the historical script is a script generated by the terminal, and the prompt information template includes at least one content dimension of the historical script;

[0104] In response to a triggering operation on any prompt information template, the triggered prompt information template is displayed as being in a selected state.

[0105] In the embodiments of the present disclosure, by recommending multiple prompt information templates to the user based on terminal object information or historical scripts, not only can the user's choices be enriched, but the recommended prompt information templates can also be made to be more in line with the user's script generation needs, thereby improving the utilization rate of the prompt information templates, reducing the situation where users manually input prompt information, and improving the efficiency of generating prompt information.

[0106] In some embodiments, in response to a filling operation on any slot, filling information is displayed in the slot, including:

[0107] In response to a trigger operation on any slot, a plurality of recommended texts are displayed based on the content dimension corresponding to the slot, and the recommended texts are used to describe the script to be generated in the content dimension;

[0108] In response to a triggering operation on any recommended text, the triggered recommended text is displayed in the slot.

[0109] In the disclosed embodiment, by displaying multiple recommended texts for the user to choose when the user fills in any slot, the user's time for conceiving and filling in information is saved and the user's filling operation is simplified, thereby further improving the efficiency of generating prompt information.

[0110] In some embodiments, in response to a filling operation on any slot, filling information is displayed in the slot, including:

[0111] In response to a filling operation on any slot, obtaining information filled by the filling operation;

[0112] Displays information about the slots filled by the fill operation.

[0113] In the embodiment of the present disclosure, by supporting the user to manually fill in the information in the slot, prompt information can be generated according to the information filled in by the user, thereby meeting the user's personalized needs for prompt information.

[0114] In some embodiments, in response to a filling operation on any slot, filling information is displayed in the slot, including:

[0115] In response to a filling operation on any slot, if there is a history text corresponding to the slot, the history text is displayed, where the history text is the text filled in the slot by the terminal;

[0116] In response to a trigger operation on the historical text, the historical text is displayed in the slot.

[0117] In the disclosed embodiment, historical text is displayed for the user to select when the user is filling in any slot, so when the user's current script generation requirement is the same as or similar to the historical script generation requirement, the user can directly reuse the historically filled text without the need for the user to manually fill in again, thereby simplifying the user's filling operation and further improving the efficiency of generating prompt information.

[0118] In some embodiments, the method further comprises:

[0119] Displaying multiple recommended prompt information on the script generation page, the multiple recommended prompt information including at least one of historical prompt information and predicted prompt information, the historical prompt information is prompt information used by the terminal in the process of generating scripts in the past, and the predicted prompt information is predicted based on the historical prompt information;

[0120] In response to a selection operation on any piece of recommended prompt information, a script is generated based on the selected recommended prompt information.

[0121] In the disclosed embodiment, by recommending multiple prompt information to the user based on historical prompt information, the user can select corresponding prompt information according to actual needs without the need for the user to manually fill in the prompt information template, which further simplifies the operation of generating prompt information and further improves the efficiency of script generation.

[0122] In some embodiments, the method further comprises:

[0123] Displays the script and a summary of the script that briefly describes the contents of the script.

[0124] In the disclosed embodiment, by displaying the script and the summary of the script, the brief content of the script can be intuitively reflected through the summary, so that the user can quickly know the main content of the script by viewing the summary, thereby improving the amount of information obtained by the user and the efficiency of obtaining information. Further, in the case where the terminal generates multiple scripts, by displaying the summaries of multiple scripts, the differences and commonalities between different scripts can be intuitively reflected, thereby facilitating the user to intuitively perceive the brief content of different scripts, thereby improving the efficiency of the user in obtaining information.

[0125] In some embodiments, the method further comprises:

[0126] In response to an interactive operation on the summary, text content corresponding to the summary in the script is highlighted.

[0127] In the disclosed embodiment, by supporting highlighting the script content corresponding to the summary, the relevance between the summary and the script content can be further reflected. The user can quickly view the script content corresponding to the summary by interacting with the summary, thereby improving the efficiency of human-computer interaction.

[0128] In some embodiments, the method further comprises:

[0129] In response to the use operation of the script, a material acquisition page is displayed, where the material acquisition page is used to acquire multimedia materials;

[0130] Based on the material acquisition page, obtain multimedia materials;

[0131] The video is obtained by editing based on the script and the acquired multimedia materials.

[0132] In the disclosed embodiment, by generating a video based on a script used by a user and multimedia materials uploaded by the user, the user does not need to manually edit the video according to the script, which simplifies the operation of the user generating a video using a script and improves the efficiency of human-computer interaction.

[0133] In some embodiments, editing based on the script and the acquired multimedia material to obtain a video includes:

[0134] When multiple multimedia materials are acquired, based on the script, the start and end times of the multiple multimedia materials appearing in the video are determined respectively;

[0135] Based on the start and end times of the multiple multimedia materials appearing in the video, the script and the multiple multimedia materials are edited to obtain a video.

[0136] In the embodiments of the present disclosure, by automatically determining the start and end times of multimedia materials in a video according to a script, not only can the video content be presented according to the plot and logic planned by the script, but there is also no need for the user to manually determine the time period and order in which the multimedia materials appear, thereby simplifying the operation of generating a video and improving the efficiency of video generation while ensuring the accuracy of video generation.

[0137] Above Figure 2 The figure shows a process of a script generation method of the present disclosure. The script generation solution provided by the present disclosure is further described below. Figure 3 is a flowchart of another script generation method according to an exemplary embodiment, the method is executed by a terminal, see Figure 3 , the method comprising:

[0138] In step 301, the terminal displays a prompt information template on the script generation page, where the prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension.

[0139] In the disclosed embodiment, the script generation page is used to input prompt information and display the script generated according to the prompt information. In the case where the terminal generates the script through the large language model, the script generation page can be a conversation page between the user and the large language model. After the user sends the prompt information in the conversation page, the terminal can display the script generated by the large language model as a reply message on the conversation page, thereby presenting a visual effect of the user and the large language model having a conversation.

[0140] Optionally, the script generation page usually includes an input box so that the user can enter prompt information in the input box. In response to the user's triggering operation on the input box, the terminal displays a prompt information template on the script generation page. Optionally, the terminal can display the prompt information template in the input box, or display the prompt information template above the input box, which is not limited in the embodiments of the present disclosure. Among them, the prompt information template is used to generate prompt information that can guide the large language model to generate a script. The prompt information template usually includes multiple content dimensions of the script to be generated and slots for each content dimension, so that the large language model generates a script including the above-mentioned multiple content dimensions.

[0141] For example, when the script to be generated is a recommendation information script for promoting a product, the prompt information template may be "The script I want belongs to the () industry, the product name is (), and the product features are (). The prompt information template includes the industry dimension, the name dimension, and the feature dimension. The brackets in the prompt information template are the slots to be filled corresponding to each content dimension.

[0142] In some embodiments, the terminal can automatically fill in some slots in the prompt information template. In response to the trigger operation of the input box in the script generation page, the terminal obtains the terminal object information. Wherein, the terminal object information refers to the account information of the user account currently logged in by the terminal. The terminal object information generally includes pre-filled information of the user account. Wherein the pre-filled information refers to the information pre-filled in the user account, such as the industry, main products and other information corresponding to the user account. In the case where the terminal object information includes pre-filled information of the first content dimension, the terminal can fill the pre-filled information in the slot corresponding to the first content dimension in the prompt information template. Wherein, the first content dimension is any content dimension of the multiple content dimensions of the prompt information template. Then, the terminal displays the prompt information template with at least one slot filled in on the script generation page. The user can edit the information displayed in the slot according to actual needs, and can also fill in other slots. By automatically filling in some slots in the prompt information template according to the terminal object information, the number of slots manually filled by the user can be reduced, the information filling cost can be reduced, and the information filling efficiency and the prompt information generation efficiency can be improved.

[0143] For example, when the first content dimension is the industry dimension and the main product dimension, if the terminal object information includes pre-filled information on the industry, the terminal can fill the pre-filled information in the slot corresponding to the industry dimension. The filled prompt information template can be "The script I want belongs to the (beauty) industry, the product name is (XX cream), and the product features are (). Among them, the product features slot can be filled by the user according to actual needs, such as "easy to use", "cost-effective", etc.

[0144] Figure 4 FIG. 1 is a schematic diagram showing a prompt information template according to an exemplary embodiment. Figure 4 As shown, a prompt information template is displayed in the input box 401 of the script generation page. The prompt information template includes a filled slot and two slots to be filled.

[0145] In some embodiments, the terminal can also display multiple prompt information templates on the script generation page for the user to select. The following two cases are taken as examples to illustrate the process of the terminal displaying multiple prompt information templates.

[0146] Case 1: The terminal displays multiple prompt information templates on the script generation page according to multiple content dimensions of the terminal object information. In response to the user's triggering operation on the input box, the terminal obtains the terminal object information, and determines multiple content dimensions of the terminal object information, such as industry dimension, product dimension, etc., according to the pre-filled information contained in the terminal object information. Then, the terminal determines multiple prompt information templates from the template library according to the above multiple content dimensions, and displays multiple prompt information templates on the script generation page. Among them, the template library includes multiple preset prompt information templates. The prompt information template determined by the terminal from the template library includes at least one content dimension of the terminal object information. By determining and displaying the prompt information template according to the terminal object information, the recommended prompt information template can include at least one content dimension of the terminal object information. Since the content dimension of the terminal object information can reflect the user's script generation needs to a certain extent, recommending the prompt information template in the above manner can ensure that the recommended prompt information template is more in line with the user's script generation needs, thereby improving the accuracy of the recommended prompt information template and the user's script generation experience.

[0147] In some embodiments, the terminal can first determine a prompt information template including the above-mentioned multiple content dimensions from the template library based on the multiple content dimensions of the terminal object information. In the absence of a prompt information template including the above-mentioned multiple content dimensions, the terminal can determine a prompt information template including at least one content dimension from the template library. In other words, the terminal can determine a prompt information template including more content dimensions in the template library as much as possible. By recommending prompt information templates including more content dimensions as much as possible, the probability that the prompt information template fits the user's script generation needs can be increased, thereby further improving the accuracy of the recommended prompt information template.

[0148] In some embodiments, after the terminal determines multiple prompt information templates from the template library, the terminal can also fill in the slots in the multiple prompt information templates according to the terminal object information, which can reduce the user's information filling cost and improve the efficiency of generating prompt information.

[0149] Case 2: The terminal displays multiple prompt information templates on the script generation page according to multiple content dimensions of the historical script. In response to the trigger operation for the input box, the terminal obtains the historical script. Among them, the historical script is a script generated by this terminal. For example, the historical script is a script generated by the terminal through a large language model on the script generation page. Then, the terminal determines multiple prompt information templates from the template library according to the content dimensions of the historical script, and displays multiple prompt information templates on the script generation page. The prompt information template includes at least one content dimension of the historical script. Among them, the process of the terminal determining the prompt information template according to the content dimension of the historical script is the same as the above case, and will not be repeated here. Since the historical script can also reflect the script generation needs of the current user to a certain extent, recommending the prompt information template in the above manner can ensure that the recommended prompt information template is more in line with the user's script generation needs, thereby improving the accuracy of the recommended prompt information template.

[0150] In some embodiments, the terminal can determine the multiple content dimensions of the prompt information as the multiple content dimensions of the historical script based on the prompt information corresponding to the historical script. Wherein, in the case where the prompt information corresponding to the historical script is obtained by filling in the prompt information template, the multiple content dimensions of the prompt information template are the multiple content dimensions of the prompt information. In the case where the prompt information corresponding to the historical script is the prompt information input by the user himself, the terminal can obtain the multiple content dimensions of the prompt information by performing semantic analysis on the prompt information.

[0151] It should be noted that the terminal can determine multiple prompt information templates according to multiple content dimensions of the terminal object information while determining multiple prompt information templates according to multiple content dimensions of the historical script, and the embodiments of the present disclosure do not limit this.

[0152] After the terminal displays multiple prompt information templates on the script generation page, in response to the user's triggering operation on any prompt information template, the terminal can display the triggered prompt information template as a selected state so that the user can fill in multiple slots in the prompt information template. Optionally, the terminal can display the prompt information template as a selected state by highlighting the prompt information template, such as bold display, highlight display, etc.

[0153] By recommending multiple prompt information templates to users based on terminal object information or historical scripts, not only can the user's choices be enriched, but the recommended prompt information templates can also be made more in line with the user's script generation needs, thereby improving the utilization rate of the prompt information templates, reducing the situation where users manually enter prompt information, and improving the efficiency of generating prompt information.

[0154] In step 302, in response to a filling operation on any slot, the terminal displays the filled information in the slot.

[0155] In an embodiment of the present disclosure, in response to a user filling operation on any slot in the prompt information template, the terminal can display the information filled by the user in the slot. Optionally, the information displayed in the slot can be information manually input by the user, or can be any information selected by the user from multiple recommended information displayed by the terminal, and the embodiment of the present disclosure is not limited to this. Among them, the recommended information is the information recommended by the terminal for the user to fill in the slot.

[0156] In some embodiments, the terminal can display multiple recommended texts for users to choose from on the script generation page. In response to the user's triggering operation on any slot in the prompt information template, the terminal displays multiple recommended texts according to the content dimension corresponding to the slot. Among them, the recommended text is used to describe the script to be generated on the content dimension. For example, in the case where the content dimension is the industry dimension, the recommended text is the recommended multiple industries. In the case where the content dimension is the feature dimension, the recommended text is the recommended multiple product features. In response to the user's triggering operation on any recommended text, the terminal displays the triggered recommended text in the slot, thereby filling the recommended text into the slot. By displaying multiple recommended texts for users to choose from during the process of users filling in any slot, it not only saves the user's time in conceiving and filling in information, but also simplifies the user's filling operation, thereby further improving the efficiency of generating prompt information.

[0157] In some embodiments, in response to a user triggering operation on any slot in the prompt information template, the terminal can input the content dimension corresponding to the slot into the large language model to generate multiple recommended texts corresponding to the content dimension through the large language model. Then, the terminal displays multiple recommended texts on the script generation page for the user to select.

[0158] In some embodiments, the terminal can also display multiple historical texts for the user to choose from. In response to the user's filling operation on any slot in the prompt information template, if there is a historical text corresponding to the slot, the terminal displays the historical text. Among them, the historical text is the text filled in the slot by this terminal. The historical text can be a recommended text that has been filled in the history, or it can be a text that the user has entered in the history, and the embodiment of the present disclosure does not limit this. In response to the triggering operation on the historical text, the terminal displays the historical text in the slot, thereby filling the historical text into the slot. By displaying the historical text for the user to choose when the user fills in any slot, when the user's current script generation requirements are the same or similar to the historical script generation requirements, the user can directly reuse the text filled in the history without the user manually filling it again, which simplifies the user's filling operation, thereby further improving the efficiency of generating prompt information.

[0159] Optionally, when a slot corresponds to multiple historical texts, the terminal can display all historical texts corresponding to the slot, or display the N historical texts filled in the most recent N times, which is not limited in the embodiment of the present disclosure.

[0160] In some embodiments, the terminal can also fill the slot with information input by the user. In response to the user's filling operation on any slot in the prompt information template, the terminal obtains the information filled by the filling operation. Among them, the filling operation includes an information input operation and an information selection operation. The information input operation includes but is not limited to text input, voice input and other operations. The information selection operation can be a trigger operation for recommended information, such as a trigger operation for the above-mentioned recommended text, a trigger operation for the above-mentioned historical text, etc. Then, the terminal displays the information filled by the filling operation in the slot. By supporting users to manually fill in information in the slot, prompt information can be generated according to the information filled in by the user, thereby meeting the user's personalized needs for prompt information.

[0161] It should be noted that, in response to a triggering operation on any slot, if there is a historical text corresponding to the slot, the terminal can simultaneously display the historical text and a plurality of recommended texts for the user to select. Figure 5 FIG. 1 is a schematic diagram showing a script generating a page according to an exemplary embodiment. Figure 5 As shown, in response to the user's triggering operation on the slot 501, the terminal displays multiple recommended texts 502 and multiple historical texts 503 on the script generation page. The user can trigger any recommended text or any historical text to fill the triggered text into the slot.

[0162] In step 303, the terminal generates prompt information based on the information filled in the slots corresponding to each content dimension.

[0163] In the embodiment of the present disclosure, when all slots in the prompt information template are filled, the terminal can generate prompt information according to the prompt information template and the information filled in each slot. In some embodiments, when all slots in the prompt information template are filled, the terminal can switch the send control displayed on the script generation page from a non-triggerable state to a triggerable state. The user can control the terminal to generate prompt information by triggering the send control.

[0164] Optionally, when there are unfilled slots in the prompt information template, the terminal displays a gray send control on the script generation page, and the send control cannot be triggered. When all slots in the prompt information template are filled, the terminal displays a send control of a preset color on the script generation page, and the send control can be triggered. In response to the user's triggering operation on the send control, the terminal splices the preset text in the prompt information template and the information filled in by the user in each slot according to the position of each slot in the prompt information template to obtain the prompt information. For example, the prompt information generated by the terminal may be "The script I want belongs to the beauty industry, the product name is XX cream, and the product feature is easy to use." By displaying a triggerable send control when all slots in the prompt information template are filled, it is possible to avoid generating prompt information when the prompt information template is not filled, thereby ensuring the integrity of the prompt information.

[0165] In step 304, the terminal generates a script based on the prompt information.

[0166] In the disclosed embodiment, after the terminal generates the prompt information, the terminal can input the prompt information into the large language model, so as to generate a corresponding script according to the prompt information through the large language model. Optionally, the large language model can generate at least one script according to the prompt information. Among them, the large language model can be an artificial intelligence model built based on deep learning technology, which is intended to understand and generate human language, and the disclosed embodiment does not limit this.

[0167] The above embodiment mainly introduces the process of generating a script by the terminal according to the prompt information obtained by filling the prompt information template. In some embodiments, the terminal can directly display multiple recommended prompt information on the script generation page, and generate a script according to the recommended prompt information selected by the user. Among them, the multiple recommended prompt information displayed by the terminal includes at least one of historical prompt information and predicted prompt information. The historical prompt information is the prompt information used by this terminal in the process of generating scripts historically. In the case where the terminal generates a script through a large language model, the historical prompt information is the prompt information input by the terminal to the large language model. For example, the historical prompt information includes the prompt information that the terminal has input into the large language model for the last M times. Among them, M is a positive integer, such as 3, 4 or 5. Or, the historical prompt information includes the prompt information that the terminal has input into the large language model within the last 1 day. The predicted prompt information is predicted based on the historical prompt information. For example, in the case where the historical prompt information is used to guide the large language model to generate the script of the first episode of the TV series and the script of the second episode of the TV series, the predicted prompt information predicted based on the historical prompt information can be used to guide the large language model to generate the script of the third episode of the TV series. Optionally, the predicted prompt information can be predicted by the large language model based on the historical prompt information. For example, the terminal can input historical prompt information and scripts generated based on the historical prompt information into the large language model, and the large language model predicts the subsequent storyline based on the input information, and generates predictive prompt information based on the storyline, so that the script generated based on the predictive prompt information can accurately present the above storyline. In response to the user's selection operation of any recommended prompt information, the terminal can generate a script based on the selected recommended prompt information. By recommending multiple prompt information to the user based on historical prompt information, the user can select the corresponding prompt information according to actual needs, without the user manually filling in the prompt information template, which further simplifies the operation of generating prompt information and further improves the efficiency of script generation.

[0168] In some embodiments, the terminal can determine the historical prompt information and predict the recommended prompt information based on the periodic release plan filled in by the currently logged-in user account. Among them, the periodic release plan is the work release plan of the user account, such as the update plan of the video collection. The periodic release plan can indicate the cycle of the user account to release the work. For example, the periodic release plan indicates that 3 sets of videos are updated in 1 week. In response to the user's triggering operation on the input box in the script generation page, the terminal can determine the current release cycle according to the current moment and the user's periodic release plan. Then, the terminal obtains the historical prompt information within this release cycle. Among them, the historical prompt information within this release cycle can be the prompt information corresponding to the video updated this week. The prompt information corresponding to the video means that the terminal guides the large language model to generate a script according to the prompt information, and then generates the video to be updated according to the script. Then, the terminal inputs the above-mentioned historical prompt information and the script generated based on the historical prompt information into the large language model to generate the predicted prompt information through the large language model.

[0169] In some embodiments, the terminal can also fill in some slots in the prompt information template according to the acquired terminal object information, and predict the information filled in other slots, thereby obtaining the predicted prompt information. Then, the terminal displays the predicted prompt information as the recommended prompt information on the script generation page. For example, Figure 6 FIG. 1 is a schematic diagram showing a recommendation prompt information according to an exemplary embodiment. Figure 6 As shown, the script generation page displays 4 recommended prompt information. Among them, the industry dimension in the recommended prompt information is the beauty industry, which can be obtained by reading the pre-filled information in the terminal object information. Other content dimensions in the recommended prompt information, such as the product feature dimension, can be predicted based on at least one of the terminal object information, historical scripts, historical prompt information, etc.

[0170] It should be noted that, when the prompt information template or prompt information recommended by the terminal does not meet the actual needs of the user, the user can also enter the prompt information in the input box through the terminal. In response to the user's triggering operation on the send control, the terminal can generate at least one script according to the prompt information entered by the user.

[0171] In step 305, the terminal displays the script and a summary of the script, where the summary is used to briefly describe the content of the script.

[0172] In an embodiment of the present disclosure, after the terminal generates a script, the terminal can display the script and a summary of the script on the script generation page. The summary of the script can describe the brief content of at least one paragraph of text in the script. A script usually includes at least one summary. Optionally, in the case of generating multiple scripts, the terminal can also display multiple scripts and a summary of each script on the script generation page. By displaying the script and the summary of the script, the brief content of the script can be intuitively reflected through the summary, and the user can know the main content of the script by viewing the summary, thereby improving the amount of information obtained by the user and the efficiency of obtaining information. Furthermore, in the case of generating multiple scripts by the terminal, by displaying the summaries of multiple scripts, the differences and commonalities between different scripts can be intuitively reflected, thereby facilitating the user to intuitively perceive the brief content of different scripts, thereby improving the efficiency of the user in obtaining information.

[0173] For example, if the script is a recommendation information script, the summary of the script may be "product features", "promotional offers", etc. "Product features" refers to at least one paragraph of text in the script that describes the features of the promoted product. "Promotional offers" refers to at least one paragraph of text in the script that introduces the product's discount policy.

[0174] In some embodiments, the terminal can extract a summary of the script through a large language model to obtain at least one summary of the script. For example, the large language model can perform semantic analysis and key point induction on the script, extract key information, core points, etc. in the script, and then generate multiple short, accurate text fragments that can summarize the brief content of the script, that is, multiple summaries. By extracting a summary of the script through the above method, a summary of the script can be obtained more accurately and quickly, which improves the efficiency and accuracy of generating the summary of the script.

[0175] Optionally, the large language model can determine multiple preset summaries that match the key information, core points, and other information extracted from the script from the summary library to obtain multiple summaries of the script. By determining the summary of the script in the summary library, the content and format of the summary can be standardized to ensure that the summaries of different scripts are relatively uniform. For example, for different scripts, the summary used to summarize the marketing content in the script can all be "content marketing", and the content used to summarize the preferential policies in the script can all be "promotional discounts", and then the commonalities and differences between the scripts can be clearly and intuitively reflected through the summary, so that users can intuitively know the differences between the scripts by viewing the summaries of different scripts.

[0176] In some embodiments, the terminal can also highlight the script content corresponding to the summary. In response to the user's interactive operation on any summary of the script, the terminal highlights the text content in the script corresponding to the summary. Among them, the interactive operation includes but is not limited to trigger operation, cursor hover operation, etc. The display form of the highlighting includes but is not limited to bold display, highlight display, etc. By supporting the highlighting of the script content corresponding to the summary, the correlation between the summary and the script content can be further reflected. The user can quickly view the script content corresponding to the summary by interacting with the summary, which improves the efficiency of human-computer interaction.

[0177] Figure 7 FIG. 1 is a schematic diagram of a script according to an exemplary embodiment. Figure 7 As shown in FIG. 1 , the script generation page displays two scripts generated by the terminal and multiple summaries of each script. In response to the user's interactive operation on the summary "Promotional Offer" of script 2, the terminal highlights the text content 701 corresponding to the summary on the script generation page. Figure 7 As shown, the upper right corner of each script also displays the number of words and the estimated duration of the script. Optionally, the estimated duration is used to indicate the duration of the video generated according to the script.

[0178] In some embodiments, the terminal can also generate a video according to a script selected by the user. In response to the use of the script, the terminal can display a display material acquisition page. Figure 7 As shown, the operation of using the script can be a trigger operation of the control "Use Script". Among them, the material acquisition page is used to obtain multimedia materials, such as video materials, image materials, etc. The terminal can obtain the multimedia materials uploaded by the user on the material acquisition page based on the material acquisition page. Then, the terminal can edit the script and the acquired multimedia materials to obtain the video, thereby realizing the generation of the video according to the script. By generating the video according to the script used by the user and the multimedia materials uploaded by the user, the user does not need to manually edit the video according to the script, which simplifies the operation of the user using the script to generate the video and improves the efficiency of human-computer interaction.

[0179] Optionally, the material acquisition page can also display at least one parameter, such as screen size, resolution, frame rate, etc. The user can configure at least one parameter of the video to be generated on the material acquisition page through the terminal.

[0180] In some embodiments, when the terminal obtains multiple multimedia materials from the material acquisition page, the terminal can determine the start and end times of the multiple multimedia materials appearing in the video according to the script. Optionally, the terminal can determine the multimedia materials corresponding to the text paragraphs in the script according to the semantic features of the script and the content features of the multiple media materials, such as the image features of the picture and the image features of the video screen, and then determine the start and end times of the multimedia materials in the video. For example, if the first paragraph of the script describes the function of the product and the estimated duration of the first paragraph of the text is 10 seconds, the terminal can determine the start and end times of the multimedia materials used to introduce the product functions in the video from the 0th second to the 10th second. If the second paragraph of the script describes the preferential policy of the product and the estimated duration of the second paragraph of the text is 10 seconds, the terminal can determine the start and end times of the multimedia materials used to introduce the product price in the video from the 11th second to the 20th second. Then, the terminal edits the script and the multiple multimedia materials according to the start and end times of the multiple multimedia materials appearing in the video to obtain the video. Optionally, the terminal can also convert the script to audio during the video editing process to use the obtained audio as the soundtrack of the video. By automatically determining the start and end times of multimedia materials in the video according to the script, it can not only ensure that the video content is presented according to the plot and logic planned by the script, but also eliminate the need for users to manually determine the appearance period and order of multimedia materials, thereby simplifying the operation of generating videos and improving the efficiency of video generation while ensuring the accuracy of video generation.

[0181] In some embodiments, the script generation page also displays a script generation tutorial and a video generation tutorial. Figure 8 FIG. 1 is a schematic diagram of another script generating page according to an exemplary embodiment. Figure 8 As shown, the right area of ​​the script generation page displays the script generation tutorial and video generation tutorial in graphic format. By displaying the script generation tutorial and video generation tutorial, the user's understanding cost can be reduced, the time for the user to generate scripts and make videos through the terminal can be shortened, and the script generation efficiency and video generation efficiency can be improved.

[0182] The disclosed embodiment provides a script generation method, which can display a prompt information template during the script generation process, and support the user to fill in the prompt information template according to the script creation requirements to obtain prompt information, and then generate a script that meets the user's creation requirements according to the prompt information. In the above method, the user does not need to manually create the script or the prompt information, which simplifies the script generation operation, shortens the script creation time, and improves the efficiency of script generation.

[0183] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

[0184] Fig. 9 FIG. 1 is a block diagram of a script generating device according to an exemplary embodiment. Fig. 9 As shown, the device includes: a first display unit 901, a first generating unit 902 and a second generating unit 903.

[0185] The first display unit 901 is configured to display a prompt information template on the script generation page, wherein the prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension, and the prompt information template is used to generate prompt information that can prompt the content of the script to be generated;

[0186] The first display unit 901 is further configured to display the filled information in the slot in response to a filling operation on any slot;

[0187] A first generating unit 902 is configured to generate prompt information based on information filled in slots corresponding to each content dimension;

[0188] The second generating unit 902 is configured to generate a script based on the prompt information.

[0189] In some embodiments, the first display unit 901 is configured to respond to a triggering operation on an input box in a script generation page, and when the terminal object information includes pre-filled information of a first content dimension, fill the pre-filled information in a slot corresponding to the first content dimension in the prompt information template, where the first content dimension is any one of a plurality of content dimensions, and the input box is used to enter prompt information; and display the prompt information template with at least one slot filled on the script generation page.

[0190] In some embodiments, the first display unit 901 is configured to display multiple prompt information templates on the script generation page based on multiple content dimensions of the terminal object information, and the prompt information template includes at least one content dimension of the terminal object information; or, based on multiple content dimensions of historical scripts, display multiple prompt information templates on the script generation page, and the historical script is a script generated by the terminal, and the prompt information template includes at least one content dimension of the historical script; in response to a triggering operation on any prompt information template, the triggered prompt information template is displayed as a selected state.

[0191] In some embodiments, the first display unit 901 is configured to, in response to a trigger operation on any slot, display multiple recommended texts based on the content dimension corresponding to the slot, where the recommended texts are used to describe the script to be generated in the content dimension; in response to a trigger operation on any recommended text, the triggered recommended text is displayed in the slot.

[0192] In some embodiments, the first display unit 901 is configured to, in response to a filling operation on any slot, obtain information filled by the filling operation; and display the information filled by the filling operation in the slot.

[0193] In some embodiments, the first display unit 901 is configured to respond to a filling operation on any slot and, if there is historical text corresponding to the slot, display historical text, which is the text filled in the slot by this terminal; and respond to a triggering operation on the historical text to display the historical text in the slot.

[0194] In some embodiments, the first display unit 901 is further configured to display a plurality of recommended prompt information on the script generation page, the plurality of recommended prompt information including at least one of historical prompt information and predicted prompt information, the historical prompt information being prompt information used by the terminal in the process of generating scripts in the past, and the predicted prompt information being predicted based on the historical prompt information;

[0195] The second generating unit 903 is further configured to generate a script based on the selected recommendation prompt information in response to a selection operation on any recommendation prompt information.

[0196] In some embodiments, Fig.10 FIG. 1 is a block diagram of another script generating device according to an exemplary embodiment. Fig.10 As shown, the device also includes:

[0197] The second display unit 904 is configured to display the script and the summary of the script, where the summary is used to describe the brief content of the script.

[0198] In some embodiments, the second display unit 904 is further configured to highlight text content corresponding to the summary in the script in response to an interactive operation on the summary.

[0199] In some embodiments, the apparatus further comprises:

[0200] The editing unit 905 is configured to display a material acquisition page in response to a script usage operation, the material acquisition page being used to acquire multimedia materials; acquire multimedia materials based on the material acquisition page; and perform editing based on the script and the acquired multimedia materials to obtain a video.

[0201] In some embodiments, the editing unit 905 is configured to, when multiple multimedia materials are acquired, determine the start and end times of the multiple multimedia materials appearing in the video based on the script; based on the start and end times of the multiple multimedia materials appearing in the video, edit the script and the multiple multimedia materials to obtain the video.

[0202] The disclosed embodiment provides a script generation device, which can display a prompt information template during the script generation process, and support the user to fill in the prompt information template according to the script creation requirements to obtain prompt information, and then generate a script that meets the user's creation requirements according to the prompt information. In the above method, the user does not need to manually create the script or the prompt information, which simplifies the script generation operation, shortens the script creation time, and improves the efficiency of script generation.

[0203] It should be noted that the script generation device provided in the above embodiment is only illustrated by the division of the above functional units. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device is divided into different functional units to complete all or part of the functions described above. In addition, the script generation device provided in the above embodiment and the script generation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0204] Regarding the script generating device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0205] Fig.11 1 is a block diagram of an electronic device according to an exemplary embodiment. Generally, the electronic device 1100 includes: a processor 1101 and a memory 1102 .

[0206] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0207] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one program code, which is used to be executed by the processor 1101 to implement the script generation method provided in the method embodiment of the present disclosure.

[0208] In some embodiments, the electronic device 1100 may further optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102 and the peripheral device interface 1103 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1103 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107 and a power supply 1108.

[0209] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0210] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other electronic devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.

[0211] The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the display screen 1105. The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1105 can be one, and the front panel of the electronic device 1100 is set; in other embodiments, the display screen 1105 can be at least two, which are respectively set on different surfaces of the electronic device 1100 or are folded; in some other embodiments, the display screen 1105 can be a flexible display screen, which is set on the curved surface or folded surface of the electronic device 1100. Even, the display screen 1105 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0212] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the electronic device, and the rear camera is arranged on the back of the electronic device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0213] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the electronic device 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.

[0214] The power supply 1108 is used to power various components in the electronic device 1100. The power supply 1108 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0215] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the electronic device 1100, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0216] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1102 including instructions, and the instructions can be executed by a processor 1101 of an electronic device 1100 to complete the script generation method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0217] A computer program product includes a computer program, and when the computer program is executed by a processor, the script generation method is implemented.

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

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

Claims

1. A script generation method, characterized in that: The method comprises: Displaying a prompt information template on the script generation page, the prompt information template including multiple content dimensions of the script to be generated and slots corresponding to each content dimension, the prompt information template being used to generate prompt information capable of prompting the content of the script to be generated; In response to a filling operation on any slot, displaying filled information in the slot; Generate prompt information based on the information filled in the slots corresponding to the respective content dimensions; A script is generated based on the prompt information.

2. The script generation method according to claim 1, characterized in that: The prompt information template displayed on the script generation page includes: In response to a triggering operation on an input box in the script generation page, in a case where the terminal object information includes pre-filled information of a first content dimension, a slot corresponding to the first content dimension in the prompt information template is filled with the pre-filled information, the first content dimension being any content dimension of the multiple content dimensions, and the input box being used to input prompt information; The prompt information template with at least one slot filled is displayed on the script generation page.

3. The script generation method according to claim 1, characterized in that: The prompt information template displayed on the script generation page includes: Based on multiple content dimensions of the terminal object information, multiple prompt information templates are displayed on the script generation page, and the prompt information template includes at least one content dimension of the terminal object information; or based on multiple content dimensions of historical scripts, multiple prompt information templates are displayed on the script generation page, and the historical scripts are scripts generated by the terminal, and the prompt information template includes at least one content dimension of the historical scripts; In response to a triggering operation on any prompt information template, the triggered prompt information template is displayed as being in a selected state.

4. The script generation method according to claim 1, characterized in that: In response to a filling operation on any slot, displaying filled information in the slot includes: In response to a triggering operation on any slot, a plurality of recommended texts are displayed based on a content dimension corresponding to the slot, wherein the recommended texts are used to describe the script to be generated on the content dimension; In response to a triggering operation on any recommended text, the triggered recommended text is displayed in the slot.

5. The script generation method according to claim 1, characterized in that: In response to a filling operation on any slot, displaying filled information in the slot includes: In response to a filling operation on any slot, obtaining information filled by the filling operation; The information filled by the filling operation is displayed in the slot.

6. The script generation method according to claim 1, characterized in that: In response to a filling operation on any slot, displaying filled information in the slot includes: In response to a filling operation on any slot, if there is a historical text corresponding to the slot, display the historical text, the historical text being the text filled in the slot by the terminal; In response to a triggering operation on the historical text, the historical text is displayed in the slot.

7. The script generation method according to claim 1, characterized in that: The method further comprises: Displaying a plurality of recommended prompt information on the script generation page, the plurality of recommended prompt information including at least one of historical prompt information and predicted prompt information, the historical prompt information being prompt information that has been used by the terminal in the process of generating scripts in the past, and the predicted prompt information being predicted based on the historical prompt information; In response to a selection operation on any piece of recommended prompt information, a script is generated based on the selected recommended prompt information.

8. The script generation method according to claim 1, characterized in that: The method further comprises: The script and a summary of the script are displayed, where the summary is used to briefly describe the content of the script.

9. The script generation method according to claim 8, characterized in that: The method further comprises: In response to an interactive operation on the summary, text content corresponding to the summary in the script is highlighted.

10. The script generation method according to claim 1, characterized in that: The method further comprises: In response to the use operation of the script, a material acquisition page is displayed, wherein the material acquisition page is used to acquire multimedia materials; Based on the material acquisition page, acquire multimedia materials; The video is obtained by editing the script and the acquired multimedia material.

11. The script generation method according to claim 10, characterized in that: The step of editing the script and the acquired multimedia material to obtain a video includes: In the case where a plurality of multimedia materials are acquired, based on the script, respectively determining the start and end times at which the plurality of multimedia materials appear in the video; Based on the start and end times of the multiple multimedia materials appearing in the video, the script and the multiple multimedia materials are edited to obtain the video.

12. A script generating device, characterized in that: The device comprises: A first display unit is configured to display a prompt information template on a script generation page, wherein the prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension, and the prompt information template is used to generate prompt information that can prompt the content of the script to be generated; The first display unit is further configured to display filled information in any slot in response to a filling operation on the slot; A first generating unit is configured to generate prompt information based on the information filled in the slots corresponding to the respective content dimensions; The second generating unit is configured to generate a script based on the prompt information.

13. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the script generation method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the script generation method as described in any one of claims 1 to 11.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the script generation method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Text filling method and device

    CN110209769A

  • Multimedia content generation method and device, equipment and storage medium

    CN116701669A

  • Personalized content generation method and system

    CN117034199A

  • Work generation method and device, electronic equipment and storage medium

    CN117077627A

  • Text extraction method and device, electronic equipment and storage medium

    CN117251090A