Live interactive commentary method, apparatus and server

By using a generative pre-trained language interaction model, narration is generated based on the style and events of the live stream, which solves the problem of insufficient flexibility in the interaction methods of existing technologies and improves the interactive effect and user stickiness of the live stream.

CN117061780BActive Publication Date: 2026-11-27GUANGZHOU HUYA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310974326.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2026-11-27
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

The interactive methods of AI assistants in existing internet live streaming are not very flexible and it is difficult to make personalized adjustments for different events and broadcasters, resulting in poor interactive effects.

Method used

By acquiring style indication information and current live event descriptions from the target live stream, interactive prompt text is generated and input into a generative pre-trained language interaction model to generate live event commentary that matches the style and content.

Benefits of technology

It achieved a match between the commentary on the live event and the style of the target live room, enriching the interactive expression and improving user stickiness and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061780B_ABST
    Figure CN117061780B_ABST
Patent Text Reader

Abstract

The application provides a live interactive commentary method and device and a server. The method comprises: obtaining a first interactive prompt text generated according to style indication information of a target live room; obtaining a current live event description field of the target live room, and inserting the current live event description field into the first interactive prompt text to obtain a second interactive prompt text; and inputting the second interactive prompt text into a generative pre-training-based language interaction model to obtain a live event commentary word output by the language interaction model. By generating an interactive prompt text according to the style indication information of the target live room and the current live event description field, and then inputting the interactive prompt text into the generative pre-training-based language interaction model to generate a live event commentary word, the generated live event commentary word can be consistent with the style of the target live room, and the commentary word can not be limited to a preset text template, and has a richer expression effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet live streaming, and more specifically, to a live interactive commentary method, device, and server. Background Technology

[0002] With the development of internet information technology, live streaming has attracted a large number of users. To enhance interactivity and viewer engagement in live streams, some interactive solutions incorporate artificial intelligence (AI) assistants that perform simple interactive actions based on events occurring in the live stream. These assistants can help the streamer reply to comments or welcome new viewers. However, such interactive methods are typically based on fixed reply or behavior templates, lacking flexibility and making it difficult to personalize adjustments for different events or individual streamers. Summary of the Invention

[0003] To overcome the aforementioned shortcomings in the prior art, the purpose of this application is to provide a live interactive commentary method, the method comprising:

[0004] Obtain style indication information related to the target live stream, and generate a first interactive prompt text including a style feature field based on the style indication information; the style feature field is used to indicate the style of the narration to be generated;

[0005] Obtain the current live event description field of the target live room, and insert the current live event description field into the first interactive prompt text to obtain the second interactive prompt text;

[0006] The second interactive prompt text is input into a generative pre-trained language interaction model to obtain the live event description text generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

[0007] In some possible implementations, the method further includes:

[0008] Obtain the current interactive text of the target live stream room;

[0009] Adjust the first interactive prompt text based on the current interactive text.

[0010] In some possible implementations, the first interactive prompt text further includes a commentary sentiment field, which indicates the sentiment of the live event commentary generated by the language interaction model; the step of adjusting the first interactive prompt text according to the current interactive text includes:

[0011] At least one of the current interactive texts is subjected to text content sentiment recognition using a natural language processing model;

[0012] Based on the result of the emotion recognition of the text content, adjust the emotion tendency field of the explanatory words in the first interactive prompt text;

[0013] The step of inputting the second interactive prompt text into the generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text includes:

[0014] The second interactive prompt text is input into the generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field, the current live event description field, and the commentary sentiment field in the second interactive prompt text.

[0015] In some possible implementations, the method further includes:

[0016] The live commentary audio is generated based on the live event narration text using a speech synthesis model and then played in the target live room.

[0017] In some possible implementations, the step of obtaining the current live event description field of the target live room and inserting the current live event description field into the first interactive prompt text to obtain the second interactive prompt text includes:

[0018] Obtain the current live event description field and at least one historical live event description field related to the current live event description of the target live room;

[0019] The current live event description field and the historical live event description field are inserted into the first interactive prompt text to obtain the second interactive prompt text.

