Virtual anchor video generation method, system, electronic device and storage medium

Through word segmentation operation and pinyin rendering, multi-tone characters are processed, combined with Laplace smooth-Natural Bayes algorithm, the virtual anchor actions are recommended, which solves the problem of insufficient multi-tone characters recognition and action recommendation in virtual anchor video generation, and improves the accuracy and user experience of broadcast content.

CN119299804BActive Publication Date: 2025-08-22GUANGDONG SOUTH SMART MEDIA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411357182.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-08-22
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

The existing virtual anchor video generation technology recognizes errors when processing Chinese polyphonic characters and lacks intelligent action recommendations, resulting in insufficient accuracy of broadcast content and poor user experience.

Method used

Multi-tone characters are processed through word segmentation operation and pinyin rendering, combined with Laplace smooth-Natural Bayes algorithm, and recommend appropriate virtual anchor actions, and support customized and dynamic updates of virtual anchor images.

Benefits of technology

It improves the accuracy of multi-tone recognition and the naturalness of broadcast content, enhances the user experience, and supports the flexibility and real-time video generation in multiple scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299804B_ABST
    Figure CN119299804B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, system, electronic device, and storage medium for generating a virtual anchor video, comprising receiving a broadcast text and performing polyphonic word processing on the broadcast text; setting virtual anchor actions based on the broadcast text after polyphonic word processing; rendering the virtual anchor image in response to a change operation on the anchor image layer; integrating the polyphonic word processing text, the virtual anchor actions, and the virtual anchor image into a unified data structure for rendering to generate a virtual anchor video. The present invention effectively solves the problem of polyphonic word recognition in Chinese words through word segmentation operations and pinyin rendering, ensuring the accuracy of the broadcast text, and uses the Laplace smoothing-naive Bayes algorithm to recommend appropriate virtual anchor actions based on text semantics, so that users can recommend appropriate anchor actions based on text semantics during actual use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video generation, and in particular to a method, system, electronic device, and storage medium for generating a virtual anchor video. Background Art

[0002] In the current market, virtual anchor video generation technology has achieved certain development and is widely used in fields such as news broadcasting and advertising. However, the existing technology still has some significant shortcomings, which restrict the widespread application of virtual anchor technology and the improvement of user experience.

[0003] The existing virtual anchor video generation technology has significant deficiencies in the following aspects: Polyphone recognition problem: Existing products often make mistakes when dealing with polyphones in Chinese words. This is mainly due to the complexity of polyphones and the limitations of existing technologies, resulting in insufficient accuracy of the generated broadcast content. In addition, the rendering of large amounts of text can easily cause system freezes, affecting the user experience. Insufficient action recommendations: Existing virtual anchor products lack intelligence in action recommendations and usually only provide a fixed list of actions. Users need to choose the action themselves, and fail to recommend appropriate actions based on the actual text semantics. This increases the user's operating difficulty and time cost, and makes the generated video content lack naturalness and interactivity.

[0004] These two major problems significantly restrict the widespread application of virtual anchor video generation technology and the improvement of user experience, and there is an urgent need for smarter and more efficient solutions. Summary of the Invention

[0005] The purpose of the present invention is to provide a virtual anchor video generation method, system, electronic device and storage medium to solve the problems of incorrect polyphone recognition and insufficient action recommendation in the prior art.

[0006] In order to achieve one of the above-mentioned objectives, an embodiment of the present invention provides a method for generating a virtual anchor video.

[0007] The method comprises,

[0008] receiving a broadcast text and performing polyphonic word processing on the broadcast text;

[0009] Set virtual anchor actions based on the broadcast text processed with polyphones;

[0010] Rendering the virtual anchor image in response to the modification operation of the anchor image layer;

[0011] The text processed with polyphones, the virtual anchor's actions, and the virtual anchor's image are integrated into a unified data structure for rendering to generate a virtual anchor video.

[0012] As a further improvement of an embodiment of the present invention, the method further includes: the polyphonetic word processing includes:

[0013] Acquiring polyphonic word information of the announcement text through a locally pre-stored polyphonic word pronunciation and phrase dictionary;

