Audio replacement method, system, device, computer equipment and storage medium in live broadcast room

By converting audio stream data into text streams during online live broadcasts and generating alternative audio streams on the client, the problems of audio and video lagging and excessive traffic consumption are solved, and the live broadcast experience and audience retention rate are improved.

CN114630144BActive Publication Date: 2024-10-01GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210208196.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2024-10-01
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

In online live broadcasts, audio and video lagging problems caused by low network transmission rates, packet loss, and encoding and decoding complexity affect the audience experience and lead to excessive traffic consumption, resulting in audience loss.

Method used

Convert audio stream data into text stream data through the server in the live broadcast room, and use the pre-trained audio generation model to generate alternative audio stream data on the audience client, replacing the original audio stream data output, reducing server load and saving traffic .

Benefits of technology

It effectively reduces the impact of audio and video lagging, improves the audience's live broadcast experience, extends viewing time, and reduces device load and traffic consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630144B_ABST
    Figure CN114630144B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of network live broadcast, and proposes a method, system, device and computer equipment for replacing audio in a live broadcast room, the method comprising: the server responds to an audio conversion instruction, obtains first speaker information and first audio stream data corresponding to the first speaker information; converts the first audio stream data into first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; the audience client responds to the audio generation instruction, inputs the first text stream data to the audio generation model corresponding to the first speaker identifier, and obtains the second audio stream data; the audience client replaces the first audio stream data output in the live broadcast with the second audio stream data. Compared with the prior art, the present application can effectively improve the phenomenon of audio freeze and improve the audience's live broadcast experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of network live broadcast technology, and in particular, to a method, system, device and computer equipment for replacing audio in a live broadcast room. Background Art

[0002] With the rapid development of communication technology and streaming media technology, online live streaming has been loved by more and more users. A variety of offline activities can be carried out in the online live broadcast room, such as interviews, game activities, and blind date activities.

[0003] During the live broadcast process, the host client will collect audio and video stream data in real time and encode the audio and video stream data. After that, the encoded audio and video stream data will be sent to the server. The audience client that joins the live broadcast room (i.e., live broadcast channel) will then pull the encoded audio and video stream data from the server and decode and play it, so that the audience can watch the live content in the live broadcast room.

[0004] In the above process, due to the interference of many factors such as low network transmission rate, data packet loss and high complexity of encoding and decoding, audio and video freezes often occur in the live broadcast room, thus affecting the audience's live broadcast experience and causing audience loss. In addition, the transmission and encoding and decoding of real-time audio and video stream data can easily lead to excessive load on the server and client, and consume a large amount of the audience's available traffic. Summary of the invention

[0005] The embodiments of the present application provide a method, system, device and computer equipment for replacing audio in a live broadcast room, which can solve the technical problems of poor audience network live broadcast experience and audience loss caused by audio and video freezes and excessive traffic consumption. The technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for replacing audio in a live broadcast room, comprising the steps of:

[0007] The server responds to the audio conversion instruction, obtains the first speaker information and the first audio stream data corresponding to the first speaker information; converts the first audio stream data into the first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room;

[0008] The audience client, in response to the audio generation instruction, obtains the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier;

[0009] The audience client replaces the first audio stream data output in the live broadcast with the second audio stream data.

[0010] In a second aspect, an embodiment of the present application provides an audio replacement system in a live broadcast room, including: a server and a viewer client;

[0011] The server is used to respond to the audio conversion instruction, obtain the first speaker information and the first audio stream data corresponding to the first speaker information; convert the first audio stream data into the first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room;

[0012] The audience client is used to respond to the audio generation instruction, obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier, and obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is trained based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier;

[0013] The audience client is used to replace the first audio stream data output in the live broadcast with the second audio stream data.

[0014] In a third aspect, an embodiment of the present application provides an audio replacement device in a live broadcast room, comprising:

[0015] A first conversion unit is used for the server to respond to an audio conversion instruction, obtain first speaker information and first audio stream data corresponding to the first speaker information; convert the first audio stream data into first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room;

[0016] A first generating unit is used for the audience client to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data in response to the audio generation instruction; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier;

[0017] The first replacement unit is used for the audience client to replace the first audio stream data output in the live broadcast with the second audio stream data.

[0018] In a fourth aspect, an embodiment of the present application provides a computer device, a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0019] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect.

[0020] In an embodiment of the present application, a server responds to an audio conversion instruction to obtain first speaker information and first audio stream data corresponding to the first speaker information; converts the first audio stream data into first text stream data; determines a first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to an audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room; the audience client responds to an audio generation instruction to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data into a pre-trained audio generation model corresponding to the first speaker identifier to obtain second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier; the audience client replaces the first audio stream data output in the live broadcast with the second audio stream data. In the embodiment of the present application, in the process of sending audio stream data to the audience client in real time, the server will respond to the audio conversion instruction, obtain the first speaker information (that is, the speaker information corresponding to the current speaker in the live broadcast room) and the first audio stream data corresponding to the first speaker information, and then convert the first audio stream data into first text stream data, and determine the first speaker identifier corresponding to the first text stream data based on the first speaker information, so as to send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room, and then when the audience client responds to the audio generation instruction, the first text stream data can be input into the first A pre-trained audio generation model corresponding to a speaker identifier is used to obtain the second audio stream data, and then the first audio stream data currently output in the live broadcast room is replaced with the second audio data. In this way, in situations such as audio stuttering, the audience can promptly hear the second audio data that simulates the voice of the current speaker, greatly reducing the impact of the stuttering phenomenon on the audience's live broadcast experience. In addition, since the first audio stream data currently output in the live broadcast room is replaced with the second audio data, the server can also suspend the sending of audio stream data, thereby achieving the purpose of saving traffic and reducing equipment load, further improving the audience's live broadcast experience, and increasing the audience's retention rate and viewing time.

[0021] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of an application scenario of the audio replacement method in a live studio provided in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of displaying a video screen in a live broadcast scenario with microphones connected is provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of displaying a video screen in a multi-person live broadcast scenario provided in an embodiment of the present application;

[0025] Figure 4 A flowchart of an audio replacement method in a live studio provided in the first embodiment of the present application;

[0026] Figure 5 A schematic diagram of the flow of S101 in the audio replacement method in the live studio provided in the first embodiment of the present application;

[0027] Figure 6 Another flowchart of the method for replacing audio in a live studio provided in the first embodiment of the present application;

[0028] Figure 7 Another flowchart of the audio replacement method in a live broadcast room provided in the first embodiment of the present application;

[0029] Figure 8 A flowchart of an audio replacement method in a live studio provided in the second embodiment of the present application;

[0030] Fig. 9 Another flowchart of the method for replacing audio in a live studio provided in the second embodiment of the present application;

[0031] Fig.10 Another flowchart of the audio replacement method in a live broadcast room provided in the second embodiment of the present application;

[0032] Fig.11 A schematic diagram of the structure of an audio replacement system in a live studio provided in the third embodiment of the present application;

[0033] Fig.12 A schematic diagram of the structure of an audio replacement device in a live studio provided in the fourth embodiment of the present application;

[0034] Fig.13 A schematic diagram of the structure of a computer device provided in the fifth embodiment of the present application. DETAILED DESCRIPTION

[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0036] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0037] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".

[0038] Those skilled in the art will appreciate that the "client", "terminal" and "terminal device" used in this application include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.

[0039] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially a computer device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0040] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0041] See also Figure 1 , Figure 1 This is a schematic diagram of an application scenario of the audio replacement method in a live broadcast room provided in an embodiment of the present application. The application scenario includes the anchor client 101, server 102 and audience client 103 provided in an embodiment of the present application. The anchor client 101 and the audience client 103 interact with each other through the server 102.