[0020] In some possible implementations, the style indication information includes multiple historical interaction texts of the target live stream; the step of generating the first interactive prompt text based on the style indication information includes:

[0021] Keyword frequency statistics were performed on multiple historical interaction texts.

[0022] Based on the keyword frequency statistics, a style feature field consisting of at least one keyword is obtained;

[0023] Generate the first interactive prompt text, which includes the style feature fields.

[0024] In some possible implementations, the step of obtaining style indication information related to the target live stream and generating a first interactive prompt text including the style feature field based on the style indication information includes:

[0025] Obtain style indication information and preset generation task prompt fields related to the target live broadcast room; the generation task prompt fields are used to prompt the language interaction model to generate the live broadcast event description based on the obtained information;

[0026] Based on the style indication information, a first interactive prompt text is generated, including the style feature field and the generated task prompt field;

[0027] The step of inputting the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text includes:

[0028] The second interactive prompt text is input into a generative pre-trained language interaction model, which then performs the task indicated by the generation task prompt field to generate a live event description that is related to the content indicated by the current live event description field and whose language style conforms to the content indicated by the style feature field.

[0029] Another objective of this application is to provide a live interactive commentary device, the live interactive commentary device comprising:

[0030] The first data generation module is used to acquire style indication information related to the target live broadcast room, and generate a first interactive prompt text including a style feature field based on the style indication information; the style feature field is used to indicate the style of the narration to be generated.

[0031] The second data generation module is used to obtain the current live event description field of the target live room and insert the current live event description field into the first interactive prompt text to obtain the second interactive prompt text.

[0032] The narration generation module is used to input the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event narration generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

[0033] Another objective of this application is to provide a server, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and the machine-executable instructions, when executed by the processor, implement the live interactive commentary method provided in this application.

[0034] Another objective of this application is to provide a machine-readable storage medium storing machine-executable instructions, which, when executed by one or more processors, implement the live interactive commentary method provided in this application.

[0035] Compared with the prior art, this application has the following beneficial effects:

[0036] The live interactive commentary method, apparatus, and server provided in this application generate interactive prompt text based on the style indication information of the target live room and the description field of the current live event. Then, the interactive prompt text is input into a generative pre-trained language interaction model to generate live event commentary. In this way, the generated live event commentary can match the style of the target live room, and the commentary can be not limited to a preset text template, thus having a richer expressive effect. Attached Figure Description

[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is one of the flowcharts illustrating the steps of the live commentary and interactive method provided in the embodiments of this application;

[0039] Figure 2 This is the second flowchart illustrating the steps of the live commentary and interactive method provided in the embodiments of this application.

[0040] Figure 3 A schematic diagram of the live streaming system provided in the embodiments of this application;

[0041] Figure 4 A block diagram of a server provided in an embodiment of this application;

[0042] Figure 5 A schematic diagram of the functional modules of the live interactive device provided in the embodiments of this application. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0044] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0045] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0046] In the description of this application, it should be noted that the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0047] Please see Figure 1 , Figure 1 This is a flowchart illustrating the steps of a live interactive commentary method provided in this embodiment. The steps of the method are described in detail below.

[0048] Step S110: Obtain historical interactive text style indication information related to the target live room, and generate a first interactive prompt text including the style feature field based on the style indication information. The first interactive prompt text includes a generation task prompt field, which is used to prompt the generation of live event commentary based on a generative pre-trained language interaction model. The style feature field is used to indicate the style of the commentary to be generated.

[0049] In this embodiment, the target live streaming room can be a virtual live streaming room for a specific streamer, where the streamer can post live videos they have filmed or recorded. Viewers who enter the target live streaming room can watch the live videos. Viewers can also interact within the target live streaming room, such as sending comments, sending bullet comments, and tipping the streamer.

[0050] The style indication information includes language style that can be used to characterize the narration text to be generated for the live event. The style indication information can be provided by the host of the target live stream, or it can be obtained based on the historical interaction information of the target live stream. Corresponding style feature fields can be generated based on the style indication information. It should be noted that, in this embodiment, in addition to the style feature fields, the first interactive prompt text may include several other fields, which can be copied or adjusted in subsequent steps.

