RHYTHM INTERACTION METHOD AND DEVICE
20240233698 ยท 2024-07-11
Inventors
Cpc classification
G10H2220/081
PHYSICS
H04N21/472
ELECTRICITY
International classification
Abstract
The present application provides a rhythm interaction method and device. The method includes: the first client sending a song identification to a server, the first client playing a song according to the audio data sent by the server, and the first client displaying the rhythm interaction result sent by the server within a preset time period before an end of the playing of the song.
Claims
1. A rhythm interaction method, applied to a first client, the method comprising: sending, by the first client, a song identification to a server to enable the server to obtain audio data and song rhythm point information according to the song identification, wherein the audio data is sent from the server to the first client and at least one second client, and wherein the song rhythm point information is sent from the server to at least one target client, and used by the at least one target client to obtain a score of the at least one target client, wherein the score of the at least one target client is sent from the at least one target client to the server and used by the server to obtain a rhythm interaction result, and wherein the rhythm interaction result is sent from the server to the first client and the at least one target client; wherein the at least one second client is a client that enters a live broadcast room of the first client, and the target client is a second client of the at least one second client that participates in rhythm interaction; playing, by the first client, a song according to the audio data sent by the server; and displaying, by the first client, the rhythm interaction result sent by the server, within a preset time period before an end of the playing of the song.
2. A rhythm interaction method, applied to a server, the method comprising: receiving, by the server, a song identification sent by a first client; obtaining, by the server, audio data and song rhythm point information according to the song identification; sending, by the server, the audio data to the first client and at least one second client, sending the song rhythm point information to at least one target client so that the target client obtains a score of the target client according to the song rhythm point information and sends the score of the target client to the server; wherein the at least one second client is a client that enters a live broadcast room of the first client, and the target client is a second client of the at least one second client that participates in rhythm interaction; obtaining, by the server, a rhythm interaction result according to the score of the at least one target client; and sending, by the server, the rhythm interaction result to the first client and the at least one target client.
3. The method according to claim 2, wherein the obtaining, by the server, the rhythm interaction result according to the score of the at least one target client comprises: sorting, by the server, the score of the at least one target client from most to least; and taking, by the server, avatars of users of top N scored target clients and an avatar of a user of the first client as the rhythm interaction result, wherein N is a positive integer greater than or equal to 1.
4. A rhythm interaction method, applied to a target client, wherein a user interface of the target client comprises an operating area, and the method comprises: receiving, by the target client, audio data and song rhythm point information sent by a server; playing, by the target client, a song according to the audio data; generating, by the target client, a plurality of visualized rhythm objects according to the song rhythm point information, controlling the plurality of visualized rhythm objects to move toward the operating area, and determining a score of the target client according to at least one touch operation of a user on the operating area; sending, by the target client, the score of the target client to the server so that the server determines a rhythm interaction result according to the score of the target client; receiving, by the target client, the rhythm interaction result sent by the server; and displaying, by the target client, the rhythm interaction result.
5. The method according to claim 4, wherein the determining the score of the target client according to the at least one touch operation of the user on the operating area comprises: obtaining, by the target client, a score of each touch operation; and performing, by the target client, addition on the score of each touch operation to obtain the score of the target client.
6. The method according to claim 5, wherein the operating area comprises a first edge and a second edge, the first edge is an edge passed by the plurality of visualized rhythm objects, and the second edge is an edge opposite to the first edge; wherein the obtaining the score of each touch operation comprises: if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, determining, by the target client, that the score of the touch operation is a first preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, determining, by the target client, that the score of the touch operation is a second preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, determining, by the target client, that the score of the touch operation is a third preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, determining, by the target client, that the score of the touch operation is the second preset score; or if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, determining, by the target client, that the score of the touch operation is the first preset score, wherein the first preset score is less than the second preset score, and the second preset score is less than the third preset score.
7. The method according to claim 4, before determining the score of the target client according to the at least one touch operation of the user on the operating area, further comprising: displaying, by the target client, a guiding gesture in the operating area, wherein the guiding gesture is used to instruct the user to perform a touch operation in the operating area.
8. The method according to claim 7, further comprising: displaying, by the target client, a progress bar in the operating area, wherein the progress bar is positively correlated with a current score of the target client.
9. The method according to claim 7, wherein the displaying, by the target client, the rhythm interaction result comprises: displaying, by the target client, the rhythm interaction result within a preset time period before an end of the playing of the song.
10. The method according to claim 8, further comprising: setting, by the target client, a state of the progress bar to an initial state within a preset time period before an end of the playing of the song.
11. A first client, comprising: a processor; and memory, configured to store an executable instruction executed by the processor; wherein the processor is configured to execute the executable instruction to implement the method according to claim 1.
12. A server, comprising: a processor; and memory, configured to store an executable instruction executed by the processor; wherein the processor is configured to execute the executable instruction to implement the method according to claim 2.
13. A target client, comprising: a processor; and memory, configured to store an executable instruction executed by the processor; wherein the processor is configured to execute the executable instruction to implement the method according to claim 4.
14-17. (canceled)
18. The server according to claim 12, wherein the processor is further configured to execute the executable instruction to: sort the score of the at least one target client from most to least, and take avatars of users of top N scored target clients and an avatar of a user of the first client as the rhythm interaction result.
19. The target client according to claim 13, wherein the processor is further configured to execute the executable instruction to: obtain a score of each touch operation, and perform addition on the score of each touch operation to obtain the score of the target client.
20. The target client according to claim 19, wherein the operating area comprises a first edge and a second edge, the first edge is an edge passed by the plurality of visualized rhythm objects, and the second edge is an edge opposite to the first edge; wherein the processor is further configured to execute the executable instruction to: if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, determine that the score of the touch operation is a first preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, determine that the score of the touch operation is a second preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, determine that the score of the touch operation is a third preset score; if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, determine that the score of the touch operation is the second preset score; or if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, determine that the score of the touch operation is the first preset score, wherein the first preset score is less than the second preset score, and the second preset score is less than the third preset score.
21. The target client according to claim 13, wherein the processor is further configured to execute the executable instruction to: display a guiding gesture in the operating area, wherein the guiding gesture is used to instruct the user to perform a touch operation in the operating area.
22. The target client according to claim 21, wherein the processor is further configured to execute the executable instruction to: display a progress bar in the operating area, wherein the progress bar is positively correlated with a current score of the target client.
23. The target client according to claim 21, wherein the processor is further configured to execute the executable instruction to: display the rhythm interaction result within a preset time period before an end of the playing of the song.
24. The target client according to claim 22, wherein the processor is further configured to execute the executable instruction to: set a state of the progress bar to an initial state within a preset time period before an end of the playing of the song.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
DESCRIPTION OF EMBODIMENTS
[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the drawings of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0041] In this application, it should be explained that the terms first and second are only used for descriptive purposes, but should not be understood as indicating or implying relative importance. In addition, at least one refers to one or more, and a plurality of refers to two or more. And/or describes an association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and/or B can mean: A exists alone, both A and B exist, and B exists alone, where A or B can be singular or plural. The character / generally indicates that the contextually associated objects are in an or relationship. At least one of the following or similar expressions thereto refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c may represent: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a combination of a, b and c, where a, b or c can be singular or plural.
[0042] In related technologies, after a user enters a live broadcast room of a certain singer, there are interaction modes between the user and the singer during the singer's singing process, such as commenting, gift-giving and others. However, these interaction modes are relatively undiversified and the user experience is not strong.
[0043]
[0044] From the observation of real singing scenarios such as vocal concerts, concerts, or music festivals, it is found that the common interaction between the viewers and the singer is to beat time following the rhythm. Inspired by this phenomenon, the present application provides a rhythm interaction method for a live broadcast room, where a viewer can beat time in conjunction with the rhythm of the song that the singer is singing, the better the beating, the higher the score, and if the score of the viewer is high enough, the viewer's avatar can be displayed on the user interface at the same time with the singer's avatar when the playing of the song is almost finished, thereby enhancing the user interaction experience.
[0045] The system framework involved in realizing the interaction method of the present application is introduced below.
[0046]
[0047] During live broadcasting by the singer through the first client, any client can enter the live broadcast room of the first client, and the server maintains the information of the clients entering the live broadcast room of the first client. A client that enters the live broadcast room of the first client is called a second client in the present application.
[0048] It should be noted that: in the rhythm interaction method provided according to the present application, after the second client enters the live broadcast room of the first client, the viewer can choose to participate in the rhythm interaction or choose not to participate in the rhythm interaction. When the viewer chooses to participate in the rhythm interaction, the second client can send a request for participating in the rhythm interaction to the server. After receiving the request, the server can determine that the second client is a target client, and the server will subsequently summarize the rhythm interaction scores of all target clients, and determine a winner based on the summarized results, and notify the winner information to all target clients.
[0049] It should be noted that after the second client enters the live broadcast room of the first client, the viewer can choose to participate in the rhythm interaction at any time. Therefore, during live broadcasting by the singer through the first client, the number of target clients may change.
[0050] The interaction process among the first client, the server, and the target client will be described in detail below in conjunction with specific embodiments.
Embodiment 1
[0051]
[0052] S301, a first client sends a song identification to a server.
[0053] In a possible implementation, a user interface of the first client may allow a singer to select a song, and after the singer selects a certain song, the first client may send the song identification of the song to the server.
[0054] S302, the server obtains audio data and song rhythm point information according to the song identification.
[0055] In a possible implementation, the server stores therein audio data and song rhythm point information of many songs. After receiving the song identification, the server searches for audio data corresponding to the song identification from the stored audio data, and searches for song rhythm point information corresponding to the song identification from the stored song rhythm point information.
[0056] In a possible implementation, the song rhythm point information is a correspondence between time points and rhythm points. Illustratively,
[0057] S303, the server sends the audio data to the first client and at least one target client.
[0058] After receiving the audio data, the first client and the at least one target client both play the song according to the audio data.
[0059] It should be noted that: the server can send the audio data to the first client and at least one second client, so that all clients entering the live broadcast room of the first client can play the song regardless of whether they participate in the rhythm interaction.
[0060] S304, the server sends the song rhythm point information to at least one target client.
[0061] Although there is at least one second client entering the live broadcast room of the first client, not all viewers will choose to participate in the rhythm interaction. Therefore, the server may only send the song rhythm point information to at least one target client.
[0062] The server may send both the audio data and the song rhythm point information to the target client at the same time.
[0063] It should be noted that: as described above, after the second client enters the live broadcast room of the first client, the viewer can choose to participate in the rhythm interaction at any time, and if the server has already sent the song rhythm point information when the viewer chooses to participate in the rhythm interaction, then the server may send the song rhythm point information again to this client.
[0064] S305, the target client generates a plurality of visualized rhythm objects according to the song rhythm point information.
[0065] In a possible implementation, the visualized rhythm object may be a point, line, or surface of any shape, such as a straight line, a curved line, a pyramid, or a cube. A visualized rhythm object is generated for each rhythm point of the song rhythm point information. The plurality of visualized rhythm objects may have the same color or have different colors. Since each rhythm point corresponds to a time point, each visualized rhythm object also corresponds to a time point.
[0066] Illustratively, corresponding to the song rhythm point information shown in
[0067] S306, the target client controls the plurality of visualized rhythm objects to move toward an operating area.
[0068] In a possible implementation, as shown in
[0069] In a possible implementation, the plurality of visualized rhythm objects can pass the first edge 101 to move into the operating area. The respective visualized rhythm objects may have the same movement path or have different movement paths, which is not limited in the present application.
[0070] In a possible implementation, since each visualized rhythm object corresponds to a time point, the visualized rhythm object can be controlled to just move into the operating area at a corresponding time point.
[0071] Take the plurality of visualized rhythm objects illustrated by
[0072] The above-mentioned just moving into the operating area refers to moving to a position that is within the operating area and in contact with the first edge.
[0073] S307, the target client determines a score of the target client according to at least one touch operation of a user on the operating area.
[0074] Specifically, the user's touch operation on the operating area may be a click operation. During the process where the plurality of visualized rhythm objects are moved from the singer's avatar toward the operating area one after another, the user's beating time can be realized by clicking on the operating area. The more accurate the timing of the click, the higher the score of this click.
[0075] In a possible implementation, three scoring levels are set in the present application, namely a perfect level, a good level and a miss level respectively. A respective one of the three levels corresponds to a preset score, the preset score corresponding to the perfect level is the highest, the preset score corresponding to the good level is next, and the preset score corresponding to the miss level is the lowest. When the user's click operation belongs to the perfect level, the word perfect may be displayed on the user interface; correspondingly, when the user's click operation belongs to the good level, the word good may be displayed on the user interface; when the user's click operation belongs to the miss level, the word miss may be displayed on the user interface; so that the user can perceive the accuracy of the click operation.
[0076] In a possible implementation, if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, it is determined that the level of the touch operation is miss, and the score of the touch operation is a first preset score.
[0077] If the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, the level of the touch operation is determined to be good, and the score of the touch operation is a second preset score.
[0078] If the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, then the level of the touch operation is determined to be perfect, and the score of the touch operation is a third preset score.
[0079] If the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, the level of the touch operation is determined to be good, and the score of the touch operation is the second preset score.
[0080] If the user performs a touch operation on the operating area when the visualized rhythm object moves to a position intersecting with the second edge, the level of the touch operation is determined to be miss, and the score of the touch operation is the first preset score.
[0081] After obtaining the score of each touch operation of the user, addition can be performed on the score of each touch operation to obtain the score of the target client.
[0082] S308, the target client sends the score of the target client to the server.
[0083] S309, the server obtains a rhythm interaction result according to the score of the at least one target client.
[0084] In a possible implementation, the server sorts the scores of the at least one target client from most to least and takes avatars of users of top N scored target clients and an avatar of a user of the first client as the rhythm interaction result.
[0085] For example: [0086] scores of at least one target client are sorted from most to least, assuming that the users of the top two ranked target clients are viewer A and viewer B, then the avatar of viewer A, the avatar of viewer B and the avatar of the singer are taken as the rhythm interaction result.
[0087] S3010, the server sends the rhythm interaction result to the first client and the at least one target client.
[0088] S3011, the first client displays the rhythm interaction result.
[0089] S3012, the target client displays the rhythm interaction result.
[0090] In a possible implementation, the target client may display the rhythm interaction result within a preset time period before the end of the playing of the song. For example, the rhythm interaction result is displayed within 5 seconds before the end of the playing of the song.
[0091] For example: [0092] assuming that the users of the top two ranked target clients are viewer A and viewer B, the rhythm interaction result will be the avatar of viewer A, the avatar of viewer B and the avatar of the singer; referring to
[0093] In order to display the level of the current score of the target client in real-time, as shown in
[0094] After the second client enters the live broadcast room of the first client, in order to remind the user where the operating area is, as shown in
[0095] In a possible implementation, if the user performs a touch operation on the operating area according to the guiding gesture, the second client may determine that the user chooses to participate in rhythm interaction, and then the second client may send a request for participating in rhythm interaction to the server so that the server receives the request and sets the second client as the target client.
[0096] According to the rhythm interaction method provided in this embodiment, a viewer may beat time in conjunction with the rhythm of the song that the singer is singing, the better the beating, the higher the score, and when the playing of the song is almost finished, the avatar of the viewer and the avatar of the singer may be displayed on the user interface at the same time if the score of the viewer is high enough, thereby improving the user interaction experience.
[0097]
[0101] The first client provided according to the present application can be configured to perform the steps performed by the first client in any of the method embodiments mentioned above, and is implemented using similar principles and produces the similar technical effect, which will not be repeated here.
[0102]
[0107] The obtaining module 1202 is specifically configured to: [0108] sort the score of the at least one target client from most to least; [0109] take avatars of users of top N scored target clients and an avatar of a user of the first client as the rhythm interaction result.
[0110] The server provided according to the present application can be configured to perform the steps performed by the server in any of the method embodiments mentioned above, and is implemented using the similar principles and produces the similar technical effect, which will not be repeated here.
[0111]
[0118] In an implementation, the processing module 1303 is specifically configured to: [0119] obtain a score of each touch operation; [0120] perform addition on the score of each touch operation to obtain the score of the target client.
[0121] In an implementation, the processing module 1303 is specifically configured to: [0122] if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, determine that the score of the touch operation is a first preset score; [0123] if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, determine that the score of the touch operation is a second preset score; [0124] if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, determine that the score of the touch operation is a third preset score; [0125] if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, determine that the score of the touch operation is the second preset score; or [0126] if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, determine that the score of the touch operation is the first preset score, where the first preset score is less than the second preset score, and the second preset score is less than the third preset score.
[0127] In an implementation, the display module 1305 is further configured to: [0128] display a guiding gesture in the operating area, where the guiding gesture is used to instruct the user to perform a touch operation in the operating area.
[0129] In an implementation, the display module 1305 is further configured to: [0130] display a progress bar in the operating area, where the progress bar is positively correlated with a current score of the target client.
[0131] In an implementation, the display module 1305 is specifically configured to: [0132] display the rhythm interaction result within a preset time period before an end of the playing of the song.
[0133] In an implementation, the processing module 1303 is further configured to: [0134] set a state of the progress bar to an initial state within a preset time period before an end of the playing of the song.
[0135] The target client provided according to the present application can be configured to perform the steps performed by the target client in any of the method embodiments mentioned above, and is implemented using the similar principle and produces the similar technical effect, which will not be repeated here.
[0136]
[0139] The present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps performed by the first client, the target client or the server in any of the embodiments mentioned above.
[0140] The present application provides a computer program product, which includes a computer program; where the computer program is stored in a readable storage medium from which at least one processor can read the computer program, and the at least one processor executes the computer program to enable a chip to implement the steps performed by the first client, the target client or the server in any of the embodiments mentioned above.
[0141] The present application further provides a computer program, and when the computer program is executed by a processor, the steps performed by the first client, the target client, or the server in any of the embodiments mentioned above are implemented.
[0142] Through the rhythm interaction method and device provided according to the present application, a viewer may beat time in conjunction with the rhythm of the song that the singer is singing, the better the beating, the higher the score, and when the playing of the song is almost finished, the avatar of the viewer and the avatar of the singer may be displayed on the user interface at the same time if the score of the viewer is high enough, thereby improving the user interaction experience.
[0143] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division modes in a practical implementation. For example, a plurality of modules or components may be combined or integrated into another system, or some features may be ignored, or not implemented. Another point is that, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
[0144] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or distributed to a plurality of network units. Part or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiments.
[0145] In addition, respective functional modules in respective embodiments of the present application may be integrated into a processing module, or they may exist separately physically, or two or more modules may be integrated into a module. The above-mentioned integrated modules may be implemented in the form of hardware, or in the form of hardware plus a software function module.
[0146] The above-mentioned integrated module implemented in the form of software function modules may be stored in a computer-readable storage medium. The above-mentioned software functional modules are stored in a storage medium, including several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present application. The storage medium mentioned above includes various media in which program codes may be stored, such as a U disk, a mobile hard disk, a read-only memory (ROM for short), random access memory (RAM for short), a magnetic disk or an optical disc.
[0147] It should be understood that the processor described in the present application may be a central processing unit (CPU for short), or may also be another general-purpose processor, a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), etc. A general-purpose processor may be a microprocessor, any conventional processor, or the like. The steps of the methods disclosed in combination with the present application may be directly reflected as the completion of execution by a hardware processor or the completion of execution by a combination of hardware and software modules in the processor.
[0148] Finally, it should be noted that the embodiments mentioned above are only intended to illustrate the technical solutions of the present application, but are not limited thereto. Although the present application is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features thereof, but these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of technical solutions of the embodiments of the present application.