Script generation methods, apparatus, devices and storage media

By displaying prompt information templates and filling in slot information on the script generation page, and using a large language model to generate scripts, the problem of low script generation efficiency in existing technologies is solved, and automated and efficient script generation is achieved.

CN119922390BActive Publication Date: 2026-03-06BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411896742.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2026-03-06
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In existing technologies, video script generation is inefficient, requiring users to manually create or edit scripts, resulting in excessive time consumption.

Method used

A script generation method is provided, which generates a script by displaying a prompt information template on the script generation page, including multiple content dimensions and slots, and generating the script after the user fills in the information. The script is automatically generated using a large language model.

Benefits of technology

It eliminates the need for users to manually create scripts and prompts, simplifying the process, improving script generation efficiency, and shortening creation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922390B_ABST
    Figure CN119922390B_ABST
Patent Text Reader

Abstract

This disclosure provides a script generation method, apparatus, device, and storage medium, belonging to the field of computer technology. The method includes: displaying a prompt information template on a script generation page; the prompt information template includes multiple content dimensions of the script to be generated and corresponding slots for each content dimension; the prompt information template is used to generate prompt information that can prompt the content of the script to be generated; responding to a fill operation on any slot, displaying fill information in the slot; generating prompt information based on the fill information in the slots corresponding to each content dimension; and generating the script based on the prompt information. Using this method to generate scripts eliminates the need for users to manually create scripts or manually input prompt information, simplifying the script generation process, shortening script creation time, and improving script generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a script generation method, apparatus, device, and storage medium. Background Technology

[0002] With the widespread use of video platforms, videos have gradually become an important way for people to obtain information. Among these, the script is the foundation of the video, determining its main content. Currently, video scripts are typically created manually by creators, such as by manually typing in the script or modifying existing script examples to create new ones. However, these methods usually require creators to spend a significant amount of time, resulting in low script generation efficiency. Therefore, how to efficiently generate scripts is a technical problem that needs to be solved. Summary of the Invention

[0003] This disclosure provides a script generation method, apparatus, device, and storage medium that eliminates the need for users to manually create scripts or input prompts during the script generation process, simplifying the process and improving efficiency. The technical solution of this disclosure is as follows:

[0004] According to one aspect of the embodiments of this disclosure, a script generation method is provided, comprising:

[0005] A prompt information template is displayed on the script generation page. The prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension. The prompt information template is used to generate prompt information that can prompt the content of the script to be generated.

[0006] In response to a fill operation on any slot, fill information is displayed in the slot;

[0007] Based on the information filled in the slots corresponding to each of the content dimensions, a prompt message is generated;

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

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

[0010] In response to a trigger operation on an input box in the script generation page, if the terminal object information includes pre-filled information of a first content dimension, the pre-filled information is filled into the slot corresponding to the first content dimension in the prompt information template. The first content dimension is any one of the multiple content dimensions, and the input box is used to input prompt information.

[0011] The script generation page displays a prompt message template indicating that at least one slot has been filled.

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

[0013] Based on multiple content dimensions of terminal object information, multiple prompt information templates are displayed on the script generation page, and the prompt information templates include 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 this terminal, and the prompt information templates include at least one content dimension of the historical scripts.

[0014] In response to a triggering action on any prompt message template, the triggered prompt message template will be displayed as selected.

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

[0016] In response to a trigger operation on any slot, multiple recommended texts are displayed based on the content dimension corresponding to the slot. The recommended texts are used to describe the script to be generated in 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, displaying filling information in the slot in response to a filling operation on any slot includes:

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

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

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

[0022] In response to a fill operation on any slot, if there is historical text corresponding to the slot, the historical text is displayed, wherein the historical text is text that has been filled in the slot by this terminal;

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

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

[0025] The script generation page displays multiple recommended prompts, including at least one of historical prompts and predicted prompts. The historical prompts are those used by this terminal in the past script generation process, and the predicted prompts are predicted based on the historical prompts.

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

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

[0028] The script and its summary are displayed, with the summary providing a brief description of the script's content.

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

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

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

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

[0033] Based on the aforementioned material acquisition page, multimedia materials are acquired;

[0034] Based on the script and the acquired multimedia materials, the video is edited to obtain the final product.

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

[0036] When multiple multimedia materials are obtained, the start and end times of the appearance of the multiple multimedia materials in the video are determined based on the script.