[0051] Step S120: Obtain the current live event description field of the target live room, and insert the current live event description field into the first interactive prompt text to obtain the second interactive prompt text.

[0052] In this embodiment, the live streaming screen of the target live streaming room can be identified and / or the live streaming events that have occurred can be obtained through the data interface related to the target live streaming room, and the description field of the current live streaming event can be obtained in sequence.

[0053] For example, data interfaces associated with the target live stream can be used to obtain events such as viewer entry and viewer donations. For game live streams, image or voice recognition of the live stream video can be used to obtain events such as game character kills, being killed, and assists.

[0054] After obtaining the current live event description field, the current live event description field can be inserted into or replace the first interactive prompt text to obtain the second interactive prompt text. That is, the first interactive prompt text is used as an interactive prompt template. Each time a new live event occurs, the corresponding current live event description field is inserted into the interactive prompt template to obtain the second interactive prompt text.

[0055] Step S130: Input the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event description generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

[0056] In this embodiment, the second interactive prompt text can be input into the generative pre-trained language interaction model, such as the ChatGPT model. The second interactive prompt text can instruct the language interaction model to generate a live event description that conforms to the style indication information and the content of the current live event description.

[0057] Based on the above design, the live interactive commentary method provided in this embodiment generates interactive prompt text according to the style indication information of the target live room and the description field of the current live event. Then, the interactive prompt text is input into a generative pre-trained language interaction model to generate live event commentary. In this way, the generated live event commentary can match the style of the target live room, and the commentary can be not limited to the preset text template, and has a richer expressive effect.

[0058] In one possible implementation, the first interactive prompt text may further include a generation task prompt field, which is used to prompt the language interaction model to generate the live event commentary based on the obtained information. In step S110, style indication information related to the target live room and a preset generation task prompt field can be obtained, and then a first interactive prompt text including the style feature field and the generation task prompt field can be generated according to the style indication information.

[0059] That is, the first interactive prompt text may include multiple fields, such as style feature fields related to the style indication information described above and pre-set generation task prompt fields. The generation task prompt fields are used to prompt the language interaction model based on generative pre-training to generate commentary for the live event. For example, when interacting with the language interaction model using the first interactive prompt text as an interactive prompt, the generation task prompt fields are used to indicate the task that the language interaction model needs to perform: generating commentary based on the content of other fields in the prompt (i.e., the first interactive prompt text).

[0060] Based on this, the second interactive prompt text may also include a task prompt field, a style indication information field, and a current live event description field.

[0061] The task prompt field is used to prompt the generation of commentary based on a generative pre-trained language interaction model that matches the style indication information field and the current live event description field. The style indication information field indicates that the live event commentary to be generated conforms to the style of the target live room's style indication information. The current live event description field indicates the event that the generated live event commentary needs to comment on or explain.

[0062] Please refer to Figure 2 In some possible implementations, the method provided in this embodiment may further include the following steps.

[0063] Step S210: Obtain the current interactive text of the target live stream room.

[0064] In this embodiment, the current interactive text may include comment text and / or bullet screen text in the target live stream within a current time period. The current interactive text can reflect the audience's reaction to the currently broadcast content in the target live stream.

[0065] Step S220: Adjust the first interactive prompt text according to the current interactive text.

[0066] In this embodiment, the corresponding fields in the first interactive prompt text can be dynamically adjusted according to the current interactive text, so that the information carried in the first interactive prompt text can represent the audience's reaction to the currently broadcast content of the target live room. As a result, after the second interactive prompt text generated based on the first interactive prompt text is input into the language interaction model, the live event commentary output by the language interaction model is closer to the audience's current reaction, resonates with the audience, and further improves user stickiness.

[0067] Specifically, in one possible implementation, the first interactive prompt text further includes a commentary sentiment field, which is used to indicate the sentiment of the commentary on the live event generated by the language interaction model.

[0068] In step S220, a natural language processing model can be used to perform text content sentiment recognition on at least one of the current interactive texts. Then, based on the result of the text content sentiment recognition, the sentiment tendency field of the explanatory words in the first interactive prompt text is adjusted.

