Video generation method, system, apparatus, electronic device, and computer storage medium
By combining audio-driven virtual avatar videos with text presentations, the problems of monotonous and costly text presentations are solved, achieving vivid text presentation effects and reducing costs.
Patent Information
- Application Number
- CN202211311695.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-10-25
AI Technical Summary
Conventional text-based presentations are limited in format, offer a poor viewing experience, and are costly.
By acquiring text information to generate audio information, the system drives the preset target digital image to generate a virtual image video, and combines it with the target document to generate a target video. The target digital image in the target video is editable.
It improves the text presentation effect, making the text information explanation more specific and vivid, reducing the cost of text presentation, and eliminating the need for additional manpower and production costs.
Smart Images

Figure CN115690277B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically to a video generation method, system, apparatus, electronic device, and computer storage medium. Background Technology
[0002] Conventional text presentations are relatively simple in format and offer a poor viewing experience. Achieving better presentation results requires significant investment of human time and production costs. With the development of artificial intelligence technology, the technology for generating virtual digital avatar videos is becoming increasingly sophisticated. Simultaneously, alongside existing multimedia technologies, virtual digital avatars will appear in more and more applications, including information broadcasting and cultural promotion. Therefore, combining text presentations with digital avatar video generation technology can improve the effectiveness of text presentations and reduce costs. Summary of the Invention
[0003] In view of this, the embodiments of the present invention aim to provide a video generation method, apparatus, electronic device, and computer storage medium to improve the text presentation effect and reduce the text presentation cost.
[0004] In a first aspect, embodiments of the present invention aim to provide a video generation method, the method comprising:
[0005] Retrieve the text information corresponding to the target document;
[0006] Generate corresponding audio information based on the text information;
[0007] Based on the audio information, a virtual avatar video is generated using a preset target digital avatar.
[0008] A target video is generated based on the virtual avatar video and the video corresponding to the target document, so as to explain the target document through the target digital avatar in the target video.
[0009] Furthermore, the target digital image in the target video is editable, and the method further includes:
[0010] Adjust the attribute information of the target digital image in the target video, wherein the attribute information includes at least one of the display position and display size of the target digital image in the target video.
[0011] Furthermore, the step of generating the target video based on the virtual avatar video and the video corresponding to the target document includes:
[0012] Convert the target document into a corresponding video file;
[0013] The virtual avatar video and the video file are combined to generate the target video.
[0014] Furthermore, the audio information corresponding to the virtual avatar video and the text information displayed in the video file have a temporal correspondence.
[0015] Furthermore, the step of generating a virtual avatar video based on the preset target digital avatar driven by the audio information includes:
[0016] Generate a body part action sequence corresponding to the text information based on the audio information;
[0017] A corresponding virtual avatar video is generated based on the action sequence of the described body part and the preset target digital image.
[0018] Furthermore, generating corresponding audio information based on the text information includes:
[0019] The text information is input into a preset speech synthesis model to generate corresponding audio information.
[0020] Secondly, embodiments of the present invention aim to provide a video generation system, the system comprising:
[0021] The front-end layer is configured to determine the target document and the corresponding target digital image based on interactive operations;
[0022] The backend business layer is configured to obtain the text information corresponding to the target document, generate corresponding audio information based on the text information, drive the preset target digital image to generate a virtual image video based on the audio information, and generate a target video based on the virtual image video and the video corresponding to the target document, so as to explain the target document through the target digital image in the target video;
[0023] The backend infrastructure layer is configured to provide service support to the backend business layer.
[0024] Thirdly, embodiments of the present invention aim to provide a video generation apparatus, the apparatus comprising:
[0025] The acquisition unit is used to acquire the text information corresponding to the target document;
[0026] The processing unit is used to generate corresponding audio information based on the text information;
[0027] The generation unit is used to drive a preset target digital image to generate a virtual image video based on the audio information;
[0028] The display unit is used to generate a target video based on the virtual avatar video and the video corresponding to the target document, so as to explain the content in the target document through the target digital avatar in the target video.
[0029] Fourthly, embodiments of the present invention aim to provide an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any of the preceding claims.
[0030] Fifthly, embodiments of the present invention aim to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in any of the preceding claims.
[0031] The technical solution of this invention obtains the text information corresponding to the target document, generates corresponding audio information based on the text information, drives a preset target digital image to generate a virtual image video based on the audio information, and generates a target video based on the virtual image video and the video corresponding to the target document, so as to explain the target document through the target digital image in the target video. Therefore, by combining the virtual image video and the video corresponding to the target document to generate the target video, the explanation of the text information in the target document becomes more specific and vivid, improving the text presentation effect, and without requiring additional manual time and production costs, thus helping to reduce the cost of text presentation. Attached Figure Description
[0032] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0033] Figure 1 This is a schematic diagram of the video generation system according to an embodiment of the present invention;
[0034] Figure 2 This is a flowchart of the video generation method according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating the generation of a virtual avatar video according to an embodiment of the present invention;
[0036] Figure 4 This is a flowchart illustrating the generation of the target video according to an embodiment of the present invention;
[0037] Figure 5 This is a schematic diagram of a video generation device according to an embodiment of the present invention;
[0038] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0039] The present invention is described below based on embodiments, but the invention is not limited to these embodiments. In the detailed description of the invention below, certain specific details are described in detail. Those skilled in the art will fully understand the invention even without these details. To avoid obscuring the essence of the invention, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0040] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0041] Unless the context explicitly requires it, words such as "including" or "contains" in the instruction manual should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0042] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0043] Conventional text presentations suffer from limited display formats, stiff presentation effects, and poor viewing experience. Furthermore, optimizing text presentations is costly. Therefore, this invention aims to provide a video generation method that, by incorporating digital avatars, improves text presentation effects while simultaneously reducing costs.
[0044] Figure 1 This is a schematic diagram of a video generation system according to an embodiment of the present invention. Figure 1 As shown, the video generation system in this embodiment includes a front-end layer 100, a back-end business layer 200, and a back-end infrastructure layer 300. The front-end layer 100 is user-facing and configured to determine the target document and its corresponding target digital avatar based on interactive operations. The back-end business layer 200 is configured to acquire the text information corresponding to the target document, generate corresponding audio information based on the text information, drive the preset target digital avatar to generate a virtual avatar video based on the audio information, and generate a target video based on the virtual avatar video and the video corresponding to the target document, so as to explain the target document through the target digital avatar in the target video. The back-end infrastructure layer 300 is configured to provide service support to the back-end business layer.
[0045] Optionally, the target document in this embodiment adopts a text presentation format file (including .ppt, .pptx, etc.). The front-end layer 100 in this embodiment includes a document editing module and a digital image editing module. The document editing module is equipped with text presentation software, allowing users to edit and modify the target document using its editing functions. Simultaneously, the text-to-video function of the text presentation software can generate a video file corresponding to the target document. The digital image editing module has digital image management functions, allowing users to select different target digital images from the digital image management library according to their actual needs through interactive operations related to the digital image management function. Users can also set the display characteristics of the target digital image (including pronunciation timbre, pronunciation rhythm, image size, accessories, etc.).
[0046] Optionally, the backend business layer 200 in this embodiment includes an interface service module, a business application module, and a basic service module. The interface service module includes a digital avatar interface and a document interface. The digital avatar interface receives the target digital avatar determined by the digital avatar editing module, enabling the backend business layer 200 to obtain the target digital avatars corresponding to different tasks (which could be orders), and then generate corresponding virtual avatar videos and target videos based on the target digital avatars. The document interface receives the target document determined by the document editing module to obtain the text information corresponding to the target document.
[0047] Optionally, the business application modules in this embodiment include a document conversion service module and a synthesis service module. The document conversion service module converts the target document into a corresponding video file upon receiving the text-to-video function from the front-end layer 100. The synthesis service module generates corresponding audio information based on the text information of the target document, drives the target digital avatar to generate a virtual avatar video based on the audio information, and generates a target video based on the virtual avatar video and the video file corresponding to the target document, so as to explain the target document through the target video.
[0048] Optionally, the basic service module in this embodiment includes a permission management unit, an authentication management unit, an OSS (Operations Support Unit, used to provide technical support and management), and Consul (open-source software providing service registration and discovery functions). The permission management unit provides data or function permissions to each module through preset security rules or policies. The authentication management unit is used to check the legality and integrity of user data to improve system security. Thus, through the cooperation of the various units in the basic service module, the reliability and security of the business application module's functionality are ensured.
[0049] Optionally, the backend infrastructure layer in this embodiment includes a basic data layer and a basic resource layer. The basic data layer includes Redis (remote dictionary service), MySQL (database management unit), MongoDB (a database based on distributed file storage that can replicate data to multiple servers), and RabbitMQ (a message-oriented middleware, an open-source message broker software that implements advanced message queue protocols). The basic resource layer includes a cloud service unit, a link monitoring unit, and Docker. Thus, an integrated component fault handling model is constructed through the various module units of the backend infrastructure layer, integrating network and functional processing, resulting in a high system response rate (up to 99.9% with SSL). Simultaneously, the timely registration and implementation of multiple services through a distributed registry center ensures system service activity, group isolation, and system degradation to provide a high-level fault tolerance mechanism between services.
[0050] The technical solution of this invention obtains the text information corresponding to the target document through the aforementioned system architecture, generates corresponding audio information based on the text information, drives the generation of a virtual avatar video based on the audio information, and generates a target video based on the virtual avatar video and the video corresponding to the target document, so as to explain the target document through the target digital avatar in the target video. Therefore, by combining the virtual avatar video and the video corresponding to the target document to generate the target video, the explanation of the text information in the target document becomes more specific and vivid, improving the text presentation effect. Furthermore, while improving the text presentation effect, users only need to edit the target document and the target digital avatar to generate the target video for the text presentation, without adding extra manual time and production costs, which helps to reduce the cost of text presentation. At the same time, the technical solution of this embodiment can be configured to improve the text presentation effect based on the existing computer system architecture without significantly changing the hardware settings, which further helps to reduce the cost of text presentation.
[0051] Figure 2 This is a flowchart of a video generation method according to an embodiment of the present invention. Figure 2 As shown, the video generation method in this embodiment includes the following steps.
[0052] In step S100, the text information corresponding to the target document is obtained.
[0053] In this embodiment, the text information includes different forms of content such as text, numbers, and symbols, and is displayed in a sequence. After receiving the target document, the backend business layer in the video generation system parses the target document to obtain the corresponding text information.
[0054] In step S200, corresponding audio information is generated based on the text information.
[0055] In this embodiment, text information is input into a preset speech synthesis model to generate corresponding audio information, which includes multiple consecutive audio frames. The preset speech synthesis model can be a TTS model, trained and determined based on text corpus pre-stored in a database.
[0056] In generating corresponding audio information based on text information, this embodiment first determines the phoneme information in the text information, predicts the phoneme duration (i.e., pronunciation time) and fundamental frequency (i.e., pitch and intonation) based on the pronunciation principle of the phoneme information, and finally synthesizes the phonemes and their corresponding durations and fundamental frequencies to convert them into the original waveform, thereby outputting the sound signal (i.e., audio information). Optionally, in this embodiment, the duration and fundamental frequency of the phoneme information corresponding to the text information can be determined by a segmentation model embedded in the speech synthesis model. Therefore, in this embodiment, generating audio information corresponding to text information through a speech synthesis model is not only highly efficient, which is beneficial to improving the efficiency of video generation methods, but also the above-mentioned text information processing process can include different accents, emotions, breathing, and other parts of human speech in the audio information, enhancing the realism of the audio information and the real human voice, thereby improving the effect of the presentation of the text information corresponding to the target document.
[0057] Optionally, in this embodiment, different TTS models with different parameters can be selected for different scenarios to generate different forms of audio information. For example, by adjusting different model parameters, audio information with different timbres, morphemes, volumes, or intonations can be generated. Audio information with different audio encoding formats at different sampling rates can also be generated. Furthermore, audio information with more features can be generated based on the emotion or other forms of tags in the text information. Therefore, by selecting speech synthesis models with different parameters to generate different forms of audio information, the usage requirements in different scenarios can be met, improving the applicability of the video generation method in this embodiment.
[0058] In step S300, a virtual image video is generated based on the preset target digital image driven by the audio information.
[0059] In this embodiment, the preset target digital avatar is selected from numerous digital avatars based on user requirements at the front-end layer of the video generation system. The target digital avatar can be any image of a person. It can be determined based on an image containing a real person captured during filming, or by extracting a frame containing a real person from a video. For example, when the target digital avatar is determined from a video containing a person image, it can be based on "green background removal technology." During filming or videography, the background is filmed with a green or blue background, and then the background is removed using a special effects camera's chroma key during post-production, thus generating the target digital avatar. This makes the determination and use of the target digital avatar more convenient, and the more universal determination method helps improve the generation efficiency of virtual avatar videos and reduce the cost of virtual avatar video generation.
[0060] Figure 3 This is a flowchart illustrating the generation of a virtual avatar video according to an embodiment of the present invention. For example... Figure 3 As shown, the method for generating virtual avatar videos in this embodiment includes the following steps.
[0061] In step S310, a sequence of body part actions corresponding to the text information is generated based on the audio information.
[0062] In this embodiment, the body part action sequence includes a facial action sequence. When generating a virtual avatar video, a pre-trained neural network model for generating action sequences is used to process the audio information to generate the corresponding facial action sequence. Thus, by converting audio information into feature vectors through the neural network model and using these feature vectors to predict and map facial action sequences, the efficiency of demonstrating facial actions in the virtual avatar video corresponding to the target digital avatar can be significantly improved.
[0063] Optionally, the facial action sequence in this embodiment includes a mouth action sequence. In this embodiment, a sequence model is used to generate a mouth action sequence corresponding to the text information based on the audio information. The sequence model can be a GRU, LSTM, RNN, or similar model. In generating the mouth action sequence, the audio information is first processed using the sequence model to extract Mel spectrogram features. Based on the Mel spectrogram features, the coordinates and phoneme labels of key mouth parts of the target digital image during the audio broadcast are predicted. Then, the coordinates and phoneme coordinates of the key mouth parts, along with the audio information, are concatenated to generate a concatenated result. Finally, the concatenated result is processed to obtain the facial mouth shape action parameters corresponding to each frame of audio output.
[0064] Optionally, to make the generated virtual avatar video more vivid, this embodiment, after generating a blank mouth movement sequence, further parses the text information, locates emotional keywords in the text information, labels the emotional keywords, generates emotional tags, and generates a mouth movement sequence with specific facial expression changes based on the generated blank mouth movement sequence and emotional tags. The emotional tags include emotional keywords (e.g., positive, happy, positive energy), the broadcast timestamp of the emotional keywords, and emotional characteristics.
[0065] Optionally, after generating a facial movement sequence with expression changes, this embodiment can further add an eye movement sequence to the facial movement sequence, and / or add a body movement sequence based on the target digital avatar's part movement sequence. For example, when the target digital avatar's mouth movement is a positive keyword such as "optimistic," actions such as blinking or giving a thumbs up can be added to the facial movement sequence. Thus, by combining mouth movement sequences, eye movement sequences, and body movement sequences, the virtual avatar video becomes more vivid. Simultaneously, because each emotion tag setting and its corresponding audio information has a corresponding timestamp, the correspondence between mouth movements, eye movements, and body movements under the same audio information can be guaranteed, and the corresponding mouth movements, eye movements, and body movements can be displayed simultaneously with the audio information playback, making the virtual avatar video display more vivid and engaging.
[0066] In step S320, a corresponding virtual image video is generated based on the body part action sequence and the preset target digital image.
[0067] In this embodiment, after generating the action sequence of the part corresponding to the audio information, the action sequence of the part corresponding to the audio information of the target document and the preset target digital image input value are used in the preset neural network model. According to the action parameters in the action sequence, the corresponding part action map is generated, and the part action map is spliced to the position of the corresponding part in the preset target digital image, so that the action sequence of the part matches the target digital image, thereby generating a virtual image video under the audio information corresponding to the text information in the target document.
[0068] Optionally, to improve the quality of the generated virtual avatar video, this embodiment can adjust the motion map based on the motion map of the body part and the corresponding body part position in the target digital avatar. For example, an image warping algorithm (such as inverse distance weighted interpolation, IDW) can be used to accurately fit the motion map to the corresponding body part position in the target digital avatar, thereby improving the fit between the motion sequence corresponding to the motion map and the target digital avatar, improving the quality of the generated virtual avatar video, and consequently improving the quality and display effect of the subsequently generated target video.
[0069] In step S400, a target video is generated based on the virtual avatar video and the video corresponding to the target document, so as to explain the target document through the target digital avatar in the target video.
[0070] In this embodiment, a target video is generated based on the virtual avatar video and the video corresponding to the target document, so that the target digital avatar explains the target document, which enhances the interest of the target document presentation, thereby improving the text presentation effect and reducing the cost of human explanation.
[0071] Figure 4 This is a flowchart illustrating the generation of the target video according to an embodiment of the present invention. Figure 4 As shown, the target video is generated through the following steps in this embodiment.
[0072] In step S410, the target document is converted into the corresponding video file.
[0073] In this embodiment, after receiving the text-to-video function from the front-end layer, the document conversion service module in the business application module converts the target document into a corresponding video file. The text information in the target document is timestamped sequentially according to its display order within the document. Correspondingly, when generating the video file, the text information displayed in the video file still carries timestamps to ensure the display order of each piece of text information during the text presentation.
[0074] In step S420, the virtual avatar video and the video file are combined to generate the target video.
[0075] In this embodiment, by adding a virtual avatar video to a video file to generate a target video, the text presentation of the target document combines three display methods: video file, audio information, and the target virtual avatar. The video file displays the text information in the target document, the audio information broadcasts the text content, and the actions and behaviors of the target virtual avatar simulate the explanation of the text information, thus realizing the text presentation process corresponding to the target document. The broadcast has excellent sound and visual effects, which can enhance the interest of the text presentation and improve the performance of the text presentation in meeting the needs of different types of audiences.
[0076] Furthermore, in this embodiment, the audio information corresponding to the virtual avatar video and the text information displayed in the video file have a temporal correspondence. Specifically, the actions or behaviors of the target digital avatar in the virtual avatar video, as well as the audio information, correspond to word-level text information. Since the text information corresponding to the virtual avatar video is the same as the text information corresponding to the video file, the timestamps corresponding to the same text information fields in the virtual avatar video and the video file are identical during the demonstration and explanation process. Thus, through the aforementioned timestamp setting and correspondence, the playback time of the audio information is aligned with the display time of the corresponding text information during the target video playback, and the actions and behaviors of the target digital avatar are aligned with the time of the corresponding audio information. This ensures that the audio information, text information, and actions and behaviors of the target digital avatar match, thereby further optimizing the text presentation effect.
[0077] Furthermore, to further optimize the text presentation effect, the target digital image in the target video of this embodiment is editable. The video generation method of this embodiment also includes:
[0078] In step S500, the attribute information of the target digital image in the target video is adjusted.
[0079] In this embodiment, the attribute information includes at least one of the display position and display size of the target digital image in the target video. Therefore, by adjusting the attribute information of the target digital image in the target video, the display position and display size of the target digital image in the target video are adjusted, further optimizing the display effect of the target video and the text presentation effect of the corresponding target document.
[0080] Optionally, in this embodiment, different layers are set up to display the corresponding content of the virtual avatar video and the video file, so that the display effect of the virtual avatar video and the video file can be adjusted separately in the corresponding layers. For example, after selecting the layer corresponding to the virtual avatar video, the attribute information of the target digital image in the virtual avatar video can be adjusted based on the operation options in the current layer. Or, after selecting the layer corresponding to the video file, the display information such as the text font or text spacing in the video file can be adjusted based on the operation options in the current layer. Thus, by setting different layers, the adjustments to the content of the virtual avatar video and the video file can achieve a better display effect without interfering with each other, which can further enhance the interest of the target document display and optimize the text presentation effect of the target document.
[0081] The technical solution of this invention obtains the text information corresponding to the target document, generates corresponding audio information based on the text information, drives a preset target digital image to generate a virtual image video based on the audio information, and generates a target video based on the virtual image video and the video corresponding to the target document, so as to explain the target document through the target digital image in the target video. Therefore, by combining the virtual image video and the video corresponding to the target document to generate the target video, the explanation of the text information in the target document becomes more specific and vivid, improving the text presentation effect. At the same time, by adjusting the attribute information of the target digital image in the target video, the interestingness of the target document presentation can be further enhanced, optimizing the text presentation effect of the target document. Furthermore, for users, they only need to edit the target document and select the target digital image to achieve a complete and interesting text presentation effect through the video generation system. It is simple to implement, has high target video generation efficiency, can achieve batch processing, and does not require additional manual time and production costs, thus helping to reduce the cost of text presentation.
[0082] Figure 5 This is a schematic diagram of a video generation apparatus according to an embodiment of the present invention. Figure 5 As shown, the video generation device in this embodiment includes an acquisition unit 1, a processing unit 2, a generation unit 3, and a display unit 4. The acquisition unit 1 acquires the text information corresponding to the target document. The processing unit 2 generates corresponding audio information based on the text information. The generation unit 3 drives a preset target digital image to generate a virtual image video based on the audio information. The display unit 4 generates a target video based on the virtual image video and the video corresponding to the target document, so as to explain the content of the target document through the target digital image in the target video.
[0083] Optionally, processing unit 2 in this embodiment is specifically used to input text information into a preset speech synthesis model to generate audio information corresponding to the target text. Generation unit 3 in this embodiment is specifically used to generate a sequence of body part actions corresponding to the text information based on the audio information, and to generate a corresponding virtual avatar video based on the body part action sequence and a preset target digital avatar. Display unit 4 is specifically used to convert the target document into a corresponding video file, and to synthesize the virtual avatar video and the video file to generate the target video. Further, in this embodiment, the audio information corresponding to the virtual avatar video and the text information displayed in the video file have a time correspondence to ensure that during the text demonstration, the sound emitted by the target digital avatar is aligned with the lip movements of the target digital avatar and the display time of the corresponding text in the video file.
[0084] Optionally, such as Figure 1 As shown, the target digital image in the target video of this embodiment is editable. The video generation apparatus in this embodiment also includes an adjustment unit 5. The adjustment unit 5 is used to adjust the attribute information of the target digital image in the target video. The attribute information includes at least one of the display position and display size of the target digital image in the target video.
[0085] The technical solution of this embodiment generates a target video by combining the virtual avatar video with the video corresponding to the target document, making the explanation of the text information in the target document more specific and vivid, improving the text presentation effect, and without requiring additional manual time and production costs, which helps to reduce the cost of text presentation.
[0086] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of the present invention. (For example...) Figure 6 As shown, Figure 6 The illustrated electronic device is a general address lookup device, comprising a general computer hardware architecture, including at least a processor 61 and a memory 62. The processor 61 and memory 62 are connected via a bus 63. The memory 62 is adapted to store instructions or programs executable by the processor 61. The processor 61 can be a standalone microprocessor or a collection of one or more microprocessors. Thus, the processor 61 executes the instructions stored in the memory 62, thereby performing the method flow of the embodiments of the present invention as described above to process data and control other devices. The bus 63 connects the aforementioned components together, and also connects these components to a display controller 64, a display device, and an input / output (I / O) device 65. The input / output (I / O) device 65 can be a mouse, keyboard, modem, network interface, touch input device, motion-sensing input device, printer, and other devices known in the art. Typically, the input / output device 65 is connected to the system via an input / output (I / O) controller 66.
[0087] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] This application is described with reference to flowchart illustrations of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each step in the flowchart can be implemented by computer program instructions.
[0089] These computer program instructions may be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction means, the implementation process of which is described in the instruction means. Figure 1 The function specified in one or more processes.
[0090] These computer program instructions may also be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, produce instructions for implementing processes. Figure 1 A device for a function specified in one or more processes.
[0091] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.
[0092] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program specifying the relevant hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0093] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. For those skilled in the art, the present invention can be modified and varied in various ways. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of protection of the present invention.
Claims
1. A video generation method, characterized in that, The method includes: Retrieve the text information corresponding to the target document; Generate corresponding audio information based on the text information; Based on the audio information, a virtual avatar video is generated using a preset target digital avatar. A target video is generated based on the virtual avatar video and the video corresponding to the target document, so as to explain the target document through the target digital avatar in the target video; The process of generating a virtual avatar video based on the preset target digital avatar driven by the audio information includes: Generate a body part action sequence corresponding to the text information based on the audio information; Generate a corresponding virtual avatar video based on the action sequence of the described body parts and the preset target digital image; The location action sequence includes a facial action sequence, which in turn includes a mouth action sequence. Generating the location action sequence corresponding to the text information based on the audio information includes: Mel spectrum features are extracted from the audio information. The coordinates and phoneme labels of key mouth parts are predicted based on the Mel spectrum features using a sequence model. The splicing process is then used to obtain motion parameters to generate a part motion sequence. The step of generating a corresponding virtual avatar video based on the action sequence of the body part and the preset target digital image includes: The action sequence of the body part and the preset target digital image are input into a preset neural network model. The corresponding body part action map is generated according to the action parameters in the body part action sequence. The body part action map is then stitched to the corresponding body part in the preset target digital image using an image deformation algorithm to generate the corresponding virtual image video.
2. The method according to claim 1, characterized in that, The target digital image in the target video is editable, and the method further includes: Adjust the attribute information of the target digital image in the target video, wherein the attribute information includes at least one of the display position and display size of the target digital image in the target video.
3. The method according to claim 1, characterized in that, The step of generating the target video based on the virtual avatar video and the video corresponding to the target document includes: Convert the target document into a corresponding video file; The virtual avatar video and the video file are combined to generate the target video.
4. The method according to claim 3, characterized in that, The audio information corresponding to the virtual avatar video and the text information displayed in the video file have a temporal correspondence.
5. The method according to claim 1, characterized in that, The step of generating corresponding audio information based on the text information includes: The text information is input into a preset speech synthesis model to generate corresponding audio information; The generated corresponding audio information includes: Determine the phoneme information in the text information; The phoneme duration and fundamental frequency of the phoneme information are determined by the segmentation model embedded in the speech synthesis model; The phonemes, their corresponding durations, and fundamental frequencies are synthesized and converted into the original waveform to generate the corresponding audio information.
6. A video generation system, characterized in that, The system includes: The front-end layer is configured to determine the target document and the corresponding target digital image based on interactive operations; The backend business layer is configured to obtain the text information corresponding to the target document, generate corresponding audio information based on the text information, drive the preset target digital image to generate a virtual image video based on the audio information, and generate a target video based on the virtual image video and the video corresponding to the target document, so as to explain the target document through the target digital image in the target video. The backend infrastructure layer is configured to provide service support to the backend business layer; The step of generating a virtual avatar video based on the preset target digital avatar driven by the audio information includes: Generate a body part action sequence corresponding to the text information based on the audio information; Generate a corresponding virtual avatar video based on the action sequence of the described body parts and the preset target digital image; The location action sequence includes a facial action sequence, which in turn includes a mouth action sequence. Generating the location action sequence corresponding to the text information based on the audio information includes: Mel spectrum features are extracted from the audio information. The coordinates and phoneme labels of key mouth parts are predicted based on the Mel spectrum features using a sequence model. The splicing process is then used to obtain motion parameters to generate a part motion sequence. The step of generating a corresponding virtual avatar video based on the action sequence of the body part and the preset target digital image includes: The action sequence of the body part and the preset target digital image are input into a preset neural network model. The corresponding body part action map is generated according to the action parameters in the body part action sequence. The body part action map is then stitched to the corresponding body part in the preset target digital image using an image deformation algorithm to generate the corresponding virtual image video.
7. A video generation apparatus, characterized in that, The device includes: The acquisition unit is used to acquire the text information corresponding to the target document; The processing unit is used to generate corresponding audio information based on the text information; The generation unit is used to drive a preset target digital image to generate a virtual image video based on the audio information; The display unit is used to generate a target video based on the virtual avatar video and the video corresponding to the target document, so as to explain the content in the target document through the target digital avatar in the target video; The generation unit is used for: Generate a body part action sequence corresponding to the text information based on the audio information; Generate a corresponding virtual avatar video based on the action sequence of the described body parts and the preset target digital image; The location action sequence includes a facial action sequence, which in turn includes a mouth action sequence. Generating the location action sequence corresponding to the text information based on the audio information includes: Mel spectrum features are extracted from the audio information. The coordinates and phoneme labels of key mouth parts are predicted based on the Mel spectrum features using a sequence model. The splicing process is then used to obtain motion parameters to generate a part motion sequence. The step of generating a corresponding virtual avatar video based on the action sequence of the body part and the preset target digital image includes: The action sequence of the body part and the preset target digital image are input into a preset neural network model. The corresponding body part action map is generated according to the action parameters in the body part action sequence. The body part action map is then stitched to the corresponding body part in the preset target digital image using an image deformation algorithm to generate the corresponding virtual image video.
8. An electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any one of claims 1-5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method steps of any one of claims 1-5.
Citation Information
Patent Citations
Video production method, device and terminal for explaining virtual image
CN109118562A
Virtual human explanation video generation method and related device
CN114401431A
