CN115022729A - Bullet screen playing method and device - Google Patents

Bullet screen playing method and device Download PDF

Info

Publication number
CN115022729A
CN115022729A CN202210623154.0A CN202210623154A CN115022729A CN 115022729 A CN115022729 A CN 115022729A CN 202210623154 A CN202210623154 A CN 202210623154A CN 115022729 A CN115022729 A CN 115022729A
Authority
CN
China
Prior art keywords
bullet screen
played
bullet
audio
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210623154.0A
Other languages
Chinese (zh)
Inventor
傅喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210623154.0A priority Critical patent/CN115022729A/en
Publication of CN115022729A publication Critical patent/CN115022729A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Abstract

The application provides a bullet screen playing method and device, wherein the bullet screen playing method comprises the following steps: receiving a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules; based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types; and playing the bullet screen audio corresponding to the bullet screen to be played.

Description

Bullet screen playing method and device
Technical Field
The application relates to the technical field of computers, in particular to a bullet screen playing method. The application also relates to a play device of the bullet screen, a computing device and a computer readable storage medium.
Background
With the continuous development of computer technology, live broadcast technology is continuously updated; in order to improve the interactive experience of the audience watching the live broadcast, the audience can send the barrage in the live broadcast room, so that the interaction between the anchor broadcast and the audience is realized.
However, the anchor cannot pay attention to the barrage sent by the audience in the live broadcast room at the live broadcast time, for example, the anchor cannot read the barrage sent by the audience in the live broadcast room in real time during dancing and game, which seriously affects the interactive frequency of the live broadcast room and the interactive experience of the audience watching the live broadcast.
Therefore, how to increase the interaction frequency between the anchor and the audience in the live broadcasting room becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the present application provides a bullet screen playing method. The application also relates to a play device of the barrage, a computing device and a computer readable storage medium, which are used for solving the problem of live broadcast interaction frequency in the prior art.
According to a first aspect of the embodiments of the present application, a bullet screen playing method is provided, which is applied to a client, and includes:
receiving a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules;
based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types;
and playing the bullet screen audio corresponding to the bullet screen to be played.
According to a second aspect of the embodiments of the present application, there is provided a bullet screen playing method applied to a server, including:
determining bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is obtained according to bullet screen obtaining rules and bullet screens to be played which are screened from bullet screens received by the target live broadcast room;
acquiring bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played;
and returning the bullet screen audio to the client so that the client plays the bullet screen audio.
According to a third aspect of the embodiments of the present application, there is provided a play apparatus for a bullet screen, which is applied to a client, and includes:
the receiving module is configured to receive a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules;
the screening module is configured to screen a bullet screen to be played in the bullet screen received by the target live broadcast room based on bullet screen screening conditions in the bullet screen obtaining rules, and determine a bullet screen audio frequency corresponding to the bullet screen to be played, wherein the bullet screen screening conditions include at least one of a bullet screen type, a bullet screen length and a bullet screen sender type;
and the playing module is configured to play the bullet screen audio corresponding to the bullet screen to be played.
According to a fourth aspect of the embodiments of the present application, there is provided a play apparatus for a bullet screen, which is applied to a server, and includes:
the system comprises a determining module, a display module and a display module, wherein the determining module is configured to determine bullet screen information to be played in a target live broadcast room, and the bullet screen information to be played is obtained according to bullet screen obtaining rules from bullet screens received by the target live broadcast room;
the acquisition module is configured to acquire the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played;
the return module is configured to return the bullet screen audio to the client so that the client plays the bullet screen audio.
According to a fifth aspect of the embodiments of the present application, a play system of a bullet screen is provided, where the play system includes a client and a server, where:
the client is configured to receive a bullet screen playing instruction for a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules; based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types;
the server is configured to determine bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is determined according to a bullet screen to be played in the target live broadcast room; acquiring bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played; returning the bullet screen audio to a client side so that the client side can play the bullet screen audio;
the client is further configured to play the bullet screen audio corresponding to the bullet screen to be played.
According to a sixth aspect of the embodiments of the present application, there is provided a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the computer instructions to implement the steps of the bullet screen playing method.
According to a seventh aspect of the embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the method for playing a bullet screen.
The bullet screen playing method provided by the application receives a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules; based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types; and playing the bullet screen audio corresponding to the bullet screen to be played.
According to the method and the device, the bullet screen playing instruction for the target live broadcast room is received, and the bullet screen to be played is screened from the bullet screens received by the target live broadcast room based on the bullet screen obtaining rule in the bullet screen playing instruction, so that the bullet screen to be played is screened; determining the bullet screen audio frequency corresponding to the bullet screen to be played, and playing the bullet screen to be played by playing the bullet screen audio frequency.
Drawings
Fig. 1 is a flowchart of a bullet screen playing method applied to a client according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a process of adding a bullet screen to be played according to an embodiment of the present application;
fig. 3 is a flowchart of a method for playing a bullet screen applied to a server according to an embodiment of the present application;
fig. 4 shows a processing flow chart of a playing method applied to the barrage of the client Z according to an embodiment of the present application;
fig. 5 is a schematic view of a bullet screen play function opening page according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a bullet screen playing system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a playing apparatus for a bullet screen applied to a client according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a playing apparatus applied to a bullet screen of a server according to an embodiment of the present application;
fig. 9 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application is intended to encompass any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Bullet screen: refers to a commentary subtitle that pops up when a video is viewed over a network.
Queue: is a special linear table, and is special in that it only allows delete operations at the front end (front) of the table, and insert operations at the back end (rear) of the table, and like stacks, queues are linear tables with restricted operations. The end performing the insert operation is called the tail of the queue, and the end performing the delete operation is called the head of the queue.
At present, the anchor can't compromise the barrage on the screen in some scenes, for example, the anchor can't pay attention to the barrage that sends in the live broadcast room constantly in the game process, has influenced the interactive frequency in live broadcast room.
In order to solve the problems, the application provides a bullet screen playing method, the ability of reading bullet screens through voice is added at a client, so that character bullet screens are played at the client in a voice mode, a main broadcast can pay attention to the bullet screens in a live broadcast room in real time, and the interaction frequency of the live broadcast room is further improved.
Further, in order to improve the user experience of the bullet screen playing function, the bullet screen received in the live broadcasting room can be screened based on a preset bullet screen obtaining rule, that is, only the bullet screen meeting the requirement is played; the screened bullet screens are sequentially stored in a queue in the order of receiving the bullet screens, when the bullet screens are played, the bullet screens are obtained in the queue and a voice conversion interface is called to carry out conversion to obtain bullet screen audio, and synthesis parameters of the voice conversion interface can be adjusted based on requirements; in addition, whether the bullet screen audio which is being played exists is detected before the bullet screen audio is played, and under the condition that the bullet screen audio which is being played exists, the bullet screen audio obtained through conversion is added into a bullet screen audio queue to be played to wait for playing.
The bullet screen playing method provides a bullet screen playing function for the anchor client, and improves the interaction rate of the anchor and audiences in the live broadcast room; moreover, the anchor can screen the bullet screen to be played based on the requirement and adjust and integrate the parameters of the audio, so that the user experience is improved; in addition, the client sends a barrage conversion request to the server, the server converts the text barrage into audio, and the audio is returned to the client, so that the subsequent barrage playing function is iterated, more functional features are added, and the like.
In the present application, a method for playing a bullet screen is provided, and the present application relates to a device for playing a bullet screen, a computing device, and a computer readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a method for playing a barrage applied to a client according to an embodiment of the present application, which specifically includes the following steps:
step 102: receiving a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules.
The target live broadcast room is a live broadcast room with a barrage function opened; a user watching a target live broadcast room can send a barrage in the target live broadcast room, and a main broadcast of the target live broadcast room can interact with the user watching the live broadcast based on the barrage after seeing the barrage in the live broadcast room; the bullet screen playing instruction refers to a request for displaying a bullet screen in a text form in a bullet screen audio form in a target live broadcast room; the bullet screen acquisition rule is a rule for acquiring a bullet screen played in a target live broadcast room; in practical application, the bullet screen obtaining rule may be generated based on a selection of a user, or may be preset, for example, a bullet screen play start setting page includes a bullet screen play type option, and after the user starts a corresponding option according to a requirement, the bullet screen obtaining rule is generated based on a parameter corresponding to the option.
Specifically, a client receives a barrage playing instruction for a target live broadcast room, wherein the client can be a main broadcast client or an audience client corresponding to a user watching live broadcast in the target live broadcast room; the bullet screen playing instruction comprises bullet screen obtaining rules, so that bullet screens used for playing can be selected based on the bullet screen obtaining rules in the following.
For example, the anchor client G receives a barrage playing instruction Q for the target live broadcast room a, where the barrage playing instruction Q includes a barrage acquisition rule for filtering a barrage for playing in the target live broadcast room a.
Through receiving the bullet screen broadcast instruction to the target live broadcast room to the bullet screen obtains the rule and obtains the bullet screen based on bullet screen in the bullet screen broadcast instruction in the follow-up bullet screen of being convenient for, and then the follow-up realization of being convenient for plays the bullet screen that obtains.
Step 104: based on bullet screen screening condition in the bullet screen acquisition rule the bullet screen is waited to broadcast in the bullet screen that the target live broadcast room received to the screening, and confirm the bullet screen audio frequency of waiting to broadcast the bullet screen and corresponding, wherein, bullet screen screening condition contains at least one in bullet screen type, bullet screen length, the bullet screen sender type.
In practical applications, the method for determining the barrage audio may include:
screening the bullet screens to be played which meet the bullet screen screening conditions in the bullet screens received by the target live broadcast room;
adding each bullet screen to be played to a bullet screen queue to be played, wherein the bullet screen queue to be played comprises bullet screen information to be played;
generating a bullet screen conversion request according to the bullet screen information to be played, and sending the bullet screen conversion request to a server;
and receiving the bullet screen audio corresponding to the bullet screen to be played, which is returned by the server based on the bullet screen conversion request.
The bullet screen received by the target live broadcast room refers to a bullet screen sent in the target live broadcast room, for example, a server collects the bullet screen sent by a user in the live broadcast room, a notification bullet screen in the live broadcast room and the like, and distributes the bullet screen to the target live broadcast room; under the condition that the number of people watched in the target live broadcast room is large, the number of bullet screens received by the target live broadcast room is possibly large; in order to enable the play of the bullet screen not to affect the live broadcast of the anchor, the bullet screen with the part meeting the requirement can be screened in the bullet screen received by the target live broadcast room according to the bullet screen obtaining rule for playing the bullet screen, for example, the anchor H sets the bullet screen obtaining rule according to the requirement to obtain only the bullet screen with the audience grade being more than or equal to 5, and then the bullet screen with the user grade being more than or equal to 5 is screened in the received bullet screen for playing based on the bullet screen obtaining rule in the live broadcast room K where the anchor H is located.
The bullet screen to be played refers to a bullet screen screened out based on bullet screen acquisition rules; the bullet screen queue to be played refers to a queue for storing bullet screens to be played; the bullet screen information to be played refers to a bullet screen identifier that can uniquely represent a bullet screen to be played, such as a bullet screen name, a bullet screen number, and the like of the bullet screen to be played, and the bullet screen information to be played may also be information contained in the bullet screen to be played, such as bullet screen content, bullet screen sending time, and the like.
In practical application, after the bullet screens to be played are obtained through screening according to bullet screen obtaining rules, the bullet screens to be played are sequentially stored in a pre-established bullet screen queue to be played; that is, before receiving a barrage play instruction for a target live broadcast room, the method may further include:
receiving a queue creation request;
and responding to the queue creating request to create a bullet screen queue to be played, wherein the bullet screen queue to be played is used for storing bullet screens to be played.
Specifically, the queue creation request refers to a request for creating a bullet screen queue to be played at a client; after the bullet screen queue to be played is created at the client based on the queue creation request, the bullet screens to be played, which are determined based on the bullet screen acquisition rule, can be stored in the bullet screen queue to be played, so that the bullet screens to be played in the bullet screen queue to be played can be played in sequence. In addition, after a barrage playing instruction for a target live broadcast room is received, a barrage queue to be played can be created, and the application is not specifically limited.
For example, the anchor client G receives a queue creation request; responding to the queue creating request to create a bullet screen queue J to be played; receiving a bullet screen playing instruction aiming at a live broadcast room F, acquiring bullet screens to be played according to bullet screen acquisition rules in the bullet screen playing instruction, and sequentially storing the acquired bullet screens to be played to a bullet screen queue to be played.
In practical application, the client can set a bullet screen playing function button; under the condition that a bullet screen playing function button is in an open state, collecting bullet screens received by a target live broadcast station, and screening bullet screens to be played in the received bullet screens based on bullet screen obtaining rules; and adding the bullet screen to be played which accords with the bullet screen acquisition rule into a queue to be played.
The bullet screen queue to be played is created, the bullet screen to be played is added to the bullet screen queue to be played, so that the bullet screen to be played is acquired at the head of the bullet screen queue to be played and played based on the characteristics of the queue in the following process, and when the bullet screen to be played is newly added in a target live broadcasting room, the bullet screen to be played is added to the tail of the bullet screen queue to be played.
In practical application, the specific method for screening the bullet screen to be played in the bullet screen received by the target live broadcast room based on the bullet screen obtaining rule may include:
determining bullet screen screening conditions in the bullet screen obtaining rules;
and screening the bullet screens to be played, which accord with the bullet screen screening conditions, in the bullet screens received by the target live broadcast room.
The bullet screen screening condition refers to a condition that a bullet screen to be played needs to meet, and in practical application, the bullet screen screening condition comprises at least one of a bullet screen type, a bullet screen length and a bullet screen sender type.
The bullet screen type refers to a condition for screening a bullet screen meeting a preset bullet screen type, for example, the interaction type bullet screen condition is used for screening the bullet screen type as the interaction type, and the notification type bullet screen condition is used for screening the bullet screen type as the notification type.
The bullet screen length refers to a condition for screening bullet screens meeting the preset bullet screen length; in practical application, there may be the bullet screen with a large number of characters in the bullet screen, so that the bullet screen with a suitable length can be screened based on the length of the bullet screen as the bullet screen to be played, and it is avoided that excessive time is consumed when the bullet screen with a large number of characters is played, for example, the length of the bullet screen is the total number of characters with an upper limit value of the length of the bullet screen 50, that is, the bullet screen with the total number of characters less than or equal to 50 is screened according to the length of the bullet screen, and the bullet screen with the total number of characters greater than the upper limit value of the length of the bullet screen is ignored, that is, the bullet screen with the total number of characters greater than 50 is not added to the queue of the bullet screen to be played.
The length of the bullet screen can be configured by a user, namely, the user can set bullet screen screening conditions in the process of opening or playing the bullet screen to be played; the length of the bullet screen can be preconfigured by the server, namely, the bullet screen is pre-screened by the server according to the length of the preconfigured bullet screen when the bullet screen is delivered, the screened bullet screen is directly displayed, or the bullet screen is further screened according to other screening conditions such as the length of the bullet screen configured by a user and the like.
The bullet screen sender type refers to a condition for filtering a bullet screen sent by a sender of a preset sender type, for example, the preset sender type may be a sender type focusing on a live broadcast, a sender type having an activity level greater than 3, or the like.
For example, determining a bullet screen obtaining rule M, and determining bullet screen screening conditions according to the bullet screen obtaining rule M; the bullet screen screening condition is that the number of words of the bullet screen is less than or equal to 50, and the bullet screen sent by a sender with a user grade greater than 5 is screened; and screening the bullet screen to be played in the bullet screen received by the live broadcast room A according to the bullet screen screening condition.
The bullet screen to be played is screened in the bullet screen received by the target live broadcast room based on the bullet screen obtaining rule, and the bullet screen to be played is added to the bullet screen queue to be played, so that the bullet screen to be played in the bullet screen queue to be played can be played subsequently.
In practical applications, the method for adding each bullet screen to be played to the bullet screen queue to be played may include:
determining a bullet screen quantity threshold value in the bullet screen obtaining rule;
sequencing each bullet screen to be played based on the time point of receiving each bullet screen to be played to obtain a bullet screen sequence to be played;
and acquiring the bullet screens to be played, which are less than or equal to the bullet screen quantity threshold value, in the bullet screen sequence to be played, and adding the bullet screens to be played to a bullet screen queue to be played.
The bullet screen quantity threshold value refers to the upper limit value of the quantity of bullet screens to be played, which can be stored in a bullet screen queue to be played; the time point for receiving each bullet screen to be played refers to the time point for receiving each bullet screen to be played by the client; the bullet screen sequence to be played refers to a sequence obtained by sequencing bullet screens to be played based on the time point corresponding to each bullet screen to be played.
Specifically, the bullet screen obtaining rule is analyzed to obtain a bullet screen quantity threshold, wherein the bullet screen quantity threshold can be set by a user based on requirements, and can also be a storage upper limit value of a bullet screen queue to be played; determining the time point when the client receives the bullet screens to be played, and sequencing each bullet screen to be played based on the time point corresponding to each bullet screen to be played to obtain a bullet screen sequence to be played; acquiring the bullet screens not exceeding the bullet screen quantity threshold value in the bullet screen sequence to be played according to the bullet screen quantity threshold value, and storing the bullet screens in a bullet screen queue to be played; after the played bullet screen to be played is removed from the bullet screen queue to be played, the bullet screen to be played can be continuously obtained from the bullet screen sequence to be played and added to the bullet screen queue to be played.
For example, determining a bullet screen quantity threshold value 10 in the bullet screen acquisition rule K; determining a time point when the client receives each bullet screen to be played, and sequencing each received bullet screen to be played based on the time point to obtain a bullet screen sequence to be played; acquiring 5 bullet screens to be played in the bullet screen sequence to be played according to the bullet screen quantity threshold value 10, and adding each bullet screen to be played to a bullet screen queue to be played.
The client continuously receives the bullet screens to be played and adds the bullet screens to the bullet screen sequence to be played, and at the moment, the bullet screen queue to be played only contains 5 bullet screens to be played and does not reach the upper limit value, so the bullet screens to be played can be continuously added to the bullet screen sequence to be played based on the bullet screen sequence to be played.
Taking the bullet screen obtaining rule U as an example, the following further describes a process of adding a bullet screen to be played to a bullet screen queue to be played, as shown in fig. 2, fig. 2 is a schematic flow diagram of adding a bullet screen to be played according to an embodiment of the present application, and includes steps 202 to 212:
step 202: and the anchor client A receives the barrage sent to the target live broadcasting room Y.
Step 204: and judging whether the received bullet screen accords with the bullet screen acquisition rule U or not. If yes, go to step 206, otherwise go to step 212.
Specifically, the bullet screen acquisition rule U is created based on the anchor requirement of the anchor client; the bullet screen obtaining rule includes a bullet screen rule for obtaining a limited bullet screen type and a limited sender type rule, for example, a bullet screen for obtaining a common bullet screen type and a notification bullet screen type, and a bullet screen for obtaining a user who pays attention to a live broadcast room.
And determining to add the bullet screen N to be played to the bullet screen queue to be played based on the bullet screen obtaining rule U.
Step 206: and judging whether the bullet screens to be played in the bullet screen queue to be played exceed the bullet screen quantity threshold value. If yes, go to step 208, otherwise go to step 210.
Step 208: and deleting the bullet screen H to be played, wherein the bullet screen queue to be played is positioned at the head of the queue.
Specifically, after deleting the bullet screen H to be played, in which the bullet screen queue to be played is located at the head of the queue, the bullet screen N to be played is added to the head of the queue of the bullet screen queue to be played.
Step 210: and adding the bullet screen N to be played to the tail of the bullet screen queue to be played.
Step 212: and finishing the addition of the bullet screen to be played.
Through will treating to broadcast in the barrage adds to treating to broadcast the barrage queue, be convenient for follow-up only to meeting barrage and obtaining the barrage of regular barrage and broadcast, and then promote user experience.
Generating a bullet screen conversion request according to bullet screen information to be played in a bullet screen queue to be played; the bullet screen conversion request is a request for converting a bullet screen to be played into bullet screen audio; the server refers to a device that can process the bullet screen conversion request.
Specifically, after a client starts a bullet screen playing function, circularly checking whether a bullet screen to be played is contained in a queue to be played; and if the bullet screen queue to be played is not empty, reading the bullet screen to be played at the head of the queue, and generating a bullet screen conversion request corresponding to the bullet screen to be played.
In practical application, the method for generating the bullet screen conversion request according to the bullet screen information to be played and sending the bullet screen conversion request to the server may include:
determining the bullet screen information to be played of the target in the bullet screen queue to be played;
and generating a bullet screen conversion request according to the bullet screen information to be played by the target, and sending the bullet screen conversion request to a server.
The target bullet screen information to be played refers to information corresponding to a target bullet screen to be played in a bullet screen queue to be played; the server is a device capable of converting the bullet screen to be played into audio based on the bullet screen information to be played. In the scheme of the application, the client sends the barrage conversion request to the server, namely the server is requested to convert barrage audio, so that the server can be processed conveniently under the condition that adjustment requirements exist in audio conversion, and each client does not need to be processed respectively.
Specifically, a target bullet screen to be played at the head of a queue in a bullet screen queue to be played is determined, and target bullet screen information to be played of the target bullet screen to be played is determined; and generating a bullet screen conversion request for converting the bullet screen to be played according to the information of the bullet screen to be played, and sending the bullet screen conversion request to the server.
For example, a bullet screen H to be played at the head of the queue is determined in the bullet screen queue to be played, and the bullet screen information to be played corresponding to the bullet screen H to be played is determined to be the bullet screen number "234", a bullet screen conversion request is generated based on the bullet screen number "234", and the bullet screen conversion request is sent to the server.
In order to change the bullet screen acquisition rule after the bullet screen to be played is added to the bullet screen queue to be played until the bullet screen to be played is played, the bullet screen to be played may be determined again whether the bullet screen to be played is consistent with the current bullet screen acquisition rule before the bullet screen to be played is played, that is, after the target bullet screen to be played is determined in the bullet screen queue to be played.
Specifically, in practical applications, before generating the barrage switching request according to the information of the barrage to be played, the method may further include:
acquiring a current bullet screen acquisition rule;
generating a bullet screen conversion request according to the bullet screen information to be played by the target, comprising the following steps:
and under the condition that the target bullet screen to be played accords with the current bullet screen acquisition rule, generating a bullet screen conversion request according to the information of the target bullet screen to be played.
The current bullet screen obtaining rule is a bullet screen obtaining rule corresponding to the time point of the target bullet screen to be played determined from the bullet screen queue to be played; in practical applications, the bullet screen acquiring rule may be consistent with the current bullet screen acquiring rule or inconsistent with the current bullet screen acquiring rule.
Under the condition that the target bullet screen to be played accords with the current bullet screen acquisition rule, namely the current bullet screen acquisition rule is consistent with the bullet screen acquisition rule, or under the condition that the target bullet screen to be played accords with the bullet screen acquisition rule and the current bullet screen acquisition rule simultaneously, a bullet screen conversion request is generated based on the target bullet screen information to be played corresponding to the target bullet screen to be played.
Deleting the target bullet screen to be played under the condition that the target bullet screen to be played does not accord with the current bullet screen obtaining rule; and then determining the current target bullet screen to be played in the bullet screen queue to be played.
For example, a current bullet screen obtaining rule is obtained, if it is determined that the target bullet screen D to be played conforms to the current bullet screen obtaining rule, the target bullet screen information to be played of the target bullet screen D to be played is determined, and a bullet screen conversion request is generated based on the target bullet screen information to be played.
If the current bullet screen obtaining rule is obtained, and the bullet screen D to be played is determined not to conform to the current bullet screen obtaining rule, the bullet screen D to be played is deleted; determining a target bullet screen E to be played, which is currently positioned at the head of the queue, in the bullet screen queue to be played as a current target bullet screen to be played; and subsequently judging whether the bullet screen E to be played meets the current bullet screen obtaining rule.
In practical application, the bullet screen information to be played can be the bullet screen identification of the bullet screen to be played or the bullet screen to be played, so that the bullet screen conversion request can be generated based on the bullet screen identification or the bullet screen to be played, and the bullet screen conversion request generated based on the bullet screen information to be played is sent to the server.
Under the condition that a server receives a bullet screen conversion request generated based on bullet screen identification, analyzing the bullet screen conversion request to obtain bullet screen identification, and determining a target bullet screen to be played in a bullet screen database based on the bullet screen identification; and calling a voice conversion interface to convert the target bullet screen to be played into corresponding bullet screen audio, and returning the bullet screen audio to the client, so that the client can play the bullet screen audio, namely, the target bullet screen to be played is played.
Under the condition that a server receives a bullet screen conversion request generated based on a target bullet screen to be played, analyzing the bullet screen conversion request and determining the target bullet screen to be played; and calling a voice conversion interface to convert the target bullet screen to be played into corresponding bullet screen audio, and returning the bullet screen audio to the client so that the client can play the target bullet screen to be played.
The method comprises the steps of obtaining a current bullet screen obtaining rule before a target bullet screen to be played in a queue to be played is played, judging whether the target bullet screen to be played accords with the current bullet screen obtaining rule or not, and then being convenient for playing the bullet screen to be played which accords with the current bullet screen obtaining rule subsequently, so that after the bullet screen obtaining rule is adjusted, the bullet screen to be played which accords with the current bullet screen obtaining rule can be played.
Step 106: and playing the bullet screen audio corresponding to the bullet screen to be played.
Determining a target bullet screen to be played, and sending a bullet screen conversion request generated based on the target bullet screen to be played to a server; after receiving the bullet screen conversion request, the server determines a target bullet screen to be played according to the bullet screen conversion request, and calls a voice conversion interface to convert the bullet screen to be played into bullet screen audio and returns the bullet screen audio to the client; and after the client acquires the bullet screen audio, the player plays the bullet screen audio.
Further, the barrage conversion request comprises a main broadcast identifier; after receiving a bullet screen conversion request sent by a client, a server determines an anchor identifier, and determines whether an anchor account corresponding to the anchor identifier has bullet screen playing permission or not based on the anchor identifier; if yes, further processing is carried out based on the bullet screen conversion request; if not, sending a prompt that the bullet screen playing function is unavailable to the anchor client.
The bullet screen audio refers to audio corresponding to a bullet screen to be played, for example, the text bullet screen is subjected to audio conversion by moving forward to obtain audio H corresponding to the text bullet screen; in practical application, the bullet screen audio meeting the requirement can be synthesized by selecting audio synthesis parameters, specifically, the audio synthesis parameters can include tone, volume, speech speed, tone, style, emotion and the like; and after the client acquires the bullet screen audio corresponding to the bullet screen to be played, the player plays the bullet screen audio.
In practical applications, a specific method for receiving and playing the bullet screen audio returned by the server based on the bullet screen conversion request may include:
receiving a target bullet screen audio returned by the server based on the bullet screen information to be played by the target in the bullet screen conversion request;
and playing the target bullet screen audio.
The bullet screen information to be played by the target refers to information corresponding to the bullet screen to be played by the target, and can be a bullet screen identifier of the bullet screen to be played by the target, or can be the bullet screen to be played by the target; the target bullet screen audio refers to audio corresponding to the bullet screen to be played.
Specifically, determining bullet screen information to be played in a bullet screen conversion request, and receiving target bullet screen audio returned based on a bullet screen identifier by a client under the condition that the target bullet screen information to be played is the bullet screen identifier; and under the condition that the target bullet screen to be played information is the target bullet screen to be played, the client receives target bullet screen audio returned based on the target bullet screen to be played.
In practical application, in order to avoid a plurality of play conflicts caused by the simultaneous play of the bullet screens to be played, before the target bullet screen audio corresponding to the target bullet screen to be played is played, the method further comprises the following steps:
detecting the current barrage playing state of the player;
playing the target barrage audio, including:
under the condition that the current bullet screen playing state is a non-playing state, the player plays the target bullet screen audio;
and under the condition that the current bullet screen playing state is the playing state, adding the target bullet screen audio to a bullet screen audio queue to be played.
The current barrage playing state refers to the playing condition of the player for playing barrage audio, and comprises a playing state and a non-playing state; the playing state refers to a state that the player plays the barrage audio currently, and the non-playing state refers to a state that the player does not play the barrage audio currently; the bullet screen audio queue to be played refers to a queue for storing bullet screen audio to be played; the bullet screen audio to be played refers to bullet screen audio to be played by the player.
For example, the client G receives a bullet screen audio K corresponding to a bullet screen to be played; detecting that the bullet screen playing state of the player is a playing state, determining that bullet screen audio currently played by the player is bullet screen audio L, and adding bullet screen audio K to a bullet screen audio queue to be played; and after the bullet screen audio L is played, taking out the bullet screen audio K currently positioned at the head of the queue from the bullet screen queue to be played for playing.
The bullet screen playing method applied to the client receives a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules; based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types; and playing the bullet screen audio corresponding to the bullet screen to be played. The method and the device realize the reception of the bullet screen playing instruction aiming at the target live broadcast room, and screen the bullet screen to be played in the bullet screen received by the target live broadcast room based on the bullet screen obtaining rule in the bullet screen playing instruction, thereby realizing the screening of the bullet screen to be played; determining the bullet screen audio frequency corresponding to the bullet screen to be played, and playing the bullet screen to be played by playing the bullet screen audio frequency.
Fig. 3 is a flowchart illustrating a method for playing a bullet screen applied to a server according to an embodiment of the present application, which specifically includes the following steps:
step 302: and determining bullet screen information to be played in the target live broadcast room, wherein the bullet screen information to be played is obtained according to bullet screen obtaining rules and the bullet screen to be played is screened in the bullet screen received by the target live broadcast room.
The client is a device corresponding to a main broadcasting client or a spectator client which sends a barrage conversion request; the bullet screen conversion request is a request for converting a bullet screen to be played into bullet screen audio; the server refers to a device that can process the bullet screen conversion request.
Specifically, the method for determining bullet screen information to be played in a target live broadcast room comprises the following steps:
receiving a barrage conversion request sent by a client;
and determining bullet screen information to be played in the target live broadcast room based on the bullet screen conversion request.
The bullet screen conversion request carries bullet screen information to be played, and the bullet screen information to be played is obtained by analyzing the bullet screen conversion request; the bullet screen information to be played refers to bullet screen information corresponding to the bullet screen to be played, and the bullet screen to be played refers to a bullet screen screened out from bullet screens received by the target live broadcast room according to bullet screen acquisition rules.
For example, the server H receives the bullet screen conversion request sent by the client M, analyzes the bullet screen conversion request, and obtains bullet screen information to be played.
The client sends the barrage conversion request to the server; and the server receives the bullet screen conversion request so as to perform the conversion of the bullet screen audio based on the bullet screen information to be played in the bullet screen conversion request in the following process.
Step 304: and acquiring the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played.
The bullet screen information to be played refers to a bullet screen to be played by a target or a bullet screen identification of the bullet screen to be played by the target.
In practical applications, the method for determining the bullet screen information to be played in the target live broadcast room based on the bullet screen conversion request may include:
analyzing the bullet screen conversion request;
and acquiring the bullet screen information to be played in the target live broadcasting room in the bullet screen conversion request.
Specifically, the server receives the bullet screen conversion request, analyzes the bullet screen conversion request, and obtains bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is a bullet screen to be played in the target live broadcast room or a bullet screen identifier of the target bullet screen to be played.
For example, the server H parses the received barrage conversion request, and acquires the barrage P to be played in the target live broadcast room L in the parsed barrage conversion request.
The bullet screen conversion request is analyzed, so that bullet screen information to be played in the target live broadcast room is obtained, and bullet screen audio corresponding to the bullet screen to be played in the target live broadcast room can be obtained based on the bullet screen information to be played later.
The bullet screen audio refers to audio corresponding to a bullet screen to be played, namely, a text bullet screen is converted into corresponding bullet screen audio content;
in practical applications, the method for acquiring the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played may include:
calling a preset voice conversion interface;
and converting the bullet screen information to be played into bullet screen audio based on the preset voice conversion interface.
The preset voice conversion interface is a preset interface capable of converting text contents into corresponding audio contents; after determining the bullet screen information to be played, the server determines a target bullet screen to be played based on the bullet screen information to be played; and calling a preset voice conversion interface to convert the target bullet screen to be played into bullet screen audio.
Further, in order to obtain the bullet screen audio meeting the user requirements, the bullet screen audio corresponding to the bullet screen to be played can be generated based on the speech synthesis parameters.
Specifically, the method for acquiring the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played includes:
calling a target voice conversion interface based on the voice synthesis parameters;
and converting the bullet screen to be played into bullet screen audio according to the target voice conversion interface.
The speech synthesis parameters refer to parameters for synthesizing the bullet screen audio, for example, the speech synthesis parameters may be volume, tone, intonation, speech speed, language type, and the like; in practical application, a parameter adjustment button may be set at the client, and the user may adjust parameter values corresponding to speech synthesis parameters such as volume, tone, intonation, speed, style, and language type based on the parameter adjustment button, for example, an initial value corresponding to the volume parameter is 100, the preset value is adjusted to 50 according to the user trigger button, and then, for example, the language type is set to english, that is, the text bullet screen is converted into english bullet screen audio.
Specifically, after the user starts the bullet screen playing function of the client, the volume, tone and the like of the bullet screen audio can be adjusted through preset buttons, the parameter value corresponding to the current speech synthesis parameter is obtained, and the bullet screen conversion request is generated according to the current speech synthesis parameter.
Determining a target voice conversion interface based on the voice synthesis parameters, namely adjusting the voice conversion interface according to the voice synthesis parameters to obtain the target voice conversion interface, namely the voice synthesis parameters for synthesizing the voice in the target voice conversion interface are consistent with the bullet screen conversion request; and performing voice conversion on the bullet screen to be played according to the determined target voice conversion interface to obtain bullet screen audio.
For example, the barrage conversion request is analyzed to obtain a parameter value corresponding to the voice synthesis parameter; adjusting the called voice conversion interface based on the parameter value corresponding to the voice synthesis parameter to obtain a target voice conversion interface; and converting the bullet screen to be played into bullet screen audio through the target audio conversion interface.
The target voice conversion interface is obtained by adjusting the voice conversion interface based on the voice synthesis parameters in the bullet screen conversion request, and then the bullet screen to be played is converted into bullet screen audio based on the target voice conversion interface, so that bullet screen audio meeting the audio requirement of a user is obtained.
Step 306: and returning the bullet screen audio to the client so that the client plays the bullet screen audio.
Specifically, after the server obtains the bullet screen audio of the bullet screen to be played based on the bullet screen conversion request, the client may download the bullet screen audio corresponding to the bullet screen to be played from the server.
For example, after the server obtains the bullet screen audio M corresponding to the bullet screen K to be played based on the bullet screen conversion request, the client may download the bullet screen audio M from the server, so that the client may play the bullet screen audio M.
The application is applied to the bullet screen playing method of the server, and the bullet screen conversion request sent by the client is received, so that the bullet screen to be played is determined based on the bullet screen conversion request; determining bullet screen information to be played in a target live broadcast room based on the bullet screen conversion request, and obtaining bullet screen audio according to the bullet screen information to be played so as to return the bullet screen audio to the client; and returning the bullet screen audio to the client so that the client can play the bullet screen audio to be played.
The following description further explains the play method of the bullet screen by taking the application of the play method of the bullet screen provided by the present application to the client Z as an example with reference to fig. 4. Fig. 4 shows a processing flow chart of a play method applied to a bullet screen of a client Z according to an embodiment of the present application, which specifically includes the following steps:
step 402: and the client Z receives a bullet screen playing instruction aiming at the target live broadcast room B, wherein the bullet screen playing instruction comprises a bullet screen obtaining rule R.
Specifically, as shown in fig. 5, fig. 5 is a schematic view of an opening page of a bullet screen playing function provided in an embodiment of the present application; the anchor can enter a bullet screen playing function to open a page; the starting and closing of the bullet screen playing function can be realized by clicking a switch in the page. The method comprises the following steps that under the condition that a main broadcast user starts a bullet screen playing function, a client side obtains a bullet screen playing instruction, and bullet screen obtaining rules are contained in the bullet screen playing instruction; the bullet screen acquisition rule in this embodiment is generated by the user at the moment of opening the bullet screen playing function, and the anchor user can select a bullet screen of a gift type and a notification type on the bullet screen playing function opening page for playing, that is, the bullet screen acquisition rule is to acquire a bullet screen of the gift type and a notification type.
Step 404: and determining bullet screen screening conditions in the bullet screen obtaining rule R, and screening the bullet screens to be played which accord with the bullet screen screening conditions in the bullet screens received by the target live broadcast room B.
Specifically, the bullet screen screening conditions comprise a screening gift type bullet screen and a notification type bullet screen; and screening the bullet screens of the gift type and the notification type from the bullet screens received by the target live broadcast room B to be used as bullet screens to be played.
Step 406: and sequencing each bullet screen to be played based on the time point of receiving each bullet screen to be played to obtain a bullet screen sequence to be played.
Step 408: and determining the bullet screen quantity threshold in the bullet screen obtaining rule R, obtaining the bullet screens to be played which are less than or equal to the bullet screen quantity threshold in the bullet screen sequence to be played, and adding the bullet screens to the bullet screen queue to be played.
Specifically, the threshold of the number of bullet screens in this embodiment is an upper limit value 10 of the number of bullet screens that can be stored in the bullet screen queue to be played; taking target live broadcasting indirect reception of to-be-played barrages of "test 1", "test 2", "test 3", "test 4", "test 5", "test 6", "test 7", "test 8", "test 9", "test 10", "test 11" and "test 12" as examples, the to-be-played barrages queue stores "test 1", "test 2", "test 3", "test 4", "test 5", "test 6", "test 7", "test 8", "test 9" and "test 10", in the playing process of the "test 1", namely receiving "test 11" under the condition that the "test 1" is taken out from the queue, and adding the "test 11" to the tail queue of the to-be-played barrage queue; after receiving the "test 11", receiving the "test 12", because the "test 2" is not taken out from the queue, the number of the barrage in the queue reaches the upper limit, taking out the "test 2" from the head of the queue, and adding the "test 12" to the tail of the queue.
Step 410: and determining the target bullet screen to be played in the bullet screen queue to be played.
Specifically, a bullet screen queue to be played is subjected to cyclic check, and whether a bullet screen to be played is included in the bullet screen queue to be played is determined; under the condition that the bullet screen to be played is detected to be contained in the bullet screen queue to be played, the target bullet screen to be played at the head of the queue is taken out, and the information of the target bullet screen to be played is determined.
Step 412: and acquiring a current bullet screen acquisition rule, and generating a bullet screen conversion request according to the information of the bullet screen to be played of the target and sending the bullet screen conversion request to the server under the condition that the bullet screen to be played of the target accords with the current bullet screen acquisition rule.
Specifically, a target bullet screen to be played is determined based on the information of the target bullet screen to be played; acquiring a current bullet screen acquisition rule and judging whether a target bullet screen to be played conforms to the bullet screen acquisition rule; if so, generating a bullet screen conversion request based on the target bullet screen to be played information of the target bullet screen to be played; and sending the barrage conversion request to a server.
And under the condition that the target bullet screen to be played does not accord with the current bullet screen acquisition rule, deleting the target bullet screen to be played, and determining a new bullet screen to be played in the bullet screen queue to be played, namely the bullet screen to be played which is currently positioned at the head of the queue, as the current target bullet screen to be played.
Step 414: and the server receives the barrage conversion request sent by the client Z, analyzes the barrage conversion request and obtains the barrage information to be played of the target live broadcast room B.
Specifically, determining a main broadcast identifier in the bullet screen conversion request; determining whether a bullet screen playing authority exists in a target live broadcast room B or not based on the anchor mark; and under the condition of containing the authority, acquiring the bullet screen information to be played of the target live broadcast room B, and determining the target bullet screen to be played based on the bullet screen information to be played.
Step 416: and determining the voice synthesis parameters in the barrage conversion request, and calling a target voice conversion interface based on the voice synthesis parameters.
Specifically, the bullet screen conversion request is analyzed to obtain the speech synthesis parameters, as shown in fig. 5, the anchor user may adjust the parameter values of the speech synthesis parameters, such as adjusting the volume to 50, the intonation to 10, and the like; and determining a target voice conversion interface for converting the bullet screen to be played based on the voice synthesis parameters.
Step 418: and converting the target bullet screen to be played into target bullet screen audio based on the target voice conversion interface.
Step 420: the client receives the barrage audio and detects the current barrage playing state of the player.
Step 422: and under the condition that the current bullet screen playing state is a non-playing state, playing the target bullet screen audio by the player.
Specifically, if the current bullet screen playing state is the playing state, the target bullet screen audio is added to the bullet screen audio queue to be played to wait for playing.
The bullet screen playing method provides a bullet screen playing function for the client, and improves the interaction rate of the anchor and the audience in the live broadcast room; moreover, the anchor can screen the bullet screen to be played based on the requirement and adjust and integrate the parameters of the audio, so that the use experience of the user is improved; in addition, the client sends a barrage conversion request to the server, the server converts the text barrage into audio, and the audio is returned to the client, so that the subsequent barrage function iteration is performed, more functional features are added, and the like.
Fig. 6 shows a schematic structural diagram of a playing system of a bullet screen, where the playing system includes a client 602 and a server 604, where:
the client 602 is configured to receive a bullet screen playing instruction for a target live broadcast room, where the bullet screen playing instruction includes a bullet screen obtaining rule; based on the bullet screen screening condition in the bullet screen obtaining rule, screening a bullet screen to be played in the bullet screen received by the target live broadcast room, and determining a bullet screen audio frequency corresponding to the bullet screen to be played, wherein the bullet screen screening condition comprises at least one of a bullet screen type, a bullet screen length and a bullet screen sender type;
the server 604 is configured to determine bullet screen information to be played in a target live broadcast room, where the bullet screen information to be played is determined according to a bullet screen to be played in the target live broadcast room; acquiring bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played; returning the bullet screen audio to a client side so that the client side can play the bullet screen audio;
the client 602 is further configured to play the bullet screen audio corresponding to the bullet screen to be played.
The barrage playing system provides a barrage playing function for the client, and improves the interaction rate of the anchor and audiences in the live broadcast room; moreover, the anchor can screen the bullet screen to be played based on the requirement and adjust and integrate the parameters of the audio, so that the use experience of the user is improved; in addition, the client sends a barrage conversion request to the server, the server converts the text barrage into audio, and the audio is returned to the client, so that the subsequent barrage function is iterated, more functional features are added, and the like.
Corresponding to the above method embodiment, the present application further provides an embodiment of a playing device of a bullet screen, and fig. 7 illustrates a schematic structural diagram of a playing device of a bullet screen applied to a client according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:
a receiving module 702, configured to receive a barrage playing instruction for a target live broadcast room, where the barrage playing instruction includes a barrage obtaining rule;
a screening module 704, configured to screen a bullet screen to be played in a bullet screen received by the target live broadcast room based on a bullet screen screening condition in the bullet screen obtaining rule, and determine a bullet screen audio corresponding to the bullet screen to be played, where the bullet screen screening condition includes at least one of a bullet screen type, a bullet screen length, and a bullet screen sender type;
and the playing module 706 is configured to play the bullet screen audio corresponding to the bullet screen to be played.
The application is applied to a play device of a bullet screen of a client, and the receiving module is configured to receive a bullet screen play instruction aiming at a target live broadcast room, wherein the bullet screen play instruction comprises a bullet screen acquisition rule; the screening module is configured to screen a bullet screen to be played in the bullet screen received by the target live broadcast room based on bullet screen screening conditions in the bullet screen obtaining rules, and determine a bullet screen audio frequency corresponding to the bullet screen to be played, wherein the bullet screen screening conditions include at least one of a bullet screen type, a bullet screen length and a bullet screen sender type; and the playing module is configured to play the bullet screen audio corresponding to the bullet screen to be played.
The application is applied to the playing device of the bullet screen of the client, the bullet screen to be played is screened in the bullet screen received by the target live broadcast room by receiving the bullet screen playing instruction aiming at the target live broadcast room and based on the bullet screen obtaining rule in the bullet screen playing instruction, so that the bullet screen to be played is screened; adding the screened bullet screens to be played into a bullet screen queue to be played, so that the subsequent bullet screens to be played are sequentially played; generating a bullet screen conversion request according to bullet screen information to be played, and sending the bullet screen conversion request to a server, so that the server processes the bullet screen conversion request to obtain bullet screen audio; and receiving and playing the bullet screen audio, thereby realizing the playing of the bullet screen to be played.
Corresponding to the above method embodiment, the present application further provides an embodiment of a playing device of a bullet screen, and fig. 8 illustrates a schematic structural diagram of a playing device of a bullet screen applied to a server according to an embodiment of the present application. As shown in fig. 8, the apparatus includes:
a determining module 802, configured to determine bullet screen information to be played in a target live broadcast room, where the bullet screen information to be played is obtained according to a bullet screen obtaining rule from bullet screens to be played screened in bullet screens received in the target live broadcast room;
an obtaining module 804, configured to obtain, according to the bullet screen information to be played, a bullet screen audio corresponding to the bullet screen information to be played;
a returning module 806 configured to return the bullet screen audio to the client, so that the client plays the bullet screen audio.
The playing device determining module of the bullet screen applied to the server is configured to determine bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is obtained according to bullet screen obtaining rules and is screened from bullet screens received by the target live broadcast room; the acquisition module is configured to acquire the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played; the return module is configured to return the bullet screen audio to the client so that the client plays the bullet screen audio.
The application is applied to a bullet screen playing device of a server, and is used for receiving a bullet screen conversion request sent by a client so as to determine a bullet screen to be played based on the bullet screen conversion request; determining bullet screen information to be played in a target live broadcast room based on the bullet screen conversion request, and obtaining bullet screen audio according to the bullet screen information to be played so as to return the bullet screen audio to the client; and returning the bullet screen audio to the client so that the client can play the bullet screen audio to be played.
The foregoing is a schematic solution of the playing apparatus of the bullet screen in this embodiment. It should be noted that the technical solution of the apparatus for playing a bullet screen and the technical solution of the method for playing a bullet screen belong to the same concept, and details of the technical solution of the apparatus for playing a bullet screen, which are not described in detail, can be referred to the description of the technical solution of the method for playing a bullet screen.
Fig. 9 illustrates a block diagram of a computing device 900 provided in accordance with an embodiment of the present application. Components of the computing device 900 include, but are not limited to, a memory 910 and a processor 920. The processor 920 is coupled to the memory 910 via a bus 930, and a database 950 is used to store data.
Computing device 900 also includes access device 940, access device 940 enabling computing device 900 to communicate via one or more networks 960. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 940 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 900 and other components not shown in FIG. 9 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 9 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 900 may also be a mobile or stationary server.
Wherein, the processor 920 implements the steps of the bullet screen playing method when executing the computer instructions.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the bullet screen playing method described above belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the bullet screen playing method described above.
An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the steps of the bullet screen playing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the bullet screen playing method belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the bullet screen playing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (20)