[0069] For example, the emotion recognition results of the text content can include, but are not limited to, praise, sarcasm, humor, and envy. Furthermore, the emotion recognition results of different types of text content can prompt the language interaction model to generate different explanatory texts.

[0070] Thus, in step S130, the second interactive prompt text can be input into the generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field, the current live event description field, and the commentary sentiment field in the second interactive prompt text.

[0071] In one example, when the text content emotion recognition result indicates that the current viewer's emotional tendency is praise, the text content emotion recognition result is assigned to the first interactive prompt text. Then, the second interactive prompt text is generated based on the first interactive prompt text and sent to the language interaction model. The language interaction model can then generate positive praise for the anchor based on the text content emotion recognition result, thereby catering to the viewer's emotions.

[0072] In another example, when the text content emotion recognition result indicates that the current audience's emotional tendency is sarcastic, the text content emotion recognition result is assigned to the first interactive prompt text. Then, the second interactive prompt text is generated based on the first interactive prompt text and sent to the language interaction model. The language interaction model can then generate humorous or contradictory explanations based on the text content emotion recognition result, thereby easing the audience's emotions.

[0073] Based on the above design, in the solution provided in this embodiment, by acquiring the current interactive text in real time and then dynamically and automatically adjusting the first interactive prompt text, the final output of the live event commentary can cater to or guide the audience's emotions, improve the interactivity between the commentary and the audience, and thus increase user stickiness.

[0074] In some possible implementations, step S140 may be included after step S130.

[0075] Step S140: Generate live commentary audio based on the live event commentary text using a speech synthesis model, and play the live commentary audio in the target live room.

[0076] In this embodiment, the live event commentary obtained through steps S110 to S130 can be input into a speech synthesis model. The speech synthesis model will then convert the live event commentary into audio and play it in the live room, thereby enabling automatic commentary on the events occurring in the target live room.

[0077] Furthermore, in some possible implementations, a virtual avatar can be displayed in the target live streaming room, and the virtual avatar can be controlled to perform corresponding interactive actions while the live streaming commentary audio is played in the target live streaming room.

[0078] Based on the above design, in the solution provided in this embodiment, the virtual image can automatically perform commentary based on the events occurring in the target live broadcast room, thereby increasing user engagement by interacting with the viewers of the live broadcast through automatic commentary without the need for extensive intervention from the broadcaster.

[0079] In some possible implementations, in order to better connect the live event commentary with the events that occur in the target live room over a period of time and improve the narrative coherence of the live event commentary, historical events of the target live room over a period of time can be inserted into the second interactive prompt text, so that the language interaction model can generate more narratively coherent commentary based on these historical events.

[0080] Specifically, in step S120, the current live event description field and at least one historical live event description field related to the current live event description field of the target live room can be obtained, and then the current live event description field and the historical live event description field are inserted into the first interactive prompt text to obtain the second interactive prompt text.

[0081] For example, taking game live streaming as an example, when the content of the historical live streaming event description field is "Character A defeats Character B", and the content of the current live streaming event description field is "Character B defeats Character A", after sending the second interactive prompt text containing the above historical live streaming event description field and the current live streaming event description field to the language interaction model, the language interaction model can generate a live streaming event description such as "Character B completes a 'revenge' against Character A" based on the context.

[0082] Optionally, the historical live event description field may include a list of events organized chronologically. That is, the historical live event description fields corresponding to multiple historical live events preceding the current live event can be added to the second interactive prompt text, thereby enabling the language interaction model to generate more narratively coherent narration based on multiple historical live event description fields.

[0083] In one possible implementation, the style indication information can be set autonomously by the broadcaster user in the target live stream. For example, the broadcaster user can select one or more preset options for their desired commentary style, or the broadcaster user can input descriptive information that can characterize their desired commentary style or input commentary text as a reference. In this way, the corresponding style feature field can be obtained based on the style indication information set by the broadcaster user, and then the corresponding style of live event commentary can be generated subsequently.