[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 the embodiments of this disclosure, a script generation apparatus is provided, comprising:

[0039] The first display unit is configured to display a prompt information template on the script generation page. The prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension. 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 also configured to display filling information in the slot in response to a filling operation of any slot;

[0041] The first generation unit is configured to generate prompt information based on the information filled in the slots corresponding to each content dimension.

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

[0043] In some embodiments, the first display unit is configured to, in response to a trigger operation on an input box in the script generation page, fill the pre-filled information in the slot corresponding to the first content dimension in the prompt information template when the terminal object information includes pre-filled information of a first content dimension, wherein the first content dimension is any one of the plurality of content dimensions, and the input box is used to input prompt information; and display the prompt information template with at least one slot filled in 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 terminal object information, wherein the prompt information templates include 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, wherein the historical scripts are scripts generated by this 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 selected.

[0045] In some embodiments, the first display unit is configured to, in response to a trigger operation on any slot, display a plurality of recommended texts based on the content dimension corresponding to the slot, wherein the recommended texts are used to describe the script to be generated in the content dimension; and 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 fill operation on any slot, acquire information filled by the fill operation and display the information filled by the fill operation in the slot.

[0047] In some embodiments, the first display unit is configured to, in response to a fill operation on any slot, display the historical text corresponding to the slot if such historical text exists, wherein the historical text is text that the terminal has filled in the slot; and to display the historical text in the slot in response to a trigger operation on the historical text.

[0048] In some embodiments, the first display unit is further configured to display multiple recommended prompts on the script generation page. The multiple recommended prompts include at least one of historical prompts and predicted prompts. The historical prompts are prompts used by the terminal in the historical script generation process, and the predicted prompts are predicted based on the historical prompts.

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

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

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

[0052] In some embodiments, the second display unit is further configured to highlight the 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 includes:

[0054] The editing unit is configured to display a media acquisition page in response to the use of the script, the media acquisition page being used to acquire multimedia media; acquire multimedia media based on the media acquisition page; and edit the multimedia media based on the script and the acquired multimedia media 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 appearance of the multiple multimedia materials 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 appearance of the multiple multimedia materials in the video to obtain the video.

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

[0057] One or more processors;

[0058] Memory used to store the executable program code of the processor;

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

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

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

[0062] This disclosure provides a script generation scheme that displays a prompt message template during the script generation process. Users can fill in the prompt message template according to their script creation needs to obtain the required prompt messages, and then generate a script that meets the user's creation requirements based on these prompt messages. This method eliminates the need for users to manually create either the script or the prompt messages, simplifying the script generation process, shortening the creation time, and improving the efficiency of script generation.

[0063] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0065] Figure 1 This is a schematic diagram illustrating the implementation environment of a script generation method according to an exemplary embodiment.

[0066] Figure 2 This is a flowchart illustrating a script generation method according to an exemplary embodiment.

[0067] Figure 3 This is a flowchart illustrating another script generation method according to an exemplary embodiment.

[0068] Figure 4 This is a schematic diagram illustrating a prompt message template according to an exemplary embodiment.

[0069] Figure 5 This is a schematic diagram illustrating a script-generated page according to an exemplary embodiment.

[0070] Figure 6 This is a schematic diagram illustrating a recommendation prompt message according to an exemplary embodiment.

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

[0072] Figure 8 This is a schematic diagram illustrating another script-generated page according to an exemplary embodiment.

[0073] Figure 9 This is a block diagram illustrating a script generation apparatus according to an exemplary embodiment.

[0074] Figure 10 This is a block diagram illustrating another script generation apparatus according to an exemplary embodiment.

[0075] Figure 11 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0076] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0077] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this 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 related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the prompt message templates and prompt messages involved in this disclosure were obtained with full authorization.

[0079] The script generation method provided in this disclosure can be executed by a terminal. Figure 1 This is a schematic diagram illustrating an implementation environment for a script generation method according to an exemplary embodiment. See also... Figure 1 The implementation environment specifically includes: terminal 101 and server 102. Terminal 101 can be connected to server 102 via wireless network or wired network.

[0080] Terminal 101 can be at least one of the following devices: smartphone, smartwatch, desktop computer, laptop, virtual reality terminal, augmented reality terminal, wireless terminal, and laptop computer. Terminal 101 has communication functions and can access wired or wireless networks. Terminal 101 can refer to one of multiple terminals, and those skilled in the art will understand that the number of such terminals can be more or less.

[0081] In some embodiments, terminal 101 has an application installed or running. The application can be any type of application with script generation capabilities, such as video applications, social applications, etc. Users can input prompts into the application through terminal 101 according to their actual script creation needs, so that the application can generate a script that meets the creation requirements based on the prompts. The prompts are used to indicate the content of the script to be generated. Server 102 is the backend server for terminal 101, used to provide backend services for terminal 101.

[0082] Server 102 can be a standalone physical server, a server cluster consisting of multiple physical servers, or a distributed file system. 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 communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0083] In some embodiments, server 102 and terminal 101 are directly or indirectly connected via wired or wireless communication, and this disclosure does not limit this. Optionally, the number of servers 102 may be more or less, and this disclosure does not limit this. Of course, server 102 may also include other functional servers to provide more comprehensive and diversified services. Server 102 undertakes the main computing work, and terminal 101 undertakes secondary computing work; or, server 102 undertakes secondary computing work, and terminal 101 undertakes the main computing work; or, server 102 or terminal 101 can each undertake computing work independently, and this disclosure does not limit this.

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

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

[0086] In this embodiment of the disclosure, the terminal has a target application installed or running. The target application can be any type of application with script generation functionality, such as a video application, search engine, social application, etc. The user can use the script generation service in the target application through the terminal. For example, in response to the 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 based on the prompt information, such as a recommendation information script, a game script, etc. The prompt information is used to indicate the content of the script to be generated. The recommendation information is used to recommend items. Accordingly, the recommendation information script can refer to a script created for photographing the items recommended in the recommendation information. The script generation page is also used to display the script generated based on the prompt information for the user to select and use.

[0087] In response to the input of prompt information on the script generation page, the terminal can display a prompt information template on the script generation page. This prompt information template is used to generate prompt information. The template includes multiple content dimensions of the script to be generated, facilitating the generation of scripts with these multiple content dimensions by a large language model. The template also includes slots for each content dimension, allowing users to fill in relevant information according to their needs. A slot is a reserved location or area in the prompt information template for filling in information. Users can fill in information corresponding to the content dimension in the slot. For example, in a prompt information template like "The script I want belongs to the () industry," () represents a slot. The content dimension corresponding to this slot is the industry dimension. Users can fill in industry information in this slot according to their needs.