[0042] The client proposed in the embodiment of the present application includes the anchor client 101 and the audience client 103.

[0043] It should be pointed out that there are various understandings of the concept of "client" in the prior art. For example, it can be understood as an application installed in a computer device, or it can also be understood as a hardware device corresponding to a server.

[0044] In the embodiments of the present application, the so-called "client" refers to a hardware device corresponding to a server, and more specifically, refers to a computer device, such as a smart phone, a smart interactive tablet, and a personal computer.

[0045] When the client is a mobile device such as a smartphone or smart interactive tablet, the user can install a matching mobile application on the client or access a Web application on the client.

[0046] When the client is a non-mobile device such as a personal computer (PC), the user can install a matching PC-side application on the client, and can also access the Web-side application on the client.

[0047] Among them, mobile applications refer to applications that can be installed on mobile devices, PC applications refer to applications that can be installed on non-mobile devices, and Web applications refer to applications that need to be accessed through a browser.

[0048] Specifically, web applications can be divided into mobile versions and PC versions based on the differences in client types. The page layout methods and server support that can be provided between the two may be different.

[0049] In the embodiment of the present application, the types of live broadcast applications provided to users are divided into mobile live broadcast applications, PC live broadcast applications and Web live broadcast applications. Users can choose the way to participate in the live broadcast independently according to the different types of clients they use.

[0050] In this application, the client may be divided into a host client 101 and a viewer client 103 according to different user identities of the client.

[0051] Among them, the anchor client 101 refers to the end that sends the live broadcast video, which is usually the client used by the anchor (ie, the live broadcast anchor user) in the live broadcast.

[0052] The audience client 103 refers to an end for receiving and watching live network video, and is generally a client used by the audience (ie, live broadcast audience user) who watches the video in the live network broadcast.

[0053] The hardware pointed to by the host client 101 and the audience client 103 is essentially a computer device, specifically, Figure 1 As shown, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc. Both the host client 101 and the audience client 103 can access the Internet through a known network access method and establish a data communication link with the server 102.

[0054] Server 102 is a service server, which can be responsible for further connecting related audio data servers, video streaming servers and other servers that provide related support, so as to form a logically related service cluster to serve related terminal devices, such as Figure 1 The host client 101 and the audience client 103 shown in FIG. 1 provide services.

[0055] In the embodiment of the present application, the host client 101 and the audience client 103 can join the same live broadcast room (i.e., live broadcast channel), which refers to a chat room implemented by Internet technology, usually with audio and video broadcast control functions. The host user broadcasts live in the live broadcast room through the host client 101, and the audience of the audience client 103 can log in to the server 102 to enter the live broadcast room to watch the live broadcast.

[0056] In the live broadcast room, the host and the audience can interact through known online interactive methods such as voice, video, and text. Generally, the host performs programs for the audience in the form of audio and video streams, and economic transactions can also be generated during the interaction. Of course, the application form of the live broadcast room is not limited to online entertainment, but can also be extended to other related scenarios, such as video conferencing scenarios, product promotion and sales scenarios, and any other scenarios that require similar interactions.

[0057] Specifically, the host logs in to the server 102 through the host client 101, triggering the host client 101 to load the start broadcast interface. The start broadcast interface displays a start broadcast control. The host can start the live broadcast by clicking the start broadcast control. If the current mode is the video live broadcast mode, the host client 101 will be triggered to collect audio and video stream data. If the current mode is the voice live broadcast mode, the host client 101 will be triggered to collect audio stream data.

[0058] The video stream data is collected by a camera that has established a data connection with the anchor client 101 . The camera may be a built-in camera of the anchor client 101 or an external camera of the anchor client 101 .

[0059] Taking the live video mode as an example, the anchor client 101 encodes the collected audio and video stream data, and pushes the encoded audio and video stream data to the server 102.

[0060] If the audience enters the live broadcast room created by the anchor through the audience client 103, the audience client 103 will be triggered to pull the encoded audio and video stream data from the server 102, and output it to the live broadcast interface after decoding, so that the audience can watch the live content in the live broadcast room.

[0061] There is no limitation on the method of entering the live broadcast room created by the anchor. The audience can enter the live broadcast room created by the anchor through the live broadcast room recommendation page, manual search for the live broadcast room, and sliding up and down the live broadcast room interface.

[0062] In the embodiment of the present application, a multi-person live broadcast scenario is described, which is different from the live broadcast scenario with microphones connected. The live broadcast scenario with microphones connected is based on the server establishing a microphone session connection between at least two anchor clients. In the live broadcast scenario with microphones connected, the live broadcast room will output the audio and video stream data collected by at least two anchor clients. Figure 2 , Figure 2 A schematic diagram of displaying a video screen in a live broadcast scenario provided by an embodiment of the present application. Figure 2 It can be seen that there are currently two hosts connected to the microphone. On the left side of the video window 21 is the video screen 211 corresponding to the first host connected to the microphone, and on the right side 211 of the video window 21 is the video screen 212 corresponding to the second host connected to the microphone.

[0063] The multi-person live broadcast scenario proposed in the embodiment of the present application refers to a live broadcast scenario with multiple users in the same physical environment. At this time, the video screen captured by the anchor client contains images of multiple users. Since the online live broadcast process is a process of real-time interaction and communication with the audience, the above-mentioned users can also be called spokespersons, and the multiple spokespersons may include or exclude the anchor who created the live broadcast room.

[0064] For example, in a live broadcast of a multi-person interview in a certain physical environment, the video footage collected by the anchor client will include the images of multiple speakers, and the audio stream data collected by the anchor client will include the voices of multiple speakers.

[0065] See also Figure 3 , Figure 3 This is a schematic diagram of the display of a video screen in a multi-person live broadcast scenario provided by an embodiment of the present application. It can be seen that Figure 3 The video screen 32 displayed in the middle video window 31 includes images of multiple speakers. The video screen 32 is a video screen collected by an anchor client, rather than a mixed video screen in a live broadcast scenario.

[0066] Regardless of the live broadcast scenario, due to the interference of many factors such as low network transmission rate, packet loss, and high codec complexity, audio and video freezes often occur in the live broadcast room, thus affecting the audience's network live broadcast experience and causing audience loss. Based on the above, the embodiment of the present application provides an audio replacement method in a live broadcast room. Please refer to Figure 4 , Figure 4 The flowchart of the audio replacement method in the live broadcast room provided by the first embodiment of the present application includes the following steps:

[0067] S101: The server responds to the audio conversion instruction, obtains the first speaker information and the first audio stream data corresponding to the first speaker information; converts the first audio stream data into the first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room.

[0068] S102: The audience client responds to the audio generation instruction to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is trained based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier.

[0069] S103: The viewer client replaces the first audio stream data output in the live broadcast with the second audio stream data.

[0070] In this embodiment, the audio replacement method in the live broadcast room is described from two execution entities, the client and the server. The client includes the anchor client and the audience client.

[0071] Regarding step S101, the server responds to the audio conversion instruction, obtains the first speaker information and the first audio stream data corresponding to the first speaker information; converts the first audio stream data into first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room.

[0072] Before explaining step S101, the flow of audio and video stream data between the anchor client, the server and the audience client is explained. The anchor client obtains the live broadcast room identifier and the audio and video stream data corresponding to the live broadcast room identifier, wherein the audio and video stream data corresponding to the live broadcast room identifier is the audio and video stream data collected by the anchor client, and the anchor client sends the live broadcast room identifier and the audio and video stream data corresponding to the live broadcast room identifier to the server. The server responds to the live broadcast room joining request sent by the audience client, obtains the live broadcast room identifier, the live broadcast room interface data corresponding to the live broadcast room identifier and the audio and video stream data corresponding to the live broadcast room identifier, and sends the live broadcast room interface data corresponding to the live broadcast room identifier and the audio and video stream data corresponding to the live broadcast room identifier to the audience client. The audience client receives the live broadcast room interface data corresponding to the live broadcast room identifier and the audio and video stream data corresponding to the live broadcast room identifier, loads the live broadcast room interface corresponding to the live broadcast room identifier according to the live broadcast room interface data corresponding to the live broadcast room identifier, and plays the audio and video stream data corresponding to the live broadcast room identifier.