[0084] In another possible implementation, style indication information consistent with the target live stream's style can be automatically obtained based on historical interaction information within the target live stream. For example, the style indication information includes multiple historical interaction texts from the target live stream, including historical comment texts, historical bullet screen texts, and / or text converted from the streamer's historical voice recordings. The content of the style indication information typically includes popular phrases, industry-specific terms (e.g., gaming terms), and the streamer's catchphrases that frequently appear in the target live stream content. In other words, the style indication information can reflect the style of the streamer and / or the style of the audience in the target live stream.

[0085] Based on this, step S110 may include the following sub-steps.

[0086] Step S111: Obtain multiple historical interaction texts from the target live stream room.

[0087] In this embodiment, the historical interaction text of the target live stream room over a period of time can be obtained, for example, the historical interaction text within a week. This historical interaction text can be obtained through web crawlers or data interfaces related to the target live stream room.

[0088] Step S112: Perform keyword frequency statistics on multiple historical interactive texts.

[0089] In this embodiment, the historical interactive text can be segmented using a natural language processing model, and then meaningless words or phrases (such as "like", "+1", etc.) can be removed to obtain multiple keywords. Frequency statistics and ranking are then performed on each keyword.

[0090] Step S113: Obtain a style feature field consisting of at least one keyword based on the keyword frequency statistics results.

[0091] In this embodiment, the style feature field can be constructed based on one or more keywords that appear frequently in the keyword frequency statistics results. It should be noted that, in this embodiment, the style feature field may also include phrases, sentences, or word groups with a specific structure composed of keywords.

[0092] The keywords that appear frequently can characterize the language expression style commonly used or preferred by the anchor or viewers in the target live broadcast room. Therefore, the style feature field constructed based on the keywords that appear frequently can represent the style of the target live broadcast room.

[0093] Step S114: Generate the first interactive prompt text including the style feature field.

[0094] In this embodiment, the style feature field is generated based on the keywords in the style indication information and added to the first interactive prompt text. Subsequently, the second interactive prompt text is generated based on the first interactive prompt text and sent to the language interaction model for processing. This allows the style of the live event commentary generated by the language interaction model to be consistent with the style of the historical interactive text in the target live room, thereby achieving personalized customization of the commentary style for different live rooms.

[0095] In one possible implementation, the first interactive prompt text may further include an output format indicator field, which instructs the language interaction model to output the generated live event commentary according to a set format. Thus, after obtaining the live event commentary, its content can be extracted according to a specific format for subsequent speech conversion or display.

[0096] In one example, the first interactive prompt text may include the generated task prompt field, the style feature field, the narration sentiment field, the current live event description field, the historical live event description field, and the output format indication field.

[0097] The task prompt field is used to prompt the language interaction model that the interactive task to be performed is to generate narration for a live event. For example, the content of the task prompt field may include the following:

[0098] "Task: You are the intelligent assistant of XXX game streamer. You sit next to the game streamer and know how to judge the streamer's game performance based on in-game data. Your core objective is to understand the battle situation and the streamer's performance, while also making fun of the streamer to resonate with the viewers in the live stream."

[0099] Background: You have a strong background in game streaming, XXX game, and the esports scene, especially in XXX game, where you are extremely knowledgeable. Your evaluation style is based on data, and you know how to change your wording and tone to make boring content interesting.

[0100] Experience: You need to determine what content viewers like based on their comment style, and then use a similar style to make jokes with the streamer to increase viewer interest.

[0101] The current live event description field is used to indicate to the language interaction model what kind of event the live event description is generated for. For example, the current live event description field may include the following:

[0102] The "Game event to be explained" is: Game over, this round won.

[0103] The narration sentiment field is used to indicate the sentiment of the narration generated by the language interaction model for the live event. For example, the narration sentiment field may include the following:

[0104] Reply length: 5-20 characters

[0105] Reply style: humorous, concise.

[0106] The style feature field is used to indicate to the language interaction model what style of narration should be generated. For example, the style feature field may include the following:

[0107] "The streamer's personal information:"

[0108] Name: XXX, audiences often call him "XXX";

[0109] Using memes related to the streamer that viewers enjoy joking about makes it easier to capture their interest.

[0110] 1. Homophonic pun: XXX

[0111] 2. Commonly used phrases: "XXX"

[0112] The historical live event description field is used to prompt the language interaction model to generate narratively coherent narration based on which historical live events. For example, the historical live event description field may include the following:

[0113] "###At this point, the streamer's team is at a clear disadvantage. When the streamer's character kills an enemy character, the chat messages from the viewers in the live stream are as follows:"

[0114] [Historical Live Event Description Field 1]

[0115] [Historical Live Event Description Field 2]

[0116] [Historical Live Event Description Field 3]

[0117] The output format indication field is used to indicate the format that the language interaction model should follow when outputting the live event narration. For example, the output format indication field may include the following:

[0118] Reply format:

[0119] 1. json file [{"n":" <content>"}]

[0120] ###Reply Format Example

[0121] {"1":"XXX"}”

[0122] Please refer to Figure 3 , Figure 3 This embodiment provides a schematic diagram of a live streaming system, which may include a server and at least one user terminal connected to the server.

[0123] In this embodiment, the server may be a single device or a cluster of multiple devices.

[0124] The user terminal may include the terminal device of the broadcaster and / or the terminal device of the viewer, and the user terminal may include mobile phones, tablets, laptops, desktop computers, etc.

[0125] The broadcaster can shoot or record live video using their terminal device and send it to the server. The server can process the acquired live video and then push it to one or more viewer terminal devices. The broadcaster and viewer can also use the server as an intermediary to exchange information or interact, such as through bullet comments, voice chat, or game interaction.

[0126] The method provided in this embodiment can be run on Figure 1 The server shown automatically generates the second interactive prompt text based on various information of the target live broadcast room where the broadcaster is located through steps S110 to S130, thereby obtaining the live broadcast event commentary.

[0127] In one example, the server provided in this embodiment can be configured with the language interaction model. In another example, the server provided in this embodiment can communicate with other devices configured with the language interaction model, thereby sending the second interactive prompt text to the other devices and obtaining the live event commentary generated by the other devices.

[0128] In some possible implementations, the server may also generate corresponding live commentary audio and / or interactive effects of virtual avatars based on the live event commentary, load them into the live video, and push them to the audience.

[0129] Please refer to Figure 4 , Figure 4 This is a block diagram of server 100. When server 100 is regarded as an independent device, server 100 may include live interactive commentary device 110, machine-readable storage medium 120, and processor 130.

[0130] The machine-readable storage medium 120, processor 130, and communication unit 140 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The live interactive commentary device 110 includes at least one software function module that can be stored in the machine-readable storage medium 120 in the form of software or firmware or embedded in the operating system (OS) of the server 100. The processor 130 is used to execute the executable modules stored in the machine-readable storage medium 120, such as the software function modules and computer programs included in the live interactive commentary device 110.

[0131] The machine-readable storage medium 120 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The machine-readable storage medium 120 is used to store programs, and the processor 130 executes these programs / can execute the live interactive commentary method provided in this embodiment after receiving execution instructions.

[0132] The processor 130 may be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor.

[0133] Please refer to Figure 5 This embodiment also provides a live interactive commentary device 110, which includes at least one functional module that can be stored in a machine-readable storage medium 120 in software form. Functionally, the live interactive commentary device 110 may include a first data generation module 111, a second data generation module 112, and a commentary generation module 113.

[0134] The first data generation module 111 is used to obtain style indication information related to the target live room, and generate a first interactive prompt text including a style feature field based on the style indication information; the style feature field is used to indicate the style of the narration to be generated.

[0135] In this embodiment, the first data generation module 111 can be used to perform... Figure 1 For a detailed description of the first data generation module 111, see the description of step S110 shown.

[0136] The second data generation module 112 is used to obtain the current live event description field of the target live room and insert the current live event description field into the first interactive prompt text to obtain the second interactive prompt text.

[0137] In this embodiment, the second data generation module 112 can be used to perform... Figure 1 For a detailed description of the second data generation module 112, see the description of step S120 shown.

[0138] The narration generation module 113 is used to input the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event narration generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

[0139] In this embodiment, the narration generation module 113 can be used to perform... Figure 1 For a detailed description of the explanatory text generation module 113 shown in step S130, please refer to the description of step S130.

