Media content generation method, apparatus, device, storage medium, and program product
By creating and configuring image containers within the interface to generate media content, the problem of low generation efficiency in existing technologies is solved, achieving efficient and personalized media content generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2026-05-29
- Publication Date
- 2026-07-03
Smart Images

Figure CN122332018A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a media content generation method, apparatus, device, storage medium, and program product. Background Technology
[0002] Media content is a file composed of multiple image pages, such as PowerPoint and PDF files. Users can sequentially display specific content by switching between the image pages within the media content. Media content is a commonly used file format. Currently, based on the capabilities of image-based models, multiple frames of images can be generated continuously, thereby achieving the goal of generating media content.
[0003] However, in related technologies, media content generated based on raw image models can only generate and adjust individual images by adjusting input prompts and media materials, resulting in low efficiency in media content generation. Summary of the Invention
[0004] A method, apparatus, device, storage medium, and program product for generating media content, to overcome the problem of low efficiency in generating media content.
[0005] Firstly, a method for generating media content is provided, including:
[0006] Obtain demand data, which includes prompts and / or media materials; based on the demand data, create a first container within a first interface, wherein the first container includes at least two image containers for holding images, and the arrangement order of the at least two image containers and the images are associated with the demand data; configure the first container, and generate media content based on the configuration result of the first container.
[0007] Secondly, a media content generation device is provided, comprising:
[0008] The input module is used to acquire demand data, which includes prompts and / or media materials;
[0009] The processing module is used to create a first container within a first interface based on the demand data. The first container includes at least two image containers, which are used to hold images. The order of the at least two image containers and the images are associated with the demand data.
[0010] The configuration module configures the first container and generates media content based on the configuration results of the first container.
[0011] Thirdly, an electronic device is provided, comprising: a processor and a memory;
[0012] The memory stores computer-executed instructions;
[0013] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the media content generation method as described in the first aspect and various possible designs of the first aspect.
[0014] Fourthly, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the media content generation method described in the first aspect and various possible designs of the first aspect is implemented.
[0015] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the media content generation method as described in the first aspect and various possible designs of the first aspect.
[0016] A possible media content generation method, apparatus, device, storage medium, and program product involves: acquiring demand data, including prompts and / or media materials; creating a first container within a first interface based on the demand data, wherein the first container includes at least two image containers for holding images, the arrangement order of the at least two image containers and the images being associated with the demand data; configuring the first container; and generating media content based on the configuration result of the first container. By converting user-input demand data into a first container within a first interface, and based on the orderly arranged image containers within the first container, the layout and display of images in the media content are realized. Furthermore, based on the configuration result of the first container, media content is generated, realizing a complete processing flow of media content demand import, content editing, and media content generation. In this process, the first container enables personalized configuration of media content, allowing the generated media content to better meet user needs, improve media content generation efficiency, and ensure logical consistency and visual uniformity of the media content's page layout, thereby improving the quality of generated media content. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a diagram illustrating an application scenario of a possible media content generation method.
[0019] Figure 2A flowchart illustrating a possible method for generating media content. Figure 1 ;
[0020] Figure 3 A schematic diagram of a possible first container within a first interface;
[0021] Figure 4 This is a schematic diagram illustrating one possible adjustment to the layout of the image container within the first container;
[0022] Figure 5 A schematic diagram illustrating one possible configuration process for the first container;
[0023] Figure 6 This is a schematic diagram of a possible manuscript outline;
[0024] Figure 7 This is a schematic diagram of a possible process for obtaining a second container;
[0025] Figure 8 A schematic diagram illustrating the process of configuring components for another possible container;
[0026] Figure 9 A flowchart illustrating a possible media content generation method. Figure 2 ;
[0027] Figure 10 A flowchart illustrating one possible implementation of step S203;
[0028] Figure 11 This is a schematic diagram of a possible interactive process for generating reference information;
[0029] Figure 12 A structural block diagram of a possible media content generation device;
[0030] Figure 13 A schematic diagram of the structure of a possible electronic device;
[0031] Figure 14 This is a schematic diagram of the hardware structure of a possible electronic device. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0033] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0035] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0036] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0038] The application scenarios of the embodiments are explained below:
[0039] A possible media content generation method can be applied to applications (APPs) with media content generation capabilities, such as AI assistant applications, image generation applications, and video generation programs. More specifically, it can be applied to application scenarios that generate media content using AI technology. The executing entity of this embodiment can be a terminal device running the aforementioned application with media content generation capabilities, a server deploying the server-side component corresponding to the aforementioned application, or other electronic devices performing similar functions. Specifically, when the executing entity is a terminal device, the terminal device executes the method provided in this embodiment by running the aforementioned application; when the executing entity is a server, the server-side component of the aforementioned application with media content generation capabilities can run partially or entirely on the server, executing the method provided in this embodiment on the server side, while the terminal device runs the client-side component of the application. Communication between the server and the terminal device is based on server-client communication, enabling the terminal device to obtain the execution result of the method provided in this embodiment and display it as needed.
[0040] In some embodiments, the terminal device or server can implement a possible media content generation method by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be program-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be local applications, i.e., programs that need to be installed in the operating system to run; or they can be applets embedded in any app, i.e., programs that run in a browser environment. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin; the specific implementation can be configured as needed. Furthermore, in implementing a possible media content generation method, the terminal device can execute the method by running locally configured computer-executable instructions or computer programs, or by calling computer-executable instructions or computer programs configured on an external server. In some embodiments, the server may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud storage, cloud communication, cloud database, cloud computing, cloud functions, network services, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms. Among these, cloud services may be interactive processing services that can be invoked by terminal devices.
[0041] Figure 1 This is a diagram illustrating an application scenario of a possible media content generation method. (Reference) Figure 1 As shown in the diagram, taking a terminal device as an example, the terminal device runs a target application with media content (such as presentation documents) generation capabilities. The user inputs required data through the application's interface, such as prompts entered through an information input box (e.g., Text_1 in the diagram), resource links, and media materials like images and documents (e.g., images P1 and P2 in the diagram). Then, the user selects the skill module for generating the presentation document (e.g., skill_1 in the diagram) and clicks the "Generate" button. The skill module then calls an agent to parse and process the media materials, and subsequently calls a raw image model to generate multiple images and automatically combine them, ultimately generating a presentation document (e.g., PPT_1 in the diagram). The user can then perform operations such as saving and previewing the media content.
[0042] Media content (such as presentation documents) is a common file format consisting of multiple image pages, such as PowerPoint and PDF files. Users can sequentially display specific content by switching between the image pages in the media content. Currently, based on the capabilities of raw image models, multiple frames of images can be generated continuously to achieve the purpose of generating media content. However, in related technologies, media content generated based on raw image models can only be adjusted by users by modifying input prompts and media materials, or by relying on manual operation by the user to complete the layout design and formatting after the media content is generated, resulting in low efficiency in media content generation.
[0043] The above problems can be solved by a media content generation method.
[0044] refer to Figure 2 , Figure 2 A flowchart illustrating a possible method for generating media content. Figure 1 The above method can be applied to terminal devices or servers. In one possible implementation, for a terminal device executing the method, the terminal device can implement the media content generation method by executing program code deployed locally and / or externally. In another possible implementation, a server can be used to deploy functional services based on a possible media content generation method, and the terminal device can implement the media content generation method by accessing the server and calling the corresponding functional services. For example, a possible media content generation method includes:
[0045] Step S101: Obtain requirement data, which includes prompts and / or media materials.
[0046] Step S102: Based on the demand data, create a first container within the first interface, wherein the first container includes at least two image containers, which are used to hold images.
[0047] Step S103: Configure the first container and generate media content based on the configuration result of the first container.
[0048] refer to Figure 1 The illustrated application scenario diagram illustrates one possible implementation method for media content generation, using a terminal device as the execution subject. For example, the terminal device runs a target application, which provides media content generation functionality to the user. The user triggers this media content generation function (e.g., presentation document generation) through the target application's interface, and then uploads requirement data from the interface. Specifically, the user first opens the target application on the terminal device and clicks the "Generate Media Content" button on the main interface to trigger the media content generation function. At this point, the terminal device displays a requirement input interface, which includes a text input box and an "Upload Materials" button. The user can provide requirement data in two ways: first, by directly entering natural language prompts in the text input box, such as "Generate a PPT about the second quarter's activities, approximately 10 pages, including a cover, table of contents, core data, and summary"; second, by clicking the "Upload Materials" button, selecting media material files from local storage, and simultaneously adding supplementary descriptions of the requirements in the text input box. The terminal device receives the user's input prompts and uploaded media material files, and encapsulates them into requirement data. Understandably, demand data can refer to any information provided by users to guide the generation of media content, including user-described generation requirements (i.e., prompts) in natural language, and various media materials used to provide content or style references. More specifically, media materials include images, such as JPG and PNG format images; documents, such as PDF, DOCX, PPTX, and XLSX format documents; access links, such as web URLs, online document links, and video links used to access online resources; and videos, such as MP3 and MP4 format audio and video files.
[0049] Next, for example, an agent is invoked to process the aforementioned requirement data, and a first container associated with this requirement data is created on the first interface. This first interface is a user-friendly interface for adding containers, essentially a canvas. The first container is the overall container used to organize and manage multiple media content pages; it can be added, deleted, and edited within the first interface. The first container contains multiple image containers (Frames), each corresponding to a page in the media content. Each page includes at least one image. The image containers are automatically arranged, for example, in the order they were generated, with the top left aligned to indicate the playback order of the images in the media content. The first container is an interactive control that can be configured in response to user interactions, thereby adjusting the content within it, such as the order of the image containers, the content within them, etc. The arrangement and images of at least two image containers within the first container are associated with the requirement data. Finally, based on the adjusted information in the first container, the rendering engine is invoked to generate the media content.
[0050] One possible media content generation method involves converting user-input request data into a first container within a first interface. Based on the ordered image containers within this first container, the method displays the images in the media content. Then, based on the configuration of the first container, it generates the media content, realizing a complete processing flow from request import to content editing and media content generation. In this process, the first container enables personalized configuration of the media content, allowing the generated content to better meet user needs, improving generation efficiency, and ensuring logical consistency and visual uniformity in the page layout, thereby enhancing the quality of the generated media content.
[0051] Furthermore, in one possible implementation, the image container contains at least one element layer, which is used to carry the image content or text content corresponding to the image. Specifically, the element layer is an independent layer within the image container used to carry specific types of content. Different layers can be edited and managed independently, and the stacking order between layers determines the display level of the content. An image refers to the complete content of each page in the generated media content, presented in image form, and is composed of the superimposed content of all element layers within the image container. For example, in one possible implementation, each image container adopts a layered structure design, containing at least two independent element layers. Different layers are superimposed to form a complete image. When the terminal device creates the first container, it automatically creates a corresponding number of image containers based on the number of pages of the generated media content. Each image container automatically creates at least two element layers upon initialization. For example, this includes a default background layer and a content layer, where the background layer is at the bottom layer and the content layer is at the top layer. The content layer is used to carry images, icons, text, and other content. Further, if more types of content need to be carried, the terminal device automatically creates multiple element layers, such as image layers and chart layers. Different content layers can be located at the same level or at different levels. The terminal device assigns a unique identifier to each layer to record the layer's content, position, size, and display status.
[0052] Figure 3 This is a schematic diagram of a possible first container within a first interface, such as... Figure 3 As shown, the terminal device creates a first container S1 within the first interface. The first container S1 contains image containers F1, F2...Fn, each image container corresponding to one page (image) of media content. Each image container includes at least two element layers. For example, image container F1 includes element layers lay_0, lay_1, and lay_2. Element layer lay_0 is the background layer, located at the bottom layer, and is used to display image P0; element layer lay_1 is used to display text T1, and element layer lay_2 is used to display image P1.
[0053] In the above implementation, the hierarchical structure design of the image container enables refined management of the media content page content. Users can adjust different elements such as background, text, and images individually, improving the flexibility and accuracy of editing, while also facilitating batch modification and adjustment of the page content in the future.
[0054] In one possible implementation, after creating the first container within the first interface, the user can configure the first container through an interactive interface. The specific methods for configuring the first container include:
[0055] Step S103A: In response to the first operation, adjust the position of the first container within the first interface and / or the outline shape of the first container.
[0056] For example, the first operation refers to the user's operation of adjusting the position or shape of the first container. The outline shape refers to the shape of the outer frame of the first container displayed on the first interface, such as a rectangle, whose shape is determined by two parameters: width and height. The terminal device detects the user's operation on the first interface in real time, and when it detects the first operation on the first container, it executes the corresponding adjustment action. The user can drag the title bar or blank area of the first container with the mouse to move the first container to any position on the first interface; or the user can move the mouse pointer to the border or corner of the first container, and when the pointer changes to a double-headed arrow, hold down the left mouse button and drag to adjust the width and height of the first container, thus changing its outline shape. In specific implementation, the terminal device may respond to the first operation by capturing mouse events on the first interface, and then adjust the position and outline shape of the first container within the first interface by calling the control interface corresponding to the first container. The specific implementation method will not be elaborated further.
[0057] In the above implementation, by responding to the first operation, the user can freely adjust the position and size of the first container, so that the first container can adapt to different canvas layouts and display requirements, thereby improving the space utilization of the first interface and the user's operational convenience.
[0058] Step S103B: In response to a change in the outline shape of the first container, adjust the layout of the image containers within the first container.
[0059] For example, when a user adjusts the outline of the first container, causing its width or height to change, the terminal device automatically recalculates the arrangement of the image containers within the first container, adjusting the size and spacing of the image containers to ensure all image containers are fully displayed within the first container and maintain a neat layout. For instance, when the user drags the border of the first container to increase its width, the previously single-column image containers automatically become double-column, with each container's size appropriately reduced and spacing maintained. When the user reduces the width of the first container, the double-column arrangement automatically reverts to a single-column arrangement, with each container's size appropriately increased. In specific implementation, the terminal device obtains the width and height parameters of the first container within the first interface in real time. When a change in these parameters is detected, the layout recalculation logic is triggered. For example, based on the current width of the first container and the preset minimum width of the image containers, the number of image containers that can be arranged in each row is calculated; then, based on the total number of image containers and the number of rows, the required number of rows is calculated; finally, based on the height of the first container and the number of rows, the height and row spacing of each image container are calculated, updating the layout of all image containers within the first container.
[0060] Figure 4 This is a schematic diagram illustrating one possible adjustment to the layout of the image container within the first container, such as... Figure 4 As shown, the first container contains four image containers. The initial width of the first container is 800 pixels, and the (minimum) width of each image container is 300 pixels. At this point, only two image containers can be arranged in each row. Subsequently, in response to the user's drag operation, the width of the first container is expanded. When the width of the first container is expanded to 1300 pixels, the terminal device recalculates that four image containers can be arranged in each row, and automatically changes the arrangement of the image containers from 2 columns (2x2 layout) to 4 columns (1x4 layout). Optionally, the spacing between each image container is reduced to adapt to the new layout.
[0061] In the above implementation, by automatically adjusting the layout of the image containers, it is ensured that no matter how the size of the first container changes, all image containers can be displayed completely and neatly inside the first container, without requiring the user to manually adjust the position of each image container, thus improving the efficiency of layout adjustment.
[0062] The two methods of configuring the first container mentioned above can be executed sequentially or individually, depending on the specific requirements.
[0063] Furthermore, in one possible implementation, the layout of the image containers within the first container is associated with the switching method between adjacent images in the media content. That is, when the terminal device responds to the first operation and adjusts the outline shape of the first container, the layout of the image containers within the first container changes accordingly. Simultaneously, this change in the layout of the image containers within the first container affects the switching method between adjacent images in the media content. For example, when the image containers are arranged horizontally within the first container, the default switching method for adjacent images in the media content is horizontal sliding; when the image containers are arranged vertically, the default switching method is vertical sliding; and when the image containers are arranged in a grid, the default switching method is fade-in / fade-out. Users can also manually modify the switching method as needed, without being restricted by the layout. By associating the layout of the image containers with the switching method of the media content, automatic adaptation of the switching method is achieved, making the switching effect more coordinated with the page arrangement, improving the playback experience of the media content, and reducing the need for users to manually set the switching method.
[0064] Accordingly, in one possible implementation, step S103 specifically includes:
[0065] Step S1031: Based on the layout of the image containers within the first container, obtain the first parameter, which is used to characterize the switching method between images in the media content.
[0066] Step S1032: Generate media content based on the first parameter, the arrangement order of the image containers, and the images within the image containers.
[0067] For example, to generate media content, the terminal device first reads the layout information of the image containers within the first container, such as the arrangement direction, number of columns, and number of rows. Then, based on the preset correspondence between the layout and the switching method, it generates a first parameter. Next, according to the arrangement order of the image containers within the first container, it sequentially reads the image content within each image container, and combines this with the switching method specified by the first parameter to package all images and switching animations into a complete media content file. Further, in one possible implementation, the media content is generated in PPTX format. The terminal device reads that the image containers are arranged horizontally in a single row and generates the first parameter "Switching method: Horizontal sliding". Then, according to the arrangement order from left to right, it sequentially reads the images within 10 image containers, inserts each image into the corresponding page of the PPTX file, and sets a horizontal sliding switching animation for each page, ultimately generating a PPTX file containing 10 pages of content. In another possible implementation, PDF format media content is generated. The terminal device reads that the image containers are arranged in a grid and generates the first parameter "Switching method: Fade in / Fade out". Since the PDF format does not support animated transitions, the terminal device ignores the transition method parameter and reads the images in the image container in order from left to right and top to bottom, and arranges them in order to generate a PDF file.
[0068] By automatically extracting layout information to generate switching mode parameters and combining the arrangement order and content of image containers to generate media content, one-click generation of media content is achieved, eliminating the need for users to manually insert pages and set animations, thus effectively improving the efficiency of media content generation.
[0069] Furthermore, in another possible implementation, the specific way to configure the first container includes:
[0070] Step S103C: Generate a first image within the first interface; in response to moving the first image within the first interface into the first container, generate a new image container within the image container, or generate a new element layer within the first image container.
[0071] For example, the first image refers to an image generated or uploaded separately by the user within the first interface, located outside the first container (not belonging to any first container). Subsequently, the user can move the first image from the first interface into the first container by dragging it. The terminal device automatically selects to generate a new image container within the first container or a new element layer within an existing image container, based on the size and content of the first image. More specifically, for example, the user generates a product image in a blank area of the first interface and then drags this image into the first container. If the image is dragged to a blank area between two image containers, the terminal device will insert a new image container at that location, using the product image as its content; if the image is dragged into the interior of an existing image container, the terminal device will generate a new element layer within that image container and add the product image to that element layer.
[0072] Figure 5 A schematic diagram of a possible configuration process for the first container, such as Figure 5 As shown, after the user generates a table image sh_1 in the blank area of the canvas control through file loading, network download, manual drawing, or AI generation, in one possible scenario, the user can drag the table image sh_1 to the blank space between the third page image container (i.e., image container F3) and the fourth page image container (i.e., image container F4) within the first container by operating the first interface. The terminal device detects that the target position is a gap between image containers and automatically inserts a new image container (i.e., image container F5) between the third and fourth pages, using the table image sh_1 as the content of this image container, while automatically adjusting the arrangement order of subsequent image containers. Afterwards, the user generates a logo image P1 in the blank area of the canvas and drags it to the upper right corner of the first page image container (i.e., image container F1) within the first container. The terminal device detects that the target position is inside an existing image container and automatically generates a new element layer within the cover image container, adds the logo image to this element layer, and positions it in the upper right corner, without affecting the original background and text layers.
[0073] Furthermore, in one possible implementation, the image container also serves to hold a document file and / or document text. The document file, for example, describes the content of the image, and the document text describes the corresponding presentation content. For instance, each image container can not only hold a visual image but also be associated with corresponding document text, such as the presentation content or notes for that page. Further, the document text is bound and stored with the image container. During media content playback, it can be displayed in the notes area of the speaker mode or exported as a separate presentation file. The document text can be automatically generated or manually generated. In one possible implementation, the user manually enters the document text. For example, the user clicks on the image container on page 5 and enters in the input box of the right-hand properties panel, "Next, let's look at the user growth data. The total number of users reached 5 million this quarter, a 20% increase quarter-on-quarter, with new users accounting for 30%." The terminal device binds and stores this text with the image container on page 5. In another possible implementation, the terminal device automatically generates the script text. For example, when generating media content, the user selects the "Automatically generate speech text" option. The terminal device then calls a large language model to automatically generate the corresponding script text based on the image content and context information within each image container, filling the script text field of each image container. The user can then modify and adjust this text later. Subsequently, for media content associated with the corresponding script text, this script text will be displayed when played in speaker mode. By binding the script text to image containers, integrated management of media content and speech content is achieved, eliminating the need for users to prepare separate speech scripts and improving the convenience and fluency of presentations.
[0074] Furthermore, in one possible implementation, before creating the first container within the first interface based on the demand data, the following is also included:
[0075] Step S102A: Display the document outline, which includes at least one of the following: the number of image containers, the topic corresponding to the image containers, and the content summary corresponding to the image containers.
[0076] For example, after parsing the user's request data, in one possible implementation, the terminal device will first generate a text outline of the media content and display it, for instance, in the left panel of the first interface, for the user to preview and confirm. The user can view the outline content to confirm whether it meets their needs. If there are any unsatisfactory parts, they can directly modify them in the outline panel before generating the complete first container and image. Figure 6 Here is a possible draft outline diagram, such as Figure 6As shown, after the user uploads and submits their requirements data (by clicking the "Send" button), the terminal device jumps from the first interactive interface used for inputting the requirements data to the second interactive interface, where a document outline panel is displayed. Specifically, for example, the outline panel is displayed within the dialog controls on the right side of the second interactive interface. The outline panel lists the structure of the media content to be generated, including core information such as the total number of pages, page ratio, output language, and theme, as well as content control information such as information density, the theme of each page, and a content summary—in other words, the document outline. The user can click on the theme of a page to modify it, drag pages to adjust their order, or add or delete pages. After confirming that everything is correct, the user clicks the "Generate PPT" button, and the terminal device generates the corresponding first container and images based on the modified outline.
[0077] Furthermore, in one possible implementation, the first interface includes a canvas control and a dialog control; in another possible case, the first container includes a first container, and after the first container is created, it also includes:
[0078] Step S104: In response to the second operation, a reference identifier is generated in the dialog control. The reference identifier includes a first reference identifier or a second reference identifier. The first reference identifier is used to modify the first container, and the second reference identifier is used to modify the first image in the first container. The second operation is used to select the first container or the first image from the canvas control.
[0079] Step S105: Obtain natural language instructions through the dialog control, and obtain the second container based on the natural language instructions and the reference identifier.
[0080] For example, steps S104-S105 involve modifying the content of the generated first container by referencing the first container or the first image within the first container in the dialog control, thus obtaining the second container. Specifically, the first interface is divided into two areas: a canvas control and a dialog control. The canvas control is used to display and edit the first container and its content, while the dialog control is used for natural language interaction between the user and the agent. The user can select the first container or the first image from the canvas control through a second operation, and the terminal device will generate a corresponding reference identifier within the dialog control. Then, the user inputs a natural language modification command in the dialog control, and the terminal device combines the reference identifier and the command content to generate the modified first container, i.e., the second container. It should be noted that after obtaining the second container in the above process, the original first container can be retained or replaced and deleted, depending on the needs. Through the above container referencing function, it is possible to perform batch modifications on the entire first container or partial modifications on a single image. Specifically, in one possible implementation, the user references the entire first container for batch modifications. For example, a user selects the first container and clicks the "Reference to Dialogue" button. The dialogue input box displays "[First Container: Q2 Marketing Campaign Report]". The user enters "Change the font of all pages to Microsoft YaHei, and increase the title font size by 2". After sending, the terminal device iterates through all image containers within the first container, changes the font of the text layer in each image container to Microsoft YaHei, and changes the title font size from 24 to 28, generating the modified second container. In another possible implementation, the user, for example, references a single image for partial modification. The user selects the image on page 5 in the first container and clicks the "Reference to Dialogue" button. The dialogue input box displays "[Image: Page 5 User Growth Data]". The user enters "Change the background of this page to light blue and add a logo in the lower right corner". After sending, the terminal device only modifies the background layer (one element layer) and the added logo layer (another element layer) of the page 5 image container, leaving other pages unchanged, resulting in the second container.
[0081] Figure 7 A schematic diagram of a possible process for obtaining a second container, such as... Figure 7 As shown, the canvas control includes a first container S1. The user selects the entire first container S1 (the first container) within the canvas control and then clicks the "Refer to Dialog" button. A first reference identifier is generated within the dialog control, displayed as "[First Container S1]". The user enters "Change the style of this PPT to a tech style, using blue and white colors" in the dialog control and then sends it. The terminal device locates the corresponding first container based on the reference identifier and modifies the style and color scheme of all pages within the first container S1 according to the instructions, thus obtaining the second container, such as the first container S2 shown in the figure.
[0082] Or, in another possible implementation ( Figure 7 (Not shown in the image) The user selects the image in image container F3 (page 3) within the first container, clicks the "Reference to Dialogue" button, and generates a second reference identifier "[Image: Page 3 Competitive Analysis]". Then, the user enters "Change the bar chart on this page to a line chart". The terminal device only modifies the content within image container F3, completing the modification of the first container to obtain the second container. Afterwards, based on the second container, corresponding media content (i.e., presentations) can be generated, achieving content control and batch generation of media content.
[0083] In the above implementation, the linkage between canvas content and dialogue interaction is realized through reference tags. Users can intuitively modify media content in batches or in parts through natural language without having to manually edit page by page, which effectively improves modification efficiency and lowers the operation threshold.
[0084] In another possible scenario, it also includes:
[0085] Step S106: In response to the third operation, display the container configuration component in the dialog control. The container configuration component is used to display the first container parameters of the first container, or the second container parameters of the image container in the first container.
[0086] Step S107: In response to the fourth operation, configure the container configuration component and obtain the second container based on the configuration result of the container configuration component.
[0087] For example, in steps S106-S107, a container configuration component is displayed within the dialog control. This component then displays the first container parameters of the first container and the second container parameters of the image container within the first container. The user then configures these first and second container parameters to complete the configuration process of the container configuration component. Next, based on the configured container configuration component (containing the first and second container parameters), the generated first container is modified to obtain the second container. Specifically, the third operation refers to the user triggering the display of the container configuration component, and the fourth operation refers to the user modifying the parameters within the container configuration component. The container configuration component is a visual parameter configuration interface displayed within the dialog control. The user can modify the parameters of the first container or the image container by clicking options, entering values, etc. The terminal device obtains the second container based on the modified parameters. Similarly, after obtaining the second container, the original first container can be retained or deleted, depending on the needs.
[0088] In one possible implementation, only the parameters of the first container are configured. Specifically, the user selects the first container, clicks the "Configure" button, and a container configuration component is displayed in the dialog box. The user changes the "Page Ratio" option from "16:9" to "4:3" in the component and then clicks "Apply." The terminal device adjusts the size of all image containers within the first container to a 4:3 ratio (responding to the fourth operation), thus obtaining the second container. In another possible implementation, the user configures the parameters of the second image container. For example, the user selects the second page image container in the first container, clicks the "Configure" button, and an image container configuration component is displayed in the dialog box. The user changes the "Background Style" from "Solid Color" to "Gradient" and the "Transition Method" from "Inherit Global" to "Rotate" in the component, and then clicks "Apply." The terminal device only modifies the background and transition method of the second page image container, leaving other pages unchanged, thus obtaining the second container.
[0089] Figure 8 A diagram illustrating the process of configuring components for another possible container, such as... Figure 8 As shown, for example, the user selects the first container S1 (first container) in the canvas control and then clicks the "Configure" button. The dialog control will then display the container configuration component. The component displays the parameters of the first container, including media content name, page ratio, transition method, global font, global color scheme, etc. The user can modify these parameters in the component, for example, changing the page ratio from 16:9 to 4:3, or changing the transition method from horizontal sliding to fade-in / fade-out. After modification, clicking the "Apply" button will allow the terminal device to obtain the second container based on the new parameters. The user can also select a single image container, click the "Configure" button, and display the second container parameters of the image container, such as page background, font style, transition method, etc., for individual configuration.
[0090] In the above implementation, a visual container configuration component provides users with an intuitive and convenient way to modify parameters. Users can quickly adjust the global or local attributes of media content without having to describe complex parameter requirements in natural language, thus improving the accuracy and efficiency of modification.
[0091] Furthermore, after generating the aforementioned media content, it may also include:
[0092] Step S108: In response to the fifth operation for the first container, display the media content and / or the text corresponding to the media content in the first interface.
[0093] Step S109: In response to the sixth operation for the first container, share the media content to the network platform.
[0094] For example, the fifth operation refers to the user triggering the media content preview, and the sixth operation refers to the user triggering the media content sharing. The user can preview the playback effect of the media content on the first interface through the fifth operation, while simultaneously viewing the corresponding text; the user can share the generated media content to internal / external network platforms, such as social networking platforms, through the sixth operation.
[0095] On one hand, in response to the fifth operation on the first container, the "Preview" button is triggered, and the terminal device then enters the speaker preview interface. The left side displays the media content (the currently playing image), the right side displays the corresponding text for that image page, and the top displays the playback time and the total number of pages. Users can click the "Next Page" button to switch to the next image page, and the text on the right side updates synchronously.
[0096] On the other hand, the first container, for example, is equipped with a "Share" button. In response to the sixth action on the "Share" button, the terminal device uploads the media content file to the cloud server, for example, generating a shareable link valid for N days and displaying it in the dialog box. Afterwards, the user can copy or select the link and send it to the corresponding online platform. Users on the online platform can then view the media content online via the link. This implementation provides convenient preview and sharing functions. Users can immediately view the playback effect after generating the media content to confirm whether it meets their requirements, and can quickly share the media content with others, improving collaboration efficiency.
[0097] The media content generation method disclosed above first acquires user demand data, including prompts and / or media materials; then, based on the demand data, a first container is created within a first interface. This first container contains multiple sequentially arranged image containers, each holding a corresponding image. Finally, users are allowed to configure the first container through various methods such as adjusting its position and outline, dragging and dropping to add content, natural language interaction, and visual configuration, and media content is generated based on the configuration results. Through the unified management mechanism of the first container, batch editing and style consistency of media content are achieved. It also supports automatic integration of multi-source materials, document outline preview, speaker mode, and other functions, effectively improving the efficiency of media content generation and modification, lowering the user's operational threshold, and ensuring the quality and consistency of media content.
[0098] refer to Figure 9 , Figure 9 A flowchart illustrating a possible media content generation method. Figure 2 The aforementioned possible methods for generating media content are... Figure 2 Based on the illustrated embodiment, step S102 is further refined, and the media content generation method includes:
[0099] Step S201: Obtain requirement data, which includes prompts and / or media materials.
[0100] Step S202: Analyze the demand data to obtain the demand semantic features, which represent the content generation requirements of media content.
[0101] Step S203: Based on the semantic features of the requirements, generate a document outline and corresponding image containers.
[0102] Step S204: Create the first container based on the document outline and the corresponding image container.
[0103] Step S205: Configure the first container and generate media content based on the configuration result of the first container.
[0104] For example, after obtaining user demand data, the terminal device first parses the demand data, extracts semantic information, and generates demand semantic features. Then, based on the demand semantic features, it generates a text outline of the media content and a corresponding image container structure. Next, based on the text outline and image containers, it creates a complete first container. Finally, it allows the user to configure the first container and generates the final media content. In one possible implementation, the terminal device parses plain text prompts. For example, the user inputs the prompt "Generate a 12-page PPT on the development trends of artificial intelligence, including an introduction, current technology status, application scenarios, and future prospects." The terminal device calls a natural language processing model to parse the prompt, extracting the demand semantic features: "The theme is the development trends of artificial intelligence, with 12 pages, and the structure is divided into four chapters: introduction, current technology status, application scenarios, and future prospects." Then, based on these features, it generates a text outline containing 12 pages, with each chapter allocated 3 pages of content, and creates corresponding 12 image containers. In another possible implementation, the terminal device parses demand data containing media materials. The required data includes a user-uploaded PDF file, and is processed based on the user's input prompt: "Generate a PPT based on this report, focusing on market size and technological breakthroughs, approximately 8 pages." The terminal device first calls the multimodal parsing module to extract text, tables, and images from the PDF. Then, it performs semantic analysis based on the prompt to generate the required semantic features: "Content source: uploaded industry report; key content: market size and technological breakthroughs; 8 pages." Based on these features, relevant content is extracted from the report, generating an 8-page outline and creating corresponding 8 image containers.
[0105] The above implementation method, by performing semantic parsing on the demand data, accurately understands the user's generation requirements and can generate a well-structured manuscript outline with content that meets the requirements, thereby improving the accuracy of the subsequently generated media content.
[0106] Furthermore, in one possible implementation, such as Figure 10 As shown, the specific implementation of step S203 includes:
[0107] Step S2031: Based on the semantic features of the demand, generate structured content, which includes the text chapters of the media content and the topics corresponding to the text chapters.
[0108] Step S2032: Generate a document outline based on the structured content.
[0109] Step S2033: Based on the manuscript outline, obtain chapter images that match the chapters of the manuscript.
[0110] Step S2034: Generate the corresponding image container based on the chapter image.
[0111] For example, the terminal device first divides the media content into multiple logical chapters based on the semantic features of the demand, determines the theme of each chapter, and generates structured content. Then, based on the structured content, it generates a detailed document outline, clarifying the theme and key points of each page. Next, based on the document outline, it calls a raw image model to generate images corresponding to each chapter. Finally, it creates a corresponding image container for each image and fills the image into the image container.
[0112] The following describes the above steps using a more specific embodiment. For example, in the scenario of generating product introduction media content, the terminal device parses the demand data, obtaining the following semantic features: theme "New Product X Launch," 10 pages, structure including cover, product overview, functional highlights, technical parameters, pricing information, and a summary (6 chapters). Then, the terminal device first generates structured content: Chapter 1 "Cover," theme "New Product X Launch"; Chapter 2 "Product Overview," theme "Product Positioning and Core Value"; Chapter 3 "Functional Highlights," theme "Introduction to Three Core Functions"; Chapter 4 "Technical Parameters," theme "Hardware and Software Parameters"; Chapter 5 "Pricing Information," theme "Version and Price"; Chapter 6 "Summary," theme "Product Advantages and Outlook." Next, a 10-page outline is generated based on the structured content, with 3 pages allocated to the functional highlights chapter, 2 pages to the technical parameters chapter, and 1 page for each of the other chapters. Then, according to the theme of each page in the outline, a raw image model is used to generate corresponding images P1 to P10. Finally, an image container is created for each of the 10 images, and the images are filled into it, completing the creation of the image containers.
[0113] Furthermore, in one possible implementation, after step S202 and before step S203, the following is also included:
[0114] Step S202A: Display at least one query question and at least two candidate answers corresponding to the query question, wherein the query question is used to characterize a content feature of the media content.
[0115] Step S202B: In response to the seventh operation, select a first candidate answer for the first query question from at least one query question to generate reference information. The reference information is used to characterize a first feature description of the first content feature corresponding to the first query question. The reference information is associated with the content in the first container.
[0116] In one possible implementation, the query questions are displayed when the demand confidence level is less than a threshold. Demand confidence level represents the predictive credibility of the generated demand corresponding to the media content. For example, after parsing the demand data, the terminal device calculates the demand confidence level to measure the degree of understanding of the user's needs. If the demand confidence level is less than a preset threshold, it indicates that the user's needs are relatively vague and there is missing information. The terminal device then displays a series of query questions and candidate answers to guide the user to supplement the information. After the user selects a candidate answer, the terminal device generates reference information and combines this information to generate a more suitable outline and media content that meets the user's needs. Figure 11 This is a schematic diagram of a possible interactive process for generating reference information, such as... Figure 11 As shown, the user inputs the prompt "Generate a product sales PPT," indicating a somewhat vague requirement. The terminal device calculates the requirement confidence level to be 60%, which is less than the preset threshold of 80%. Therefore, it displays a question card in the dialog control, containing three questions: "What is the target audience for the media content?", with corresponding candidate answers including: Category A users, Category B users, and Category C users; "How many pages are needed?", with corresponding candidate answers including: 5-8 pages, 9-15 pages, and more than 15 pages; "What is your style preference?", with corresponding candidate answers including: minimalist business, tech-style, and lively creative. The user selects "Category A users," "9-15 pages," and "minimalist business" in sequence, and then clicks the "Confirm" button. The terminal device generates reference information based on the user's selection and then generates the corresponding media content.
[0117] Accordingly, the specific implementation of step S203 includes:
[0118] Step S203A: Based on the reference information and semantic features of the requirements, generate a document outline and corresponding image containers.
[0119] For example, the terminal device integrates the user-provided reference information with the previously parsed semantic features of the requirements to obtain a more complete and accurate generation requirement. Then, based on the integrated information, it generates a document outline and corresponding image containers. Specifically, for example, the reference information includes audience information and style information. The semantic feature of the requirement is: topic "Product Introduction PPT"; the reference information is: audience = business personnel, number of pages = within 15 pages, style = simple business. Combining the above reference information, the terminal device obtains the complete generation requirement: topic is a customer-oriented marketing PPT, number of pages is 12, style is simple business. Then, it generates a 12-page document outline containing a cover, company introduction, product advantages, cooperation cases, contact information, etc., and creates 12 corresponding image containers.
[0120] In the above implementation method, by supplementing and obtaining reference information, and by integrating the reference information and the semantic features of the requirements, the generated manuscript outline and image container can more accurately meet the user's personalized needs, ensuring that the content, structure and style of the media content meet the user's expectations.
[0121] The media content generation method disclosed above, after acquiring the demand data, first performs in-depth analysis of the demand data to extract semantic features of the demand. When the confidence level of the demand is insufficient, it proactively asks the user for supplementary information and generates reference information. Then, based on the semantic features of the demand and the reference information, it generates structured content, a manuscript outline, images, and image containers step by step, and finally creates the first container and generates the media content. By proactively completing ambiguous demands, the accuracy of understanding user needs is improved. At the same time, through a modular generation process, the structural rationality and content quality of the media content are ensured, further improving the efficiency of media content generation and user experience.
[0122] The implementation methods of the above steps S201 and S205 are the same as Figure 2 The implementation methods of steps S101 and S103 in the illustrated embodiment are the same, and will not be described in detail here.
[0123] Corresponding to the media content generation method in the above embodiments, Figure 12 This is a structural block diagram of a possible media content generation device. The method described in the above embodiments can be executed by this media content generation device, which can be implemented by software and / or hardware, and can be integrated into an electronic device with certain data processing capabilities. The electronic device may include, but is not limited to, mobile terminals with big data processing capabilities, as well as fixed terminals with big data processing capabilities such as desktop computers and supercomputers.
[0124] For ease of explanation, only the parts relevant to the embodiments are shown. (Refer to...) Figure 12 The media content generation device 3 includes:
[0125] Input module 31 is used to obtain requirement data, which includes prompts and / or media materials;
[0126] Processing module 32 is used to create a first container within a first interface based on the demand data. The first container includes at least two image containers, which are used to hold images. The order of the at least two image containers and the images are associated with the demand data.
[0127] Configuration module 33 configures the first container and generates media content based on the configuration results of the first container.
[0128] In one possible implementation, the image container contains at least one element layer, which is used to carry the image content or text content corresponding to the image.
[0129] In one possible implementation, the configuration module 33 is specifically used for at least one of the following: adjusting the position of the first container within the first interface and / or the outline shape of the first container in response to the first operation; adjusting the layout of the image container within the first container in response to a change in the outline shape of the first container.
[0130] In one possible implementation, the layout of the image containers within the first container is related to the switching method between adjacent images in the media content.
[0131] In one possible implementation, the configuration module 33 is specifically used to: generate a first image within a first interface; and in response to moving the first image within the first interface to a first container, generate a new image container within the image container, or generate a new element layer within the first image container.
[0132] In one possible implementation, the image container is used to hold the document file and / or document text, which describes the speech content corresponding to the image.
[0133] In one possible implementation, the processing module 32 is further configured to: display a document outline, the document outline including at least one of the following: the number of image containers, the topic corresponding to the image containers, and the content summary corresponding to the image containers.
[0134] In one possible implementation, the first interface includes a canvas control and a dialog control. The configuration module 33 is further configured to: generate a reference identifier in the dialog control in response to a second operation, the reference identifier including a first reference identifier or a second reference identifier, the first reference identifier being used to modify the first container, the second reference identifier being used to modify the first image in the first container, the second operation being used to select the first container or the first image from the canvas control; obtain a natural language instruction through the dialog control, and obtain the second container based on the natural language instruction and the reference identifier.
[0135] In one possible implementation, the first interface includes a canvas control and a dialog control. The configuration module 33 is further configured to: in response to a third operation, display a container configuration component within the dialog control, the container configuration component being used to display the first container parameters of the first container, or the second container parameters of the image container in the first container; and in response to a fourth operation, configure the container configuration component and obtain the second container based on the configuration result of the container configuration component.
[0136] In one possible implementation, the configuration module 33 is further configured to: in response to a fifth operation on the first container, display media content and / or the corresponding text of the media content in the first interface; and in response to a sixth operation on the first container, share the media content to the network platform.
[0137] In one possible implementation, when the processing module 32 creates the first container within the first interface based on the requirement data, it is also used to: parse the requirement data to obtain requirement semantic features, which characterize the content generation requirements of the media content; generate a manuscript outline and a corresponding image container based on the requirement semantic features; and create the first container based on the manuscript outline and the corresponding image container.
[0138] In one possible implementation, when processing module 32 generates a document outline and corresponding image containers based on the semantic features of the requirements, it specifically performs the following: generating structured content based on the semantic features of the requirements, the structured content including the document chapters of the media content and the themes corresponding to the document chapters; generating a document outline based on the structured content; obtaining chapter images that match the document chapters based on the document outline; and generating corresponding image containers based on the chapter images.
[0139] In one possible implementation, when generating media content based on the configuration result of the first container, the configuration module 33 is specifically used to: obtain a first parameter based on the layout of the image containers within the first container, the first parameter being used to characterize the switching method between images in the media content; and generate media content based on the first parameter, the arrangement order of the image containers, and the images within the image containers.
[0140] In one possible implementation, the processing module 32 is further configured to: display at least one query question and at least two candidate answers corresponding to the query question, wherein the query question is used to characterize a content feature of the media content, wherein the query question is displayed when the demand confidence is less than a threshold, and the demand confidence characterizes the predictive credibility of the generated demand corresponding to the media content; in response to the seventh operation, select the first candidate answer of the first query question among the at least one query question to generate reference information, wherein the reference information is used to characterize the first feature description of the first content feature corresponding to the first query question, and the reference information is associated with the content in the first container; when the processing module 32 creates the first container in the first interface, it is specifically configured to: create the first container in the first interface based on the reference information.
[0141] The input module 31, processing module 32, and configuration module 33 are connected sequentially. A possible media content generation device 3 can execute the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, so they will not be repeated here.
[0142] Figure 13 This is a schematic diagram of the structure of a possible electronic device, such as... Figure 13 As shown, the electronic device 4 includes:
[0143] Processor 41, and memory 42 communicatively connected to processor 41;
[0144] Memory 42 stores instructions executed by the computer;
[0145] The processor 41 executes computer execution instructions stored in the memory 42 to achieve, for example, Figures 2-11 The media content generation method in the illustrated embodiment.
[0146] Optionally, the processor 41 and the memory 42 are connected via a bus 43.
[0147] For relevant instructions, please refer to the corresponding text. Figures 2-11 The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.
[0148] One possible computer-readable storage medium stores computer-executable instructions that, when executed by a processor, are used to implement the above-disclosed... Figures 2-11 The media content generation method provided in any of the corresponding embodiments.
[0149] One possible computer program product includes a computer program that, when executed by a processor, implements the above disclosure. Figures 2-11 The media content generation method provided in any of the corresponding embodiments.
[0150] To implement the above embodiments, an electronic device is also provided.
[0151] refer to Figure 14 The diagram illustrates a suitable structure for implementing an electronic device 900, which can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 14 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the above embodiments.
[0152] like Figure 14 As shown, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0153] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 14 An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0154] Specifically, according to the above embodiments, the processes described in the flowcharts above can be implemented as computer software programs. For example, the disclosed embodiments include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, it performs the functions defined in the methods of the disclosed embodiments.
[0155] It should be noted that the computer-readable medium disclosed above can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the above disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the above disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0156] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0157] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0158] Computer program code for performing the operations disclosed above can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0159] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0160] The units or modules described in the embodiments can be implemented in software or hardware. The names of the units or modules do not necessarily limit the specific unit itself.
[0161] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0162] In any possible context, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0163] Firstly, in one possible implementation, a media content generation method is provided, including:
[0164] Obtain requirement data, which includes prompts and / or media materials; based on the requirement data, create a first container within a first interface, wherein the first container includes at least two image containers, which are used to hold images, and the arrangement order of the at least two image containers and the images are associated with the requirement data; configure the first container, and generate media content based on the configuration result of the first container.
[0165] In one possible implementation, the image container contains at least one element layer, which is used to carry the image content or text content corresponding to the image.
[0166] In one possible implementation, configuring the first container includes at least one of the following: adjusting the position of the first container within the first interface and / or the outline shape of the first container in response to a first operation; adjusting the layout of the image containers within the first container in response to a change in the outline shape of the first container.
[0167] In one possible implementation, the layout of the image containers within the first container is related to the switching method between adjacent images in the media content.
[0168] In one possible implementation, configuring the first container includes: generating a first image within a first interface; and, in response to moving the first image from the first interface into the first container, generating a new image container within the image container, or generating a new element layer within the first image container.
[0169] In one possible implementation, the image container is also used to hold a document file and / or document text, which describes the speech content corresponding to the image.
[0170] One possible implementation also includes: displaying a document outline, which includes at least one of the following: the number of image containers, the topic corresponding to the image containers, and a content summary corresponding to the image containers.
[0171] In one possible implementation, the first interface includes a canvas control and a dialog control, and further includes: in response to a second operation, generating a reference identifier within the dialog control, the reference identifier including a first reference identifier or a second reference identifier, the first reference identifier being used to modify a first container, the second reference identifier being used to modify a first image in the first container, the second operation being used to select the first container or the first image from the canvas control; obtaining a natural language instruction through the dialog control, and obtaining a second container based on the natural language instruction and the reference identifier.
[0172] In one possible implementation, the first interface includes a canvas control and a dialog control, and further includes: in response to a third operation, displaying a container configuration component within the dialog control, the container configuration component being used to display the first container parameters of the first container, or the second container parameters of the image container in the first container; in response to a fourth operation, configuring the container configuration component, and obtaining the second container based on the configuration result of the container configuration component.
[0173] In one possible implementation, it further includes at least one of the following: in response to a fifth operation on the first container, displaying media content and / or the corresponding text of the media content in the first interface; in response to a sixth operation on the first container, sharing the media content to a network platform.
[0174] In one possible implementation, based on the requirement data, a first container is created within a first interface, including: parsing the requirement data to obtain requirement semantic features, which characterize the content generation requirements of the media content; generating a manuscript outline and a corresponding image container based on the requirement semantic features; and creating the first container based on the manuscript outline and the corresponding image container.
[0175] In one possible implementation, based on the semantic features of the requirements, a document outline and corresponding image containers are generated, including: generating structured content based on the semantic features of the requirements, the structured content including the document chapters of the media content and the themes corresponding to the document chapters; generating a document outline based on the structured content; obtaining chapter images that match the document chapters based on the document outline; and generating corresponding image containers based on the chapter images.
[0176] In one possible implementation, generating media content based on the configuration result of the first container includes: obtaining a first parameter based on the layout of the image containers within the first container, the first parameter being used to characterize the switching method between images in the media content; and generating media content based on the first parameter, the arrangement order of the image containers, and the images within the image containers.
[0177] In one possible implementation, the method further includes: displaying at least one query question and at least two candidate answers corresponding to the query question, wherein the query question is used to characterize a content feature of the media content, wherein the query question is displayed when the demand confidence is less than a threshold, and the demand confidence characterizes the predictive credibility of the generated demand corresponding to the media content; in response to the seventh operation, selecting a first candidate answer of a first query question from at least one query question to generate reference information, wherein the reference information is used to characterize a first feature description of a first content feature corresponding to the first query question, and the reference information is associated with the content in a first container; and creating a first container within a first interface, including: creating a first container within a first interface based on the reference information.
[0178] Secondly, in one possible implementation, a media content generation apparatus is provided, comprising:
[0179] The input module is used to obtain requirement data, which includes prompts and / or media materials;
[0180] The processing module is used to create a first container within the first interface based on the demand data. The first container includes at least two image containers, which are used to hold images. The order of the at least two image containers and the images are associated with the demand data.
[0181] The configuration module configures the first container and generates media content based on the configuration results of the first container.
[0182] Thirdly, in one possible implementation, an electronic device is provided, comprising: at least one processor and a memory;
[0183] The memory stores instructions that the computer executes;
[0184] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform the media content generation method as described in the first aspect above and various possible designs of the first aspect.
[0185] Fourthly, in one possible implementation, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the media content generation method described in the first aspect and various possible designs of the first aspect.
[0186] Fifthly, in one possible implementation, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the media content generation method as described in the first aspect and various possible designs of the first aspect.
[0187] The above description is merely a preferred embodiment and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in the disclosure that have similar functions.
[0188] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the disclosure. Certain features described in the context of a single embodiment may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0189] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for generating media content, comprising: Obtain demand data, which includes prompts and / or media materials; Based on the aforementioned requirement data, a first container is created within the first interface, wherein the first container includes at least two image containers, which are used to hold images; Configure the first container and generate media content based on the configuration result of the first container.
2. The method according to claim 1, wherein the image container contains at least one element layer, the element layer being used to carry the image content or text content corresponding to the image.
3. The method according to claim 1, wherein configuring the first container includes at least one of the following: In response to the first operation, adjust the position of the first container within the first interface, and / or the outline shape of the first container; In response to a change in the outline shape of the first container, the layout of the image containers within the first container is adjusted.
4. The method according to claim 3, wherein the layout of the image containers within the first container is associated with the switching mode between adjacent images in the media content.
5. The method according to claim 1, wherein configuring the first container includes: In response to moving the first image within the first interface into the first container, a new image container is generated within the first container, or a new element layer is generated within the first image container.
6. The method according to claim 1, wherein the image container is used to carry a document file and / or document text, and the document text is used to describe the speech content corresponding to the image.
7. The method according to claim 1, further comprising: Display a document outline, which includes at least one of the following: The number of image containers, the theme corresponding to the image containers, and the content summary corresponding to the image containers.
8. The method according to claim 1, wherein the first interface includes a canvas control and a dialog control, and further includes: In response to the second operation, a reference identifier is generated within the dialog control. The reference identifier includes a first reference identifier or a second reference identifier. The first reference identifier is used to modify the first container, and the second reference identifier is used to modify the first image in the first container. The second operation is used to select the first container or the first image from the canvas control. Natural language instructions are obtained through the dialog control, and a second container is obtained based on the natural language instructions and the reference identifier.
9. The method according to claim 1, wherein the first interface includes a canvas control and a dialog control, and further includes: In response to the third operation, a container configuration component is displayed within the dialog control. The container configuration component is used to display the first container parameters of the first container, or the second container parameters of the image container in the first container. In response to the fourth operation, the container configuration component is configured, and a second container is obtained based on the configuration result of the container configuration component.
10. The method of claim 1, further comprising at least one of the following: In response to a fifth operation on the first container, the media content and / or the corresponding text of the media content are displayed in the first interface; In response to the sixth operation for the first container, the media content is shared to the network platform.
11. The method according to claim 1, further comprising: Display at least one query question and at least two candidate answers corresponding to the query question, wherein the query question is used to characterize a content feature of the media content, wherein the query question is displayed when the demand confidence is less than a threshold, and the demand confidence characterizes the predictive credibility of the generated demand corresponding to the media content; In response to the seventh operation, a first candidate answer for the first query question among the at least one query question is selected to generate reference information, the reference information being used to characterize a first feature description of the first content feature corresponding to the first query question, the reference information being associated with the content in the first container; Creating the first container within the first interface includes: Based on the reference information, a first container is created within the first interface.
12. The method according to claim 1, wherein creating the first container within the first interface based on the demand data comprises: The demand data is analyzed to obtain demand semantic features, which characterize the content generation requirements of media content. Based on the semantic features of the requirements, a document outline and corresponding image containers are generated. Based on the document outline and the corresponding image container, the first container is created.
13. The method according to claim 12, wherein generating a document outline and a corresponding image container based on the semantic features of the requirements includes: Based on the semantic features of the demand, structured content is generated, which includes the text chapters of the media content and the topics corresponding to the text chapters; Based on the structured content, the document outline is generated; Based on the manuscript outline, chapter images matching the chapters of the manuscript are obtained; Based on the images in the aforementioned chapters, generate corresponding image containers.
14. The method according to claim 1, wherein generating media content based on the configuration result of the first container includes: Based on the layout of the image containers within the first container, a first parameter is obtained, which is used to characterize the switching method between images in the media content. Media content is generated based on the first parameter, the arrangement order of the image containers, and the images within the image containers.
15. A media content generation device, comprising: The input module is used to acquire demand data, which includes prompts and / or media materials; The processing module is used to create a first container within a first interface based on the demand data. The first container includes at least two image containers, which are used to hold images. The order of the at least two image containers and the images are associated with the demand data. The configuration module configures the first container and generates media content based on the configuration results of the first container.
16. An electronic device comprising: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the media content generation method as described in any one of claims 1 to 14.
17. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the media content generation method as described in any one of claims 1 to 14.
18. A computer program product comprising a computer program that, when executed by a processor, implements the media content generation method as described in any one of claims 1 to 14.