[0073] The live broadcast room identifier is a unique identifier corresponding to the live broadcast room. The audio and video stream data includes audio stream data and video stream data.

[0074] It is understandable that in the voice live broadcast room, the host client will only collect audio stream data. The specific flow process is basically the same as above. The difference is that the audience client will not output video stream data in the live broadcast room interface, the audience cannot see the video screen, and the display style of the live broadcast room interface will be different.

[0075] In the embodiment of the present application, the host client, the server and the audience client will normally perform the flow of audio and video stream data or the flow of audio stream data as described above to realize the live broadcast room function.

[0076] When the server responds to the audio conversion instruction, it obtains the first speaker information and the first audio stream data corresponding to the first speaker information.

[0077] Among them, the audio conversion instruction at least includes a live broadcast room identifier, so that when the server responds to the audio conversion instruction, it can confirm which live broadcast room's audio stream data needs to be converted.

[0078] The first speaker information is the speaker information corresponding to the current speaker in the live broadcast room. The first audio stream data corresponding to the first speaker information is the audio stream data currently output in the live broadcast room.

[0079] In an optional embodiment, the first speaker information is the facial information corresponding to the current speaker in the live broadcast room during video live broadcast, and the first speaker information is the microphone sequence information corresponding to the current speaker in the live broadcast room during voice live broadcast.

[0080] It is understandable that as the live broadcast progresses, in a multi-person live broadcast scenario, the current speaker in the live broadcast room may continue to change. Therefore, before performing audio conversion, the server needs to obtain the first speaker information and the first audio stream data corresponding to the first speaker information, so that after the audio conversion, it can confirm which speaker corresponds to the converted first text stream data.

[0081] Specifically, after acquiring the first speaker information and the first audio stream data corresponding to the first speaker information, the server converts the first audio stream data into first text stream data, and determines the first speaker identifier corresponding to the first text stream data according to the first speaker information.

[0082] The speaker identifier is a unique identity identifier configured by the server for each speaker in the live broadcast room. Since the speaker is not necessarily a user of the network live broadcast platform, the first speaker information is bound to the first speaker identifier in the embodiment of the present application.

[0083] The server can confirm the corresponding speaker identification according to the first speaker information.

[0084] Specifically, the server obtains the first speaker information and speaker information corresponding to several speaker identifiers; if the first speaker information matches the speaker information corresponding to any speaker identifier, the first speaker identifier corresponding to the first text stream data is determined to be the speaker identifier.

[0085] Among them, the speaker identification corresponds to a pre-trained audio generation model, that is, the speaker identifications configured by the server all have corresponding pre-trained audio generation models. If only the speaker identification is configured for the speaker, but the pre-trained audio generation model corresponding to the speaker identification is not trained, it will lead to the inability to imitate the voice of the speaker and perform audio replacement.

[0086] In live video broadcast, the first speaker information is the facial information corresponding to the current speaker in the live broadcast room. If the facial information corresponding to the current speaker matches the facial information corresponding to any speaker identifier, the speaker identifier is the first speaker identifier corresponding to the first speaker information.

[0087] In voice live broadcast, the first speaker information is the microphone sequence information corresponding to the current speaker in the live broadcast room. If the microphone sequence information corresponding to the current speaker matches the microphone sequence information corresponding to any speaker ID in the same live broadcast room, the speaker ID is the first speaker ID corresponding to the first speaker information.

[0088] Afterwards, the server sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room. Obviously, the live broadcast room is the live broadcast room corresponding to the above live broadcast room identifier.

[0089] It should also be noted that, in an optional embodiment, the audio conversion instruction is generated after the audio generation model is pre-trained. This is because only after the audio generation model is pre-trained, the converted first text stream data can be used by the audience client to generate the second audio stream data and achieve audio replacement.

[0090] The following will explain in detail how to determine who is the current speaker in the live broadcast room during video live broadcast, and how to determine the first speaker information and the first audio stream data corresponding to the first speaker information.

[0091] In an optional embodiment, the anchor client sends the collected audio and video stream data directly to the server, and the server determines the first speaker information and the first audio stream data corresponding to the first speaker information based on the audio and video stream data collected by the anchor client.

[0092] Specifically, see Figure 5 , Figure 5 The flowchart of S101 in the audio replacement method in the live broadcast room provided by the first embodiment of the present application is as follows. In S101, first speaker information and first audio stream data corresponding to the first speaker information are obtained, including the following steps:

[0093] S1011: The server receives audio and video stream data collected by the anchor client; wherein the audio and video stream data includes audio stream data and video stream data; and the video stream data includes several frames of video images.

[0094] S1012: The server locates faces in the video image to obtain at least one face region, monitors speaking actions in the face region in the video image, and determines the current speaker and the face region corresponding to the current speaker.

[0095] S1013: The server obtains facial information corresponding to the current speaker as first speaker information based on the video image and the facial area corresponding to the current speaker.

[0096] S1014: The server obtains the currently received audio stream data as the first audio stream data corresponding to the first speaker information.

[0097] Regarding step S1012, the server locates the face in the video image in real time to obtain at least one face region. The face location algorithm specifically used by the server is not limited here, for example: using the YOLO (You Only Look Once) neural network algorithm to locate the face.

[0098] Afterwards, the server monitors the speaking action in the face area to determine the current speaker and the face area corresponding to the current speaker. The specific speaking action monitoring algorithm used by the server is not limited here. For example, the server can determine whether the speaker is speaking by monitoring the mouth action in the face area.

[0099] The face area is determined by the face position and face size.

[0100] Regarding step S1013, the server obtains the facial information corresponding to the current speaker as the first speaker information according to the video screen and the facial area corresponding to the current speaker.

[0101] Specifically, the server may capture the video frame according to the face position and face size, and obtain the face information corresponding to the current speaker, that is, obtain the first speaker information.

[0102] The facial information may refer to a facial image, or may refer to a feature vector extracted from the facial image.

[0103] In an optional embodiment, S1012 the server performs face positioning in the video screen, and after obtaining at least one face area, the server performs liveness detection in the face area in the video screen, obtains the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room.

[0104] The liveness detection algorithm is not limited here, and can be any liveness detection algorithm, for example, a detection algorithm that determines whether a liveness is detected by monitoring blinking movements.

[0105] By performing liveness detection in the face area in the video screen, the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room can be obtained. The face displayed in the face area corresponding to the spokesperson is a real face.

[0106] If the number of speakers in the live broadcast room is not less than two, S1012 monitors speaking actions in the face area in the video screen to determine the current speaker and the face area corresponding to the current speaker, including the steps of: the server monitors speaking actions in the face area corresponding to the speakers in the video screen to determine the current speaker and the face area corresponding to the current speaker.

[0107] At this time, the server only needs to monitor the speaking action in the face area corresponding to the speaker, thereby saving computing resources to a certain extent.

[0108] If there is only one speaker in the live broadcast room, S1012 monitors speaking actions in the face area in the video screen to determine the current speaker and the face area corresponding to the current speaker, including the steps of: the server determines that the speaker in the live broadcast room is the current speaker, and the face area corresponding to the speaker in the live broadcast room is the face area corresponding to the current speaker.