1. A bullet screen playing method is applied to a client and comprises the following steps:
receiving a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules;
based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types;
and playing the bullet screen audio corresponding to the bullet screen to be played.
2. The method of claim 1, wherein based on a bullet screen screening condition in the bullet screen obtaining rule, screening a bullet screen to be played from bullet screens received by the target live broadcast room, and determining a bullet screen audio corresponding to the bullet screen to be played comprises:
screening the bullet screens to be played which meet the bullet screen screening conditions from the bullet screens received by the target live broadcast room;
adding each bullet screen to be played to a bullet screen queue to be played, wherein the bullet screen queue to be played comprises bullet screen information to be played;
generating a bullet screen conversion request according to the bullet screen information to be played, and sending the bullet screen conversion request to a server;
and receiving the bullet screen audio corresponding to the bullet screen to be played, which is returned by the server based on the bullet screen conversion request.
3. The method of claim 2, wherein adding each to-be-played barrage to a to-be-played barrage queue comprises:
determining a bullet screen quantity threshold value in the bullet screen obtaining rule;
sequencing each bullet screen to be played based on the time point of receiving each bullet screen to be played to obtain a bullet screen sequence to be played;
and acquiring the bullet screens to be played, which are less than or equal to the bullet screen quantity threshold value, in the bullet screen sequence to be played, and adding the bullet screens to be played to a bullet screen queue to be played.
4. The method of claim 2, wherein generating a barrage switching request according to the information of the barrage to be played and sending the barrage switching request to a server comprises:
determining the bullet screen information to be played of the target in the bullet screen queue to be played;
and generating a bullet screen conversion request according to the bullet screen information to be played in the target, and sending the bullet screen conversion request to a server.
5. The method of claim 4, wherein playing the bullet screen audio corresponding to the bullet screen to be played comprises:
receiving a target bullet screen audio returned by the server based on the bullet screen information to be played by the target in the bullet screen conversion request;
and playing the target bullet screen audio.
6. The method of claim 5, wherein prior to playing the target barrage audio, further comprising:
detecting the current barrage playing state of the player;
playing the target barrage audio, including:
and under the condition that the current bullet screen playing state is a non-playing state, the player plays the target bullet screen audio.
7. The method of claim 6, wherein the method further comprises:
and under the condition that the current bullet screen playing state is the playing state, adding the target bullet screen audio to a bullet screen audio queue to be played.
8. The method of claim 4, wherein before generating the bullet screen conversion request according to the bullet screen information to be played, the method further comprises:
acquiring a current bullet screen acquisition rule;
generating a bullet screen conversion request according to the bullet screen information to be played by the target, comprising the following steps:
and under the condition that the target bullet screen to be played accords with the current bullet screen acquisition rule, generating a bullet screen conversion request according to the information of the target bullet screen to be played.
9. The method of claim 8, wherein the method further comprises:
deleting the target bullet screen to be played under the condition that the target bullet screen to be played does not accord with the current bullet screen obtaining rule;
and determining the current target bullet screen to be played in the bullet screen queue to be played.
10. The method of claim 1, wherein prior to receiving the barrage play instruction for the target live broadcast room, further comprising:
receiving a queue creation request;
and responding to the queue creating request to create a bullet screen queue to be played, wherein the bullet screen queue to be played is used for storing bullet screens to be played.
11. A bullet screen playing method is applied to a server and comprises the following steps:
determining bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is obtained according to bullet screen obtaining rules and bullet screens to be played which are screened from bullet screens received by the target live broadcast room;
acquiring bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played;
and returning the bullet screen audio to the client so that the client plays the bullet screen audio.
12. The method of claim 11, wherein determining the bullet screen information to be played in the target live broadcast room comprises:
receiving a barrage conversion request sent by a client;
and determining bullet screen information to be played in the target live broadcast room based on the bullet screen conversion request.
13. The method of claim 12, wherein determining the bullet screen information to be played in the target live broadcast room based on the bullet screen transition request comprises:
analyzing the bullet screen conversion request;
and acquiring the bullet screen information to be played in the target live broadcast room in the bullet screen conversion request.
14. The method of claim 11, wherein obtaining the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played comprises:
calling a preset voice conversion interface;
and converting the bullet screen information to be played into bullet screen audio based on the preset voice conversion interface.
15. The method of claim 11, wherein the bullet screen transition request includes speech synthesis parameters;
acquiring the bullet screen audio frequency corresponding to the bullet screen information to be played according to the bullet screen information to be played, including:
calling a target voice conversion interface based on the voice synthesis parameters;
and converting the bullet screen to be played into bullet screen audio according to the target voice conversion interface.
16. A play system of bullet screens, which is characterized in that the play system comprises a client and a server, wherein:
the client is configured to receive a bullet screen playing instruction for a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules; based on the bullet screen screening conditions in the bullet screen obtaining rules, screening bullet screens to be played in bullet screens received by the target live broadcast room, and determining bullet screen audio frequencies corresponding to the bullet screens to be played, wherein the bullet screen screening conditions comprise at least one of bullet screen types, bullet screen lengths and bullet screen sender types;
the server is configured to determine bullet screen information to be played in a target live broadcast room, wherein the bullet screen information to be played is determined according to a bullet screen to be played in the target live broadcast room; acquiring bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played; returning the bullet screen audio to a client side so that the client side can play the bullet screen audio;
the client is further configured to play the bullet screen audio corresponding to the bullet screen to be played.
17. The playing device of the barrage is characterized in that the playing device is applied to a client and comprises:
the receiving module is configured to receive a bullet screen playing instruction aiming at a target live broadcast room, wherein the bullet screen playing instruction comprises bullet screen obtaining rules;
the screening module is configured to screen a bullet screen to be played in the bullet screen received by the target live broadcast room based on bullet screen screening conditions in the bullet screen obtaining rules, and determine a bullet screen audio frequency corresponding to the bullet screen to be played, wherein the bullet screen screening conditions include at least one of a bullet screen type, a bullet screen length and a bullet screen sender type;
and the playing module is configured to play the bullet screen audio corresponding to the bullet screen to be played.
18. The playing device of barrage, characterized in that, being applied to the server, includes:
the system comprises a determining module, a display module and a display module, wherein the determining module is configured to determine bullet screen information to be played in a target live broadcast room, and the bullet screen information to be played is obtained according to bullet screen obtaining rules from bullet screens received by the target live broadcast room;
the acquisition module is configured to acquire the bullet screen audio corresponding to the bullet screen information to be played according to the bullet screen information to be played;
the return module is configured to return the bullet screen audio to the client so that the client plays the bullet screen audio.
19. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 or 11-15 when executing the computer instructions.
20. A computer-readable storage medium storing computer instructions, which when executed by a processor perform the steps of the method of any one of claims 1 to 10 or 11 to 15.
CN202210623154.0A 2022-06-02 2022-06-02 Bullet screen playing method and device Pending CN115022729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210623154.0A CN115022729A (en) 2022-06-02 2022-06-02 Bullet screen playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210623154.0A CN115022729A (en) 2022-06-02 2022-06-02 Bullet screen playing method and device