[0088] The content dimension represents the content contained in the script. Different content dimensions describe the characteristics and elements of the script in different ways. For example, when the script to be generated is a recommendation script, the content dimensions include the industry dimension, name dimension, and feature dimension. The industry dimension describes the industry to which the product promoted by the recommendation script belongs. The name dimension describes the name of the product. The feature dimension describes the features of the product.

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

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

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

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

[0093] In this embodiment, the terminal can generate prompt information based on the prompt information template and the information filled in each slot of the prompt information template. The prompt information includes preset text in the prompt information template and information filled in by the user in each slot. The prompt information can prompt the generation of scripts based on the filled information across the aforementioned multiple content dimensions.

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

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

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

[0097] This disclosure provides a script generation method that displays a prompt message template during the script generation process. Users can fill in the prompt message template according to their script creation needs to obtain the required prompt messages, and then generate a script that meets the user's creation requirements based on these prompt messages. This method eliminates the need for users to manually create either the script or the prompt messages, simplifying the script generation process, shortening the creation time, and improving the efficiency of script generation.

[0098] In some embodiments, displaying a prompt message template on the script generation page includes:

[0099] In response to the trigger operation of the input box in the script generation page, if the terminal object information includes the pre-filled information of the first content dimension, the pre-filled information is filled in the slot corresponding to the first content dimension in the prompt information template. The first content dimension is any one of multiple content dimensions, and the input box is used to input the prompt information.

[0100] The script generation page displays a template indicating that at least one slot has been filled.

[0101] In this embodiment of the disclosure, by automatically filling some slots in the prompt information template according to the terminal object information, the number of slots that users need to fill manually 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, displaying a prompt message template on the script generation page includes:

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

[0104] In response to a triggering action on any prompt message template, the triggered prompt message template will be displayed as selected.

[0105] In this embodiment of the disclosure, by recommending multiple prompt message 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 message templates can also be made more in line with the user's script generation needs, thereby increasing the usage rate of prompt message templates, reducing the need for users to manually input prompt messages, and improving the efficiency of generating prompt messages.

[0106] In some embodiments, in response to a fill operation on any slot, displaying fill information in the slot includes:

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

[0108] In response to a trigger action on any recommended text, display the triggered recommended text in the slot.

[0109] In this embodiment of the disclosure, by displaying multiple recommended texts for the user to choose from while the user is filling in any slot, the user's time to conceive the information to fill in 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 fill operation on any slot, displaying fill information in the slot includes:

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

[0112] Display the information filled by the fill operation in the slot.

[0113] In this embodiment of the disclosure, by supporting users to manually fill in information in the slots, prompt information can be generated based on 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 fill operation on any slot, displaying fill information in the slot includes:

[0115] In response to a fill operation on any slot, if there is historical text corresponding to the slot, the historical text is displayed. The historical text is the text that this terminal has filled in the slot.

[0116] In response to a trigger action on the historical text, display the historical text in the slot.

[0117] In this embodiment of the disclosure, by displaying historical text for the user to select during the process of filling any slot, the user can directly reuse the previously filled text when the user's current script generation needs are the same as or similar to the historical script generation needs, without having to manually fill it again, thus simplifying the user's filling operation and further improving the efficiency of generating prompt information.

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

[0119] The script generation page displays multiple recommended prompts, including at least one of historical prompts and predicted prompts. Historical prompts are those that this terminal has used in the past script generation process, and predicted prompts are predicted based on historical prompts.

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

[0121] In this embodiment of the disclosure, by recommending multiple prompts to the user based on historical prompt information, the user can select the appropriate prompt according to their actual needs without having to manually fill in the prompt 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 includes:

[0123] Displays the script and a summary of the script, which provides a brief description of the script's content.

[0124] In this embodiment, by displaying the script and its summary, the summary visually represents the script's concise content, allowing users to quickly grasp the script's main points and improving the amount and efficiency of information acquisition. Furthermore, when multiple scripts are generated on the terminal, displaying summaries of all scripts visually reflects their differences and commonalities, enabling users to intuitively understand the concise content of each script and further improving information acquisition efficiency.

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

[0126] In response to interactive actions on the summary, highlight the text content in the script that corresponds to the summary.

[0127] In this embodiment of the disclosure, by supporting the highlighting of the script content corresponding to the summary, the correlation between the summary and the script content can be further demonstrated. Users can quickly view the script content corresponding to the summary by interacting with the summary, thus improving the efficiency of human-computer interaction.

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

[0129] In response to the use of the script, the media acquisition page is displayed. The media acquisition page is used to acquire multimedia media.

[0130] Obtain multimedia materials based on the material acquisition page;

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

[0132] In this embodiment of the disclosure, a video is generated based on a script used by the user and multimedia materials uploaded by the user. This eliminates the need for the user to manually edit the video according to the script, simplifying the user's operation of generating video using a script and improving the efficiency of human-computer interaction.

[0133] In some embodiments, video is obtained by editing based on a script and acquired multimedia materials, including:

[0134] Given multiple multimedia materials, the start and end times of each multimedia material appearing in the video are determined based on the script.

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

[0136] In this embodiment of the disclosure, by automatically determining the start and end times of multimedia materials in the video according to the script, it is possible not only to ensure that the video content is presented according to the plot and logic planned by the script, but also to eliminate the need for users to manually determine the time period and order of multimedia materials, thus simplifying the video generation process and improving the efficiency of video generation while ensuring the accuracy of video generation.

[0137] The above Figure 2 The diagram illustrates the flow of a script generation method according to this disclosure. The script generation scheme provided in this disclosure will be further elaborated below. Figure 3 This is a flowchart illustrating another script generation method according to an exemplary embodiment, which is executed by a terminal. See also... Figure 3 The method includes:

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