[0109] Since there is only one speaker in the live broadcast room, there is no need to monitor the speaking action, which can further save computing resources and increase the speed of obtaining the facial area corresponding to the current speaker.

[0110] In this embodiment, the server can determine the current speaker in the live broadcast room in real time through face positioning and speaking action detection, and obtain the facial information corresponding to the current speaker, that is, the first speaker information, so that the currently received audio stream data can be matched with the first speaker information, that is, the first audio stream data can be matched with the first speaker information, and the first speaker information and the first audio stream data corresponding to the first speaker information can be accurately obtained.

[0111] In another optional embodiment, the anchor client will determine the first speaker information and the first audio stream data corresponding to the first speaker information in real time based on the collected audio and video stream data, and then send the first speaker information and the first audio stream data corresponding to the first speaker information to the server.

[0112] Specifically, see Figure 6 , Figure 6 Another flowchart of the audio replacement method in the live broadcast room provided by the first embodiment of the present application, S101 before the server responds to the audio conversion instruction, includes the following steps:

[0113] S104: The anchor client collects audio and video stream data in response to the broadcast start instruction; wherein the audio and video stream data includes audio stream data and video stream data; and the video stream data includes several frames of video images.

[0114] S105: The anchor client locates faces in the video image to obtain at least one face region, monitors speaking actions in the face region in the video image, and determines the current speaker and the face region corresponding to the current speaker.

[0115] S106: The anchor client obtains the facial information corresponding to the current speaker as the first speaker information according to the video image and the facial area corresponding to the current speaker.

[0116] S107: The anchor client obtains the currently collected audio stream data as the first audio stream data corresponding to the first speaker information.

[0117] Regarding step S104, the broadcast start instruction is generated in response to the broadcast control trigger instruction, and the anchor client responds to the broadcast start instruction and starts to collect audio and video stream data in real time.

[0118] The execution process of steps S105 to S107 is the same as that of steps S1012 to S1014, except that the execution subject is the broadcast client. The related concepts will not be explained again, and the description of steps S1012 to S1014 can be referred to.

[0119] In an optional embodiment, after the anchor client performs face positioning in the video screen and obtains at least one face area, the following steps are included: the anchor client performs liveness detection in the face area in the video screen, obtains the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room.

[0120] By performing liveness detection in the face area in the video screen, the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room can be obtained. The face displayed in the face area corresponding to the spokesperson is a real face.

[0121] If there are no less than two speakers in the live broadcast room, the speaking action is monitored in the face area in the video screen to determine the current speaker and the face area corresponding to the current speaker, including the steps of: the anchor client monitors the speaking action in the face area corresponding to the speaker in the video screen to determine the current speaker and the face area corresponding to the current speaker.

[0122] At this time, the anchor client only needs to monitor the speaking action in the face area corresponding to the speaker, which can save computing resources to a certain extent.

[0123] If there is only one speaker in the live broadcast room, the speaking action is monitored in the face area in the video screen to determine the current speaker and the face area corresponding to the current speaker, including the steps: the anchor client determines that the speaker in the live broadcast room is the current speaker, and the face area corresponding to the speaker in the live broadcast room is the face area corresponding to the current speaker.

[0124] Since there is only one speaker in the live broadcast room, there is no need to monitor the speaking action, which can further save computing resources and increase the speed of obtaining the facial area corresponding to the current speaker.

[0125] Regarding step S102, the audience client responds to the audio generation instruction, obtains the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data.

[0126] Among them, the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier.

[0127] The pre-trained audio generation model corresponding to the first speaker identifier can imitate the voice of the current speaker and generate the second audio stream data according to the first text stream data.

[0128] How to generate the audio generation instruction and the specific training process of the audio generation model will be explained later.

[0129] Regarding step S103, the viewer client replaces the first audio stream data output in the live broadcast with the second audio stream data.

[0130] Among them, the first audio stream data output in the live broadcast refers to the audio stream data currently being output in the live broadcast room.

[0131] In an optional embodiment, since the viewer client outputs the second audio stream data generated according to the first text stream data, an audio pause instruction can be sent to the server, so that the server stops sending the audio stream data in response to the audio pause instruction.

[0132] In the embodiment of the present application, in the process of sending audio stream data to the audience client in real time, the server will respond to the audio conversion instruction, obtain the first speaker information (that is, the speaker information corresponding to the current speaker in the live broadcast room) and the first audio stream data corresponding to the first speaker information, and then convert the first audio stream data into first text stream data, and determine the first speaker identifier corresponding to the first text stream data based on the first speaker information, so as to send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room, and then when the audience client responds to the audio generation instruction, the first text stream data can be input into the first A pre-trained audio generation model corresponding to a speaker identifier is used to obtain the second audio stream data, and then the first audio stream data currently output in the live broadcast room is replaced with the second audio data. In this way, in situations such as audio stuttering, the audience can promptly hear the second audio data that simulates the voice of the current speaker, greatly reducing the impact of the stuttering phenomenon on the audience's live broadcast experience. In addition, since the first audio stream data currently output in the live broadcast room is replaced with the second audio data, the server can also suspend the sending of audio stream data, thereby achieving the purpose of saving traffic and reducing equipment load, further improving the audience's live broadcast experience, and increasing the audience's retention rate and viewing time.

[0133] The following is an explanation of the training process of the audio generation model. In an optional embodiment, the audio generation model and the audio identification model form an adversarial neural network model, see Figure 7 Before the server responds to the audio conversion instruction, S101 includes the following steps:

[0134] S108: The server responds to the model training instruction and obtains the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier; wherein the text stream training data corresponding to the speaker identifier is obtained by converting the audio stream training data corresponding to the speaker identifier.

[0135] S109: The server performs adversarial training on the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier based on the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier, and obtains a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier.

[0136] In this embodiment, the training data used to train the audio generation model and the audio identification model include audio stream training data corresponding to the speaker identifier and text stream training data corresponding to the speaker identifier. The audio stream training data and text stream training data corresponding to different speaker identifiers are used to train the audio generation model and the audio identification model corresponding to different speaker identifiers.

[0137] Specifically, S108 obtains the audio stream training data corresponding to the speaker identification, including the steps of: the server receives the audio and video stream training data collected by the anchor client; wherein the audio and video stream training data includes audio stream training data and video stream training data; the video stream training data includes several frames of video training pictures. The server performs face positioning in the video training picture to obtain at least one face area, and monitors the speaking action in the face area in the video training picture, determines the current speaker, the face information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker, thereby obtaining the face information corresponding to at least one speaker and the audio stream training data corresponding to at least one speaker; wherein the face information corresponding to the current speaker is obtained according to the video training picture and the face area corresponding to the current speaker. The server configures the speaker identification corresponding to at least one speaker, and obtains the face information corresponding to the speaker identification and the audio stream training data corresponding to the speaker identification.

[0138] It is well known that the server needs to collect a large amount of audio stream training data corresponding to the speaker identification in order to pre-train the audio generation model.

[0139] Therefore, the server needs to continuously determine the current speaker, the facial information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker through face positioning and speaking action monitoring, and finally obtain the facial information corresponding to at least one speaker and the audio stream training data corresponding to at least one speaker.

[0140] For the specific methods of face positioning and speech action monitoring, please refer to the above description.

[0141] Similarly, the server can also perform liveness detection in the face area in the video training screen to obtain the face area corresponding to the speaker and the number of speakers.

[0142] The liveness detection algorithm is not limited here, and can be any liveness detection algorithm, for example, a detection algorithm that determines whether a liveness is detected by monitoring blinking movements.

[0143] If the number of speakers is not less than two, the speaking action is monitored in the face area in the video training screen to determine the current speaker, the facial information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker, including the steps of: the server monitors the speaking action in the face area corresponding to the speaker in the video training screen to determine the current speaker, the facial information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker.