[0014] The polyphonetic character information includes the pinyin corresponding to the polyphonetic character and the context information of the polyphonetic character in the broadcast text;

[0015] The broadcast text is segmented based on the polyphone information, and the polyphone pinyin rendering is performed on the broadcast text after the segmentation processing.

[0016] As a further improvement of an embodiment of the present invention, the method further includes: performing word segmentation processing on the broadcast text includes:

[0017] Generate a polyphonic word segmentation result set by performing word-by-word judgment and phrase matching on the broadcast copy;

[0018] Pinyin matching is performed on the individual characters and phrases in the polyphonetic character segmentation result set, and the pinyin matching results are output in sequence based on the context information of the polyphonetic characters.

[0019] As a further improvement of an embodiment of the present invention, the method further includes that the pinyin rendering of the polyphonetic character includes:

[0020] Determining a paragraph containing polyphonetic characters based on the context information, and rendering content before the paragraph containing polyphonetic characters in an off-screen manner;

[0021] Extracting the paragraph containing the polyphonetic character for rendering, and determining the height of the rendered paragraph;

[0022] If the paragraph height is higher than the paragraph height before rendering, all contents after the current paragraph are cleared, and the announcement copy is re-layouted according to the paragraph height after rendering, and all contents after the cleared current paragraph are re-rendered into the rendered paragraph containing the polyphonetic character;

[0023] If the paragraph height is equal to the paragraph height before rendering, continue rendering the next paragraph containing polyphonetic characters;

[0024] When the content needs to be modified after the broadcast copy is rendered, compare the broadcast copy before and after the modification to determine the paragraphs that need to be rendered again and determine whether polyphones have been added;

[0025] If a polyphonetic character is newly added to the paragraph that needs to be rendered again, the modified broadcast copy is re-rendered according to the newly added polyphonetic character information;

[0026] If the paragraph that needs to be rendered again does not have any polyphonetic characters added, the paragraph that needs to be rendered again is rendered according to the polyphonetic character information before modification.

[0027] As a further improvement of an embodiment of the present invention, the method further includes that the “setting virtual anchor actions based on the broadcast text processed with polyphones” includes:

[0028] Collect historical broadcast texts, determine a training set based on the characteristic attributes of the historical broadcast texts, and determine an output space based on the virtual anchor's actions; the characteristic attributes include the news content type and the prefix words that need to be inserted into the virtual anchor's actions;

[0029] The prior probability of each virtual anchor action in the output space is calculated, and the conditional probability of each feature attribute division is calculated for the feature attributes.

[0030] As a further improvement of an embodiment of the present invention, the method further includes: the “setting virtual anchor actions based on the broadcast text processed with polyphones” further includes:

[0031] Determine the characteristic attributes of the broadcast text after polyphone processing, calculate the posterior probability that the characteristic attributes correspond to the virtual anchor action, and select the virtual anchor action with the highest posterior probability through sorting.

[0032] As a further improvement of an embodiment of the present invention, the method further includes that the “rendering the virtual anchor image in response to the modification operation of the anchor image layer” includes:

[0033] Responding to position information of a change operation in the host image layer in the interactive layer; the host image layer includes at least one layer;

[0034] Determining a layer to be modified based on the position information of the modification operation, and updating data of the layer to be modified based on the modification operation;

[0035] The updated layer data is transmitted to the rendering layer, and the updated layer data is rendered to generate a virtual anchor image.

[0036] To achieve one of the above-mentioned objectives of the invention, one embodiment of the present invention provides a virtual anchor video generation system, including a text processing module, an action recommendation module, an image rendering module and a video generation module.

[0037] The text processing module is used to receive the broadcast text and perform polyphonic word processing on the broadcast text;

[0038] The action recommendation module is used to set the virtual anchor action based on the broadcast copy after polyphonic character processing;

[0039] The image rendering module is used to render the virtual anchor image in response to the modification operation of the anchor image layer;

[0040] The video generation module is used to integrate the text processed with polyphones, the virtual anchor's actions, and the virtual anchor's image into a unified data structure for rendering, thereby generating a virtual anchor video.

[0041] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, characterized in that the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the above-mentioned virtual anchor video generation method are implemented.