[0139] In this embodiment, the script generation page is used to input prompts and display the script generated based on those prompts. When the terminal generates the script using a large language model, the script generation page can be a conversation page between the user and the large language model. After the user sends a prompt in the conversation page, the terminal can display the script generated by the large language model as a reply message, thus presenting a visual effect of the user engaging in dialogue with the large language model.

[0140] Optionally, the script generation page typically includes an input box for the user to enter prompt information. In response to the user's triggering action 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 above the input box; this embodiment of the present disclosure does not impose limitations on this. The prompt information template is used to generate prompt information that guides the large language model to generate the script. The prompt information template typically includes multiple content dimensions of the script to be generated and slots for each content dimension, so that the large language model can generate a script including the aforementioned multiple content dimensions.

[0141] For example, if the script to be generated is a recommendation script for promoting a product, the prompt template could be: "The script I want belongs to the () industry, the product name is (), and the product features are ()." This prompt template includes industry, name, and feature dimensions. The parentheses in the prompt template represent the slots to be filled for each content dimension.

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

[0143] For example, if the first content dimension is the industry dimension and the main product dimension, and the terminal object information includes pre-filled industry information, the terminal can fill this pre-filled information into the corresponding slot in the industry dimension. The completed prompt message template could be: "The script I want belongs to the (beauty) industry, the product name is (XX face cream), and the product features are ()." The "product features" slot can be filled in by the user according to their actual needs, such as "easy to use" or "high cost-performance ratio."

[0144] Figure 4 This is a schematic diagram illustrating a prompt message template according to an exemplary embodiment. For example... Figure 4 As shown, the input box 401 on the script generation page displays a prompt message template. This prompt message template includes one filled slot and two slots to be filled.

[0145] In some embodiments, the terminal can also display multiple prompt message templates on the script generation page for the user to choose from. The process of displaying multiple prompt message templates on the terminal is explained below using the following two examples.

[0146] Scenario 1: The terminal displays multiple prompt message templates on the script generation page based on multiple content dimensions of the terminal object information. In response to a user's trigger action on an input box, the terminal obtains the terminal object information and determines multiple content dimensions of the terminal object information, such as industry and product dimensions, based on the pre-filled information contained within it. Then, the terminal determines multiple prompt message templates from a template library based on these multiple content dimensions and displays them on the script generation page. The template library includes multiple preset prompt message templates. The prompt message templates determined by the terminal from the template library include at least one content dimension of the terminal object information. By determining and displaying prompt message templates based on the terminal object information, the recommended prompt message templates can be made to include at least one content dimension of the terminal object information. Since the content dimensions of the terminal object information can reflect the user's script generation needs to a certain extent, recommending prompt message templates in this way ensures that the recommended prompt message templates closely match the user's script generation needs, improving the accuracy of the recommended prompt message templates and the user's script generation experience.

[0147] In some embodiments, the terminal can first determine a prompt message template including the aforementioned multiple content dimensions from a template library based on multiple content dimensions of the terminal object information. If no prompt message template including the aforementioned multiple content dimensions exists, the terminal can determine a prompt message template including at least one content dimension from the template library. In other words, the terminal can determine prompt message templates containing as many content dimensions as possible from the template library. By recommending prompt message templates containing as many content dimensions as possible, the probability that the prompt message template matches the user's script generation needs can be increased, thereby further improving the accuracy of the recommended prompt message templates.

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

[0149] Scenario 2: The terminal displays multiple prompt message templates on the script generation page based on multiple content dimensions of historical scripts. In response to a trigger operation on the input box, the terminal retrieves historical scripts. These historical scripts are scripts generated by the terminal itself. For example, a historical script might be a script generated by the terminal on the script generation page using a large language model. Then, the terminal determines multiple prompt message templates from the template library based on the content dimensions of the historical scripts and displays these templates on the script generation page. Each prompt message template includes at least one content dimension of the historical script. The process of determining the prompt message templates based on the content dimensions of the historical scripts is the same as in the above scenario and will not be repeated here. Since historical scripts can reflect the current user's script generation needs to some extent, recommending prompt message templates in this way ensures that the recommended templates closely match the user's script generation needs, thus improving the accuracy of the recommended prompt message templates.

[0150] In some embodiments, the terminal can determine multiple content dimensions of the prompt information corresponding to the historical script as multiple content dimensions of the historical script. Specifically, when the prompt information corresponding to the historical script is obtained by filling in a prompt information template, the multiple content dimensions of the prompt information template are the multiple content dimensions of the prompt information. When the prompt information corresponding to the historical script is user-inputted, the terminal can obtain the multiple content dimensions of the prompt information through semantic analysis.

[0151] It should be noted that while the terminal can determine multiple prompt message templates based on multiple content dimensions of the terminal object information, it can also determine multiple prompt message templates based on multiple content dimensions of the historical script. This embodiment of the disclosure does not impose any limitations on this.

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

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

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

[0155] In this embodiment of the disclosure, in response to a user's 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 entered by the user, or it can be any information selected by the user from multiple recommended information displayed on the terminal; this embodiment of the disclosure does not impose any limitations on this. The recommended information refers to 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 the user to choose from on the script generation page. In response to a user's triggering action on any slot in the prompt information template, the terminal displays multiple recommended texts based on the content dimension corresponding to that slot. The recommended texts describe the script to be generated within that content dimension. For example, if the content dimension is an industry dimension, the recommended texts would be multiple recommended industries. If the content dimension is a feature dimension, the recommended texts would be multiple recommended product features. In response to a user's triggering action on any recommended text, the terminal displays the triggered recommended text in the slot, thereby filling the slot with the recommended text. By displaying multiple recommended texts for the user to choose from while filling any slot, the time spent by the user to devise the information to fill in is saved, and the filling operation is simplified, thereby further improving the efficiency of generating prompt information.

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

[0158] In some embodiments, the terminal can also display multiple historical texts for the user to select. In response to a user's filling operation on any slot in the prompt information template, if historical text corresponding to that slot exists, the terminal displays the historical text. The historical text is text that the terminal has filled in the slot. The historical text can be previously filled recommended text, or text previously entered by the user; this embodiment does not impose any limitations on this. In response to a trigger operation on the historical text, the terminal displays the historical text in the slot, thereby filling the slot with the historical text. By displaying historical text for the user to select during the process of filling any slot, when the user's current script generation needs are the same as or similar to previous script generation needs, the user can directly reuse previously filled text without having to manually fill it again, simplifying the user's filling operation and further improving the efficiency of generating prompt information.

[0159] Optionally, when a slot corresponds to multiple historical texts, the terminal can display all the historical texts corresponding to the slot, or display the N historical texts that have been filled the most recently (N times). This embodiment of the present disclosure does not impose any limitations on this. Here, N is a positive integer, such as 3, 4, or 5.

[0160] In some embodiments, the terminal can also fill in user-inputted information in the slots. In response to a user's filling operation on any slot in the prompt information template, the terminal obtains the information filled in. The filling operation includes information input and information selection. Information input operations include, but are not limited to, text input and voice input. Information selection operations can be trigger operations for recommended information, such as triggering the aforementioned recommended text or triggering the aforementioned historical text. Then, the terminal displays the information filled in the slot. By supporting users to manually fill in information in the slots, prompt information can be generated based on 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 trigger operation on any slot, if there is historical text corresponding to that slot, the terminal can simultaneously display the historical text and multiple recommended texts for the user to choose from. Figure 5 This is a schematic diagram illustrating a script-generated page according to an exemplary embodiment. For example... Figure 5 As shown, in response to a user's triggering operation on slot 501, the terminal displays multiple recommended texts 502 and multiple historical texts 503 on the script generation page. The user can fill the slot with the triggered text by triggering any of the recommended texts or any of the historical texts.

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

[0163] In this embodiment of the disclosure, when all slots in the prompt message template are filled, the terminal can generate prompt messages based on the prompt message template and the information filled in each slot. In some embodiments, when all slots in the prompt message template are filled, the terminal can switch the sending control displayed on the script generation page from an untriggerable state to a triggerable state. The user can control the terminal to generate prompt messages by triggering the sending control.

[0164] Optionally, if there are unfilled slots in the prompt message template, the terminal displays a grayed-out send control on the script generation page; this send control is not triggerable. If all slots in the prompt message template are filled, the terminal displays a send control of a preset color on the script generation page; this send control is triggerable. In response to the user's triggering of the send control, the terminal concatenates the preset text in the prompt message template with the information filled by the user in each slot, based on the position of each slot in the prompt message template, to obtain the prompt message. For example, the prompt message generated by the terminal could be "The script I want belongs to the beauty industry, the product name is XX face cream, and the product feature is that it's easy to use." By displaying a triggerable send control when all slots in the prompt message template are filled, the generation of prompt messages when the prompt message template is not fully filled can be avoided, thus ensuring the integrity of the prompt message.

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

[0166] In this embodiment of the disclosure, after the terminal generates a prompt message, the terminal can input the prompt message into a large language model, so that the large language model can generate a corresponding script based on the prompt message. Optionally, the large language model can generate at least one script based on the prompt message. The large language model can be an artificial intelligence model built based on deep learning technology, designed to understand and generate human language; this embodiment of the disclosure does not limit this.

[0167] The above embodiments mainly describe the process by which a terminal generates a script based on prompt information obtained from a populated prompt information template. In some embodiments, the terminal can directly display multiple recommended prompt information on the script generation page and generate a script based on the recommended prompt information selected by the user. The multiple recommended prompt information displayed by the terminal includes at least one of historical prompt information and predicted prompt information. Historical prompt information refers to prompt information used by the terminal in previous script generation processes. When the terminal generates a script through a large language model, historical prompt information refers to prompt information that the terminal has input into the large language model. For example, historical prompt information includes prompt information that the terminal has input into the large language model M times recently. Here, M is a positive integer, such as 3, 4, or 5. Alternatively, historical prompt information includes prompt information that the terminal has input into the large language model within the last day. Predicted prompt information is predicted based on historical prompt information. For example, if historical prompt information is used to guide the large language model to generate the script for episode 1 and episode 2 of a TV series, predicted prompt information based on historical prompt information can be used to guide the large language model to generate the script for episode 3. Optionally, predicted prompt information can be predicted by the large language model based on historical prompt information. For example, the terminal can input historical prompts and scripts generated based on those prompts into a large language model. The large language model then predicts the subsequent storyline based on the input information and generates predicted prompts accordingly, ensuring that the script generated from these predicted prompts accurately reflects the storyline. In response to a user's selection of any recommended prompt, the terminal can generate a script based on the selected prompt. By recommending multiple prompts to the user based on historical prompts, users can choose the appropriate prompt based on their needs, eliminating the need for manual completion of prompt templates. This further simplifies the prompt generation process and improves script generation efficiency.

[0168] In some embodiments, the terminal can determine historical prompts based on the periodic publishing plan entered by the currently logged-in user account and predict recommended prompts based on the historical prompts. The periodic publishing plan refers to the user account's content publishing plan, such as the update plan for a video collection. The periodic publishing plan indicates the frequency of content publishing for the user account. For example, the periodic publishing plan indicates updating 3 episodes of video per week. In response to the user's triggering operation on the input box in the script generation page, the terminal can determine the current publishing cycle based on the current time and the user's periodic publishing plan. Then, the terminal obtains historical prompts within the current publishing cycle. These historical prompts can be prompts corresponding to videos updated this week. The prompts corresponding to videos refer to the prompts that the terminal uses to guide a large language model to generate a script, and then uses that script to generate the video to be updated. The terminal then inputs the aforementioned historical prompts and the script generated based on the historical prompts into the large language model to generate predicted prompts.

[0169] In some embodiments, the terminal can also fill a portion of the slots in the prompt message template based on the acquired terminal object information, and predict the information to be filled in the other portion of the slots, thereby obtaining the predicted prompt message. Then, the terminal displays the predicted prompt message as recommended prompt message on the script generation page. For example, Figure 6 This is a schematic diagram illustrating a recommendation prompt message according to an exemplary embodiment. For example... Figure 6 As shown, the script generation page displays four recommendation prompts. The industry dimension in these prompts is the beauty industry, which can be obtained by reading pre-filled information from the terminal object information. Other content dimensions in the recommendation prompts, such as product features, can be predicted based on at least one of the following: terminal object information, historical scripts, or historical prompt information.

[0170] It should be noted that if the terminal's recommended prompt template or the prompt message does not meet the user's actual needs, the user can also manually enter the prompt message in the input box via the terminal. In response to the user's triggering of the send control, the terminal can generate at least one script based on the user's input prompt message.

[0171] In step 305, the terminal displays the script and a summary of the script, which briefly describes the content of the script.

[0172] In this embodiment of the disclosure, after the terminal generates a script, it can display the script and a summary of the script on the script generation page. The script summary describes a brief summary of at least one section of text within the script. A script typically includes at least one summary. Optionally, when multiple scripts are generated, the terminal can also display multiple scripts and a summary of each script on the script generation page. By displaying the script and its summary, the summary visually represents the brief content of the script, allowing users to grasp the main content of the script simply by viewing the summary, thus improving the amount of information obtained and the efficiency of information retrieval. Furthermore, when the terminal generates multiple scripts, displaying summaries of multiple scripts visually represents the differences and commonalities between different scripts, facilitating users' intuitive understanding of the brief content of different scripts and improving the efficiency of information retrieval.

[0173] For example, when the script is a recommendation script, the script summary could be "Product Features" or "Promotional Offers." Here, "Product Features" refers to at least one section of text in the script describing the features of the promoted product. "Promotional Offers" refers to at least one section of text in the script introducing the product's promotional strategies.

[0174] In some embodiments, the terminal can extract summaries from the script using 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 summarization on the script, extracting key information and core points from the script, and then generating multiple short, accurate text fragments that summarize the content of the script, i.e., multiple summaries. Extracting summaries from the script using the above method can obtain script summaries more accurately and quickly, improving the efficiency and accuracy of script summary generation.

[0175] Optionally, the large language model can determine multiple preset summaries matching the key information and core points extracted from the script from a summary library, thus obtaining multiple summaries of the script. By determining the script summaries from the summary library, the content and format of the summaries can be standardized, thereby ensuring greater consistency between summaries of different scripts. 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 discount strategy in the script can all be "promotional discounts." Thus, the summaries can clearly and intuitively reflect the commonalities and differences between scripts, allowing users to intuitively understand the differences between 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 a user's interactive operation on any summary of the script, the terminal highlights the text content in the script corresponding to the summary. Interactive operations include, but are not limited to, trigger operations and cursor hover operations. The highlighting display format includes, but is not limited to, bolding and highlighting. By supporting the highlighting of the script content corresponding to the summary, the correlation between the summary and the script content can be further demonstrated. Users can quickly view the script content corresponding to the summary by interacting with it, improving human-computer interaction efficiency.

[0177] Figure 7 This is a schematic diagram illustrating a script according to an exemplary embodiment. For example... Figure 7 As shown, the script generation page displays two scripts generated by the terminal and multiple summaries for each script. In response to the user's interaction with the summary "Promotional Offer" for script 2, the terminal highlights the corresponding text content 701 on the script generation page. Additionally, as... Figure 7 As shown, the upper right corner of each script also displays the script's word count and estimated duration. Optionally, the estimated duration indicates the length of the video generated based on the script.

[0178] In some embodiments, the terminal can also generate video based on a script selected by the user. In response to the use of the script, the terminal can display a material acquisition page. As described above. Figure 7 As shown, the operation of using scripts can be a trigger operation for the "Use Script" control. The material acquisition page is used to acquire multimedia materials, such as video and image materials. The terminal can acquire multimedia materials uploaded by the user on the material acquisition page. Then, the terminal can edit the multimedia materials according to the script to obtain a video, thus realizing video generation based on the script. By generating videos based on the user's script and uploaded multimedia materials, the user is no longer required to manually edit the video according to the script, simplifying the process of generating videos using scripts and improving human-computer interaction efficiency.

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