[0144] At this time, the server only needs to monitor the speaking action in the face area corresponding to the speaker, thereby saving computing resources to a certain extent.

[0145] If there is only one speaker in the live broadcast room, the speaking action is monitored in the face area in the video training screen to determine the current speaker, the facial information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker, including the steps: the server determines that the speaker in the video training screen is the current speaker, obtains the facial information corresponding to the current speaker and the audio stream training data corresponding to the current speaker.

[0146] Since there is only one speaker in the live broadcast room, there is no need to monitor the speaking action, which can further save computing resources and increase the speed of obtaining the facial information corresponding to the current speaker.

[0147] The following will describe in detail the adversarial training process of the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier. Specifically, S109 includes the steps of:

[0148] S1091: The server inputs the text stream training data corresponding to the speaker identifier into the audio generation model corresponding to the speaker identifier, and obtains the virtual audio stream training data corresponding to the speaker identifier.

[0149] S1092: The server iteratively trains the audio identification model corresponding to the speaker identifier based on the audio stream training data corresponding to the speaker identifier, the virtual audio stream training data corresponding to the speaker identifier, the preset first loss function and the preset first model optimization algorithm, and optimizes the trainable parameters in the audio identification model corresponding to the speaker identifier until the value of the first loss function meets the preset first training termination condition, thereby obtaining the currently trained audio identification model corresponding to the speaker identifier.

[0150] S1093: The server modifies the label of the virtual audio stream training data to true, and inputs the virtual audio stream training data into the currently trained audio identification model corresponding to the speaker identifier to obtain an identification result of the virtual audio stream training data.

[0151] S1094: If the identification result of the virtual audio stream training data meets the preset second training termination condition, the server obtains a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier.

[0152] S1095: If the identification result of the virtual audio stream training data does not meet the preset second training termination condition, the server obtains the value of the second loss function based on the identification result of the virtual audio stream training data, the label of the virtual audio stream training data and the preset second loss function, and optimizes the trainable parameters of the audio generation model corresponding to the speaker identifier based on the value of the second loss function and the preset second model optimization algorithm to obtain the currently trained audio generation model corresponding to the speaker identifier.

[0153] S1096: The server inputs the text stream training data corresponding to the speaker identifier into the currently trained audio generation model corresponding to the speaker identifier, re-acquires the virtual audio stream training data corresponding to the speaker identifier, and repeats the steps of iteratively training the audio identification model corresponding to the speaker identifier and optimizing the trainable parameters of the audio generation model corresponding to the speaker identifier until the identification result of the virtual audio stream training data meets the preset second training termination condition, thereby obtaining the pre-trained audio generation model corresponding to the speaker identifier and the pre-trained audio identification model corresponding to the speaker identifier.

[0154] Regarding step S1091, the server inputs the text stream training data corresponding to the speaker identifier into the audio generation model corresponding to the speaker identifier, and obtains the virtual audio stream training data corresponding to the speaker identifier.

[0155] Among them, the audio generation model corresponding to the speaker identification is an audio generation model after random initialization.

[0156] Regarding step S1092, the label of the audio stream training data corresponding to the speaker identifier is true, and the label of the virtual audio stream training data corresponding to the speaker identifier is false. The server obtains the identification result of the audio stream training data corresponding to the speaker identifier and the identification result of the virtual audio stream training data corresponding to the speaker identifier by inputting the audio stream training data corresponding to the speaker identifier and the virtual audio stream training data corresponding to the speaker identifier into the audio identification model corresponding to the speaker identifier, and calculates the value of the first loss function according to the identification result of the audio stream training data corresponding to the speaker identifier, the identification result of the virtual audio stream training data corresponding to the speaker identifier, and the preset first loss function. If the value of the first loss function satisfies the preset first training termination condition, the currently trained audio identification model corresponding to the speaker identifier is obtained. If the value of the first loss function does not satisfy the preset first training termination condition, the trainable parameters of the audio identification model corresponding to the speaker identifier are optimized according to the value of the first loss function and the preset first model optimization algorithm, and the above steps are repeated until the value of the first loss function satisfies the preset first training termination condition, and the currently trained audio identification model corresponding to the speaker identifier is obtained.

[0157] Regarding steps S1093 to S1095, the server modifies the label of the virtual audio stream training data to true, and inputs the virtual audio stream training data into the currently trained audio identification model corresponding to the speaker identifier to obtain the identification result of the virtual audio stream training data. If the identification result of the virtual audio stream training data meets the preset second training termination condition, the server obtains the pre-trained audio generation model corresponding to the speaker identifier and the pre-trained audio identification model corresponding to the speaker identifier. If the identification result of the virtual audio stream training data does not meet the preset second training termination condition, the server obtains the value of the second loss function based on the identification result of the virtual audio stream training data, the label of the virtual audio stream training data and the preset second loss function, and optimizes the trainable parameters of the audio generation model corresponding to the speaker identifier based on the value of the second loss function and the preset second model optimization algorithm to obtain the currently trained audio generation model corresponding to the speaker identifier.

[0158] In the audio identification model of this embodiment, when the probability that the virtual audio stream training data corresponding to the speaker identification is true is around 0.5, it means that the audio generation model corresponding to the speaker identification and the audio identification model corresponding to the speaker identification have achieved a relatively good adversarial training effect. Therefore, the preset second training termination condition is an interval around 0.5. When the identification result of the virtual audio stream training data corresponding to the speaker identification is within this interval, the identification result of the virtual audio stream training data corresponding to the speaker identification satisfies the preset second training termination condition.

[0159] When it is judged that the identification result of the virtual audio stream training data corresponding to the speaker identifier is biased towards 0, it means that the audio identification model corresponding to the speaker identifier believes that the probability that the virtual audio stream training data is true is close to 0, which means that the virtual audio stream training data corresponding to the speaker identifier generated by the audio generation model corresponding to the speaker identifier is easy to be identified, and the generation effect of the audio generation model corresponding to the speaker identifier is poor. Since the label of the virtual audio stream training data is modified to true, that is, 1, the value of the second loss function obtained according to the identification result of the virtual audio stream training data, the label of the virtual audio stream training data and the preset second loss function is large, then based on the value of the second loss function and the preset second model optimization algorithm, the trainable parameters of the audio generation model corresponding to the speaker identifier will be greatly optimized to obtain the currently trained audio generation model.

[0160] When it is judged that the identification result of the virtual audio stream training data corresponding to the speaker identifier is biased towards 1, it means that the audio identification model corresponding to the speaker identifier believes that the probability that the virtual audio stream training data is true is close to 1, which means that the identification effect of the audio identification model corresponding to the speaker identifier is poor. Therefore, it is necessary to continue training the audio identification model corresponding to the speaker identifier.

[0161] Regarding step S1096, the server inputs the text stream training data corresponding to the speaker identifier into the currently trained audio generation model corresponding to the speaker identifier, re-acquires the virtual audio stream training data corresponding to the speaker identifier, and repeats the steps of iteratively training the audio identification model corresponding to the speaker identifier and optimizing the trainable parameters of the audio generation model corresponding to the speaker identifier until the identification result of the virtual audio stream training data meets the preset second training termination condition, thereby obtaining the pre-trained audio generation model corresponding to the speaker identifier and the pre-trained audio identification model corresponding to the speaker identifier.

[0162] The first loss function, the second damage function, the first model optimization algorithm and the second model optimization algorithm are not limited here and can be any existing loss function and neural network model optimization algorithm.

