Audio stream processing method, computer device and computer program product

By evaluating and screening the dry audio streams of each singing end in the virtual room, and mixing and generating high-quality chorus audio streams, it solves the problem of poor quality of online chorus audio streams and enables the audience to quickly obtain high-quality audio.

CN116170613BActive Publication Date: 2024-09-24TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211096763.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2024-09-24
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

Existing technology is difficult to provide high-quality online chorus audio. Especially when multiple people are singing in remote places, the audio stream quality varies greatly, making it difficult for the audience to obtain high-quality chorus audio.

Method used

By obtaining the dry audio streams collected by each singer in the virtual room, the audio stream quality parameters are evaluated, and multi-channel target dry audio streams that meet the preset quality conditions are screened out and mixed to generate a high-quality chorus audio stream.

Benefits of technology

Enriching chorus audio content ensures that viewers can quickly obtain high-quality online chorus audio, reduces the data volume and acquisition time of audio streams, and avoids low-quality audio stream transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170613B
    Figure CN116170613B
Patent Text Reader

Abstract

The present application relates to the field of audio processing technology, and provides an audio streaming method, a computer device, and a computer program product, which can enable the audience to quickly obtain high-quality online chorus audio during the online chorus process. The method includes: during the chorus process, obtaining dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room, and determining the audio stream quality parameters of each dry audio stream; based on the audio stream quality parameters of each dry audio stream, respectively obtaining the audio stream quality information of each dry audio stream, and determining multiple target dry audio streams whose audio stream quality information meets the preset quality conditions; mixing the multiple target dry audio streams to obtain a chorus audio stream facing the audience terminal in the virtual room.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio processing, and in particular to an audio stream processing method, a computer device, and a computer program product. Background Art

[0002] With the development of real-time audio and video technology, users can participate in online chorus interactions through related applications, and realize online chorus in different locations. In related technologies, when singing in different locations, multiple singers can sing alternately in segments, that is, each singer sings his own segment separately, and realizes the alternating chorus of each singer in segments, but this chorus method is relatively simple, and it is difficult for the audience to obtain high-quality online chorus audio. Summary of the invention

[0003] Based on this, it is necessary to provide an audio stream processing method, apparatus, computer device, computer readable storage medium and computer program product to address the above technical problems.

[0004] In a first aspect, the present application provides an audio stream processing method. The method comprises:

[0005] During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined;

[0006] Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition;

[0007] The multiple target dry audio streams are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

[0008] In a second aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0009] During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined;

[0010] Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition;

[0011] The multiple target dry audio streams are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

[0012] In a third aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0013] During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined;

[0014] Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition;

[0015] The multiple target dry audio streams are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

[0016] With the above-mentioned audio stream processing method, computer device and computer program product, during the chorus process, the server can obtain the dry audio streams for the same chorus content collected by multiple singing ends in the virtual room, and determine the audio stream quality parameters of each dry audio stream, and then can obtain the audio stream quality information of each dry audio stream based on the audio stream quality parameters of each dry audio stream, and determine the multi-channel target dry audio streams whose audio stream quality information meets the preset quality conditions, and then mix the multi-channel target dry audio streams to obtain the chorus audio stream facing the audience end in the virtual room. In the scheme of the present application, by mixing multiple target dry audio streams for the same chorus content from different singing ends, the audio content in the chorus audio stream can be enriched, and by screening and then mixing the multiple dry audio streams, the quality of the final chorus audio stream can be effectively guaranteed, so that the audience can quickly obtain high-quality online chorus audio. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A diagram of an application environment of an audio stream processing method in one embodiment;

[0018] Figure 2 A schematic diagram of a flow chart of an audio stream processing method in an embodiment;

[0019] Figure 3 A schematic diagram of a flow chart of a step of mixing a dry audio stream in one embodiment;

[0020] Figure 4 A schematic diagram of a flow chart of steps for aligning dry audio streams in one embodiment;

[0021] Figure 5 is a flowchart of another audio stream processing method in one embodiment;

[0022] Figure 6 A schematic diagram of another flow chart of steps for aligning dry audio streams in one embodiment;

[0023] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] The audio stream processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the application environment may include a server and multiple singing ends. The server may communicate with each singing end through the network. The server may have a corresponding data storage system, which can store data that the server needs to process, such as audio streams collected from the singing end. The data storage system may be integrated on the server or deployed on the cloud or other network servers.