[0042] To achieve one of the above-mentioned objectives of the invention, an embodiment of the present invention further provides a storage medium, wherein the storage medium stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps in the above-mentioned virtual anchor video generation method are implemented.

[0043] Compared with the existing technology, the present invention provides a virtual anchor video generation method, system, electronic device, and storage medium. Through word segmentation and pinyin rendering, it effectively solves the problem of polyphone recognition in Chinese words, ensures the accuracy of broadcast copy, and uses the Laplace smoothing-naive Bayes algorithm to recommend appropriate virtual anchor actions based on text semantics, allowing users to recommend appropriate anchor actions based on text semantics during actual use. At the same time, the present invention supports the customization and dynamic updating of virtual anchor images, enhancing the flexibility and real-time performance of video generation, and is suitable for various scenarios such as advertising and promotional videos. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is an overall flow chart of the virtual anchor video generation method described in the present invention.

[0045] Figure 2 It is a schematic diagram of the broadcast text of the virtual anchor video generation method described in the present invention.

[0046] Figure 3 It is a schematic diagram of the broadcast text after detecting polyphones in the virtual anchor video generation method described in the present invention.

[0047] Figure 4 This is a flowchart of the word segmentation of the broadcast text of the virtual anchor video generation method described in the present invention.

[0048] Figure 5 This is a flowchart of pinyin matching of broadcast text in the virtual anchor video generation method described in the present invention.

[0049] Figure 6This is a flowchart of polyphonic character rendering of the broadcast text of the virtual anchor video generation method described in the present invention.

[0050] Figure 7 This is a flowchart of secondary rendering of non-polyphonetic characters in the virtual anchor video generation method described in the present invention.

[0051] Figure 8 This is a flowchart of virtual anchor action recommendations for the virtual anchor video generation method of the present invention.

[0052] Figure 9 This is a flowchart of the virtual anchor image rendering of the virtual anchor video generation method described in the present invention.

[0053] Figure 10 Schematic diagram of the architecture of the virtual anchor video generation system of the present invention.

[0054] Figure 11 2. It is a schematic diagram of the system interface of the text processing module and the action recommendation module of the virtual anchor video generation system of the present invention.

[0055] Figure 12 2. It is a schematic diagram of the system interface of the image rendering module of the virtual anchor video generation system described in the present invention.

[0056] Figure 13 2. It is a schematic diagram of the system interface of the video generation module of the virtual anchor video generation system of the present invention. DETAILED DESCRIPTION

[0057] The present invention will be described in detail below with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by those skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0058] The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention.

[0059] In the first embodiment of the present invention, the present invention provides a method for generating a virtual anchor video, such as Figure 1 Said method comprises:

[0060] S1: receiving a broadcast text and performing polyphonic word processing on the broadcast text;

[0061] S2: Setting the virtual anchor’s actions based on the broadcast text processed with polyphonic characters;

[0062] S3: Rendering the virtual anchor image in response to the modification operation of the anchor image layer;

[0063] S4: Integrate the polyphonic text, the virtual anchor action, and the virtual anchor image into a unified data structure for rendering to generate a virtual anchor video.

[0064] In a specific embodiment of the present invention, the polyphonetic word processing is specifically as follows:

[0065] Acquiring polyphonic word information of the announcement text through a locally pre-stored polyphonic word pronunciation and phrase dictionary;

[0066] The polyphonetic character information includes the pinyin corresponding to the polyphonetic character and the context information of the polyphonetic character in the broadcast text;

[0067] The broadcast text is segmented based on the polyphone information, and the polyphone pinyin rendering is performed on the broadcast text after the segmentation processing.

[0068] Furthermore, Figure 2 、 3 As shown, the word segmentation processing and polyphonetic pinyin rendering provided by the present invention can effectively detect and render polyphonetic characters in the broadcast text.

[0069] In a specific embodiment of the present invention, the word segmentation processing of the broadcast text includes:

[0070] Generate a polyphonic word segmentation result set by performing word-by-word judgment and phrase matching on the broadcast copy;

[0071] Pinyin matching is performed on the individual characters and phrases in the polyphonetic character segmentation result set, and the pinyin matching results are output in sequence based on the context information of the polyphonetic characters.