[0163] In this embodiment, by forming an adversarial neural network with an audio generation network corresponding to the speaker identifier and an audio identification network corresponding to the speaker identifier, and jointly training the audio generation network corresponding to the speaker identifier and the audio identification network corresponding to the speaker identifier, the voice of the speaker corresponding to the speaker identifier can be better simulated, thereby further improving the audience's live broadcast experience.

[0164] See also Figure 8 , Figure 8 The flowchart of the audio replacement method in the live broadcast room provided in the second embodiment of the present application includes the following steps:

[0165] S201: The server responds to the audio conversion instruction, obtains the first speaker information and the first audio stream data corresponding to the first speaker information; converts the first audio stream data into first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room.

[0166] S202: In response to the audio and video freeze instruction, the viewer client determines whether it can receive the first text stream data sent by the server. If so, the viewer client generates an audio generation instruction; wherein the audio and video freeze instruction is generated when the viewer client determines that it cannot receive the audio and video stream data sent by the server or cannot parse the audio and video stream data.

[0167] S203: The audience client responds to the audio generation instruction to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is trained based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier.

[0168] S204: The viewer client replaces the first audio stream data output in the live broadcast with the second audio stream data.

[0169] In this embodiment, steps S201, S203 and S204 are the same as steps S101 to S103 in the first embodiment, and the details can refer to the relevant description of the first embodiment. Step S202 describes when the viewer client is triggered to generate an audio generation instruction.

[0170] Specifically, in response to the audio and video freeze instruction, the viewer client determines whether the first text stream data sent by the server can be received, and if so, the viewer client generates an audio generation instruction.

[0171] The audio and video freeze instruction is generated when the viewer client determines that it is unable to receive the audio and video stream data sent by the server or is unable to parse the audio and video stream data.

[0172] That is to say, when the audio and video are stuck, if the first text stream data sent by the server can still be received at this time, the speaker's voice can be simulated to speak through audio replacement to avoid affecting the audience's live broadcast experience.

[0173] In an optional embodiment, step S202 may also be replaced by S205 to S206, see Fig. 9 , S205~S206 are as follows:

[0174] S205: The viewer client obtains first text stream data in response to the audio and video stream saving instruction; wherein the first text stream data includes a plurality of text information and timing information corresponding to each text information.

[0175] S206: The viewer client determines the first segmentation time according to the timing information corresponding to each text message, generates an audio generation instruction and an audio pause instruction when the current time reaches the first segmentation time, and sends the audio pause instruction to the server.

[0176] In this embodiment, when the viewer client responds to the audio and video stream saving instruction, it obtains the first text stream data.

[0177] The first text stream data includes a plurality of text information and time sequence information corresponding to each text information.

[0178] Afterwards, the audience client determines the first segmentation time according to the timing information corresponding to each text message, and generates an audio generation instruction and an audio pause sending instruction when the current time reaches the first segmentation time, and sends the audio pause sending instruction to the server, so that the server responds to the audio pause sending instruction and stops sending audio stream data.

[0179] In this embodiment, since the audio generation instruction and the audio pause issuance instruction are generated when the current time reaches the first sentence break time, audio replacement can be implemented during the speech interval of the current speaker, which will further reduce the impact of the audio replacement link on the audience's live broadcast experience.

[0180] In some situations, the viewer client can send an audio and video pause instruction to the server, so that the server responds to the audio and video pause instruction and stops downloading audio and video stream data, further saving traffic.

[0181] In an optional embodiment, the audio and video flow saving instruction is generated by the viewer client in response to a flow saving start operation instruction, a playback mode switching instruction, a live broadcast application background running instruction, or a device screen off instruction.

[0182] The flow saving start operation instruction may be generated by the viewer client when it is determined that the viewer turns on the flow saving.

[0183] The playback mode switching instruction may be generated by the viewer client when determining that the viewer plays the live content in a preset playback mode, wherein the preset playback mode may be small window playback, voice bar playback, etc., which are not limited in detail here.

[0184] The background running instruction of the live broadcast application may be generated when the viewer client determines that the viewer switches the live broadcast application to background running.

[0185] The device screen-off instruction may be generated when the viewer client determines that the viewer has turned off the device screen.

[0186] In this embodiment, a variety of different situations will trigger the viewer client to generate audio and video flow saving instructions, thereby saving traffic and reducing device load, further improving the viewer's live broadcast experience, and increasing the viewer's retention rate and viewing time.

[0187] In another optional embodiment, step S202 may also be replaced by S207 to S209, see Fig.10 , S207~S209 are as follows:

[0188] S207: The viewer client collects a target video stream through a camera; wherein the target video stream includes a plurality of frames of target video images.

[0189] S208: The viewer client locates a face in the target video screen, and generates a sight tracking instruction if a face exists in the target video screen.

[0190] S209: The audience client responds to the gaze tracking instruction, obtains the gaze rest position and the display area corresponding to the live broadcast room interface, and determines whether the gaze rest position is within the display area corresponding to the live broadcast room interface. If not, obtains the duration of the gaze moving out. When the duration of the gaze moving out exceeds the preset first duration, an audio generation instruction and an audio and video pause instruction are generated, and the audio and video pause instruction is sent to the server.

[0191] The camera may be a built-in camera of the viewer client. The target video stream is the video stream captured by the camera. The viewer client locates the face based on several frames of the target video screen in the target video stream. If there is a face in the target video screen, an eye tracking instruction is generated, so that the viewer client responds to the eye tracking instruction and obtains the eye stop position and the display area corresponding to the live broadcast room interface.

[0192] Among them, the display area corresponding to the live broadcast room interface refers to the display area of ​​the live broadcast room interface on the display screen of the viewer client.

[0193] The existing sight line positioning algorithm may be used to obtain the sight line position, and the sight line position refers to the position where the viewer's sight line stays on the display screen of the viewer client.

[0194] Afterwards, the audience client determines whether the gaze position is within the display area corresponding to the live broadcast room interface. If not, it obtains the duration of the gaze moving out. When the duration of the gaze moving out exceeds the preset first duration, it generates an audio generation instruction and an audio and video pause instruction, and sends the audio and video pause instruction to the server.

[0195] That is to say, if the viewer does not look at the live broadcast room interface for a long time, it is confirmed that the viewer is not watching the live broadcast, so the flow saving is turned on by default and an audio generation instruction is issued.

[0196] In this embodiment, by tracking the audience's line of sight in real time, when the audience has not watched the live broadcast for a long time, the flow saving mode can be turned on by default, thereby saving traffic and reducing the equipment load, further improving the audience's live broadcast experience, and increasing the audience's retention rate and viewing time.

[0197] See also Fig.11 , Fig.11A schematic diagram of the structure of an audio replacement system in a live studio provided in a third embodiment of the present application, the system 11 comprises: a server 111 and a viewer client 112;

[0198] The server 111 is used to respond to the audio conversion instruction, obtain the first speaker information and the first audio stream data corresponding to the first speaker information; convert the first audio stream data into the first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client 112 in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room;

[0199] The audience client 112 is used to respond to the audio generation instruction, obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier, and obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier;

[0200] The audience client 112 is used to replace the first audio stream data output in the live broadcast with the second audio stream data.

[0201] The audio replacement system in the live broadcast room provided by the above embodiment and the audio replacement method in the live broadcast room belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0202] See also Fig.12 , is a schematic diagram of the structure of the audio replacement device in the live studio provided in the fourth embodiment of the present application. The device can be implemented as all or part of the computer equipment through software, hardware or a combination of both. The device 12 includes:

[0203] The first conversion unit 121 is used for the server to respond to the audio conversion instruction, obtain the first speaker information and the first audio stream data corresponding to the first speaker information; convert the first audio stream data into the first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room;

[0204] The first generating unit 122 is used for the audience client to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data in response to the audio generation instruction; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier;