[0180] In some embodiments, when the terminal obtains multiple multimedia materials from a material acquisition page, the terminal can determine the start and end times of each multimedia material appearing in the video based on the script. Optionally, the terminal can determine the multimedia materials corresponding to the text segments in the script based on the semantic features of the script and the content features of the multiple media materials, such as the image features of images and the image features of video frames, 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 product's functions and the estimated duration of the first paragraph is 10 seconds, the terminal can determine that the multimedia materials used to introduce the product's functions appear in the video from second 0 to second 10. If the second paragraph of the script describes the product's promotional strategy and the estimated duration of the second paragraph is 10 seconds, the terminal can determine that the multimedia materials used to introduce the product's price appear in the video from second 11 to second 20. Then, the terminal edits the script and the multiple multimedia materials according to the start and end times of their appearance 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 background music for the video. By automatically determining the start and end times of multimedia materials in the video based on the script, it not only ensures that the video content is presented according to the plot and logic planned by the script, but also eliminates the need for users to manually determine the timing and order of multimedia materials, simplifying the video generation process and improving the efficiency of video generation while ensuring the accuracy of video generation.

[0181] In some embodiments, the script generation page also displays script generation tutorials and video generation tutorials. Figure 8 This is a schematic diagram illustrating another script-generated page according to an exemplary embodiment. For example... Figure 8 As shown, the right-hand area of ​​the script generation page displays script generation tutorials in both text and image formats, as well as video generation tutorials. Displaying these tutorials reduces the user's learning curve, shortens the time spent generating scripts and creating videos on the terminal, and improves both script and video generation efficiency.

[0182] This disclosure provides a script generation method that displays a prompt message template during the script generation process. Users can fill in the prompt message template according to their script creation needs to obtain the required prompt messages, and then generate a script that meets the user's creation requirements based on these prompt messages. This method eliminates the need for users to manually create either the script or the prompt messages, simplifying the script generation process, shortening the creation time, and improving the efficiency of script generation.

[0183] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.

[0184] Figure 9 This is a block diagram illustrating a script generation apparatus according to an exemplary embodiment. Figure 9 As shown, the device includes: a first display unit 901, a first generation unit 902, and a second generation unit 903.

[0185] The first display unit 901 is configured to display a prompt information template on the script generation page. The prompt information template includes multiple content dimensions of the script to be generated and slots corresponding to each content dimension. 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 also configured to display filling information in the slot in response to a filling operation on any slot;

[0187] The first generation unit 902 is configured to generate prompt information based on the information filled in the slots corresponding to each content dimension.

[0188] The second generation 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, in response to a trigger operation on an input box in the script generation page, fill the pre-filled information in the slot corresponding to the first content dimension in the prompt information template when the terminal object information includes pre-filled information of the first content dimension, wherein the first content dimension is any one of multiple content dimensions, and the input box is used to input prompt information; and display the prompt information template on the script generation page that has been filled with at least one slot.

[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 terminal object information, wherein the prompt information templates include at least one content dimension of the terminal object information; or, based on multiple content dimensions of historical scripts, to display multiple prompt information templates on the script generation page, wherein the historical scripts are scripts generated by this 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 selected.

[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, wherein the recommended texts are used to describe the script to be generated in the content dimension; and in response to a trigger operation on any recommended text, display the triggered recommended text in the slot.

[0192] In some embodiments, the first display unit 901 is configured to, in response to a filling operation on any slot, acquire 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, in response to a filling operation of any slot, display historical text if there is historical text corresponding to the slot, wherein the historical text is text that has been filled in the slot by the terminal; and to display historical text in the slot in response to a triggering operation of the historical text.

[0194] In some embodiments, the first display unit 901 is further configured to display multiple recommended prompts on the script generation page. The multiple recommended prompts include at least one of historical prompts and predicted prompts. The historical prompts are prompts used by the terminal in the historical script generation process, and the predicted prompts are predicted based on the historical prompts.

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

[0196] In some embodiments, Figure 10 This is a block diagram illustrating another script generation apparatus according to an exemplary embodiment. Figure 10 As shown, the device also includes:

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

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

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

[0200] Editing unit 905 is configured to display a media acquisition page in response to script usage operations. The media acquisition page is used to acquire multimedia media. Based on the media acquisition page, multimedia media is acquired. Based on the script and the acquired multimedia media, the video is edited to obtain the 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 appearance of the multiple multimedia materials 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 appearance of the multiple multimedia materials in the video to obtain the video.

[0202] This disclosure provides a script generation device that displays a prompt information template during the script generation process. Users can fill in the prompt information template according to their script creation needs to obtain the prompt information, and then generate a script that meets the user's creation requirements based on the prompt information. In this method, neither manual script creation nor manual prompt information creation by the user is required, simplifying the script generation process, shortening the script creation time, and improving the efficiency of script generation.

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

[0204] Regarding the script generation device in the above embodiments, the specific methods by which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0205] Figure 11 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Typically, the electronic device 1100 includes a processor 1101 and a memory 1102.

[0206] Processor 1101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1101 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1101 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1101 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to handle computational 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 high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1102 are used to store at least one program code, which is executed by the processor 1101 to implement the script generation method provided in the method embodiments of this disclosure.

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

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

[0210] The radio frequency (RF) circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF 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, etc. The RF circuit 1104 can communicate with other electronic devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1104 may also include circuitry related to NFC (Near Field Communication), which is not limited in this disclosure.

[0211] Display screen 1105 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1105 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1101 for processing. In this case, display screen 1105 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1105, which serves as the front panel of electronic device 1100; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of electronic device 1100 or in a folded design; in still other embodiments, display screen 1105 may be a flexible display screen, disposed on a curved or folded surface of electronic device 1100. Furthermore, display screen 1105 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular 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 acquire images or videos. Optionally, the camera assembly 1106 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the electronic device, and the rear-facing camera is located on the back of the electronic device. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-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, converting the sound waves into electrical signals that are input to the processor 1101 for processing, or input to the radio frequency circuit 1104 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the electronic device 1100. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1107 may also include a headphone jack.

[0214] Power supply 1108 is used to supply power to the various components in electronic device 1100. Power supply 1108 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When 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 Figure 11 The structure shown does not constitute a limitation on the electronic device 1100, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

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

[0217] A computer program product includes a computer program that, when executed by a processor, implements the above-described script generation method.

[0218] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0219] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A script generation method characterized by, The method comprises: displaying a prompt information template on a script generation page, the prompt information template comprising a plurality of content dimensions of a script to be generated and a plurality of slots corresponding to the content dimensions, the prompt information template being used to generate prompt information capable of guiding a large language model to generate the script; in response to a filling operation on any slot, displaying the filled information in the slot; generating prompt information based on the information filled in the slots corresponding to the content dimensions; generating a script based on the prompt information; the script generation page displays a prompt information template, comprising: determining a prompt information template comprising a plurality of content dimensions from a template library based on a plurality of content dimensions of terminal object information or a plurality of content dimensions of historical scripts; or, in the absence of a prompt information template comprising the plurality of content dimensions, determining a prompt information template comprising at least one content dimension from the template library; after determining a plurality of prompt information templates from the template library, displaying the plurality of prompt information templates on the script generation page; the template library comprises a plurality of preset prompt information templates; the historical scripts are scripts generated by the terminal; in response to a triggering operation on any prompt information template, displaying the triggered prompt information template in a selected state.