[0072] Furthermore, Figure 4 As shown, the process of word segmentation is as follows:

[0073] (1) Segment the broadcast text by single words;

[0074] (2) looping each single word and matching it with the first word of the phrase dictionary;

[0075] (3) If the match is successful, there is a phrase that begins with the word; the next word of the phrase that begins with the word is matched with the next single word of the input sentence. If the match is successful, step (3) is executed repeatedly until the match fails. The phrase is matched and the phrase is a segmented word, which is stored in the segmentation cache.

[0076] (5) If the first character of the phrase fails to match, that is, there is no phrase starting with the character, this single character is a segmentation word and is stored in the segmentation cache;

[0077] (6) Output the word segmentation list.

[0078] Furthermore, Figure 5 As shown, the process of pinyin matching is as follows:

[0079] (1) Circulate the word list and take out each word for pinyin matching;

[0080] (2) If the word segment is a single word, match it with the single word pinyin dictionary and output the pinyin corresponding to the single word to the result set for caching;

[0081] (3) If the segmented word is a phrase, match the phrase pinyin dictionary and output the pinyin of each word in the phrase to the result set for caching;

[0082] (4) Output the pinyin result set corresponding to the broadcast text in order.

[0083] In a specific embodiment of the present invention, the polyphonic characters are rendered in pinyin, such as Figure 6 、 7 Specifically shown is,

[0084] Determining a paragraph containing polyphonetic characters based on the context information, and rendering content before the paragraph containing polyphonetic characters in an off-screen manner;

[0085] Extracting the paragraph containing the polyphonetic character for rendering, and determining the height of the rendered paragraph;

[0086] If the paragraph height is higher than the paragraph height before rendering, all contents after the current paragraph are cleared, and the announcement copy is re-layouted according to the paragraph height after rendering, and all contents after the cleared current paragraph are re-rendered into the rendered paragraph containing the polyphonetic character;

[0087] If the paragraph height is equal to the paragraph height before rendering, continue rendering the next paragraph containing polyphonetic characters;

[0088] When the content needs to be modified after the broadcast copy is rendered, compare the broadcast copy before and after the modification to determine the paragraphs that need to be rendered again and determine whether polyphones have been added;

[0089] If a polyphonetic character is newly added to the paragraph that needs to be rendered again, the modified broadcast copy is re-rendered according to the newly added polyphonetic character information;

[0090] If the paragraph that needs to be rendered again does not have any polyphonetic characters added, the paragraph that needs to be rendered again is rendered according to the polyphonetic character information before modification.

[0091] It should be noted that the essence of the processing logic for rendering polyphones for the first time is to use a sliding window algorithm. The granularity of the window is based on paragraphs. It finds out which paragraphs have no polyphones or whose paragraph heights remain unchanged after updating polyphones, thereby reducing unnecessary rendering and preventing blocking the main thread.

[0092] It should be noted that the polyphones in the broadcast text are rendered by using a rich text editor; the rich text editor can also set and render the voice, speaking speed and pauses of the virtual anchor.

[0093] In a specific embodiment of the present invention, based on the broadcast text processed with polyphones, a virtual anchor action is set, specifically,

[0094] Collect historical broadcast texts, determine a training set based on the characteristic attributes of the historical broadcast texts, and determine an output space based on the virtual anchor's actions; the characteristic attributes include the news content type and the prefix words that need to be inserted into the virtual anchor's actions;

[0095] The prior probability of each virtual anchor action in the output space is calculated, and the conditional probability of each feature attribute division is calculated for the feature attributes.

[0096] Determine the characteristic attributes of the broadcast text after polyphone processing, calculate the posterior probability that the characteristic attributes correspond to the virtual anchor action, and select the virtual anchor action with the highest posterior probability through sorting.

[0097] Furthermore, we sorted and summarized the data based on the collected and cleaned historical news releases to extract key information;

[0098] According to the training data (news content classification, prefix words), the training set T={(x1,y1),(x2,y2),...,(x n ,y n )}, output result (virtual anchor action) confirms the output space y={C1,C2,...,C K};