Publications (1)

Publication Number Publication Date
CN115022729A true CN115022729A (en) 2022-09-06

Family

ID=83073471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210623154.0A Pending CN115022729A (en) 2022-06-02 2022-06-02 Bullet screen playing method and device

Country Status (1)

Country Link
CN (1) CN115022729A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847939A (en) * 2016-05-12 2016-08-10 乐视控股(北京)有限公司 Bullet screen play method, bullet screen play device and bullet screen play system
CN105933784A (en) * 2016-05-17 2016-09-07 乐视控股(北京)有限公司 Bullet screen play and conversion method, bullet screen player, server, and play system
CN106878823A (en) * 2016-12-29 2017-06-20 武汉斗鱼网络科技有限公司 It is a kind of to filter word barrage and be converted to the method and system of voice barrage
CN109040852A (en) * 2018-07-13 2018-12-18 北京奇艺世纪科技有限公司 A kind of barrage screening technique and device
CN111246275A (en) * 2020-02-07 2020-06-05 北京字节跳动网络技术有限公司 Comment information display and interaction method and device, electronic equipment and storage medium
CN113038185A (en) * 2021-04-02 2021-06-25 上海哔哩哔哩科技有限公司 Bullet screen processing method and device
CN113763919A (en) * 2021-09-29 2021-12-07 北京字跳网络技术有限公司 Video display method and device, computer equipment and storage medium
CN113938723A (en) * 2020-06-29 2022-01-14 大众问问(北京)信息科技有限公司 Bullet screen playing method, device and equipment
CN114095774A (en) * 2022-01-20 2022-02-25 浙大宁波理工学院 Video bullet screen display method, computer equipment and storage medium
CN114422816A (en) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 Live video processing method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847939A (en) * 2016-05-12 2016-08-10 乐视控股(北京)有限公司 Bullet screen play method, bullet screen play device and bullet screen play system
CN105933784A (en) * 2016-05-17 2016-09-07 乐视控股(北京)有限公司 Bullet screen play and conversion method, bullet screen player, server, and play system
CN106878823A (en) * 2016-12-29 2017-06-20 武汉斗鱼网络科技有限公司 It is a kind of to filter word barrage and be converted to the method and system of voice barrage
CN109040852A (en) * 2018-07-13 2018-12-18 北京奇艺世纪科技有限公司 A kind of barrage screening technique and device
CN111246275A (en) * 2020-02-07 2020-06-05 北京字节跳动网络技术有限公司 Comment information display and interaction method and device, electronic equipment and storage medium
CN113938723A (en) * 2020-06-29 2022-01-14 大众问问(北京)信息科技有限公司 Bullet screen playing method, device and equipment
CN113038185A (en) * 2021-04-02 2021-06-25 上海哔哩哔哩科技有限公司 Bullet screen processing method and device
CN113763919A (en) * 2021-09-29 2021-12-07 北京字跳网络技术有限公司 Video display method and device, computer equipment and storage medium
CN114422816A (en) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 Live video processing method and device, electronic equipment and storage medium
CN114095774A (en) * 2022-01-20 2022-02-25 浙大宁波理工学院 Video bullet screen display method, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106373580B (en) The method and apparatus of synthesis song based on artificial intelligence
CN109951743A (en) Barrage information processing method, system and computer equipment
US10818307B2 (en) Voice imitation method and apparatus, and storage medium utilizing cloud to store, use, discard, and send imitation voices
US11137974B2 (en) Method and apparatus for audio processing, electronic device and storage medium
KR20070091962A (en) Method for offerring naration of data channel dmb using animation and recording media implementing the same
CN109474562B (en) Display method and device of identifier, and response method and device of request
CN101120348A (en) Method and system for providing news information by using three dimensional character for use in wireless communication network
CN112204942B (en) Photographing method and terminal equipment
CN113316015B (en) Bullet screen processing method, device and system
CN104639425A (en) Network expression playing method and system and service equipment
CN101826896A (en) Communication terminal, sending method and transmitting system
US20220321969A1 (en) Bullet comment processing method and apparatus
CN110767203B (en) Audio processing method and device, mobile terminal and storage medium
CN112492400B (en) Interaction method, device, equipment, communication method and shooting method
CN115022729A (en) Bullet screen playing method and device
CN112201264A (en) Audio processing method and device, electronic equipment, server and storage medium
US20230072483A1 (en) Moving image editing device, moving image editing method, and program
CN113905254B (en) Video synthesis method, device, system and readable storage medium
CN112562733A (en) Media data processing method and device, storage medium and computer equipment
CN113691838A (en) Audio bullet screen processing method and device, electronic equipment and storage medium
CN113096674B (en) Audio processing method and device and electronic equipment
CN114390361A (en) Audio bullet screen processing method and device
CN104079948B (en) Generate the method and device of ring signal file
US20230195788A1 (en) Video processing method and apparatus
CN115604535A (en) Video data processing method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination