Online karaoke room implementation methods, electronic devices, and computer-readable storage media

By establishing an audio link between the client and the virtual room in the online karaoke system, users can perform on-microphone and off-microphone operations without interrupting song playback. This solves the problem of complex operation in existing technologies, improves the user experience, and supports singing along and duets on the same song.

CN112148248BActive Publication Date: 2025-11-14TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011044218.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2025-11-14
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

In existing online karaoke systems, users need to reselect a song after leaving the microphone to sing the same song again, which is a complicated process and cannot achieve the function of singing the same song repeatedly.

Method used

In a virtual room, by establishing an audio link between the client and the virtual room, users can perform on-microphone and off-microphone operations while the song is playing, enabling audio communication between multiple clients and supporting the function of singing along to the same song.

Benefits of technology

It simplifies the user operation process, improves the user experience, allows users to go on and off the microphone without interrupting song playback, and enables multiple accounts to sing along and duet on the target song.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112148248B_ABST
    Figure CN112148248B_ABST
Patent Text Reader

Abstract

This application discloses an online karaoke room implementation method, an electronic device, and a computer-readable storage medium. The method includes: a first client and a second client playing the accompaniment audio of a target song; if the first account is in an on-microphone display state, the audio link corresponding to the first client is activated, and the audio acquisition device of the first client acquires the first dry audio; if the second account is in an off-microphone display state, the audio link corresponding to the second client is deactivated, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio; if the off-microphone icon of the first client is triggered, the first account switches from the on-microphone display state to the off-microphone display state, the audio link corresponding to the first client is deactivated, and the first client and the second client continue playing the accompaniment audio. The online karaoke room implementation method provided by this application enables multiple accounts to sing along to a target song.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to methods for implementing online karaoke rooms, electronic devices, and computer-readable storage media. Background Technology

[0002] In the design of online karaoke rooms using related technologies, any user in the virtual room can request a song and confirm their microphone access by clicking the "Up" button. During song playback, the user can exit the microphone by clicking the "Down" button. In this scenario, if user A is in an "Up" state in the virtual room and clicks the "Down" button, the song automatically changes. If another user B in the virtual room wants to request the same song, they need to repeat the request process, making the operation relatively complex.

[0003] It is evident that, in the process of realizing this invention, the inventors discovered at least the following problem in the related technology: the function of singing along to the same song cannot be realized. Summary of the Invention

[0004] The purpose of this application is to provide an online karaoke room implementation method, an electronic device, and a computer-readable storage medium to enable multiple clients to sing along to a target song.

[0005] To achieve the above objectives, the first aspect of this application provides a method for implementing an online karaoke room, applied to a virtual room, wherein the virtual room establishes an audio link with a first client corresponding to a first account and a second client corresponding to a second account, the method comprising:

[0006] The first client and the second client play the accompaniment audio of the target song;

[0007] If the first account is in an on-microphone display state, the audio link corresponding to the first client is enabled, and the audio acquisition device of the first client acquires the first dry audio. If the second account is in an off-microphone display state, the audio link corresponding to the second client is disabled, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio. When the account is in an on-microphone display state, the display interface of the client corresponding to the account displays an off-microphone icon, and when the account is in an off-microphone display state, the display interface of the client corresponding to the account displays an on-microphone icon.

[0008] If the microphone off icon of the first client is triggered, the first account switches from the microphone on display state to the microphone off display state, the audio link corresponding to the first client is closed, and the first client and the second client continue to play the accompaniment audio.

[0009] To achieve the above objectives, a second aspect of this application provides a method for implementing an online karaoke room, applied to a virtual room, wherein the virtual room establishes an audio link with a first client corresponding to a first account and a second client corresponding to a second account, the method comprising:

[0010] The first client and the second client play the accompaniment audio of the target song;

[0011] If the first account is in the "on microphone" state, the audio link corresponding to the first client is enabled, and the audio acquisition device of the first client acquires the first dry audio. If the second account is in the "off microphone" state, the audio link corresponding to the second client is disabled, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio. Specifically, the account in the "on microphone" state is in the "on microphone" state, and the display interface of the client corresponding to the account displays an "off microphone" icon. The account in the "off microphone" state is in the "off microphone" state, and the display interface of the client corresponding to the account displays a chorus icon.

[0012] If the first account displays the microphone on screen and the chorus icon of the second client is triggered, the second account switches from the first microphone off screen to the microphone on screen, the audio link corresponding to the second client is activated, and the audio acquisition device of the second client acquires the second dry audio.

[0013] To achieve the above objectives, a third aspect of this application provides an electronic device, comprising:

[0014] Memory, used to store computer programs;

[0015] The processor is used to execute the computer program to implement the steps performed by the first client or the second client in the online karaoke room implementation method described above.

[0016] To achieve the above objectives, a fourth aspect of this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps executed by the first client or the second client in the above-described online karaoke room implementation method.

[0017] As can be seen from the above scheme, the online karaoke room implementation method provided in this application is applied to a virtual room. The virtual room establishes an audio link with a first client corresponding to a first account and a second client corresponding to a second account. The method includes: the first client and the second client playing the accompaniment audio of a target song; if the first account is in an on-microphone display state, the audio link corresponding to the first client is turned on, and the audio acquisition device of the first client acquires the first dry audio; if the second account is in an off-microphone display state, the audio link corresponding to the second client is turned off, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio; wherein, when the account is in an on-microphone display state, the display interface of the client corresponding to the account displays an off-microphone icon, and when the account is in an off-microphone display state, the display interface of the client corresponding to the account displays an on-microphone icon; if the off-microphone icon of the first client is triggered, the first account switches from the on-microphone display state to the off-microphone display state, the audio link corresponding to the first client is turned off, and the first client and the second client continue to play the accompaniment audio.

[0018] In this application, when multiple accounts are matched into the same virtual room, an audio link is established between the client corresponding to each account and the virtual room. When any account in the virtual room is in the "on-mic" display state, the audio link between its corresponding client and the virtual room is activated, and the audio acquisition device acquires the dry audio. The audio links between the clients corresponding to other accounts in the "off-mic" display state and the virtual room are deactivated. The accounts in the "off-mic" display state play a mixture of dry audio and accompaniment audio, thus realizing the account's "on-mic" function. An account in the "on-mic" display state can trigger the "off-mic" button to go off-mic. After going off-mic, the audio link between the account and the virtual room is deactivated, and the target song continues to play. At this time, audio links still exist between other clients and the virtual room. Other accounts can activate their corresponding audio links by triggering the "on-mic" button, thus realizing the function of singing along to the same song. Therefore, the online karaoke room implementation method provided in this application establishes audio links between the virtual room and each client. The activation and deactivation of the audio links corresponding to each client do not affect the playback process of the target song, enabling multiple accounts to sing along to the target song. This application also discloses an electronic device and a computer-readable storage medium, which can achieve the above technical effects.

[0019] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. The drawings are used to provide a further understanding of this disclosure and constitute a part of the specification. They are used together with the following detailed description to explain this disclosure, but do not constitute a limitation of this disclosure. In the drawings:

[0021] Figure 1 An architecture diagram of an online karaoke room implementation system provided in this application embodiment;

[0022] Figure 2 A flowchart illustrating the first online karaoke room implementation method provided in this application embodiment;

[0023] Figure 3 A schematic diagram of a first display interface provided in an embodiment of this application;

[0024] Figure 4 A schematic diagram of a second display interface provided in an embodiment of this application;

[0025] Figure 5 A flowchart illustrating the second online karaoke room implementation method provided in this application embodiment;

[0026] Figure 6 A schematic diagram of a third display interface provided in an embodiment of this application;

[0027] Figure 7 A schematic diagram of a fourth display interface provided in an embodiment of this application;

[0028] Figure 8 A schematic diagram of the fifth display interface provided in the embodiments of this application;

[0029] Figure 9 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0031] To facilitate understanding of the online karaoke room implementation method provided in this application, the system used is described below. See [link to relevant documentation]. Figure 1 It shows an architecture diagram of an online karaoke room implementation system provided in an embodiment of this application, such as... Figure 1 As shown, it includes a server 10 and multiple clients 20, each of which is connected to the server 10 via a network.

[0032] Server 10 is used to create virtual rooms and match multiple accounts to the same virtual room. Each virtual room is isolated from the others and can simulate a room in a real environment, possessing the isolation functions of a real room to realize the online karaoke function described in this application. When multiple accounts are matched to the same virtual room, server 10 establishes an audio link between the client 20 corresponding to each account and the virtual room; that is, accounts matched to the same virtual room can communicate via that virtual room.

[0033] Client 20 may include fixed terminals such as PCs (Personal Computers) and mobile terminals such as mobile phones. Each client 20 is equipped with an audio acquisition device such as a microphone and an audio output device such as a speaker. The audio acquisition device is used to acquire the dry audio and call audio corresponding to the target song, and the audio output device is used to output the mixed audio of the dry audio and the accompaniment audio, as well as the call audio. The audio link between the client 20 of the account in the microphone display state and the virtual room is enabled, and the client 20 uses this audio link to transmit the acquired dry audio to the virtual room. The audio link between the client 20 of the account in the microphone off display state and the virtual room is disabled. The enabling and disabling of the audio link between each client 20 and the virtual room does not affect the song playback process.

[0034] This application discloses an online karaoke room implementation method, enabling multiple clients to sing along to a target song.

[0035] See Figure 2 The flowchart of the first online karaoke room implementation method provided in this application embodiment is as follows: Figure 2 As shown, it includes:

[0036] S101: The first and second clients play the accompaniment audio of the target song;

[0037] In this embodiment, the first client and the second client are matched to the same virtual room. The first client corresponds to a first account. An audio link is established between the virtual room, the first client corresponding to the first account, and the second client corresponding to the second account. This audio link enables either the first account or the second account to transmit the collected dry audio to the virtual room. Furthermore, the virtual room can transmit accompaniment audio and a mixture of the user's dry audio and accompaniment audio to both the first and second clients. This virtual room facilitates audio communication between the first and second accounts, simulating audio communication in a real-world environment.

[0038] Understandably, during the performance of the target song, by default, all clients in the virtual room play the instrumental audio of the target song, which does not include the original vocals. The account that goes live can trigger the original vocals activation indicator through the corresponding client's display interface. At this time, all clients in the virtual room play the original vocals of the target song, which includes the original vocals.

[0039] S102: If the first account is in the microphone display state, the audio link corresponding to the first client is turned on, and the audio acquisition device of the first client acquires the first dry audio; if the second account is in the microphone off display state, the audio link corresponding to the second client is turned off, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio; wherein, when the account is in the microphone display state, the display interface of the client corresponding to the account displays the microphone off icon, and when the account is in the microphone off display state, the display interface of the client corresponding to the account displays the microphone on icon;

[0040] The purpose of this step is to enable the first account to go on microphone. In practice, the account in the microphone state will display a microphone status, and its corresponding client interface will display an off-microphone icon, for example, as shown below. Figure 3 As shown, the first account displays a microphone icon below its avatar, indicating that the account is in microphone mode. The bottom right corner of the interface displays a microphone icon, which includes a microphone outline, a microphone icon, and the message "Not singing anymore." That is, as one possible implementation, the microphone icon includes a microphone icon. Accounts in microphone mode display a microphone-off status, and their corresponding client displays the microphone icon, for example, as shown... Figure 4 As shown, the first account is in a microphone-off state, and a microphone-on icon is displayed in the lower right corner of the interface, which includes two microphone outlines and the prompt "I want to sing". That is, as one possible implementation, the microphone-off icon includes microphone outlines.

[0041] This embodiment uses the first account going on stage as an example. After the first account goes on stage, it displays a "going on stage" status, for example... Figure 3As shown, the audio acquisition device of the first client acquires the first dry audio signal, and the audio link between the first client and the virtual room is activated, transmitting the first dry audio signal to the virtual room through this audio link. At this time, the second account in the virtual room displays a "no microphone" status, for example... Figure 4 As shown, the audio link for transmitting dry audio from the second client to the virtual room is closed. The second client receives the first dry audio from the virtual room and plays a composite audio file containing the first dry audio and the accompaniment audio.

[0042] The triggering conditions for the first account to appear in the microphone display state are not limited here. It can be manually triggered by the first account; that is, when the first account is in the off-mic state, the microphone icon on the first client is triggered, and the first account appears in the microphone display state. Alternatively, it can be automatically triggered. That is, if the first account is the account that requested the target song, it automatically appears in the microphone display state when the accompaniment audio of the target song is playing. This embodiment also includes: the first client receiving the song request operation from the first account, and the second client receiving the song request operation from the second account; when the first client and the second client play the accompaniment audio of the target song, the account that requested the target song appears in the microphone display state. In specific implementation, any account in the virtual room can request songs through the corresponding client. The songs requested by each account can be generated into a song list according to the order of request time, and the virtual room implements automatic playback of the song list. When the accompaniment audio of the target song is playing, the client where the requesting user is located is automatically designated as the target client, that is, the microphone display state of the client where the requesting user is located is activated, while other clients are in the off-mic state by default. In this implementation, users no longer need to perform two steps: selecting a song and going on stage. Instead, they only need to select a song to sing the target song, making the process simpler and providing a better user experience.

[0043] It is understood that this embodiment does not limit the audio played by the first client. Specifically, if the first account is in earphone monitoring mode, the first client plays a composite audio of the first dry audio and the accompaniment audio; if the first account is in speakerphone mode, the first client plays the accompaniment audio. Furthermore, if the original vocals enable icon of the first client is triggered, the second client receives and plays a composite audio of the first dry audio and the original vocals of the target song. If the first account is in earphone monitoring mode, the first client plays a composite audio of the first dry audio and the original vocals; if the first account is in speakerphone mode, the first client plays the original vocals.

[0044] S103: If the microphone off icon of the first client is triggered, the first account will switch from microphone on display to microphone off display, the audio link corresponding to the first client will be closed, and the first client and the second client will continue to play the accompaniment audio.

[0045] This step assumes that the first account is in the microphone display state, for example... Figure 3 As shown, the second account is in a microphone-off state, for example... Figure 4 As shown, the purpose of this step is to enable the first account to step down from the microphone. In specific implementation, after the first account triggers the step down icon on the first client, for example, when the user... Figure 3 When the "Stop Singing" icon is triggered, the audio link transmitting dry audio from the first client to the virtual room is closed, and the first account switches from an on-microphone display state to an off-microphone display state. This includes changing the first client's off-microphone icon back to an on-microphone icon. If the on-microphone icon includes a microphone image and the off-microphone icon includes a microphone outline image, then the first account switching from an on-microphone display state to an off-microphone display state involves moving the microphone image from the first account's status information display position to the position of the microphone outline image in the first client's off-microphone icon, thereby changing the first client's off-microphone icon back to an on-microphone icon. In specific implementations, the process of switching from an on-microphone display state to an off-microphone display state is as follows: moving the microphone image from the status information display position to the position of the microphone outline image in the off-microphone icon, thereby changing the off-microphone icon back to an on-microphone icon. Figure 4 Switch to Figure 3 The microphone icon in the bottom right corner is moved to a position below the first account's avatar, indicating that the account is in microphone mode, and the "I want to sing" message in the icon is changed to "I'm not singing anymore". The above process vividly represents the account's microphone mode and microphone mode, and the switching scheme between the microphone icon and microphone mode is implemented with the microphone icon moving animation. The switching process is smooth and natural, and the user experience is good.

[0046] After the first account leaves the microphone, both the first and second clients continue playing the backing track audio. At this time, the second account can trigger the microphone icon on the second client to continue singing. That is, if the microphone icon on the first client is triggered and then the microphone icon on the second client is triggered, the second account switches from a microphone-out display state to a microphone-on display state. If the microphone-on icon includes a microphone icon and the microphone-out icon includes a microphone outline icon, then the second account switches from a microphone-out display state to a microphone-on display state by moving the microphone icon in the microphone-on icon of the second client to the display position of the second account's status information, thereby switching the microphone-on icon of the second client to a microphone-out icon. In specific implementation, the process of switching from a microphone-out display state to a microphone-on display state is as follows: moving the microphone icon in the microphone-on icon to the display position of the status information, thereby switching the microphone-on icon to a microphone-out icon. Figure 3 Switch back to Figure 4The microphone icon indicating the account's "on" or "off" status is moved from below the first account's avatar to the microphone outline icon in the lower right corner, and the "I'm not singing anymore" message in the icon is changed to "I want to sing." This process vividly illustrates the account's "on" and "off" statuses, using a microphone icon animation to switch the icon between the "on" and "off" states. The transition is smooth and natural, providing a good user experience. Simultaneously, the audio link for the second client is activated, and the second client's audio acquisition device captures the second dry audio. The first client receives and plays the synthesized audio from the second dry audio and the accompaniment audio. It's understandable that the situation after the second account displays the "on" status is similar to that of the first account, and will not be elaborated further here.

[0047] In this embodiment, when multiple accounts are matched to the same virtual room, an audio link is established between the client corresponding to each account and the virtual room. When any account in the virtual room is in the "on-mic" display state, the audio link between its corresponding client and the virtual room is activated, and the audio acquisition device acquires the dry audio. The audio links between the clients corresponding to other accounts in the "off-mic" display state and the virtual room are deactivated. The accounts in the "off-mic" display state play a mixture of dry audio and accompaniment audio, thus realizing the account's "on-mic" function. An account in the "on-mic" display state can trigger the "off-mic" button to deactivate the microphone. After deactivating the microphone, the audio link between the account and the virtual room is deactivated, and the target song continues to play. At this time, audio links still exist between other clients and the virtual room. Other accounts can activate their corresponding audio links by triggering the "on-mic" button to realize the function of singing along to the same song. Therefore, the online karaoke room implementation method provided in this embodiment establishes audio links between the virtual room and each client. The activation and deactivation of the audio links corresponding to each client do not affect the playback process of the target song, realizing the function of multiple accounts singing along to the target song.

[0048] This application discloses an online karaoke room implementation method, enabling multiple clients to sing along to a target song.

[0049] See Figure 5 The flowchart of the second online karaoke room implementation method provided in this application embodiment is as follows: Figure 5 As shown, it includes:

[0050] S201: The first and second clients play the accompaniment audio of the target song;

[0051] In this embodiment, the first client and the second client are matched to the same virtual room. The first client corresponds to the first account. The virtual room establishes an audio link with the first client corresponding to the first account and the second client corresponding to the second account. The audio link enables the first account or the second account to transmit the collected dry audio to the virtual room. Thus, the audio communication between the first account and the second account is realized through the virtual room, simulating audio communication in a real environment.

[0052] Understandably, during the performance of the target song, by default, all clients in the virtual room play the instrumental audio of the target song, which does not include the original vocals. The account that goes live can trigger the original vocals activation indicator through the corresponding client's display interface. At this time, all clients in the virtual room play the original vocals of the target song, which includes the original vocals.

[0053] S202: If the first account is in the microphone display state, the audio link corresponding to the first client is turned on, and the audio acquisition device of the first client acquires the first dry audio; if the second account is in the microphone off display state, the audio link corresponding to the second client is turned off, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio; wherein, the account in the microphone display state is in the microphone state, and the display interface of the client corresponding to the account displays the microphone off icon; the account in the microphone off display state is in the microphone off state, and the display interface of the client corresponding to the account displays the chorus icon;

[0054] The purpose of this step is to enable the first account to go on microphone. In specific implementation, the account displaying the "on microphone" status is in the "on microphone" state, and the corresponding client's display interface shows an "off microphone" icon. The account displaying the "second off microphone" status is in the "off microphone" state, and the corresponding client's display interface shows an "on microphone" icon. The account displaying the "first off microphone" status is in the "off microphone" state, and the corresponding client's display interface shows a "chorus" icon. As a feasible implementation method, the chorus icon, the "off microphone" icon, and the "on microphone" icon all include a first number of microphone patterns and a second number of microphone outline patterns. The second number represents the current number of singers for the target song. The sum of the first and second numbers is the maximum number of people allowed to sing simultaneously, which can be set to a fixed number or the total number of current users in the virtual room, i.e., allowing all users to sing together simultaneously. For example, the chorus icon... Figure 6 The icon in the lower right corner includes a microphone outline, a microphone icon, and the prompt "Join the Chorus," allowing two users to sing simultaneously. The "Up to Microphone" icon is shown below. Figure 4 The icon in the bottom right corner, the microphone icon, for example... Figure 3 The image in the bottom right corner.

[0055] This embodiment uses the example of a first account going live on the microphone. After going live, the first account displays a "live" status. The audio acquisition device of the first client acquires the first dry audio signal. The audio link between the first client and the virtual room is activated, and the first dry audio signal is transmitted to the virtual room through this audio link. At this time, the second account in the virtual room displays a "silent" status. That is, if the second account is currently in a "silent" status, it switches from the "silent" status to the "silent" status, which includes changing the live icon to a chorus icon. If both the chorus icon and the live icon include a first number of microphone patterns and a second number of microphone outline patterns, the second account switches from the "silent" status to the "silent" status, which includes moving one microphone pattern from the live icon of the second client to the display position of the status information of the first account, thereby changing the live icon of the second client to the chorus icon. In specific implementation, the process of switching from the "silent" status to the "silent" status is as follows: moving one microphone pattern from the live icon to the display position of the status information, thereby changing the live icon to the chorus icon. Figure 4 Switch to Figure 6 The microphone icon in the lower right corner is moved to below the first account's avatar, indicating that the first account is in microphone mode. The "I want to sing" prompt in the icon is changed to "Join the chorus." The third account can then trigger the chorus icon to join the chorus. This process visually represents the number of users currently in microphone mode and the number of remaining microphones. The microphone icon's movement animation effectively switches the microphone icon to the chorus icon, resulting in a smooth and natural transition with a good user experience. Simultaneously, the audio link for transmitting dry audio from the second client to the virtual room is closed. The second client receives the first dry audio from the virtual room and plays a composite audio file containing the first dry audio and the accompaniment audio.

[0056] Similar to the previous embodiment, this embodiment does not limit the triggering conditions for the first account to display the microphone status. It can be triggered manually or automatically by the first account, which will not be elaborated further here. Furthermore, when only the first account displays the microphone status, the implementation of the account's in-ear monitoring mode and speaker mode in this embodiment is similar to the previous embodiment, and will not be elaborated further here. Even further, when only the first account displays the microphone status, the implementation of enabling the original vocals in this embodiment is similar to the previous embodiment, and will not be elaborated further here.

[0057] S203: If the first account is in the microphone display state and the chorus icon of the second client is triggered, the second account switches from the first off-microphone display state to the microphone display state, the audio link corresponding to the second client is turned on, and the audio acquisition device of the second client acquires the second dry audio.

[0058] This step assumes that the first account is in an on-microphone display state and the second account is in an off-microphone display state. The purpose of this step is to enable a duet between the first and second accounts. In specific implementation, the second account triggers the duet icon on the second client, and the second account switches from the off-microphone display state to the on-microphone display state, including changing the duet icon to the off-microphone icon. If the duet icon, the off-microphone icon, and the on-microphone icon all include a first number of microphone patterns and a second number of microphone outline patterns, the second account switches from the off-microphone display state to the on-microphone display state by moving one of the microphone patterns in the second client's duet icon to the display position of the second account's status information, thereby changing the second client's duet icon to the off-microphone icon. In specific implementation, the process of switching from the off-microphone display state to the on-microphone display state is: moving one of the microphone patterns in the duet icon to the display position of the status information, thereby changing the duet icon to the off-microphone icon. Figure 6 Switch to Figure 7 The microphone icon in the lower right corner is moved to a position below the third account's avatar, indicating that the account is in microphone mode, and the "Join the Chorus" message in the icon is changed to "No More Singing." This process visually represents the number of users currently in microphone mode and the number of remaining microphones. The microphone icon's movement animation effectively switches the chorus icon to the microphone-off icon, resulting in a smooth and natural transition with a good user experience. Simultaneously, the second client's audio acquisition device captures a second dry audio signal, and the audio link between the second client and the virtual room is activated, transmitting the second dry audio signal to the virtual room via this link.

[0059] It should be noted that the current mode of the target song includes a duet mode and a sing-along mode. In duet mode, multiple accounts sing the entire target song simultaneously, while in sing-along mode, multiple accounts sing different parts of the target song. After the second account triggers the duet icon, each account can select the current mode in its corresponding client. The server can also automatically determine the current mode based on the type of the target song; that is, if multiple people sing in the original audio, it is a sing-along mode. If the current mode of the target song is a sing-along mode, the lyrics for the first account will be displayed in a first preset mode and the lyrics for the second account will be displayed in a second preset mode on the display interfaces of the first and second clients. As a feasible implementation, different colors can be used to display the lyrics for different accounts, and a prompt can be given when it is almost time for a particular account to sing.

[0060] Furthermore, both the first and second accounts include both in-ear monitoring and speaker modes. For the chorus mode, if an account is in in-ear monitoring mode, its corresponding client plays a composite audio of the dry vocals and accompaniment audio of all accounts that have spoken on stage. That is, if the target song's current mode is chorus mode and the first account is in in-ear monitoring mode, the first client plays a composite audio of the first dry vocal, the second dry vocal, and the accompaniment audio. If an account is in in-ear monitoring mode, its corresponding client plays a composite audio of the dry vocals and accompaniment audio of all accounts that have spoken on stage except itself. That is, if the target song's current mode is chorus mode and the first account is in speaker mode, the first client plays a composite audio of the second dry vocal and the accompaniment audio.

[0061] For duet mode, if an account is in in-ear monitoring mode, its corresponding client plays a composite audio of its own vocals and accompaniment during its own singing time, and a composite audio of the other account's vocals and accompaniment during the other account's singing time. If an account is in in-ear monitoring mode, its corresponding client plays only the accompaniment during its own singing time, and a composite audio of the other account's vocals and accompaniment during the other account's singing time. That is, if the target song's current mode is duet mode and it is the second account's singing time, the first client plays a composite audio of the second vocal and accompaniment; if the target song's current mode is duet mode and the first account is in in-ear monitoring mode and it is the first account's singing time, the first client plays a composite audio of the first vocal and accompaniment; if the target song's current mode is duet mode and the first account is in speakerphone mode and it is the first account's singing time, the first client plays the accompaniment.

[0062] When both the first and second accounts are in the "on microphone" display state, either account can trigger the "off microphone" icon to resume the solo performance of the other account. Taking the second client as an example, if the "off microphone" icon of the second client is triggered, the second account switches from the "on microphone" display state to the first "off microphone" display state. This includes switching the "off microphone" icon to a chorus icon. If both the chorus icon and the "off microphone" icon include a first number of microphone icons and a second number of microphone outline icons, the second account switching from the "on microphone" display state to the first "off microphone" display state includes: moving the microphone icon at the display position of the second account's status information to the position of the microphone outline icon in the second client's "off microphone" icon, thereby switching the second client's "off microphone" icon to the chorus icon. In specific implementation, the process of switching from the "on microphone" display state to the first "off microphone" display state is: moving the microphone icon at the display position of the status information to the position of the microphone outline icon in the "off microphone" icon, thereby switching the "off microphone" icon to the chorus icon. Figure 7 Switch to Figure 6The microphone icon below the first account's avatar is moved to the microphone outline position in the lower right corner icon, indicating that the account is off-mic. The "Not singing anymore" message in the icon is changed to "Join the chorus." This process visually represents the number of users currently on-mic and the number of remaining microphones. The animation of the microphone icon's movement implements the solution of switching the off-mic icon to the chorus icon, resulting in a smooth and natural transition and a good user experience. Simultaneously, the audio link corresponding to the second client is closed, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio.

[0063] If the first account also triggers the microphone exit icon at this time, that is, if the first account is in the microphone display state and the second account is in the microphone exit state, and the microphone exit icon of the first client is triggered, then the first account switches from the microphone display state to the microphone exit state, the audio link corresponding to the first client is closed, and the second account switches from the microphone exit state to the microphone exit state. Both the first and second clients continue to play the accompaniment audio. In specific implementation, the process of switching from the microphone display state to the microphone exit state is as follows: the microphone icon in the status information display position is moved to the microphone outline position of the microphone exit icon, so as to switch the microphone exit icon to the microphone display icon. Figure 3 Switch to Figure 4 The specific process can be found in step S103 of the previous embodiment, and will not be repeated here. Simultaneously, the second account switches from the first off-mic display state to the second off-mic display state, which includes switching the chorus icon to the on-mic icon. Switching from the first off-mic display state to the second off-mic display state is the reverse process of switching from the second off-mic display state to the first off-mic display state, and will not be repeated here. At the same time, the audio link corresponding to the first client is closed, and both the first and second clients continue playing the accompaniment audio.

[0064] In this embodiment, when multiple accounts are matched to the same virtual room, an audio link is established between the client corresponding to each account and the virtual room. When any account in the virtual room is in the microphone display state, the audio link between its corresponding client and the virtual room is activated, and the audio acquisition device acquires dry audio. At this time, other accounts in the virtual room can trigger the chorus icon to join the chorus, realizing the function of multiple clients singing the target song together.

[0065] To facilitate understanding, an application scenario of this application will be used as an example. Figure 4 This is the display interface for a virtual room where no one is singing the target song. In this case, a microphone is displayed in the lower right corner of each client's screen, and a "I want to sing" button on the microphone prompts the user to click and confirm that they want to sing the song. In this embodiment, two people are allowed to sing simultaneously, therefore there are two microphone icons.

[0066] like Figure 5 As shown, when a user clicks "I want to sing," the microphone rises and moves animatedly from the bottom right corner of the display interface to the bottom of the user's video window, indicating that the user is singing. Simultaneously, the text on the button that originally said "I want to sing" is replaced with "Stop singing." The user can click "Stop singing," at which point the microphone below the user's video window moves back to the bottom right corner of the display interface along its original trajectory. The song does not stop, and other users can continue singing.

[0067] like Figure 6 As shown, when one person is singing in the room, one microphone remains in the lower right corner, and the text changes to "Join the Chorus." When other people click "Join the Chorus," the remaining microphone moves from the lower right corner of the display to the bottom of the user's video window with the same animation, completing the chorus. Figure 7 As shown, the text on the button in the lower right corner is now changed to "Stop singing". Users can click the button at any time to put down the microphone and let other members in the room sing. Figure 8 The image shows the microphone moving from the bottom right corner to the video window as the chorus joins.

[0068] In the above process, when users are in the virtual room, using the microphone toggles whether to sing or not. This requires no learning and intuitively implements the function of an online karaoke room. Users can pick up and put down the microphone at any time during song playback without interrupting the song, resulting in a smooth and natural operation. When one person is singing, other members can join in the chorus at any time, or put the microphone down to let another person sing, providing a good user experience.

[0069] This application also provides a server, see [link to relevant documentation] Figure 9 The present application provides a structural diagram of an electronic device 90, as shown in the embodiment. Figure 9 As shown, it may include a processor 91 and a memory 92.

[0070] The processor 91 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 91 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 91 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 91 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 91 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0071] The memory 92 may include one or more computer-readable storage media, which may be non-transitory. The memory 92 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 92 is used to store at least the following computer program 921, which, after being loaded and executed by the processor 91, is capable of implementing the relevant steps in the online karaoke room implementation method disclosed in any of the foregoing embodiments, executed by the first client or the second client. In addition, the resources stored in the memory 92 may also include an operating system 922 and data 923, etc., and the storage method may be temporary storage or permanent storage. The operating system 922 may include Windows, Unix, Linux, etc.

[0072] In some embodiments, the electronic device 90 may further include a display screen 93, an input / output interface 94, a communication interface 95, a sensor 96, a power supply 97, and a communication bus 98.

[0073] certainly, Figure 9 The server structure shown does not constitute a limitation on the server in the embodiments of this application. In practical applications, the server may include more than [other components]. Figure 9 More or fewer components as shown, or combinations of certain components.

[0074] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the online karaoke room implementation method executed by the server in any of the above embodiments.

[0075] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

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

Claims

1. A method for implementing an online karaoke room, applied to a virtual room, wherein the virtual room establishes an audio link with a first client corresponding to a first account and a second client corresponding to a second account, characterized in that, include: The first client receives the song request operation of the first account for the target song, and the first client and the second client play the accompaniment audio of the target song; The first account is in the microphone display state, the audio link corresponding to the first client is turned on, and the audio acquisition device of the first client acquires the first dry audio. The second account is in an off-mic display state, the audio link corresponding to the second client is closed, the second client receives the first dry audio and plays the synthesized audio of the first dry audio and the accompaniment audio; wherein, when the account is in an on-mic display state, the display interface of the client corresponding to the account displays an off-mic icon, and when the account is in an off-mic display state, the display interface of the client corresponding to the account displays an on-mic icon. If the microphone off icon of the first client is triggered, the first account switches from the microphone on display state to the microphone off display state, the audio link corresponding to the first client is closed, and the first client and the second client continue to play the accompaniment audio; If the microphone exit icon of the first client is triggered and the microphone entry icon of the second client is triggered, the second account switches from the microphone exit display state to the microphone entry display state, the audio link corresponding to the second client is activated, the audio acquisition device of the second client acquires the second dry audio, and the second account can sing the target song; the first client receives the second dry audio and plays the synthesized audio of the second dry audio and the accompaniment audio.

2. The online karaoke room implementation method according to claim 1, characterized in that, Both the first account and the second account include an in-ear monitoring mode and a speaker mode, and the method further includes: When the first account is in the microphone display state and the second account is in the microphone off state, if the first account is in the earphone monitoring mode, the first client plays the synthesized audio of the first dry audio and the accompaniment audio; If the first account is in the external playback mode, the first client plays the accompaniment audio.

3. The online karaoke room implementation method according to claim 1, characterized in that, The microphone icon includes a microphone pattern, and the microphone icon includes a microphone outline pattern. Accordingly, the first account switches from the microphone-on display state to the microphone-off display state, including: Move the microphone icon in the display position of the first account's status information to the position of the microphone outline icon in the first client's microphone down icon, so as to switch the first client's microphone down icon to microphone up icon.

4. The online karaoke room implementation method according to claim 1, characterized in that, The microphone icon includes a microphone pattern, and the microphone icon includes a microphone outline pattern. Accordingly, the second account switches from being displayed off-mic to being displayed on-mic, including: Move the microphone icon in the microphone icon of the second client to the display position of the status information of the second account, so as to switch the microphone icon of the second client to the microphone off icon.

5. The online karaoke room implementation method according to claim 1, characterized in that, Also includes: When the first account displays the microphone status, if the original vocals enable icon of the first client is triggered, the second client receives and plays the synthesized audio of the first dry audio and the original vocals of the target song.

6. The online karaoke room implementation method according to claim 1, characterized in that, Also includes: The first client receives the song request from the first account, and the second client receives the song request from the second account; When the first client and the second client play the accompaniment audio of the target song, the song request account corresponding to the target song displays the microphone status.

7. A method for implementing an online karaoke room, applied to a virtual room, wherein the virtual room establishes an audio link with a first client corresponding to a first account and a second client corresponding to a second account, characterized in that, include: The first client receives the song request operation of the first account for the target song, and the first client and the second client play the accompaniment audio of the target song; The first account is in the microphone display state, the audio link corresponding to the first client is turned on, and the audio acquisition device of the first client acquires the first dry audio. The second account is in the first off-mic display state, the audio link corresponding to the second client is closed, the second client receives the first dry audio, and plays the synthesized audio of the first dry audio and the accompaniment audio; wherein, the account in the on-mic display state is in the on-mic state, the display interface of the client corresponding to the account displays an off-mic icon, the account in the first off-mic display state is in the off-mic state, and the display interface of the client corresponding to the account displays a chorus icon; If the first account displays the microphone on screen and the chorus icon of the second client is triggered, the second account switches from the first microphone off screen to the microphone on screen, the audio link corresponding to the second client is activated, and the audio acquisition device of the second client acquires the second dry audio. Both the first account and the second account include an in-ear monitoring mode and a speaker mode; The method further includes: When both the first account and the second account are in the microphone display state, if the current mode of the target song is the duet mode and the first account is in the earphone monitoring mode, then the first client plays the synthesized audio of the first dry audio, the second dry audio and the accompaniment audio. If the current mode of the target song is chorus mode and the first account is in the external speaker mode, then the first client plays the synthesized audio of the second dry audio and the accompaniment audio; If the current mode of the target song is duet mode and the first account is in the in-ear monitoring mode and during the singing time of the first account, then the first client plays the synthesized audio of the first dry audio and the accompaniment audio. If the current mode of the target song is duet mode and the first account is in the external playback mode and during the first account's singing time, then the first client plays the accompaniment audio.

8. The online karaoke room implementation method according to claim 7, characterized in that, Also includes: If the current mode of the target song is duet mode, the lyrics corresponding to the first account are displayed in the display interfaces of the first client and the second client in a first preset mode, and the lyrics corresponding to the second account are displayed in a second preset mode.

9. The online karaoke room implementation method according to claim 7, characterized in that, Also includes: When both the first account and the second account are in the microphone display state, if the microphone off icon of the second client is triggered, the second account switches from the microphone display state to the first microphone off display state, the audio link corresponding to the second client is closed, and the second client receives and plays the synthesized audio of the first dry audio and the accompaniment audio.

10. The online karaoke room implementation method according to claim 7, characterized in that, Also includes: When the first account is in the "on-mic" display state and the second account is in the "off-mic" display state, if the "off-mic" icon of the first client is triggered, the first account switches from the "on-mic" display state to the "off-mic" display state, the audio link corresponding to the first client is closed, the second account switches from the "off-mic" display state to the "off-mic" display state, and the first client and the second client continue to play the accompaniment audio; wherein, the account in the "off-mic" display state is in the "off-mic" state, and the display interface of the client corresponding to the account displays the "on-mic" icon.

11. The online karaoke room implementation method according to claim 7, characterized in that, Both the chorus icon and the microphone exit icon include a first number of microphone patterns and a second number of microphone outline patterns, where the second number represents the current number of singers for the target song, and the sum of the first number and the second number represents the maximum number of singers allowed to sing simultaneously. Accordingly, the second account switches from the first off-mic display state to the on-mic display state, including: Move one of the microphone icons in the chorus icon of the second client to the display position of the status information of the second account, so as to switch the chorus icon of the second client to the microphone off icon.

12. The online karaoke room implementation method according to claim 9, characterized in that, Both the chorus icon and the microphone exit icon include a first number of microphone patterns and a second number of microphone outline patterns, where the second number represents the current number of singers for the target song, and the sum of the first number and the second number represents the maximum number of singers allowed to sing simultaneously. Accordingly, the second account switches from the microphone-on display state to the microphone-off display state, including: Move the microphone icon in the status information display position of the second account to the position of the microphone outline icon in the microphone drop-off icon of the second client, so as to switch the microphone drop-off icon of the second client to a chorus icon.

13. The online karaoke room implementation method according to claim 10, characterized in that, Both the chorus icon and the microphone icon include a first number of microphone patterns and a second number of microphone outline patterns, where the second number represents the current number of singers for the target song, and the sum of the first number and the second number represents the maximum number of singers allowed to sing simultaneously. Accordingly, the first account switches from the microphone-on display state to the microphone-off display state, including: Move the microphone icon in the display position of the first account's status information to the position of the microphone outline icon in the first client's microphone down icon, so as to switch the microphone down icon of the first client to the microphone up icon. Accordingly, the second account switches from the first off-mic display state to the second off-mic display state, including: Move the microphone icon in the status information display position of the first account to the position of the microphone outline icon in the chorus icon of the second client, so as to switch the chorus icon of the second client to the microphone icon.

14. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps performed by the first client or the second client in the online karaoke room implementation method as described in any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps performed by the first client or the second client in the online karaoke room implementation method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Online interaction method, device and system

    CN107396137A

  • Audio processing method and device

    CN109859730A