[0026] In an embodiment of the present application, a user can start a singing end and participate in the chorus interaction in a virtual room. During the chorus process, the singing end can collect the vocal signal generated when the user sings a song, obtain the corresponding dry audio stream, and then upload the dry audio stream to the server. Thus, the server can obtain the dry audio streams for the same chorus content collected by multiple singing ends in the virtual room, and the server can further determine the audio stream quality parameters of each dry audio stream, and then evaluate the quality of each dry audio stream based on the audio stream quality parameters of each dry audio stream, obtain the audio stream quality information of each dry audio stream, and determine from the multiple dry audio streams that the audio stream quality information can meet the preset quality conditions. Multiple target dry audio streams. After obtaining multiple target dry audio streams, the server can mix the multiple target dry audio streams to obtain a chorus audio stream facing the audience end in the virtual room.

[0027] The singing end and the audience end in the virtual room may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart car devices, etc., and portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server end may be implemented with an independent server or a server cluster consisting of multiple servers.

[0028] In one embodiment, Figure 2As shown, a method for processing an audio stream is provided, and the method is applied to Figure 1 Taking the server in as an example, the following steps can be included:

[0029] S201, during the chorus process, obtaining dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room, and determining audio stream quality parameters of each dry audio stream.

[0030] The audio stream quality parameter may be a parameter used to evaluate the quality of the audio stream. Exemplarily, the audio stream quality parameter may include a parameter used to determine the degree of jamming or smoothness of data transmission, and a parameter used to determine the audio quality.

[0031] In a specific implementation, a user can start a client and enter a virtual room through the client. The virtual room can also be called a virtual singing room. Multiple clients can enter the same virtual room for real-time online interaction. In this embodiment, the client participating in the chorus interaction in the virtual room can be called a singing end, and the singing end not participating in the chorus interaction can be called an audience end. For example, after receiving a chorus interaction initiation request from a client with an anchor identity (i.e., an anchor end) or a client with an administrator identity (such as a room manager) in the virtual room, the server can send a chorus invitation message to each client in the virtual room. If the user confirms to participate in the chorus interaction, it can trigger the client to send the corresponding confirmation message. Then the server can determine the client that sends the confirmation message as the singing end, and the client that does not respond to the chorus invitation message (such as the client replying a rejection instruction or not replying after a timeout) can be confirmed by the server as the audience end.

[0032] During the chorus, each user participating in the chorus can sing the same content, that is, multiple users can sing in unison. During the user's singing, the corresponding client can collect the current human voice signal to obtain the corresponding dry audio stream, and upload the dry audio stream to the server. Therefore, during the chorus, the server can obtain the dry audio streams collected by multiple singing ends in the virtual room, and the dry audio streams collected by each singing end can be dry audio streams for the same chorus content.

[0033] After acquiring multiple dry audio streams from different singing ends, the server can further determine the audio stream quality parameters of each dry audio stream. For example, after collecting the dry audio stream, the singing end can correspondingly acquire at least part of the audio stream quality parameters of the dry audio stream, and when sending the dry audio stream to the server, the acquired at least part of the audio stream quality parameters will be sent to the server. Of course, the server can also analyze the dry audio stream after receiving it, and acquire the audio stream quality parameters of the dry audio stream based on the analysis results.

[0034] S202: Based on the audio stream quality parameters of the dry audio streams, respectively obtain audio stream quality information of the dry audio streams, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition.

[0035] After obtaining the audio stream quality parameters of each dry audio stream, for each dry audio stream, the server can obtain the audio stream quality information of the dry audio stream based on the audio stream quality parameters. For example, it can obtain multiple preset audio stream quality levels, and compare the obtained audio stream quality parameters with the audio stream quality parameters of each audio stream quality level, and then determine the audio stream quality information of the dry audio stream based on the comparison result; for another example, the audio stream parameters of each dry audio stream can be sorted, and the audio stream quality information of each dry audio stream can be determined according to the sorting result of the audio stream parameters.

[0036] Then, the server can obtain the preset quality conditions and determine whether the audio stream quality information of each dry audio stream meets the preset quality conditions. For multiple dry audio streams whose audio stream quality information meets the preset quality conditions, the server can determine the multiple dry audio streams as target dry audio streams, while other dry audio streams whose audio stream quality information does not meet the preset quality conditions can be temporarily ignored and no subsequent processing is performed.

[0037] S203, mixing multiple target dry audio streams to obtain a chorus audio stream facing the audience end in the virtual room.

[0038] In this step, after obtaining multiple target dry audio streams, the multiple target dry audio streams can be mixed and synthesized into one audio stream, and then the mixed audio stream can be used as a chorus audio stream for each audience terminal in the virtual room. Furthermore, after obtaining the chorus audio stream, the server can send the chorus audio stream to each audience terminal in the virtual room, so that while realizing online multi-person singing, the audience listening to the online chorus can obtain high-quality chorus audio in a timely manner.

[0039] In some instances, after obtaining multiple dry audio streams, the server may mix all the received dry audio streams and send the mixed audio stream to the client. However, in practice, due to differences in sound collection equipment, network transmission, or user singing skills, the audio stream quality of each dry audio stream may vary. If all dry audio streams are mixed uniformly, the quality of the final mixed audio stream will also be relatively low. In addition, when there are many users participating in the chorus, such as the number of singing ends exceeds a preset number, the server will receive a large number of dry audio streams from multiple singing ends in a short period of time. If all dry audio streams are mixed, the time it takes for the audience to obtain the chorus audio stream will be significantly increased. Since the chorus audio stream has a large amount of data, its transmission process may also be stuck, thereby hindering the audience from obtaining high-quality chorus audio and affecting the audience's listening experience.

[0040] In the present application, after receiving multiple dry audio streams, by obtaining dry audio streams whose audio stream quality information meets preset quality conditions, multiple target dry audio streams with relatively good audio stream quality can be first screened out from the multiple dry audio streams, and then the multiple target dry audio streams can be mixed. On the one hand, the quality of the chorus audio stream finally obtained can be effectively guaranteed to avoid sending dry audio streams with poor quality to the audience end. On the other hand, by reducing the number of audio streams that need to be mixed, the time for obtaining the chorus audio stream is shortened and the amount of data of the chorus audio stream to be sent is reduced, so that the subsequent audience ends can quickly obtain the chorus audio stream.

[0041] In this embodiment, during the chorus process, the server can obtain dry audio streams for the same chorus content collected by multiple singing ends in the virtual room, and determine the audio stream quality parameters of each dry audio stream, and then can obtain the audio stream quality information of each dry audio stream based on the audio stream quality parameters of each dry audio stream, and determine the multi-channel target dry audio streams whose audio stream quality information meets the preset quality conditions, and then mix the multi-channel target dry audio streams to obtain the chorus audio stream facing the audience end in the virtual room. In the scheme of the present application, by mixing multiple target dry audio streams for the same chorus content from different singing ends, the audio content in the chorus audio stream can be enriched, and by screening and then mixing the multiple dry audio streams, the quality of the final chorus audio stream can be effectively guaranteed, allowing the audience to quickly obtain high-quality online chorus audio.

[0042] In one embodiment, after determining in S202 that the audio stream quality information of the multiple-channel target dry audio streams meets the preset quality condition, the method may further include the following steps:

[0043] At least one target dry audio stream among multiple target dry audio streams is returned to each singing end.

[0044] In a specific implementation, after the server obtains multiple dry audio streams, if the obtained multiple dry audio streams are directly returned to the singing end, it will bring great pressure to the bandwidth and performance of the singing end, and when the delays of the dry audio streams differ greatly, the multiple dry audio streams heard by the user through the singing end will be noisy; or, after the server determines the multiple target dry audio streams that meet the preset quality conditions, if the screened multiple target dry audio streams are mixed and then the mixed chorus audio stream is sent to the singing end, it will significantly increase the time for a certain singing end to obtain the audio streams of other singing ends. In one example, sending the chorus audio stream to the singing end will increase the delay by 2 to 3 seconds, seriously affecting the experience of the singing end.

[0045] Based on this, in this embodiment, after obtaining multiple target dry audio streams, at least one target dry audio channel that is a summary of the multiple target dry audio streams can be returned to each singing end. For example, N (N≥2) target dry audio streams can be obtained from the multiple target dry audio streams and sent to the corresponding singing end. The target dry audio streams received by different singing ends can be the same, or the corresponding target dry audio streams can be sent according to the bandwidth parameters of each singing end or the configuration information pre-set by the singing end.

[0046] In this embodiment, by sending at least part of the target audio stream obtained after screening to the singing end, it can be ensured that the singing end can obtain high-quality audio streams from other singing ends in time during the chorus process, thereby ensuring the user's singing experience.

[0047] In one embodiment, Figure 3 As shown, S203 mixes multiple target dry audio streams to obtain a chorus audio stream facing the audience end in the virtual room, which may include the following steps:

[0048] S301, determining a main channel dry audio stream and an auxiliary channel dry audio stream among multiple target dry audio streams.

[0049] As an example, the main channel dry audio stream may be an audio stream that is highlighted as the main body among multiple channel dry audio streams, while the auxiliary channel dry audio stream may be an audio stream that needs to be weakened.

[0050] Specifically, in the process of multiple people singing in unison, the differences in factors such as the strength, timbre, and pitch of the voice can enhance the contrast of the singing content and enrich the final chorus effect. In this embodiment, after obtaining multiple channels of target dry audio, the main dry audio channel and the auxiliary dry audio stream in the multiple channels of target dry audio streams can be determined. For example, the main dry audio stream in the multiple channels of target dry audio streams can be determined according to the preset main dry audio stream screening rules, and then the other audio streams in the multiple channels of target dry audio streams except the main dry audio stream can be determined as auxiliary dry audio streams.

[0051] S302, reducing the volume of the auxiliary channel dry audio stream, and mixing the main channel dry audio stream and the auxiliary channel dry audio stream with the reduced volume to obtain a chorus audio stream facing the audience end in the virtual room.

[0052] After determining the auxiliary dry audio stream, the audio volume of the auxiliary dry audio stream can be reduced. For example, the auxiliary dry audio stream can be attenuated according to an existing algorithm. In an optional embodiment, the volume reduction amplitude can be determined according to the delay degree of the auxiliary dry audio stream. The reduction amplitude can be positively correlated with the delay degree of the auxiliary dry audio stream. That is, the higher the delay degree, the greater the reduction amplitude of the auxiliary dry audio stream volume, thereby weakening the influence of the high-delay auxiliary dry audio stream on the final chorus effect.

[0053] After reducing the volume of the auxiliary dry audio stream, the main dry audio stream and the auxiliary dry audio stream with the reduced volume can be mixed. For example, multiple dry audio streams can be mixed according to a preset mixing algorithm to obtain a chorus audio stream facing the audience in the virtual room.

[0054] In this embodiment, by reducing the volume of the dry audio stream of the auxiliary channel and then mixing the dry audio streams of the main and auxiliary channels, the contrast between the audio streams in the final chorus audio stream can be increased, the performance effect of the chorus audio stream can be enhanced, and the quality of the chorus audio stream finally obtained by the audience can be improved.

[0055] In one embodiment, S301 determines a main channel dry audio stream among multiple channels of target dry audio streams, which may include the following steps:

[0056] The current chorus mode of the virtual room is obtained, and at least one target singing end serving as a lead singer in the chorus mode is determined from multiple singing ends; and a target dry audio stream from the target singing end is determined as a main dry audio stream.

[0057] The chorus mode may be information indicating a chorus method or form, such as a chorus including treble and bass parts, a chorus led by a designated user, and the like.

[0058] In a specific implementation, a chorus mode can be selected for the virtual room. After multiple target dry audio streams are determined, at least one target singing end that serves as the lead singer in the current chorus mode can be determined from multiple singing ends. For example, the singing end associated with the user who is designated as the lead singer in the current chorus mode can be used as the target singing end, and then the target dry audio stream from the target singing end can be determined as the main dry audio stream.

[0059] In this embodiment, by selecting the main dry audio stream from multiple target dry audio streams according to the chorus mode of the virtual room, it is possible to combine different interactive methods of the virtual room to enhance the sound of the designated object singing the song during the chorus process, thereby improving the interactivity and fun of the online chorus.