[0140] In summary, the live interactive commentary method, apparatus, and server provided in this application generate interactive prompt text based on the style indication information of the target live room and the description field of the current live event. Then, the interactive prompt text is input into a generative pre-trained language interaction model to generate live event commentary. In this way, the generated live event commentary can match the style of the target live room, and the commentary can be free from the limitations of preset text templates, resulting in a richer expressive effect.

[0141] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0142] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0143] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0144] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0145] The above descriptions are merely various embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.< / content>

Claims

1. A live interactive commentary method, characterized in that, The method includes: Obtain style indication information related to the target live stream, and generate a first interactive prompt text including a style feature field based on the style indication information; the style feature field is used to indicate the style of the narration to be generated; The current live event description field is obtained by identifying the live screen of the target live room and / or by obtaining the live event that has occurred through the data interface related to the target live room; Obtain at least one historical live event description field related to the current live event description from the target live room; Insert the current live event description field and the historical live event description field into the first interactive prompt text to obtain the second interactive prompt text; The second interactive prompt text is input into a generative pre-trained language interaction model to obtain the live event description text generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

2. The method according to claim 1, characterized in that, The method further includes: Obtain the current interactive text of the target live stream room; Adjust the first interactive prompt text based on the current interactive text.

3. The method according to claim 2, characterized in that, The first interactive prompt text also includes a commentary sentiment field, which is used to indicate the sentiment of the commentary on the live event generated by the language interaction model; The step of adjusting the first interactive prompt text according to the current interactive text includes: At least one of the current interactive texts is subjected to text content sentiment recognition using a natural language processing model; Based on the result of the emotion recognition of the text content, adjust the emotion tendency field of the explanatory words in the first interactive prompt text; The step of inputting the second interactive prompt text into the generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text includes: The second interactive prompt text is input into the generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field, the current live event description field, and the commentary sentiment field in the second interactive prompt text.

4. The method according to claim 1, characterized in that, The method further includes: The live commentary audio is generated based on the live event narration text using a speech synthesis model and then played in the target live room.

5. The method according to claim 1, characterized in that, The style indication information includes multiple historical interaction texts from the target live stream room; The step of obtaining style indication information related to the target live stream, and generating a first interactive prompt text based on the style indication information, includes: Obtain multiple historical interaction texts from the target live stream; Keyword frequency statistics were performed on multiple historical interaction texts. Based on the keyword frequency statistics, a style feature field consisting of at least one keyword is obtained; Generate the first interactive prompt text, which includes the style feature fields.

6. The method according to claim 1, characterized in that, The step of obtaining style indication information related to the target live stream and generating a first interactive prompt text including the style feature field based on the style indication information includes: Obtain style indication information and preset generation task prompt fields related to the target live broadcast room; the generation task prompt fields are used to prompt the language interaction model to generate the live broadcast event description based on the obtained information; Generate a first interactive prompt text that includes the style feature field and the generation task prompt field based on the style indication information; The step of inputting the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event commentary generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text includes: The second interactive prompt text is input into a generative pre-trained language interaction model, which then performs the task indicated by the generation task prompt field to generate a live event description that is related to the content indicated by the current live event description field and whose language style conforms to the content indicated by the style feature field.

7. A live interactive commentary device, characterized in that, The live interactive commentary device includes: The first data generation module is used to acquire style indication information related to the target live broadcast room, and generate a first interactive prompt text including a style feature field based on the style indication information; the style feature field is used to indicate the style of the narration to be generated. The second data generation module is used to obtain a current live event description field by recognizing the live screen of the target live room and / or obtaining the live event that has occurred through a data interface related to the target live room; to obtain at least one historical live event description field of the target live room related to the current live event description; and to insert the current live event description field and the historical live event description field into the first interactive prompt text to obtain a second interactive prompt text. The narration generation module is used to input the second interactive prompt text into a generative pre-trained language interaction model to obtain the live event narration generated by the language interaction model based on the style feature field and the current live event description field in the second interactive prompt text.

8. A server, characterized in that, The method includes a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, which, when executed by the processor, implement the method according to any one of claims 1-6.

9. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions that, when executed by one or more processors, implement the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Live broadcast content generation method and device

    CN114125492A