[0205] The first replacement unit 123 is used for the audience client to replace the first audio stream data output in the live broadcast with the second audio stream data.

[0206] It should be noted that the audio replacement device in the live broadcast room provided in the above embodiment only uses the division of the above functional modules as an example when executing the audio replacement method in the live broadcast room. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the audio replacement device in the live broadcast room provided in the above embodiment and the audio replacement method in the live broadcast room belong to the same concept. The implementation process is detailed in the method embodiment, which will not be repeated here.

[0207] See also Fig.13 , is a schematic diagram of the structure of a computer device provided in the fifth embodiment of the present application. Fig.13 As shown, the computer device 13 may include: a processor 130, a memory 131, and a computer program 132 stored in the memory 131 and executable on the processor 130, such as: an audio replacement program in a live studio; when the processor 130 executes the computer program 132, the steps in the first to second embodiments described above are implemented.

[0208] Among them, the processor 130 may include one or more processing cores. The processor 130 uses various interfaces and lines to connect various parts in the computer device 13, and executes various functions and processes data of the computer device 13 by running or executing instructions, programs, code sets or instruction sets stored in the memory 131, and calling the data in the memory 131. Optionally, the processor 130 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 130 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 130, and it can be implemented by a single chip.

[0209] Among them, the memory 131 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 131 includes a non-transitory computer-readable storage medium. The memory 131 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 131 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 131 may also be optionally at least one storage device located away from the aforementioned processor 130.

[0210] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method steps of the above embodiment. The specific execution process can be found in the specific description of the above embodiment, which will not be repeated here.

[0211] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0212] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0213] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0214] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0216] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0217] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.

[0218] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.

Claims

1. A method for replacing audio in a live broadcast room, characterized in that: The method comprises the steps of: The server responds to the audio conversion instruction, obtains the first speaker information and the first audio stream data corresponding to the first speaker information; converts the first audio stream data into the first text stream data; determines the first speaker identifier corresponding to the first text stream data according to the first speaker information, and sends the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room; The audience client, in response to the audio generation instruction, obtains the first text stream data and the first speaker identifier corresponding to the first text stream data; inputs the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier; The audio generation model and the audio identification model form an adversarial neural network model. Before the server responds to the audio conversion instruction, the server comprises the following steps: The server, in response to the model training instruction, obtains audio stream training data corresponding to the speaker identifier and text stream training data corresponding to the speaker identifier; wherein the text stream training data corresponding to the speaker identifier is obtained by converting the audio stream training data corresponding to the speaker identifier; The server performs adversarial training on the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier according to the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier, so as to obtain a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier; The audience client replaces the first audio stream data output in the live broadcast room with the second audio stream data.

2. The audio replacement method in a live broadcast room according to claim 1, characterized in that: The first speaker information is the facial information corresponding to the current speaker in the live broadcast room during video live broadcast, and the first speaker information is the microphone sequence information corresponding to the current speaker in the live broadcast room during voice live broadcast.

3. The audio replacement method in a live studio according to claim 1, characterized in that: The obtaining of first speaker information and first audio stream data corresponding to the first speaker information comprises the steps of: The server receives audio and video stream data collected by the anchor client; wherein the audio and video stream data includes audio stream data and video stream data; the video stream data includes a plurality of video frames; The server locates faces in the video image to obtain at least one face region, monitors speaking actions in the face region in the video image, and determines the current speaker and the face region corresponding to the current speaker; The server obtains the facial information corresponding to the current speaker as the first speaker information according to the video screen and the facial area corresponding to the current speaker; The audio stream data currently received by the server is obtained as first audio stream data corresponding to the first speaker information.

4. The audio replacement method in a live broadcast room according to claim 3, characterized in that: After the server locates the face in the video image and obtains at least one face area, the server includes the following steps: The server performs liveness detection in the face area in the video screen to obtain the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room; If the number of speakers in the live broadcast room is not less than two, monitoring the speaking action in the face area in the video screen and determining the current speaker and the face area corresponding to the current speaker include the steps of: The server monitors the speaking action in the facial area corresponding to the speaker in the video screen, and determines the current speaker and the facial area corresponding to the current speaker; If there is only one speaker in the live broadcast room, monitoring the speaking action in the face area in the video screen and determining the current speaker and the face area corresponding to the current speaker include the following steps: The server determines that the speaker in the live broadcast room is the current speaker, and the facial area corresponding to the speaker in the live broadcast room is the facial area corresponding to the current speaker.

5. The audio replacement method in a live broadcast room according to claim 1, characterized in that: Before the server responds to the audio conversion instruction, the steps include: The anchor client collects audio and video stream data in response to the broadcast start instruction; wherein the audio and video stream data includes audio stream data and video stream data; and the video stream data includes a plurality of video frames; The anchor client locates faces in the video screen to obtain at least one face area, monitors speaking actions in the face area in the video screen, and determines the current speaker and the face area corresponding to the current speaker; The anchor client obtains the facial information corresponding to the current speaker as the first speaker information according to the video screen and the facial area corresponding to the current speaker; The anchor client obtains the currently collected audio stream data as the first audio stream data corresponding to the first speaker information.

6. The audio replacement method in a live studio according to claim 5, characterized in that: The anchor client locates the face in the video image and obtains at least one face area, including the following steps: The anchor client performs liveness detection in the face area in the video screen to obtain the face area corresponding to the spokesperson in the live broadcast room and the number of spokespersons in the live broadcast room; If the number of speakers in the live broadcast room is not less than two, monitoring the speaking action in the face area in the video screen and determining the current speaker and the face area corresponding to the current speaker include the steps of: The anchor client monitors the speaking action in the facial area corresponding to the speaker in the video screen, and determines the current speaker and the facial area corresponding to the current speaker; If there is only one speaker in the live broadcast room, monitoring the speaking action in the face area in the video screen and determining the current speaker and the face area corresponding to the current speaker include the following steps: The anchor client determines that the speaker in the live broadcast room is the current speaker, and the face area corresponding to the speaker in the live broadcast room is the face area corresponding to the current speaker.

7. The audio replacement method in a live broadcast room according to any one of claims 1 to 6, characterized in that: The step of determining the first speaker identifier corresponding to the first text stream data according to the first speaker information comprises the following steps: The server obtains the first speaker information and speaker information corresponding to a plurality of speaker identifiers; wherein the speaker identifier corresponds to the pre-trained audio generation model; If the first speaker information matches the speaker information corresponding to any one of the speaker identifiers, it is determined that the first speaker identifier corresponding to the first text stream data is the speaker identifier.

8. The method for replacing audio in a live broadcast room according to any one of claims 1 to 6, characterized in that: Before the audience client responds to the audio generation instruction, the steps include: The audience client responds to the audio and video freeze instruction to determine whether it can receive the first text stream data sent by the server. If so, the audience client generates the audio generation instruction; wherein the audio and video freeze instruction is generated when the audience client determines that it cannot receive the audio and video stream data sent by the server or cannot parse the audio and video stream data.

9. The method for replacing audio in a live broadcast room according to any one of claims 1 to 6, characterized in that: Before the audience client responds to the audio generation instruction, the steps include: The viewer client obtains the first text stream data in response to the audio and video stream saving instruction; wherein the first text stream data includes a plurality of text information and timing information corresponding to each of the text information; The audience client determines the first segmentation time according to the timing information corresponding to each piece of the text information, generates the audio generation instruction and the audio pause instruction when the current time reaches the first segmentation time, and sends the audio pause instruction to the server.

10. The audio replacement method in a live broadcast room according to claim 9, characterized in that: The audio and video flow saving instruction is generated when the viewer client responds to a flow saving start operation instruction, a playback mode switching instruction, a live broadcast application background running instruction, or a device screen off instruction.