[0099] According to Bayes' theorem Where P(Y) is the prior probability, P(Y|X) is the posterior probability, and P(X|Y) is the conditional probability;

[0100] By learning the distribution of prior probability and conditional probability through naive Bayes, the prior probability of maximum likelihood estimation is obtained as follows:

[0101]

[0102] Where I is the indicator function.

[0103] According to the Naive Bayes theorem, the conditional independence of the conditional probability distribution is assumed to be conditional independence, and the set of possible values ​​of the j-th feature is defined as {a j1 ,a j2 ,...,a jl}, then the maximum likelihood estimate conditional probability distribution is:

[0104]

[0105] It should be noted that when calculating the conditional probability, by adding a lambda in the range of (0,1], the situation where the maximum likelihood estimate of the prior probability function is 0 is avoided. At this time, the prior probability and conditional probability improved by Laplace smoothing are expressed as follows:

[0106]

[0107] According to the two assumptions of Bayes' theorem, all features are equally important and all features are independent of each other, the posterior probability is expressed as:

[0108]

[0109] In the case of classification confirmation, each feature is independent of each other, and we can get,

[0110]

[0111] Where b is the total number of features;

[0112] At this time, the posterior probability is expressed as:

[0113]

[0114] Furthermore, Figure 8 As shown, the virtual anchor action recommendation process is as follows:

[0115] (1) Collect all historical news broadcast texts in the database;

[0116] (2) Deleting abnormal data, texts with a length less than a certain number of characters, or texts that do not contain the virtual anchor action keywords;

[0117] (3) Constructing a training set training action recommendation model based on the virtual anchor actions corresponding to the news type and the characteristic attributes of the prefix words obtained through word segmentation processing;

[0118] (4) Calculate the Lablasian smoothing of the prior probability of the feature attributes and the conditional probability distribution;

[0119] (5) Confirm the news content and the prefix to be inserted;

[0120] (6) Calculate the posterior probability of the feature attributes in (5) and output the corresponding virtual anchor actions according to the probability sorting.

[0121] In a specific implementation scenario of this embodiment, it is defined that the user determines that the content type of this news article is "Political and Legal News", and the inserted virtual human action prefix is ​​"Win the First Place", then the action recommendation process of the virtual anchor is as follows:

[0122] (1) Based on the collected and cleaned historical news releases, data was sorted and summarized, and key information was extracted to obtain the structured data shown in the following table;

[0123] News type characteristics Prefix features Virtual human movement Political and Legal News Hello everyone waving Political and Legal News Hello everyone Left hand pointing to the left Sports News goodbye waving Sports News Win first place Like Political and Legal News recently Left hand pointing to the left Sports News recently Left hand pointing to the left … … …

[0124] As shown in the table above, assuming that other collected data are omitted, the analysis collected the above 6 data, among which the news content features are 2 types: "Political and Legal News" and "Sports News", the prefix language features are 4 types: "Hello everyone", "Goodbye", "Win the first place" and "Recently", and the virtual human actions are 3 types: "Waving", "Left hand pointing to the left" and "Like".

[0125] According to the above 6 historical data and 3 virtual anchor actions, the prior probability is calculated and we can get and

[0126] There are two types of features in the above historical data, namely "news type features" and "prefix features". According to Bayes' theorem, the expression can be obtained under the conditional independence of features as follows:

[0127] P(X1,X2|Y)=P(X1|Y)P(X2|Y)

[0128] Substituting into the expression, we can get

[0129]

[0130] Calculating the posterior probability, we can get:

[0131]

[0132] Based on the above result set, it can be concluded that when the user determines that the content type of this news article is "Political and Legal News" and the inserted virtual human action prefix is ​​"Win First Place", the recommended order of virtual anchor actions to be used is "Left Hand Pointing to the Left", "Like", and "Waving".

[0133] It should be noted that the Naive Bayes algorithm can classify sample sets and perform predictive reasoning on other data based on the existing sample classification, so that it can recommend insertable virtual anchor actions based on the broadcast text in real time.

[0134] In a specific embodiment of the present invention, the virtual anchor image is rendered in response to the modification operation of the anchor image layer, specifically,

[0135] Responding to position information of a change operation in the host image layer in the interactive layer; the host image layer includes at least one layer;

[0136] Determining a layer to be modified based on the position information of the modification operation, and updating data of the layer to be modified based on the modification operation;

[0137] The updated layer data is transmitted to the rendering layer, and the updated layer data is rendered to generate a virtual anchor image.

[0138] Furthermore, in the web view editor, by separating the interaction layer and the rendering layer, where the rendering layer is located below the interaction layer, the interaction layer records the current position and operation of the mouse, separates the business logic of the layer into general logic, and then updates the data through logical calculation.

[0139] Furthermore, Figure 9 As shown, the anchor image rendering process is as follows:

[0140] Get the coordinates of the mouse click in the interactive layer to confirm which layers the coordinates will fall on, and select the layer with the highest priority as the operation layer based on the layer priority;

[0141] Calculate the drag and scaling of the object based on the changes in the mouse click coordinates, and change the layer data based on the flyweight pattern in the design pattern to keep the layer data structure consistent;

[0142] The updated layer data is sent to the rendering layer for rendering the virtual anchor image.

[0143] Furthermore, the present invention also includes the following embodiments:

[0144] Integration and storage of data structures, specifically,

[0145] The input copy, virtual anchor image configuration, broadcast details, etc. are processed separately for data standardization, with each type corresponding to a data structure; the operations of the web view editor and rich text editor corresponding to each data structure are integrated to generate a structured data model and store it in the database for subsequent query, modification and use, facilitating persistent data management and supporting breakpoint continuation and historical record preservation and backtracking.

[0146] Rendering optimization, specifically,

[0147] By learning data with the same structure formed in different periods or different interactions in the database, the rendering engine can compare and find differences more quickly, generate videos more efficiently, reduce the time for data parsing and processing, optimize the performance of the video generation process, and ensure real-time preview and fast generation of the final video.

[0148] Video rendering and generation, specifically,

[0149] Create a simulation screen for video rendering and use delayed loading technology to postpone incremental updates to fixed time intervals to optimize rendering effects.

[0150] In the second embodiment of the present invention, the present invention provides a virtual anchor video generation system, such as Figure 10 As shown, it includes a text processing module, an action recommendation module, an image rendering module and a video generation module.

[0151] like Figure 11 As shown, the text processing module is used to receive the broadcast text and perform polyphonic word processing on the broadcast text;

[0152] like Figure 11 As shown, the action recommendation module is used to set the virtual anchor action based on the broadcast copy after polyphonic word processing;

[0153] like Figure 12 As shown, the image rendering module is used to render the virtual anchor image in response to the modification operation of the anchor image layer;

[0154] like Figure 13 As shown, the video generation module is used to integrate the text processed with polyphones, the virtual anchor's actions, and the virtual anchor's image into a unified data structure for rendering to generate a virtual anchor video.

[0155] In a third embodiment of the present invention, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the above-mentioned method for generating a virtual anchor video are implemented.

[0156] In a fourth embodiment of the present invention, the present invention provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the above-described method for generating a virtual anchor video.

[0157] In summary, the present invention provides a method, system, electronic device, and storage medium for generating a virtual anchor video. Through word segmentation and pinyin rendering, the method effectively solves the problem of identifying polyphonetic characters in Chinese words, ensuring the accuracy of the broadcast text. The method utilizes the Laplace smoothing-Naive Bayes algorithm to recommend appropriate virtual anchor actions based on text semantics, allowing users to recommend appropriate anchor actions based on text semantics during actual use. The present invention also supports customization and dynamic updating of virtual anchor images, enhancing the flexibility and real-time nature of video generation, making it suitable for various scenarios such as advertising and promotional videos.

[0158] It should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation method can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

[0159] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the modules described above can refer to the corresponding process in the aforementioned method implementation, and will not be repeated here.

[0160] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0161] In addition, the functional modules in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0162] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium and includes a number of instructions for causing a computer system (which can be a personal computer, server, or network system, etc.) or a processor to execute some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code.