2. The script generation method according to claim 1, characterized by, the script generation page displays a prompt information template, comprising: in response to a triggering operation on an input box in the script generation page, in the case that the terminal object information comprises pre-written information of a first content dimension, filling the pre-written information in the slot corresponding to the first content dimension in the prompt information template, the first content dimension being any content dimension in the plurality of content dimensions, the input box being used to input prompt information; the script generation page displays the prompt information template with at least one slot filled.

3. The script generation method according to claim 1, characterized by, in response to a filling operation on any slot, displaying the filled information in the slot, comprising: in response to a triggering operation on any slot, displaying a plurality of recommended texts based on the content dimension corresponding to the slot, the recommended texts being used to describe the script to be generated on the content dimension; in response to a triggering operation on any recommended text, displaying the triggered recommended text in the slot.

4. The script generation method according to claim 1, characterized by, in response to a filling operation on any slot, displaying the filled information in the slot, comprising: in response to a filling operation on any slot, obtaining the information filled by the filling operation; displaying the information filled by the filling operation in the slot.

5. The script generation method according to claim 1, characterized by, in response to a filling operation on any slot, displaying the filled information in the slot, comprising: in response to a filling operation on any slot, displaying the historical text in the case that the historical text corresponding to the slot exists, the historical text being a text filled by the terminal in the slot; in response to a triggering operation on the historical text, displaying the historical text in the slot.

6. The script generation method according to claim 1, characterized by, the method further comprises: The script generation page displays a plurality of recommended prompt information, 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 a historical script generation process, and the predicted prompt information being predicted based on the historical prompt information; In response to a selection operation on any recommended prompt information, a script is generated based on the selected recommended prompt information.

7. The script generation method according to claim 1, characterized by, The method further includes: displaying the script and an abstract of the script, the abstract being used to describe a brief content of the script.

8. The script generation method according to claim 7, characterized by, The method further includes: In response to an interaction operation on the abstract, text content in the script corresponding to the abstract is highlighted.

9. The script generation method according to claim 1, characterized by, The method further includes: In response to a use operation on the script, a material acquisition page is displayed, the material acquisition page being used to acquire multimedia materials; Based on the material acquisition page, multimedia materials are acquired; Based on the script and the acquired multimedia materials, a video is edited.

10. The script generation method according to claim 9, characterized by, The editing of the video based on the script and the acquired multimedia materials includes: In a case where a plurality of multimedia materials are acquired, based on the script, start and end time points at which the plurality of multimedia materials appear in the video are determined respectively; Based on the start and end time points at which the plurality of multimedia materials appear in the video, the script and the plurality of multimedia materials are edited to obtain the video.

11. A script generation apparatus characterized by comprising: The apparatus includes: A first display unit configured to display a prompt information template on a script generation page, the prompt information template including a plurality of content dimensions of a script to be generated and a slot corresponding to each content dimension, the prompt information template being used to generate prompt information capable of guiding a large language model to generate a script; The first display unit is further configured to, in response to a filling operation on any slot, display filled information in the slot; A first generation unit configured to generate prompt information based on the information filled in the slot corresponding to each content dimension; A second generation unit configured to generate a script based on the prompt information; The first display unit is configured to determine a prompt information template including a plurality of content dimensions from a template library based on a plurality of content dimensions of a terminal object information or a plurality of content dimensions of a historical script, or, in a case where there is no prompt information template including the plurality of content dimensions, determine a prompt information template including at least one content dimension from the template library; after determining a plurality of prompt information templates from the template library, display the plurality of prompt information templates on the script generation page; the template library includes a plurality of preset prompt information templates; the historical script is a script generated by the terminal; in response to a triggering operation on any prompt information template, display the triggered prompt information template in a selected state.

12. An electronic device, comprising: The electronic device includes: 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 of any one of claims 1 to 10.

13. A computer readable storage medium characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the script generation method according to any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the script generation method according to any one of claims 1 to 10.

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