11. The method for replacing audio in a live broadcast room according to any one of claims 1 to 6, characterized in that: Before the audience client responds to the audio generation instruction, the steps include: The audience client collects a target video stream through a camera; wherein the target video stream includes a plurality of frames of target video images; The viewer client locates a face in the target video screen, and generates an eye tracking instruction if a face exists in the target video screen; The audience client responds to the gaze tracking instruction, obtains the gaze rest position and the display area corresponding to the live broadcast room interface, determines whether the gaze rest position is within the display area corresponding to the live broadcast room interface, and if not, obtains the duration of gaze movement. When the duration of gaze movement exceeds a preset first duration, the audio generation instruction and the audio and video pause instruction are generated, and the audio and video pause instruction is sent to the server.

12. The audio replacement method in a live studio according to claim 1, characterized in that: The step of obtaining audio stream training data corresponding to the speaker identifier comprises the following steps: The server receives the audio and video stream training data collected by the anchor client; wherein the audio and video stream training data includes the audio stream training data and the video stream training data; the video stream training data includes a plurality of frames of video training pictures; The server performs face positioning in the video training screen to obtain at least one face area, monitors speaking actions in the face area in the video training screen, determines the current speaker, face information corresponding to the current speaker, and audio stream training data corresponding to the current speaker, and obtains face information corresponding to at least one speaker and audio stream training data corresponding to at least one speaker; wherein the face information corresponding to the current speaker is obtained based on the video training screen and the face area corresponding to the current speaker; The server is configured with at least one speaker identification corresponding to the speaker, and obtains face information corresponding to the speaker identification and audio stream training data corresponding to the speaker identification.

13. The audio replacement method in a live broadcast room according to claim 12, characterized in that: After the server locates a face in the video training picture and obtains at least one face area, the server includes the following steps: The server performs liveness detection in the face area in the video training screen to obtain the face area corresponding to the speaker and the number of speakers; If the number of the speakers is not less than two, monitoring the speaking action in the face area in the video training screen to determine the current speaker, the face information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker comprises the following steps: The server monitors the speaking action in the face area corresponding to the speaker in the video training screen, and determines the current speaker, the face information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker; If there is one speaker in the live broadcast room, monitoring the speaking action in the face area in the video training screen, determining the current speaker, the face information corresponding to the current speaker, and the audio stream training data corresponding to the current speaker, comprises the following steps: The server determines that the speaker in the video training screen is the current speaker, and obtains facial information corresponding to the current speaker and audio stream training data corresponding to the current speaker.

14. The audio replacement method in a live studio according to claim 1, characterized in that: The server performs adversarial training on the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier according to the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier, so as to obtain a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier, including the steps of: The server inputs the text stream training data corresponding to the speaker identifier into the audio generation model corresponding to the speaker identifier, and obtains the virtual audio stream training data corresponding to the speaker identifier; The server iteratively trains the audio identification model corresponding to the speaker identifier according to the audio stream training data corresponding to the speaker identifier, the virtual audio stream training data corresponding to the speaker identifier, a preset first loss function, and a preset first model optimization algorithm, and optimizes the trainable parameters in the audio identification model corresponding to the speaker identifier until the value of the first loss function satisfies a preset first training termination condition, thereby obtaining a currently trained audio identification model corresponding to the speaker identifier; The server modifies the label of the virtual audio stream training data to true, and inputs the virtual audio stream training data into the currently trained audio identification model corresponding to the speaker identifier to obtain an identification result of the virtual audio stream training data; If the identification result of the virtual audio stream training data meets the preset second training termination condition, the server obtains a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier; If the identification result of the virtual audio stream training data does not meet the preset second training termination condition, the server obtains the value of the second loss function according to the identification result of the virtual audio stream training data, the label of the virtual audio stream training data and the preset second loss function, and optimizes the trainable parameters of the audio generation model corresponding to the speaker identifier according to the value of the second loss function and the preset second model optimization algorithm to obtain the currently trained audio generation model corresponding to the speaker identifier; The server inputs the text stream training data corresponding to the speaker identifier into the currently trained audio generation model corresponding to the speaker identifier, reacquires the virtual audio stream training data corresponding to the speaker identifier, and repeats the steps of iteratively training the audio identification model corresponding to the speaker identifier and optimizing the trainable parameters of the audio generation model corresponding to the speaker identifier until the identification result of the virtual audio stream training data meets the preset second training termination condition, thereby obtaining the pre-trained audio generation model corresponding to the speaker identifier and the pre-trained audio identification model corresponding to the speaker identifier.

15. An audio replacement system in a live studio, characterized in that: include: Server and viewer client; The server is used for obtaining, in response to the audio conversion instruction, first speaker information and first audio stream data corresponding to the first speaker information; Convert the first audio stream data into first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room; The audience client is used to respond to the audio generation instruction, obtain the first text stream data and the first speaker identifier corresponding to the first text stream data; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier, and obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is trained based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier; The audio generation model and the audio identification model form an adversarial neural network model. Before the server responds to the audio conversion instruction, the server comprises the following steps: The server, in response to the model training instruction, obtains audio stream training data corresponding to the speaker identifier and text stream training data corresponding to the speaker identifier; wherein the text stream training data corresponding to the speaker identifier is obtained by converting the audio stream training data corresponding to the speaker identifier; The server performs adversarial training on the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier according to the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier, so as to obtain a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier; The audience client is used to replace the first audio stream data output in the live broadcast room with the second audio stream data.

16. An audio replacement device in a live studio, characterized in that: include: A first conversion unit, configured for the server to obtain first speaker information and first audio stream data corresponding to the first speaker information in response to an audio conversion instruction; Convert the first audio stream data into first text stream data; determine the first speaker identifier corresponding to the first text stream data according to the first speaker information, and send the first text stream data and the first speaker identifier corresponding to the first text stream data to the audience client in the live broadcast room; wherein the first speaker information is the speaker information corresponding to the current speaker in the live broadcast room; A first generating unit is used for the audience client to obtain the first text stream data and the first speaker identifier corresponding to the first text stream data in response to the audio generation instruction; input the first text stream data to the pre-trained audio generation model corresponding to the first speaker identifier to obtain the second audio stream data; wherein the pre-trained audio generation model corresponding to the first speaker identifier is obtained by training based on the audio stream training data corresponding to the first speaker identifier and the text stream training data corresponding to the first speaker identifier, and the text stream training data corresponding to the first speaker identifier is obtained by converting the audio stream training data corresponding to the first speaker identifier; The audio generation model and the audio identification model form an adversarial neural network model. Before the server responds to the audio conversion instruction, the server comprises the following steps: The server, in response to the model training instruction, obtains audio stream training data corresponding to the speaker identifier and text stream training data corresponding to the speaker identifier; wherein the text stream training data corresponding to the speaker identifier is obtained by converting the audio stream training data corresponding to the speaker identifier; The server performs adversarial training on the audio generation model corresponding to the speaker identifier and the audio identification model corresponding to the speaker identifier according to the audio stream training data corresponding to the speaker identifier and the text stream training data corresponding to the speaker identifier, so as to obtain a pre-trained audio generation model corresponding to the speaker identifier and a pre-trained audio identification model corresponding to the speaker identifier; The first replacement unit is used for the audience client to replace the first audio stream data output in the live broadcast room with the second audio stream data.

17. A computer device comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 14 when executing the computer program.

18. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

Citation Information

Patent Citations

  • Video stream processing method and device, computer equipment and storage medium

    CN108566558A

  • Method and device for identifying video conference speaker

    CN109561273A

  • Virtual anchor implementation method and device

    CN109637518A

  • Information processing method and server

    CN111182256A

  • Audio processing method and device, terminal and storage medium

    CN112202803A