[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims

1. A method for generating a virtual anchor video, characterized by: include, Receive the broadcast text and perform polyphonic word processing on the broadcast text, including: Perform pinyin rendering on polyphonetic characters. include, Determining a paragraph containing polyphonetic characters based on context information, and rendering content preceding the paragraph containing polyphonetic characters in an off-screen manner; Extracting the paragraph containing the polyphonetic character for rendering, and determining the height of the rendered paragraph; If the paragraph height is higher than the paragraph height before rendering, all contents after the current paragraph are cleared, and the announcement copy is re-layouted according to the paragraph height after rendering, and all contents after the cleared current paragraph are re-rendered into the rendered paragraph containing the polyphonetic character; If the paragraph height is equal to the paragraph height before rendering, continue rendering the next paragraph containing polyphonetic characters; When the content needs to be modified after the broadcast copy is rendered, compare the broadcast copy before and after the modification to determine the paragraphs that need to be rendered again and determine whether polyphones have been added; If a polyphonetic character is newly added to the paragraph that needs to be rendered again, the modified broadcast copy is re-rendered according to the newly added polyphonetic character information; If the paragraph that needs to be rendered again does not have any polyphonetic characters added, rendering the paragraph that needs to be rendered again according to the polyphonetic character information before modification; Based on the broadcast text processed with polyphonic characters, set the virtual anchor's actions, including: Collect historical broadcast texts, determine a training set based on the characteristic attributes of the historical broadcast texts, and determine an output space based on the virtual anchor's actions; the characteristic attributes include the news content type and the prefix words that need to be inserted into the virtual anchor's actions; Calculating the prior probability of each virtual anchor action in the output space, and calculating the conditional probability of each feature attribute division for the feature attributes; Determining characteristic attributes of the broadcast text after polyphonic character processing, calculating the posterior probability that the characteristic attributes correspond to the virtual anchor action, and selecting the virtual anchor action with the highest posterior probability by sorting; Rendering the virtual anchor image in response to the modification operation of the anchor image layer; The text processed with polyphones, the virtual anchor's actions, and the virtual anchor's image are integrated into a unified data structure for rendering to generate a virtual anchor video.

2. The method for generating a virtual anchor video according to claim 1, wherein: The polyphonetic word processing includes: Acquiring polyphonic word information of the announcement text through a locally pre-stored polyphonic word pronunciation and phrase dictionary; The polyphonetic character information includes the pinyin corresponding to the polyphonetic character and the context information of the polyphonetic character in the broadcast text; The broadcast text is segmented based on the polyphone information, and the polyphone pinyin rendering is performed on the broadcast text after the segmentation processing.

3. The method for generating a virtual anchor video according to claim 2, wherein: The word segmentation processing of the broadcast text includes: Generate a polyphonic word segmentation result set by performing word-by-word judgment and phrase matching on the broadcast copy; Pinyin matching is performed on the individual characters and phrases in the polyphonetic character segmentation result set, and the pinyin matching results are output in sequence based on the context information of the polyphonetic characters.

4. The method for generating a virtual anchor video according to claim 1, wherein: The rendering of the virtual anchor image in response to the modification operation of the anchor image layer includes: Responding to the position information of the change operation in the anchor image layer in the interaction layer; The anchor image layer includes at least one layer; Determining a layer to be modified based on the position information of the modification operation, and updating data of the layer to be modified based on the modification operation; The updated layer data is transmitted to the rendering layer, and the updated layer data is rendered to generate a virtual anchor image.

5. A virtual anchor video generation system, applied to the virtual anchor video generation method according to claim 1, comprising a text processing module, an action recommendation module, an image rendering module, and a video generation module, characterized in that: The text processing module is used to receive the broadcast text and perform polyphonic word processing on the broadcast text; The action recommendation module is used to set the virtual anchor action based on the broadcast copy after polyphonic character processing; The image rendering module is used to render the virtual anchor image in response to the modification operation of the anchor image layer; The video generation module is used to integrate the text processed with polyphones, the virtual anchor's actions, and the virtual anchor's image into a unified data structure for rendering, thereby generating a virtual anchor video.

6. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the virtual anchor video generation method as described in any one of claims 1 to 4 are implemented.

7. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps in the virtual anchor video generation method as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Voice mouth shape matching method and device, storage medium and electronic equipment

    CN116597858A