[0060] In another embodiment, the audio stream quality parameters may include delay time. Determining the main dry audio stream among multiple target dry audio streams in S202 may include the following steps: obtaining the delay time of each target dry audio stream from the audio stream quality parameters of each target dry audio stream; and determining multiple target dry audio streams whose delay time is less than a time threshold and whose delay time proximity is greater than a proximity threshold as the main dry audio stream.

[0061] After obtaining multiple target dry audio streams, the delay time of each target dry audio stream can be read from the audio stream quality parameters of each target dry audio stream. Then, the delay time of each target dry audio stream can be compared with the preset time threshold to obtain multiple target dry audio streams with delay times less than the time threshold; for multiple target dry audio streams with delay times less than the time threshold, the degree of proximity of the delay times between each two target dry audio streams can be determined, such as determining the difference between the delay times, and then, multiple target dry audio streams with delay times greater than the proximity threshold can be determined as the main dry audio stream.

[0062] In this embodiment, by determining multiple target dry audio streams whose delay time is less than a time threshold and whose delay time proximity is greater than a proximity threshold as the main dry audio stream, the low-delay dry audio stream can be used as the main dry audio stream, and the uniformity between the main dry audio streams can be ensured, thereby improving the quality of the subsequently acquired chorus audio stream.

[0063] In one embodiment, Figure 4 As shown, before S203, the method may further include the following steps:

[0064] S401, obtaining the accompaniment progress information carried by each target dry audio stream; the accompaniment progress information is used to indicate the playing progress of the accompaniment of the chorus song when the corresponding singing end collects the target dry audio stream.

[0065] Specifically, before the chorus starts, the singing end can obtain the song accompaniment of the chorus song to be sung from the server in advance, and obtain a unified global clock among multiple singing ends, for example, the NTP (Internet Time Protocol) time can be obtained. When the chorus starts, each singing end can use the global clock as a reference and agree to play the song accompaniment of the chorus song at the same time, thereby achieving relatively simultaneous start and reducing the time difference between different users in starting to sing.

[0066] During the user's singing process, in addition to collecting the corresponding dry audio stream, the singing end can also determine the current accompaniment progress information of the chorus song when the dry audio stream is collected, such as the current playback progress time of the accompaniment, and the accompaniment progress can also be represented in the form of a percentage. Furthermore, when sending the dry audio stream to the server, the corresponding accompaniment progress information can be sent together. After determining each target dry audio stream, the server can read the accompaniment progress information carried by the target dry audio stream.

[0067] S401, aligning each channel of target dry audio stream based on the accompaniment progress information to obtain a plurality of aligned target dry audio streams.

[0068] In actual applications, when users sing songs, they often sing along with the accompaniment. Based on this, in this step, the accompaniment progress information can be used as a reference standard for aligning different target dry audio streams, that is, the target dry audio streams can be aligned based on the accompaniment progress information. For example, the target dry audio streams with the same accompaniment progress information can be aligned, thereby obtaining multiple aligned target dry audio streams, and the aligned target dry audio streams can be mixed subsequently.

[0069] In this embodiment, the target dry audio streams can be aligned first, which can improve the uniformity of the dry audio streams when multiple people sing in unison online, avoid noisy and chaotic mixing of different dry audio streams, and effectively improve the audio stream quality of the final chorus audio stream.

[0070] In one embodiment, in S202, based on the audio stream quality parameters of each dry audio stream, respectively obtaining the audio stream quality information of each dry audio stream may include the following steps:

[0071] Based on the audio stream quality parameters of each dry audio stream, the sound quality detection results and delay levels of each dry audio stream are obtained respectively; based on the sound quality detection results and delay levels of each dry audio stream, the audio stream quality information of each dry audio stream is determined.

[0072] Specifically, the audio stream quality parameters may include parameters for determining the degree of data transmission jamming or smoothness, and parameters for determining the audio quality. Exemplarily, the parameters for determining the degree of data transmission jamming or smoothness may include at least one of the following: round trip time (RTT) of audio stream data, uplink packet loss rate, and NTP time.

[0073] In this step, after obtaining the audio stream quality parameters of each dry audio stream, the sound quality detection results and delay levels of each dry audio stream can be obtained based on the audio stream quality parameters of each dry audio stream, wherein the sound quality detection results can indicate the sound quality of the dry audio stream itself, such as whether the amplitudes of the corresponding frequency points of the dry audio stream are uniform, balanced, and full, whether the frequency response curve is flat, whether the pitch of the sound is accurate, etc.; and the delay level can indicate whether the data transmission of the dry audio stream is smooth during the transmission process.

[0074] Furthermore, for each dry audio stream, the quality information of the dry audio stream can be determined based on the sound quality detection result and delay degree of the dry audio stream. For example, for a dry audio stream with excellent sound quality and low delay, its audio stream quality information can be determined to be excellent, while for a dry audio stream with poor sound quality and high delay, its audio stream quality information can be determined to be poor.

[0075] In this embodiment, by determining the audio stream quality information of each dry audio stream based on the sound quality detection results and delay levels of each dry audio stream, a basis can be provided for subsequent screening of dry audio streams with excellent sound quality and smooth transmission, and the quality of the final chorus audio stream can be effectively improved.

[0076] In one embodiment, determining in S202 that the audio stream quality information satisfies the preset quality condition for the multiple target dry audio streams may include the following steps:

[0077] Determine the filtering time interval of the target dry audio stream, and obtain the current time and the historical time when the target dry audio stream was most recently determined; when the time interval between the current time and the historical time meets the filtering time interval, determine the multiple target dry audio streams whose audio stream quality information meets the preset quality conditions.

[0078] In this step, the screening time interval of the target dry audio stream can be determined, and the current time and the historical time of the most recent screening of the target dry audio stream can be obtained. Exemplarily, the screening time interval can be a preset time range, such as 20 seconds or 30 seconds.

[0079] Then, the time interval between the current time and the historical time can be determined, and it can be judged whether the time interval meets the predetermined filtering time interval; if so, the multi-channel target dry audio streams whose audio stream quality information meets the preset quality conditions can be determined again from the multi-channel dry audio streams; if not, you can continue to wait until the time interval between the current time and the historical time meets the filtering time interval.

[0080] In this embodiment, by determining multiple target dry audio streams whose audio stream quality information meets preset quality conditions when the time interval between the current time and the historical time meets the screening time interval, errors caused by short-term fluctuations or changes in the target dry audio stream can be avoided, and the short-term stability of the target dry audio stream and the quality of the chorus audio stream can be improved.

[0081] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.

[0082] like Figure 5 As shown, after the host user or management user in the virtual room initiates a chorus, each singer A, singer B... singer N who intends to participate in the chorus can send a response message, and each singer's client, that is, the singing end, can obtain the NTP time from the server and pull the accompaniment of the chorus song in advance to obtain the local accompaniment. When the chorus starts, each singing end can start playing the local accompaniment at the same time according to the globally unified NTP time.

[0083] During the chorus, each singing end can collect the vocal signal of the singer singing the chorus song while playing the accompaniment, and can send the collected vocal signal to the server in the form of an audio stream, and send the accompaniment progress information and other audio stream quality parameters to the server. Thus, the server can use the audio streams received from different singing ends as dry audio streams, and determine the audio stream quality parameters of each dry audio stream. In one example, the server may include a real-time audio and video communication (Real-Time Communication) server and other background processing devices. The server can receive the dry audio stream and audio stream quality parameters through the real-time audio and video communication server, and transmit them to the background processing device in time for processing and mixing, so as to realize real-time online chorus of multiple singing ends in different locations and ensure the quality of data transmission.

[0084] After the server obtains each dry audio stream, it can select and align multiple dry audio streams based on the audio stream quality parameters of each dry audio stream and the preset dry audio stream routing strategy, and then mix the aligned multiple dry audio streams according to the chorus mixing algorithm. Among them, the server can return the ID of the selected dry audio stream to the singing end in time, so that the singing end can pull the high-quality dry audio stream according to the ID in time, thereby improving the singing experience.

[0085] During the mixing process, Figure 6 As shown, taking the singers A, B, C, D, and E as an example, the server can receive the corresponding dry audio stream A, dry audio stream B, dry audio stream C, dry audio stream D, and dry audio stream E respectively, and each dry audio stream can carry the accompaniment progress information and flow into different queues respectively, and then align the queues according to the accompaniment progress information. The alignment standard can be that the offset between different queues is less than a few milliseconds (such as 300 milliseconds). Then, according to the RTT or NTP time carried by each dry audio stream, the dry audio stream with low latency and few jams can be determined, and 3-5 dry audio streams can be designated as the main dry audio streams, and the others as auxiliary dry audio streams, and then mixed.

[0086] After mixing, the chorus audio stream with accompaniment can be sent to each audience terminal in the virtual room. For example, the chorus audio stream can be sent to an interface machine of a real-time audio and video communication server, and the audience terminals in the virtual room can pull the chorus audio stream through the interface machine.

[0087] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0088] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store dry audio streams. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an audio stream processing method is implemented.

[0089] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0090] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0091] During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined;

[0092] Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition;

[0093] The multiple target dry audio streams are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

[0094] In one embodiment, when the processor executes the computer program, the steps in the other embodiments described above are also implemented.

[0095] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0096] During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined;

[0097] Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition;

[0098] The multiple target dry audio streams are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

[0099] In one embodiment, when the computer program is executed by a processor, the steps in the other embodiments described above are also implemented.

[0100] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for processing an audio stream, characterized in that: The method comprises: During the chorus process, the dry audio streams for the same chorus content collected by multiple singing terminals in the virtual room are obtained, and the audio stream quality parameters of each dry audio stream are determined; Based on the audio stream quality parameters of each dry audio stream, respectively obtain audio stream quality information of each dry audio stream, and determine multiple target dry audio streams whose audio stream quality information meets a preset quality condition; Determine a main channel dry audio stream and an auxiliary channel dry audio stream among the multiple channels of target dry audio streams; The volume of the auxiliary channel dry audio stream is reduced, and the main channel dry audio stream and the auxiliary channel dry audio stream with the reduced volume are mixed to obtain a chorus audio stream facing the audience end in the virtual room.

2. The method according to claim 1, characterized in that The step of reducing the volume of the auxiliary channel dry audio stream includes: The volume reduction amplitude is determined according to the delay degree of the auxiliary channel dry audio stream; wherein the volume reduction amplitude is positively correlated with the delay degree of the auxiliary channel dry audio stream.

3. The method according to claim 1, characterized in that The determining of a main channel dry audio stream among the multiple channels of target dry audio streams includes: Acquire the current chorus mode of the virtual room, and determine at least one target singing end as a lead singer in the chorus mode from the multiple singing ends; The target dry audio stream from the target singing end is determined as the main dry audio stream.

4. The method according to claim 1, characterized in that: The audio stream quality parameter includes a delay time, and determining a main channel dry audio stream among the multiple channels of target dry audio streams includes: Obtaining the delay time of each target dry audio stream from the audio stream quality parameter of each target dry audio stream; Multiple target dry audio streams whose delay time is less than the time threshold and whose delay time proximity is greater than the proximity threshold are determined as main dry audio streams.

5. The method according to claim 1, characterized in that: Before mixing the multiple target dry audio streams to obtain the chorus audio stream facing the audience end in the virtual room, the method further includes: Acquiring the accompaniment progress information carried by each target dry audio stream; the accompaniment progress information is used to indicate the playing progress of the accompaniment of the chorus song when the corresponding singing end collects the target dry audio stream; Based on the accompaniment progress information, each channel of target dry audio stream is aligned to obtain multiple channels of aligned target dry audio streams.

6. The method according to claim 1, characterized in that The obtaining, based on the audio stream quality parameter of each dry audio stream, audio stream quality information of each dry audio stream respectively includes: Based on the audio stream quality parameters of each dry audio stream, respectively obtain the sound quality detection results and delay levels of each dry audio stream; Based on the sound quality detection results and delay levels of each dry audio stream, audio stream quality information of each dry audio stream is determined.

7. The method according to claim 1, characterized in that The step of determining that the audio stream quality information satisfies a preset quality condition for a plurality of target dry audio streams includes: Determine a filtering time interval of a target dry audio stream, and obtain a current time and a historical time when the target dry audio stream was most recently determined; In the case where the time interval between the current time and the historical time meets the screening time interval, multiple target dry audio streams whose audio stream quality information meets a preset quality condition are determined.

8. The method according to any one of claims 1 to 7, characterized in that: After determining that the audio stream quality information satisfies the preset quality condition for the multiple target dry audio streams, the method further includes: At least one target dry audio stream among the multiple target dry audio streams is returned to each performance end.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.