Audio processing method and device, electronic equipment and storage medium

By filtering and mixing multiple channels of audio data, it solves the problems of delay and noise in online chorus, improves audio synchronization and sound quality, and enhances the chorus effect.

CN118588101APending Publication Date: 2024-09-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310245709.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In online chorus applications, due to network transmission delay and time delay differences, sound synchronization is poor, which affects the chorus effect.

Method used

By acquiring multiple channels of original audio data, performing first screening based on delay information and second screening based on noise information, the audio data that meets the requirements are screened out, and the mixing and fusion processing is performed to reduce the delay gap and noise level.

Benefits of technology

The synchronization and sound quality of audio data are improved, the chorus effect is improved, audio noise is reduced, and the final sound effect quality is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588101A
    Figure CN118588101A
Patent Text Reader

Abstract

The invention discloses an audio processing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring multiple paths of original audio data; according to the time delay information of each path of original audio data, performing first screening on each path of original audio data to obtain a first audio data set; the time delay information is used for representing the data transmission time difference of each path of original audio data; according to noise information of each path of original audio data in the first audio data set, performing second screening on each path of original audio data in the first audio data set to obtain a second audio data set; and performing sound mixing fusion processing on each path of original audio data in the second audio data set to obtain a fused audio. According to the invention, the time delay difference between each path of audio in the final audio data can be reduced, the synchronism is good, the audio noise can be reduced, and the sound effect quality of the final fused audio is improved; the method can be widely applied to the technical field of the Internet and other technical fields related to the Internet technology, such as cloud computing and the Internet of Vehicles.
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 data processing, and in particular to an audio processing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of computer technology and Internet technology, audio-visual entertainment services can be experienced on the Internet anytime and anywhere. After connecting to the Internet through a terminal, individuals can interact and entertain with people in different places. For example, in an online concert application, the lead singer can interact and sing with thousands of online audiences in different places at the same time. This online concert method is flexible and is not restricted by venue, time, weather, etc., and the number of participants can far exceed that of offline concerts. Another example is the online anchor chorus application, where multiple anchors can interact and sing with the audience on the live broadcast platform at the same time, attracting more fans to join in and enhancing the user experience.

[0003] The most significant technical difficulty in applying this type of online chorus is that network transmission delays are inevitable during the chorus process, and the signal delays from different terminals vary greatly, resulting in the final chorus output being inevitably characterized by poor synchronization of the voices of the choristers and a disorderly and disorganized flow. Moreover, the greater the delay and the greater the delay difference, the worse the chorus effect, and the final synthesis effect is uncontrollable. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an audio processing method, device, electronic device and storage medium to improve the synchronization of fused audio and enhance the sound quality of the fused audio.

[0005] An aspect of an embodiment of the present application provides an audio processing method, comprising the following steps: acquiring multiple channels of original audio data; performing a first screening on each channel of the original audio data according to delay information of each channel of the original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data; performing a second screening on each channel of the original audio data in the first audio data set according to noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set; and performing mixing and fusion processing on each channel of the original audio data in the second audio data set to obtain fused audio.

[0006] On the other hand, an embodiment of the present application also provides an audio processing method, including: in a client, based on the delay information of the original audio data collected by the client, performing a first screening on the original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of the original audio data; based on the noise information of the original audio data in the first audio data set, performing a second screening on the original audio data in the first audio data set to obtain a second audio data set; the server obtains the second audio data sets sent by different clients, and performs mixing and fusion processing on each channel of the second audio data sets to obtain fused audio.

[0007] On the other hand, an embodiment of the present application also provides an audio processing method, including: obtaining multiple channels of original audio data from each client, and storing the multiple channels of original audio data into a mixing pool of a server; the server performs a first screening on each channel of the original audio data according to the delay information of each channel of the original audio data in the mixing pool to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data; based on the noise information of each channel of the original audio data in the first audio data set, performs a second screening on each channel of the original audio data in the first audio data set to obtain a second audio data set; and performs mixing and fusion processing on each channel of the original audio data in the second audio data set to obtain fused audio.

[0008] On the other hand, an embodiment of the present application provides an audio processing device, including:

[0009] The first module is used to obtain multiple channels of original audio data;

[0010] The second module is used to perform a first screening on each channel of the original audio data according to the delay information of each channel of the original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data;

[0011] A third module is used to perform a second screening on each channel of the original audio data in the first audio data set according to the noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set;

[0012] The fourth module is used to mix and fuse the original audio data in each channel of the second audio data set to obtain fused audio.

[0013] Optionally, the audio processing device in the embodiment of the present application further includes:

[0014] A fifth module, configured to perform derivative processing on each channel of the original audio data in the second audio data set to obtain a derived second audio data set;

[0015] The derivative processing includes at least one of the following: pitch adjustment, timbre adjustment, speed adjustment or volume adjustment.

[0016] Optionally, in the audio processing device in the embodiment of the present application, the second module includes a first unit, and the first unit is used to obtain the sending time information in each channel of the original audio data; determine the delay information of each channel of the original audio data based on the receiving time information when the original audio data is obtained and the sending time information; perform a first screening on the original audio data of each channel according to the delay information to obtain a first audio data set.

[0017] Optionally, in the audio processing device in the embodiment of the present application, the first unit is also used to: perform data smoothing on the delay information corresponding to each channel of the original audio data to obtain smoothed delay information; compare the smoothed delay information with a preset delay threshold, obtain the original audio data corresponding to each channel when the delay information is less than the delay threshold, and obtain the first audio data set.

[0018] Optionally, in the audio processing device in the embodiment of the present application, the third module includes:

[0019] A second unit is used to determine a sub-band power spectrum of an audio signal from the first audio data set;

[0020] A third unit is used to calculate the noise power spectrum estimation value of each sub-frequency band according to the sub-frequency band power spectrum;

[0021] A fourth unit is used to calculate an overall noise estimation value of each channel of the original audio data in the first audio data set according to the noise power spectrum estimation value;

[0022] The fifth unit is configured to perform a second screening on each channel of the original audio data in the first audio data set according to the overall noise estimation value to obtain a second audio data set.

[0023] Optionally, in the audio processing device in the embodiment of the present application, the second unit is also used to perform Fourier transform processing on the audio signal in the first audio data set to obtain the frequency domain complex value of each frame frequency point; obtain the frequency index value of each sub-band after the Fourier transform processing; determine the starting frequency index value and the ending frequency index value from the frequency index values ​​of each sub-band, and calculate the sub-band power spectrum based on the starting frequency index value, the ending frequency index value and the frequency domain complex value.

[0024] Optionally, in the audio processing device in the embodiment of the present application, the third unit is also used to smooth adjacent sub-bands according to the sub-band power spectrum to obtain a smoothing result; based on the smoothing result, a preliminary noise estimate of each channel of the original audio data is calculated; based on the smoothing result and the preliminary noise estimate, the existence probability that each frequency point in each channel of the original audio data belongs to the speech type is calculated; based on the existence probability, the noise power spectrum estimate of each sub-band is calculated.

[0025] Optionally, in the audio processing device in the embodiment of the present application, the fourth unit is also used to obtain a target spectrum range of human voice audio; based on the target spectrum range, filter out a target sub-band range from each sub-band; based on the noise power spectrum estimation value of each sub-band in the target sub-band range and a preset noise estimation smoothing coefficient, calculate the overall noise estimation value of each frame audio signal in the original audio data.

[0026] On the other hand, an embodiment of the present application provides an electronic device, including a processor and a memory;

[0027] The memory is used to store programs;

[0028] The processor executes the program to implement the above method.

[0029] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above method.

[0030] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.

[0031] The embodiment of the present application first obtains multiple channels of original audio data, and then performs a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set; the embodiment of the present application performs a first screening on each channel of original audio data based on the delay information, and can preliminarily screen out audio data with a higher delay from each channel of original audio data, thereby improving the audio quality after subsequent mixing and fusion of each channel of audio data, improving the effect of mixing and fusion, and improving the synchronization of mixing; then, the embodiment of the present application performs a first screening on each channel of original audio data in the first audio data set according to the noise information of each channel of original audio data in the first audio data set A second screening is performed to obtain a second audio data set; the embodiment of the present application performs a second screening on each channel of original audio data based on the noise information, and can further screen out audio data with a higher degree of noise from each channel of original audio data, reduce the degree of audio noise after subsequent mixing and fusion of each channel of audio data, and further improve the effect of mixing and fusion; finally, the embodiment of the present application performs mixing and fusion processing on the original audio data of each channel in the second audio data set to obtain a final fused audio. The embodiment of the present application can reduce the time delay difference between each channel of audio in the final audio data, has good synchronization and can reduce audio noise, and improves the sound quality of the final fused audio. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 A flowchart of the steps of an audio processing method provided in the related art;

[0034] Figure 2 A schematic diagram of an implementation environment of an audio processing method provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of an application scenario of an audio processing method provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram of a terminal interface in an online chorus scenario provided by an embodiment of the present application;

[0037] Figure 5 A flowchart of an audio processing method provided in an embodiment of the present application;

[0038] Figure 6 A schematic diagram of a terminal interface in a multi-person conversation scenario provided in an embodiment of the present application;

[0039] Figure 7 A flowchart of the steps of the processing method corresponding to the second screening provided in the embodiment of the present application;

[0040] Figure 8 A flowchart of another audio processing method provided in an embodiment of the present application;

[0041] Fig. 9 A flowchart of the steps of the audio processing method in the client implementation environment provided in the embodiment of the present application;

[0042] Fig.10 A flowchart of the steps of the audio processing method in the server implementation environment provided in the embodiment of the present application;

[0043] Fig.11 A schematic diagram of the structure of an audio data processing device provided in an embodiment of the present application;

[0044] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] 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.

[0046] It can be understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept.

[0047] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0048] Before describing the embodiments of the present application in detail, necessary explanations are given to the technical terms or characteristic terms that may be involved in the embodiments of the present application:

[0049] Online chorus: Online chorus is a function where multiple people use the Internet to achieve real-time chorus through the recording and broadcasting equipment and singing processing software of their respective terminals. During the chorus, different people sing synchronously while listening to the accompaniment played on their respective terminals and the voices of other singers. The voices of singers are collected by the local terminal recording equipment and transmitted to the server for forwarding to other singers for mixed playback.

[0050] Delay analysis: The delay analysis in this application refers to analyzing the delay (time difference) between the actual arrival time of the received multi-channel audio data packets and the actual sending time, filtering the channels with longer delays, and retaining the channel signals that meet the preset delay values; in order to improve the audio quality after mixing and fusion of multi-channel audio data.

[0051] Noise analysis: In addition to the required audio signals, audio signals often also include environmental noise signals. The presence of environmental noise signals affects the mixing and fusion effect. In this regard, the audio channel signals with high noise components are filtered through noise analysis technology. It can be understood that noise is generated randomly, and the position, performance, and decibel number are all random, but the noise signal is different from the audio signal. Therefore, the noise is processed and eliminated through the many differences between noise and audio.

[0052] Voice and pitch changing processing: In order to enrich the limited sound sources in the mixing pool, the audio is processed by voice and pitch changing, and the audio data is adjusted in the frequency domain, so that the timbre and pitch of the adjusted audio signal change, which makes it different from the original sound signal in listening experience, so as to achieve the effect of increasing the number of sound sources.

[0053] With the rapid development of computer technology and Internet technology, audio-visual entertainment services can be experienced on the Internet anytime and anywhere. After connecting to the Internet through a terminal, individuals can interact and entertain with people in different places. For example, in an online concert application, the lead singer can interact and sing with thousands of online audiences in different places at the same time. This online concert method is flexible and is not restricted by venue, time, weather, etc., and the number of participants can far exceed that of offline concerts. Another example is the online anchor chorus application, where multiple anchors can interact and sing with the audience on the live broadcast platform at the same time, attracting more fans to join in and enhancing the user experience.

[0054] The most significant technical difficulty in applying this type of online chorus is that network transmission delays are inevitable during the chorus process, and the signal delays from different terminals vary greatly, resulting in the final chorus output being inevitably characterized by poor synchronization of the voices of the choristers and a disorderly and disorganized flow. Moreover, the greater the delay and the greater the delay difference, the worse the chorus effect, and the final synthesis effect is uncontrollable.

[0055] Specifically, in the related art, see Figure 1As shown, when the sounds of different objects in different areas are collected online in real time for mixing and then generating a chorus sound signal, since different objects are in different geographical locations, that is, the starting and ending points of the relevant transmission networks are different, and the transmission networks used by each object are different, there will inevitably be delay differences in the audio signals during network transmission. It is understandable that the time required for the same audio signal to reach the mixing server from the object side is different, and when the arrival time difference is more than 200ms, there will be a very obvious sound asynchrony problem; and as the number of participants increases, the arrival delay difference problem will become more and more prominent. Figure 1 The solution shown directly mixes the audio data packets received through each channel, and the resulting chorus result is usually chaotic and noisy. It can be seen that this solution cannot be used in the scene of multi-person chorus, but can only be used in the scene of 1 to 2 people singing duet. The application scenario of this solution is very limited.

[0056] To this end, the embodiment of the present application first provides an audio data processing method, first obtaining multiple channels of original audio data from different sources; after performing delay analysis on each channel of original audio data, the first screening of each channel of original audio data is performed according to the result of the delay analysis. Through the first screening, the sound source signals that do not meet the delay requirements in the original audio data are filtered out, and the problem of large network transmission delay differences and sound asynchronism leading to poor synthetic sound effects during large-scale real-time online harmony is improved. Noise analysis is performed on each channel of original audio data in the first audio data set after the first screening, and a second screening is performed on each channel of original audio data according to the result of the noise analysis. Through the second screening, the sound source signals that do not meet the noise requirements in the original audio data are filtered out, the problem of signal confusion after harmony is alleviated, and the effect of mixing and fusion is further improved. Finally, the original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio. The embodiment of the present application can reduce the delay gap between the audio channels in the final audio data, have good synchronization, reduce audio noise, and improve the sound quality of the final fused audio.

[0057] Figure 2 This is a schematic diagram of the structure of an implementation environment provided by this application. Figure 2As shown, in this implementation environment, a terminal 101 and a server 102 are included. It is understandable that the audio processing method provided in the embodiment of the present application can be applied to any computer device with data processing and computing capabilities, and this computer device can be the above-mentioned various types of terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms. Optionally, the terminal is a smart phone 1011, a tablet computer, a laptop computer, and a desktop computer, but is not limited to this.

[0058] It should be further explained that the terminals involved in the embodiments of the present application include but are not limited to smart phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0059] It is understandable that in Figure 2 In the implementation environment shown, the terminal can establish a communication connection with the server through a network protocol, and store a large amount of audio data in the database of the server. The audio can be unprocessed original audio data, or audio data that has been delayed and noise processed, or intermediate audio data temporarily stored during the audio data processing process. The server can push the corresponding server to respond to the audio data according to the different audio data sent by the terminal, and mix and fuse the processed audio data and send it to the terminal. Standard audio processing logic is stored in the server for processing audio data. In this implementation environment, the server can be an independent server, or a server cluster composed of several servers, or a cloud computing service center; the form of the server is not limited to the form described in the above example. It can be understood that the server also has a data storage function, and the storage function can be implemented using a local database or a cloud database.

[0060] See also Figure 3 As shown, taking a specific online chorus application scenario as an example, based on Figure 2 In the implementation environment shown in FIG. 1 , the complete audio processing process is as follows: for region A, objects from multiple different regions (for example, Figure 3The four regions (region 201, region 202, region 203, and region 204) perform online chorus operations on platform 210 through their respective terminals, and the server corresponding to platform 210 can process the online chorus audio through the audio processing method provided in this application. First, the server obtains multiple channels of original audio data from each terminal. Then, according to the delay information of each channel of original audio data, a first screening is performed on each channel of original audio data to obtain a first audio data set. The audio data whose delay difference does not meet the requirements is filtered out through the first screening to improve the synchronization of the chorus. Furthermore, according to the noise information of each channel of original audio data in the first audio data set, a second screening is performed on each channel of original audio data in the first audio data set to obtain a second audio data set. Through the second screening, audio with excessive related noise is filtered out, further improving the effect of the chorus. Finally, the original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio; and the fused audio is sent to each terminal to display the chorus effect. The terminal display interface for this scenario can be Figure 4 The schematic diagram shown shows the scene of the stage through terminal 211, and adds the effect of flickering light and shadow to create an immersive feeling for the participants, enhance the chorus effect, and further enhance the audition experience. It can be understood that the above scenes are illustrative examples, and the audio processing method provided in this application can be used in multi-person voice / video scenes of instant messaging apps, and can also be used in online teaching scenes, and can also be used in scenes such as short video production.

[0061] It should be understood that the embodiments of the present application are only Figure 2 An implementation environment and a possible implementation result are exemplarily described, that is, the object sends original audio data through the terminal, the server receives the original audio data, processes the original audio data, and feeds back the audio data after mixing and fusion processing to the terminal, so that the terminal displays the mixed audio data. In other application scenarios of the embodiments of the present application, the audio processing method can also be implemented only by a terminal equipped with an audio processing software system. For example: in a scenario with a small number of participants, the original audio data can also be preprocessed according to the audio processing program built into the terminal. Each terminal preprocesses the corresponding original audio data respectively. After the server receives the preprocessed original audio data sent by each terminal, it only needs to perform mixing and fusion processing to obtain the fused audio. The embodiments of the present application do not limit the specific application scenarios and implementation environments. The above Figure 2The application scenarios and implementation environments are only used as exemplary descriptions. It should be noted that in the embodiments of the present application, the terminal can be used to represent any device at the outermost periphery of the computer network; the client is used to represent any device used to run a local service program. The terminal can execute the audio processing method provided in the embodiments of the present application, and the terminal can also be an audio acquisition device for obtaining raw audio data. This application does not make specific restrictions.

[0062] In some possible implementations, a computer program capable of implementing the audio processing method provided in the embodiments of the present application may be deployed and executed on one computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected through a communication network. Multiple computer devices distributed at multiple locations and interconnected through a communication network may constitute a blockchain system.

[0063] Based on the fact that multiple computer devices can form a blockchain system, the computer device implementing the audio processing method in the embodiment of the present application can be a node in the blockchain system. The node stores a program with the logic of the audio processing method, which will obtain multiple channels of original audio data; and perform a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set; it is also used to perform a second screening on each channel of original audio data in the first audio data set according to the noise information of each channel of original audio data in the first audio data set to obtain a second audio data set; mix and fuse each channel of original audio data in the second audio data set to obtain fused audio, etc.

[0064] It should be noted that in each specific implementation of the present application, when it comes to obtaining the original audio data, object behavior data, object historical data, object location information and other data related to the identity or characteristics of the object for relevant processing, the permission or authorization of the object will be obtained first, and the collection, use and processing of these data will comply with the relevant laws, regulations and standards of the relevant countries and regions. In addition, when the embodiment of the present application needs to obtain the sensitive personal information of the object, the separate permission or separate consent of the object will be obtained through a pop-up window or jump to a confirmation page. After clearly obtaining the separate permission or separate consent of the object, the necessary object-related data for the normal operation of the embodiment of the present application will be obtained.

[0065] like Figure 5 As shown, the present application embodiment provides an audio data processing method, which can be applied to the above Figure 2 The process may be implemented on a terminal device or server, or may be executed on any other device or equipment with data processing capabilities, such as a smart phone.

[0066] refer to Figure 5 The method specifically includes but is not limited to steps S100-S400:

[0067] S100, obtaining multiple channels of original audio data;

[0068] In some possible implementations, the embodiments of the present application improve the mixing and fusion effect by performing time delay processing and noise processing on multiple audio data. Therefore, multiple channels of original audio data are first obtained. Usually, the objects corresponding to the multiple channels of original audio data are in different locations or areas, and the mixing and fusion operation is performed through the Internet. At the same time, for different application scenarios, there are different project participants, which correspond to different amounts of original audio data. For example, for the application scenario of online chorus, see Figure 3 As shown, different participants in different regions participate in the singing through sound collection equipment and the Internet. The singers sing along while listening to the local accompaniment or live chorus. The local sound signal (i.e., original audio data) is collected through the microphone, and after audio coding compression, it is transmitted to the mixing server through the Internet for multi-site sound mixing to generate the final chorus signal. In this scenario, there are many participants in the online chorus, which can reach hundreds or thousands or more; the collected original audio data is the singing sound data of each participant for the song. It should be noted that for online concerts, there are usually lead singers. In this scenario, in order to enhance interactivity, the chorus link is increased. At this time, there will be more participants in the online chorus. In order to improve the processing speed, participants of several terminals can be selected as lead singers, and the original audio data collected by the selected terminal is processed by the audio processing method provided in this application, and the fused audio is output through many terminals. By screening and processing the original audio data, the audio processing speed is improved while the mixing effect is not reduced. Of course, the above-mentioned screening and processing of the original audio data belongs to an exemplary example, and this application does not make specific restrictions. When there is a large amount of original audio data, technicians in this field can set a screening strategy for the original audio data according to actual needs to meet the needs of audio interaction.

[0069] In some possible implementations, see Figure 6A schematic diagram of the terminal interface of an application scenario is shown. In a multi-person conversation APP, if friends or family members in different areas initiate an online birthday party or an online reading meeting, there will also be problems such as unsynchronized sound and chaotic mixing. The audio processing method provided by this application is used to process the audio data to improve the user experience of the software. Specifically, when multiple objects are conducting online videos, if online mixing and fusion are required, they usually issue voices such as "Let's sing xx song together" (exemplarily, xx here can be the name of the song) or "Let's read this article together, get ready to start". Therefore, the collection of multiple audio data can be started through words such as "together", "start chorus / reading" or "get ready". It can be understood that in the above scenario, the number of terminals participating in the mixing is usually not large, and the collected original audio data can be sound clips of participants singing or sound clips of participants reading aloud. The collected original audio data are processed by the audio processing method provided by this application, and are output through each terminal after mixing and fusion. It should be noted that Figure 6 The number of participants shown in the figure is 6, which is an illustrative example. The present application does not impose any specific restrictions on the specific number of participants. Figure 6 As shown, when mixing and fusion processing is required, the relevant content "mixing and fusion optimization has been turned on for you" can be displayed in area 601 of the terminal interface to remind the participants. In some possible implementations, a function selection area for mixing and fusion optimization can be set in the display interface of the terminal, and the object can select the function by clicking or dragging to perform mixing and fusion processing of multiple audio data. Exemplarily, in the process of short video production, if multiple different sounds need to be mixed and fused, the function button / area of ​​mixing and fusion optimization can be used to trigger the optimization of audio effects through the audio processing method provided by this application.

[0070] S200, performing a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of original audio data;

[0071] In some possible implementations, when multiple channels of original audio data are mixed and fused, the fused audio is prone to disorder due to the inconsistent delay information of each channel of original audio data. Therefore, the embodiment of the present application performs delay analysis on each channel of original audio data, and screens out the original audio data with too long a delay to alleviate the problem of inconsistent audio delay during the harmony operation. It is understandable that the time for collecting the corresponding original audio data is also included in the acquired multiple channels of original audio data; and due to factors such as the regional differences or network delays of each terminal, the collection time of the original audio data is different. According to the receiving time and the collection time, the delay information of each original audio data can be obtained, and the original audio data is screened according to the delay information to obtain the first audio data set. It is understandable that the first audio data set includes the original audio data that meets the delay requirements, and the subsequent mixing and fusion operation of the original audio data in the first audio data set can alleviate the problem of inconsistent audio delay and improve the mixing effect of the audio. For example, for an online chorus scenario, the server receives the original audio data sent by each terminal; according to the sending time and arrival time of each channel of original audio data, the server determines the delay information of each channel of original audio data, and then performs a first screening on each channel of original audio data. The screened audio data is subsequently mixed and fused to improve the mixing and fusion effect.

[0072] In some possible implementations, for the application scenario of online chorus, the embodiment of the present application performs a first screening of the original audio data of each channel according to the delay information of each channel of the original audio data, wherein the screening logic of the first screening can be to delete the original audio data whose delay information is higher than the set delay threshold, and only retain the original audio data with lower delay information, and perform subsequent mixing processing to improve the uniformity of the mixing and enhance the audio-visual experience. At the same time, the screening logic of the first screening can also be to filter out the original audio data whose delay information is within the set delay interval, and delete the original audio data corresponding to the delay information outside the set delay interval. Among them, the setting of the delay interval can be set based on specific application fields, application scenarios, mixing purposes and other factors; it is understandable that the setting of the delay interval can also be specified by participants to provide a variety of choices for the product and enrich the mixing effect. Through this screening logic, the original audio data that meets the mixing requirements can be screened out to improve the satisfaction of the mixed audio. It is understandable that the screening logic of the first screening can also be based on the overall distribution information of the delay information of the original audio data, screen out the original audio data in the delay interval with higher distribution, and use the screened original audio data for subsequent mixing and fusion processing. By screening out the original audio data in the higher distribution interval, the obtained fusion audio is more in line with the actual chorus effect, improving the real listening experience of the participants. Of course, the above-mentioned first screening logics are all illustrative examples, and this application does not make specific limitations. Those skilled in the art can set the screening logic of the first screening according to actual needs, and screen the original audio data according to the delay information through the first screening to improve the uniformity of the mixing and fusion.

[0073] S300, performing a second screening on each channel of original audio data in the first audio data set according to noise information of each channel of original audio data in the first audio data set to obtain a second audio data set;

[0074] In some possible implementations, in addition to the sound of the object required for mixing, the original audio data generally also includes environmental sounds. When the participants are in different environments, the noise signals contained in the environmental sounds are also different. It is understandable that when the participant performs mixing and fusion operations through the terminal in the park, the environmental sounds are generally manifested as sounds such as birdsong. When the participant performs mixing and fusion operations through the terminal outdoors, the environmental sounds are generally manifested as sounds such as vehicle horns. When the participant performs mixing and fusion operations through the terminal in the office area, the environmental sounds are generally manifested as sounds such as mechanical operation. As a result, environmental noise in the original audio data is inevitable, and the types of environmental noise are also various depending on the environment in which the participants are located. The embodiment provided in the present application needs to analyze the noise information in the original audio data, and screen out the original audio data whose noise information does not meet the requirements to improve the sound quality of the mixed audio data.

[0075] In some possible implementations, for the application scenario of online chorus, the embodiment of the present application performs a second screening on each channel of original audio data according to the noise information of each channel of original audio data, wherein the screening logic of the second screening can also be to delete the original audio data with noise information higher than the set noise threshold, and only retain the original audio data with lower noise information, and perform subsequent mixing processing to improve the clarity of the mixing and enhance the audio-visual experience. At the same time, the screening logic of the second screening can also be to screen out the original audio data with noise information in the set noise interval, and delete the original audio data corresponding to the noise information outside the set noise interval. Among them, the setting of the set noise interval can also be set based on specific application fields, application scenarios, mixing purposes and other factors; it can be understood that the set noise interval can also be specified by participants to provide a variety of choices for the product and enrich the mixing effect. Through this noise screening logic, the original audio data that meets the mixing requirements can be screened out to improve the satisfaction of the mixing effect. It can be understood that the screening logic of the second screening can also be based on the overall distribution information of the noise information of the original audio data, to screen out the original audio data with a higher distribution of noise intervals, and use the screened original audio data for subsequent mixing fusion processing. By filtering out the original audio data in the higher distribution interval, the obtained fused audio is more in line with the actual chorus effect, which improves the real listening experience of the participants. It is understandable that the screening logic of the second screening can also be based on the actual needs of the mixing, and the original audio data belonging to the preset background noise is screened out for subsequent mixing fusion processing. The fused audio processed by this logic can express the specific scene in which the participants are located through appropriate background noise, creating an immersive feeling for the participants and improving the listening experience. Of course, the above-mentioned second screening logics are all illustrative examples, and this application does not make specific restrictions. Those skilled in the art can set the screening logic of the second screening according to actual needs, and screen the original audio data according to the delay information through the second screening to improve the clarity of the mixing fusion.

[0076] It should be noted that the participants collect sound signals through local microphones, and usually, the client has a noise suppression processing operation. However, the noise component after processing may still be high, affecting the effect of the final chorus audio. Therefore, the embodiment of the present application performs noise analysis on the channel signals that meet the first-stage delay requirements, re-filters the channel signals with high noise components, and only saves the channel signals with low noise components, thereby further improving the sound quality of the fused audio. In some possible implementations, noise analysis needs to go through the following steps: power spectrum calculation, sub-band noise power spectrum estimation, and overall noise estimation. Of course, other noise analysis methods can also be used for different environmental noises, and this application is not limited thereto.

[0077] S400: Mix and fuse the original audio data in the second audio data set to obtain fused audio.

[0078] In some possible implementations, the embodiments of the present application are conducive to reducing the delay difference of each audio time by delay processing of the original audio data; at the same time, by noise processing, it is conducive to reducing audio noise. By mixing and fusion processing of the audio data after delay processing and noise processing, the sound quality of the fused audio is improved as a whole. It can be understood that the original audio data can be mixed and fused by linear superposition or weighted superposition. Exemplarily, for the above-mentioned audio and video call scenario, when the number of participants is small, the original audio data after delay processing and noise processing is mixed and fused by linear superposition. The sound data of each participant is equally fused to obtain fused audio data. For the above-mentioned online chorus scenario, when there are many participants, the original audio data after delay processing and noise processing is mixed and fused by weighted superposition. For the voice data of the lead singer, a higher weight is given; for the voice data of other participants, a smaller weight is given. By setting different weights, the leading role of the lead singer's audio is enhanced, which is conducive to improving the performance effect of the fused audio. It is understandable that sending the integrated audio data to each terminal for audio output allows each participant to enjoy an immersive feeling and the convenience brought by technology.

[0079] In some embodiments, the audio processing method provided by the present application further includes the following steps:

[0080] S500, performing derivative processing on each channel of original audio data in the second audio data set to obtain a derived second audio data set;

[0081] The derivative processing includes at least one of the following: pitch adjustment, timbre adjustment, speed adjustment or volume adjustment.

[0082] In some possible implementations, for the case where there are fewer mixing participants, the audio after fusion processing is relatively monotonous; at the same time, after two rounds of delay and noise screening, too much audio data is screened out, which will also affect the final mixing effect. Therefore, in order to improve the mixing effect, create an atmosphere of chorus or reading, and enrich the richness of the fusion audio, the original audio data of each channel is subjected to derivative processing. Among them, after each channel of original audio data is subjected to derivative processing, multiple channels of derived audio data can be obtained; and the audio data obtained by different derivative processing methods are different, which can be considered as sound data emitted by different participants, which also increases the number of participants in hearing. The derived audio data is mixed and fused with the original audio data to obtain the final fused audio data. It can be understood that the derivative processing includes one or more of pitch adjustment, timbre adjustment, speed adjustment or volume adjustment. For one channel of original audio signal, one of the derivative processing methods can be used for adjustment, two combinations of the derivative processing methods can be used for adjustment, and multiple combinations of the derivative processing methods can be used for combination processing. In some possible implementations, the derivative processing method can be selected according to the required mixing effect. For scenes with high requirements for mixing effects, multiple combinations of several derivation methods can be used to derive the original audio data; for scenes with low requirements for mixing effects, several single derivation methods can be used to derive the original audio data. By deriving the original audio data, the audition effect of the fused audio can be improved.

[0083] In some possible implementations, for pitch shifting, a sound can be understood as the superposition of multiple frequency sine waves, and the pitch is the main frequency of a sound. Changing the main frequency means changing the pitch. It can be understood that the principle of pitch shifting is to adjust the frequency domain of the input signal in real time and perform offset processing on the fundamental frequency and overtone signals of the original signal. Exemplarily, using the pitchshift algorithm, the pitch and timbre of the adjusted signal will change significantly, which is quite different from the original sound signal, and it sounds like the voices of different people. Through this pitch shifting processing, the original N-channel signal can be derived into N*M-channel signals; the number of mixed and fused audio is increased, and the richness of the fused audio is improved.

[0084] In some embodiments, the step S200 of the above embodiment, performing a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set, may include but is not limited to steps S210-S230:

[0085] S210, obtaining the sending time information of each channel of original audio data;

[0086] S220, determining the delay information of each channel of original audio data according to the receiving time information and the sending time information when the original audio data is obtained;

[0087] S230: Perform a first screening on each channel of original audio data according to the delay information to obtain a first audio data set.

[0088] In some possible implementations, the delay analysis in the embodiments of the present application is to analyze the actual arrival delay of the received multi-channel original audio data, with the purpose of filtering out channels where the arrival delay exceeds a preset value, and retaining only channel signals that meet the preset delay value. The delay information of the original audio data can be obtained by the following method, and each channel (for example, the jth data packet of the i-th channel) will package the current time information T0(i, j) of the terminal together when the data is packaged and send it to the receiver (exemplarily, it can be a mixing server or a receiving terminal). After the receiver receives the data packet and parses the audio emission time T0(i, j), it subtracts it from the current time T1(i, j) of the receiver: T1(i, j)-T0(i, j), that is, the time difference t(i, j) of the data packet during the transmission process is obtained, that is, the delay information. The above-mentioned channel signals are screened according to the delay information, and the channel signals that do not meet the delay requirements are filtered out. It should be noted that when performing delay analysis, the time difference between the terminal and the server is calculated using the time in the same time zone; or for the time in different time zones, it is necessary to convert it before performing delay analysis.

[0089] In some embodiments, the step S230 of the above embodiment, performing a first screening on each channel of original audio data according to the delay information to obtain a first audio data set, may include but is not limited to steps S231-S232:

[0090] S231, performing data smoothing processing on the delay information corresponding to each channel of original audio data to obtain smoothed delay information;

[0091] S232: Compare the smoothed delay information with a preset delay threshold, obtain the original audio data of each channel corresponding to the delay information being less than the delay threshold, and obtain a first audio data set.

[0092] In some possible implementations, when performing statistical analysis and calculation on time data, it is often necessary to smooth the data to remove the influence of noise in the time data. The time delay information can be smoothed by means of smooth function, smoothts function and medfilt1. For example, the time difference t(i, j) can be smoothed by formula (1).

[0093] tsm(i,j) = a*tsm (i,j-1)+(1-a)*t(i,j) (1)

[0094] Where a is a smoothing constant (0 < a < 1), and the delay information tsm of each channel after smoothing processing is calculated through formula (1). Then, by setting a preset delay threshold, delay processing is performed on the original audio data. Exemplarily, the transmission smoothing delay information tsm of each channel is compared with the preset delay threshold Thres_t. If the delay information tsm is less than the preset delay threshold Thres_t, the signal of this channel will continue to participate in subsequent audio data analysis and processing; on the contrary, if the smoothing delay value information tsm of this channel is greater than the preset delay threshold Thres_t, the signal of this channel will be screened out, the delay of the signal of this channel is overtime, and the signal of this channel is not used for subsequent mixing and fusion operations. In some possible implementation manners, when setting the preset delay threshold, the data of the mixing participants can be considered. For mixing operations with more participants, the requirement for the delay of the original audio data is higher. At the same time, considering the processing efficiency, the delay threshold can be set to a smaller value, which is beneficial to controlling the quantity of the original audio data after screening and improving the audio processing efficiency. On the contrary, for mixing operations with fewer participants, the requirement for the delay of the original audio data is lower. At this time, the delay threshold can be set to a larger value, which can also meet the requirement of better sound effects after mixing. It can be understood that the setting of the above delay threshold belongs to an exemplary example, and those skilled in the art can also set a suitable preset delay threshold according to factors such as the specific network state and different application scenario requirements. This application does not make any restrictions.

[0095] In some embodiments, referring to Figure 7 , the above step S300 of the embodiment, according to the noise information of each path of original audio data in the first audio data set, performing a second screening on each path of original audio data in the first audio data set to obtain the second audio data set, may include but is not limited to steps S310 - S340:

[0096] S310. Determine the sub - band power spectrum of the audio signal from the first audio data set;

[0097] S320. Calculate the estimated value of the noise power spectrum of each sub - band according to the sub - band power spectrum;

[0098] S330. Calculate the overall noise estimated value of each path of original audio data in the first audio data set according to the estimated value of the noise power spectrum;

[0099] S340. Perform a second screening on each path of original audio data in the first audio data set according to the overall noise estimated value to obtain the second audio data set.

[0100] In some possible implementations, for a sub-band, when the frequencies of two tones are located in a sub-band, it is not easy to distinguish the two tones from the auditory point of view. If the frequency distribution of a complex signal is located in a sub-band, from the auditory perception, the signal is equivalent to a simple signal with a frequency located at the center frequency of the sub-band. Therefore, a sub-band refers to a frequency range, and a signal whose spectrum is located in this range can be replaced by a single frequency component. For example, if the minimum value of the spectrum frequency of a signal is w0 and the maximum value is w1. Sub-band coding is to divide the frequency range between w0-w1 into several sub-bands, and replace the components within each sub-band range with an equivalent frequency component. In this way, a signal with a complex spectrum can be equivalent to a signal with a relatively simple spectrum composition. Through sub-band coding technology, the spectrum is simplified. Sub-band coding is often the first step in audio coding, which facilitates subsequent noise estimation and processing. In the embodiment of the present application, the audio signal is segmented by sub-band coding technology to facilitate subsequent noise estimation.

[0101] In some possible implementations, noise suppression technology is usually used to eliminate background noise and improve the signal-to-noise ratio of speech signals. Noise suppression can be divided into two parts: noise estimation and gain factor estimation; among them, noise estimation is the core of noise suppression. Noise estimation generally has the following common methods: recursive averaging, minimum tracking, histogram statistics and minimum controlled recursive averaging (MCRA). Among them, MCRA is a method that combines recursive averaging with minimum tracking. First, the probability of speech existence is determined by the local minimum value, and then according to the probability of speech existence, it is determined which frequency bands are used for noise estimation, and the noise estimation is obtained by using the recursive averaging method. The present application does not limit the specific noise estimation method. Those skilled in the art can use any noise estimation method to estimate the noise of the original audio data, so as to facilitate the screening of the original audio data with higher noise.

[0102] In some embodiments, the step S310 of the above embodiment, determining the sub-band power spectrum of the audio signal from the first audio data set, may include but is not limited to steps S311-S313:

[0103] S311, performing Fourier transform processing on the audio signal in the first audio data set to obtain a frequency domain complex value of each frame frequency point;

[0104] S312, obtaining the frequency index value of each sub-band after Fourier transform processing;

[0105] S313: Determine a starting frequency index value and an ending frequency index value from the frequency index values ​​of each sub-frequency band, and calculate a sub-frequency band power spectrum according to the starting frequency index value, the ending frequency index value and the frequency domain complex value.

[0106] In some possible implementations, subband coding technology is a technology that converts the original signal from the time domain to the frequency domain, then divides it into several sub-bands, and digitally encodes them respectively. It uses a bandpass filter (BPF) group to divide the original signal into several sub-bands (referred to as sub-bands), which can be m sub-bands for example. Subband coding technology facilitates subsequent noise estimation and analysis.

[0107] In some possible implementations, the collected sound signal is subjected to Fourier transformation to obtain complex values ​​of each frequency point in the frequency domain. Exemplarily, the sub-band power spectrum is calculated by formula (2):

[0108]

[0109] In the formula, i is used to represent the frame number, z is used to represent the frequency index value, and k is used to represent the subband number; X(i,z) is used to represent the frequency domain complex value of the zth frequency point in the i-th frame after Fourier transform; freq1(k) is used to represent the starting frequency index value of the kth subband, and freq2(k) is used to represent the ending frequency index value of the kth subband. The calculation of the subband power spectrum is convenient for the subsequent audio noise estimation.

[0110] In some embodiments, the step S320 of the above embodiment, the step of calculating the noise power spectrum estimation value of each sub-band according to the sub-band power spectrum, may include but is not limited to steps S321-S324:

[0111] S321, performing smoothing processing on adjacent sub-frequency bands according to the sub-frequency band power spectrum to obtain a smoothing processing result;

[0112] S322, calculating a preliminary noise estimation value of each channel of original audio data according to the smoothing processing result;

[0113] S323, calculating the probability of each frequency point in each channel of original audio data belonging to the speech type according to the smoothing processing result and the preliminary noise estimation value;

[0114] S324. Calculate and obtain the noise power spectrum estimation value of each sub-frequency band according to the existence probability.

[0115] In some possible implementations, the sub-band noise power spectrum is estimated by the MCRA algorithm. Specifically, see the calculation steps shown below:

[0116] S31, power spectrum smoothing in time and frequency domain

[0117] First, the sub-band power spectrum is smoothed. The smoothing process includes frequency domain smoothing of adjacent sub-bands and time domain smoothing of historical frames, see formula (3) and formula (4):

[0118]

[0119]

[0120] Where c0 is used to characterize the time domain smoothing factor. For example, c0 can be 0.9. Where x is used to characterize the frequency domain smoothing weighting factor group, for example, x[5] = [0.1, 0.2, 0.4, 0.2, 0.1]. i and k are used to characterize the kth frequency point of the i-th frame; j is used to characterize the variable -w~w range of the adjacent frequency points; for example, if w = 2 and the current frequency point k = 2, it is necessary to perform weighted smoothing of the corresponding coefficient x through the power spectrum values ​​of the 5 frequency points 0-4 to obtain the frequency domain smoothing value of frequency point 2. Used to characterize the power spectrum. Used to characterize the results after frequency domain smoothing.

[0121] S32, using the minimum tracking method to find the minimum value S of the noisy speech min , as a rough estimate of the noise; where S min It is used to characterize the minimum value of the power spectrum within a certain window length. The specific calculation process can be achieved through the following code:

[0122]

[0123] Among them, T is used to characterize the constant, which represents the update period of the noise estimation value. It can be understood that In calculation , so in the above steps only That's it. tmp (i, k) is used to represent a temporary variable, which is assigned a value of The other frames in the cycle take the minimum value.

[0124] S33. Calculate the probability of speech existence The existence probability is used to characterize the probability that the kth frequency point of the i-th frame of the current channel audio signal belongs to the speech type. Specifically, the calculation process is shown in formula group (5):

[0125]

[0126] Among them, S r (i, k) represents the signal-to-noise ratio. δ represents the preset threshold value of the signal-to-noise ratio, which is a constant and can be set by technicians in this field according to different business requirements. pRepresents the smoothing coefficient, and its value is less than 1. p(i,k) is used to characterize the relationship between the probability of speech existence and the energy entropy ratio, and is used to control the problem of the estimated probability of speech existence being too high or too low. It should be noted that as the energy entropy ratio increases, the probability of speech existence also increases. When the energy entropy ratio approaches positive infinity, the probability of speech existence approaches 1; when the energy entropy ratio approaches negative infinity, the probability of speech existence approaches 0.

[0127] S34. Calculate the noise power spectrum estimate As shown in formula (6).

[0128]

[0129] Through the above calculation process, the noise power spectrum estimation value of each sub-band can be obtained, which is convenient for the subsequent noise estimation of the audio data.

[0130] In some embodiments, the step S330 of the above embodiment, calculating the overall noise estimation value of each channel of original audio data in the first audio data set according to the noise power spectrum estimation value, may include but is not limited to steps S331-S333:

[0131] S331, obtaining a target frequency spectrum range of human voice audio;

[0132] S332, screening out a target sub-frequency band range from each sub-frequency band according to the target frequency spectrum range;

[0133] S333: Calculate the overall noise estimation value of each frame of audio signal in the original audio data according to the noise power spectrum estimation value of each sub-frequency band in the target sub-frequency band range and a preset noise estimation smoothing coefficient.

[0134] In some possible implementations, after the noise estimation value of each sub-band is obtained through the above calculation, the overall noise estimation of the original audio data is performed through the spectrum range of the human voice audio. It can be understood that the embodiment of the present application can calculate the overall noise estimation value of the sound signal of the i-th frame through the sub-band range overlapping with the main spectrum range of the human voice (exemplarily, below 100 to 6 khz) Specifically, it can be obtained by formula (7):

[0135]

[0136] Among them, β (β<1) is the noise estimation smoothing coefficient; K0 and K1 are used to characterize the sub-band numbers corresponding to the above-mentioned 100~6khz spectrum range.

[0137] In some possible implementations, the overall noise estimate of the obtained original audio data is When the overall noise estimate If the overall noise estimation value is less than the preset noise value Thres_n, the channel is judged to meet the noise condition and can be put into the mixing pool for subsequent mixing fusion processing; on the contrary, if the overall noise estimation value is If it is greater than the preset noise value Thres_n, it is determined that the channel does not meet the noise condition, and the sound signal of the channel is filtered out to improve the effect of mixing and fusion processing.

[0138] See also Figure 8 As shown, taking the application of online teaching scenarios as an example, the audio processing method proposed in this application is described in detail. The audio processing method in the online teaching scenario specifically includes the following steps:

[0139] First, after authorization by the object, multiple channels of original audio data are obtained. According to the delay information of each channel of original audio data, the original audio data is first screened to obtain a first audio data set. The delay information is used to characterize the data transmission time difference of each channel of original audio data. For example, the time difference between the sending time information in each channel of original audio data and the receiving time information of the original audio data is determined as the delay information of each channel of original audio data. Then, the original audio data whose delay information is greater than a preset time threshold is screened out to alleviate the problem of large delay between original audio data and affecting the mixing effect.

[0140] Secondly, according to the noise information of each channel of original audio data in the first audio data set, a second screening is performed on each channel of original audio data in the first audio data set to obtain a second audio data set. The noise of the original audio data is obtained by the following steps: the sub-band power spectrum of the audio signal is determined from the first audio data set, and the sub-band power spectrum can be calculated according to formula (2). According to the sub-band power spectrum, the noise power spectrum estimation value of each sub-band is calculated; specifically, the sub-band noise power spectrum is estimated according to the method of step S31 to step S34. According to the noise power spectrum estimation value, the overall noise estimation value of each channel of original audio data in the first audio data set is calculated; specifically, the overall noise of the original audio data can be estimated according to formula (7).

[0141] In some possible implementations, see Figure 8 As shown, each channel of original audio data in the second audio data set can also be subjected to derivative processing to obtain a derived second audio data set. Specifically, the original audio data can be subjected to voice and tone changing processing to increase the number of audios involved in the mixing and improve the richness of the mixing.

[0142] Finally, the original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio, and the fused audio data is sent to each terminal to output the audio data.

[0143] Through the above-mentioned delay analysis and noise analysis, a limited channel signal that meets the preset delay and noise requirements is filtered out from the received channel signals; at the same time, in order to enrich the chorus effect, a derivative processing method is used to process the sound source signal of the mixing pool to obtain more chorus sound sources; finally, the original sound source and the derived sound source are mixed to obtain the final fused audio data output of the chorus. The embodiment of the present application can reduce the delay difference between the audio channels in the final audio data, has good synchronization and can reduce audio noise, and improve the sound effect quality of the final fused audio.

[0144] It can be understood that in addition to the online chorus mixing scenario introduced above, the audio processing method of the present application can also be applied to audio production, live broadcast, multimedia and other fields, and the present application does not make specific limitations.

[0145] Exemplarily, in the live broadcast field, in a scenario where multiple live broadcast rooms are interacting, when multiple anchors from different live broadcast rooms simultaneously issue voice commands such as putting products on the shelves and purchasing, or simultaneously applaud, welcome, and other actions by clapping their hands, the audio processing method of the present application first obtains the above-mentioned audio data (such as voice commands or audio signals related to actions), and performs time delay processing and noise processing on the acquired audio data through the above-mentioned steps S100-S400, and then performs mixing and fusion processing; the fused audio data is sent out through each viewing terminal; it can realize the mixing operation of multiple original audios, improve the effect of the fused audio, and enhance the shopping experience of the viewer.

[0146] Reference Fig. 9 , is a flowchart of another audio processing method provided in an embodiment of the present application; the method comprises steps T100-T300:

[0147] T100. In the client, according to the delay information of the original audio data collected by the client, the original audio data is first screened to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of the original audio data;

[0148] T200, performing a second screening on the original audio data in the first audio data set according to noise information of the original audio data in the first audio data set to obtain a second audio data set;

[0149] T300: The server obtains second audio data sets sent by different clients, and performs mixing and fusion processing on each channel of second audio data sets to obtain fused audio.

[0150] In some possible implementations, for the situation where the number of mixing participants is small, a distributed client forwarding independent mixing solution can be adopted. Exemplarily, for an online xx meeting with 4 participants (exemplarily, xx can represent a person's name, a concert name, or the name of another organization), when performing audio processing, the current client receives the original audio data sent by the client corresponding to other participants, and the current client performs a first screening of the original audio data according to the delay information of the collected original audio number to obtain a first audio data set; then, according to the noise information of the original audio data in the first audio data set, the original audio data in the first audio data set is screened for a second time to obtain a second audio data set. The audio data is screened for the first time and the second time by the current client, and the obtained second audio data set is sent to the server. The server performs audio fusion processing, and sends the fused audio data to each client for output display.

[0151] It is understandable that in the above scenario, after the current client performs the first screening and the second screening of the audio data, it can also perform fusion processing; the audio data after fusion processing is directly output and displayed through the current client. Specifically, after each client receives the original audio data sent by other clients, each client performs the first screening, the second screening and the mixing and fusion operations of the audio data separately, and displays the processing results through their respective client outputs. For the case where the number of participants is small, the screening operation of the audio data by the client is conducive to alleviating the problem of long waiting time when the server is busy and improving the audio processing efficiency; at the same time, it can reduce the time delay difference between the audio channels in the final audio data, has good synchronization and can reduce audio noise, and improve the sound quality of the final fused audio.

[0152] Reference Fig.10 , is a flow chart of another audio processing method provided in an embodiment of the present application; the method comprises steps L100-L400:

[0153] L100, obtaining multiple channels of original audio data from each client, and storing the multiple channels of original audio data in a mixing pool of the server;

[0154] L200, the server performs a first screening on each channel of original audio data according to the delay information of each channel of original audio data in the mixing pool to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of original audio data;

[0155] L300, performing a second screening on each channel of original audio data in the first audio data set according to noise information of each channel of original audio data in the first audio data set to obtain a second audio data set;

[0156] L400, mix and fuse the original audio data of each channel in the second audio data set to obtain fused audio.

[0157] In some possible implementations, for scenarios with a large number of participants, audio data can be mixed through a centralized mixing solution. Specifically, the sound signals of all participants are encoded and compressed from their respective clients, and then formed into data packets and sent to the server. The server performs delay analysis and noise analysis on the original audio data; after the original audio data undergoes a first screening and a second screening, a second audio data set is obtained. The server then performs mixing and fusion processing based on the original audio data in the second audio data set to obtain fused audio. The fused audio is forwarded to each client after being encoded and compressed on the server. Through the centralized mixing solution, the server can process a large amount of original audio data, which can reduce the delay difference between each audio channel in the final audio data, has good synchronization, can reduce audio noise, and improve the sound quality of the final fused audio.

[0158] Reference Fig.11 , is a schematic diagram of the structure of the audio processing device provided in an embodiment of the present application, such as Fig.11 As shown, the device comprises:

[0159] The first module 1001 is used to obtain multiple channels of original audio data;

[0160] The second module 1002 is used to perform a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of original audio data;

[0161] The third module 1003 is used to perform a second screening on each channel of original audio data in the first audio data set according to the noise information of each channel of original audio data in the first audio data set to obtain a second audio data set;

[0162] The fourth module 1004 is used to mix and fuse the original audio data in the second audio data set to obtain fused audio.

[0163] Combination Fig.11, the specific implementation process of the audio processing device in the technical solution of the present application is described: First, the first module obtains multiple channels of original audio data. The second module performs a first screening on each channel of original audio data according to the delay information of each channel of original audio data to obtain a first audio data set; wherein the delay information is determined according to the time difference between the sending time information in each channel of original audio data and the receiving time information of the original audio data. The third module performs a second screening on each channel of original audio data in the first audio data set according to the noise information of each channel of original audio data in the first audio data set to obtain a second audio data set. The specific implementation method of the third module is as follows: determine the sub-band power spectrum of the audio signal from the first audio data set, and specifically calculate the sub-band power spectrum according to formula (2). According to the sub-band power spectrum, calculate the noise power spectrum estimation value of each sub-band; specifically, estimate the sub-band noise power spectrum according to the method of steps S31 to S34. According to the noise power spectrum estimation value, calculate the overall noise estimation value of each channel of original audio data in the first audio data set; specifically, the overall noise of the original audio data can be estimated according to formula (7). The fourth module performs mixing and fusion processing on the original audio data of each channel in the second audio data set to obtain fused audio.

[0164] The audio processing device provided in the embodiment of the present application performs a first screening of the original audio data through the second module, and can preliminarily screen out audio data with high latency from each channel of original audio data, thereby improving the audio quality after subsequent mixing and fusion of each channel of audio data, improving the effect of mixing and fusion, and improving the synchronization of mixing. The third module performs a second screening of the original audio data, and can further screen out audio data with high noise levels from each channel of original audio data, thereby reducing the audio noise level after subsequent mixing and fusion of each channel of audio data, and further improving the effect of mixing and fusion.

[0165] In some embodiments, the audio processing device provided by the present application also includes the following modules: a fifth module, used to perform derivative processing on each channel of original audio data in the second audio data set to obtain a derived second audio data set; wherein the derivative processing includes at least one of the following: pitch adjustment, timbre adjustment, speed adjustment or volume adjustment.

[0166] The audio processing device provided in the embodiment of the present application performs derivative processing on the original audio data through the fifth module, thereby increasing the amount of mixed audio and improving the richness of the fused audio; thereby, improving the audio fusion effect.

[0167] The embodiment of the present application also provides an electronic device, the device comprising a processor and a memory;

[0168] The memory stores a program;

[0169] The processor executes the program to perform the audio processing method as described in the above-mentioned embodiments.

[0170] The electronic device has the function of carrying and running the audio processing software platform provided in the embodiment of the present application, such as a personal computer (PC), a mobile phone, a smart phone, a personal digital assistant (PDA), a wearable device, a handheld computer PPC (Pocket PC), a tablet computer, etc. Fig.12 In this embodiment of the application, the terminal device is a mobile phone as an example:

[0171] Fig.12 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.12 The mobile phone includes: a radio frequency (RF) circuit 1210, a memory 1220, an input unit 1230, a display unit 1240, a sensor 1250, an audio circuit 1260, a wireless fidelity (WiFi) module 1270, a processor 1280, and a power supply 1290. Those skilled in the art can understand that Fig.12 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0172] In the embodiment of the present application, the processor 1280 included in the terminal device has the following functions:

[0173] Get multiple channels of raw audio data;

[0174] According to the delay information of each channel of original audio data, the original audio data of each channel is first screened to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of original audio data;

[0175] According to the noise information of each channel of original audio data in the first audio data set, performing a second screening on each channel of original audio data in the first audio data set to obtain a second audio data set;

[0176] The original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio.

[0177] An embodiment of the present application further provides a computer-readable storage medium, which stores a program, and the program is executed by a processor to complete the audio processing method of the aforementioned embodiments.

[0178] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the audio processing method provided in the above-mentioned embodiments.

[0179] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the above-mentioned boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. The optional embodiment is expected, wherein the order of various operations is changed and the sub-operation described as a part of a larger operation is performed independently.

[0180] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.

[0181] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0182] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0183] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0184] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0185] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0186] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

[0187] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. An audio processing method, characterized in that: include: Get multiple channels of raw audio data; According to the delay information of each channel of the original audio data, the original audio data of each channel is first screened to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data; performing a second screening on each channel of the original audio data in the first audio data set according to noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set; The original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio.

2. The audio processing method according to claim 1, characterized in that: The method further comprises: Performing derivation processing on each channel of the original audio data in the second audio data set to obtain a derived second audio data set; The derivative processing includes at least one of the following: pitch adjustment, timbre adjustment, speed adjustment or volume adjustment.

3. The audio processing method according to claim 1, characterized in that: The first filtering of the original audio data of each channel according to the delay information of the original audio data of each channel to obtain a first audio data set includes: Obtaining the sending time information of each channel of the original audio data; Determine the delay information of each channel of the original audio data according to the receiving time information and the sending time information when the original audio data is obtained; The original audio data of each channel is first screened according to the delay information to obtain a first audio data set.

4. The audio processing method according to claim 3, characterized in that: The first filtering of the original audio data of each channel according to the delay information to obtain a first audio data set includes: Performing data smoothing processing on the time delay information corresponding to each channel of the original audio data to obtain smoothed time delay information; The smoothed delay information is compared with a preset delay threshold, and the original audio data of each channel corresponding to when the delay information is less than the delay threshold is obtained to obtain the first audio data set.

5. The audio processing method according to claim 1, characterized in that: The step of performing a second screening on each channel of the original audio data in the first audio data set according to the noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set includes: determining a sub-band power spectrum of an audio signal from the first audio data set; Calculating the noise power spectrum estimation value of each sub-frequency band according to the sub-frequency band power spectrum; Calculating an overall noise estimation value of each channel of the original audio data in the first audio data set according to the noise power spectrum estimation value; According to the overall noise estimation value, a second screening is performed on each channel of the original audio data in the first audio data set to obtain a second audio data set.

6. The audio processing method according to claim 5, characterized in that: The determining of a sub-band power spectrum of an audio signal from the first audio data set comprises: Performing Fourier transform processing on the audio signal in the first audio data set to obtain a frequency domain complex value of each frame frequency point; Obtaining the frequency index value of each sub-band after the Fourier transform processing; A starting frequency index value and an ending frequency index value are determined from the frequency index values ​​of each of the sub-frequency bands, and the sub-frequency band power spectrum is calculated according to the starting frequency index value, the ending frequency index value and the frequency domain complex value.

7. The audio processing method according to claim 5, characterized in that: The step of calculating the noise power spectrum estimation value of each sub-frequency band according to the sub-frequency band power spectrum comprises: According to the sub-band power spectrum, smoothing is performed on adjacent sub-bands to obtain a smoothing result; Calculating a preliminary noise estimation value of each channel of the original audio data according to the smoothing processing result; Calculating the probability of each frequency point in each channel of the original audio data belonging to the speech type according to the smoothing processing result and the preliminary noise estimation value; According to the existence probability, the noise power spectrum estimation value of each sub-frequency band is calculated.

8. The audio processing method according to claim 5, characterized in that: The calculating, according to the noise power spectrum estimation value, an overall noise estimation value of each channel of the original audio data in the first audio data set includes: Get the target frequency spectrum range of human voice audio; According to the target frequency spectrum range, selecting a target sub-frequency band range from each sub-frequency band; The overall noise estimation value of each frame of audio signal in the original audio data is calculated according to the noise power spectrum estimation value of each sub-band in the target sub-band range and a preset noise estimation smoothing coefficient.

9. An audio processing method, characterized in that: include: In the client, according to the delay information of the original audio data collected by the client, the original audio data is first screened to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of the original audio data; performing a second screening on the original audio data in the first audio data set according to noise information of the original audio data in the first audio data set to obtain a second audio data set; The server obtains the second audio data sets sent by different clients, performs mixing and fusion processing on each channel of the second audio data sets, and obtains fused audio.

10. An audio processing method, characterized in that: include: Acquire multiple channels of original audio data from each client, and store the multiple channels of original audio data into a mixing pool of the server; The server performs a first screening on each channel of the original audio data according to the delay information of each channel of the original audio data in the mixing pool to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data; performing a second screening on each channel of the original audio data in the first audio data set according to noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set; The original audio data of each channel in the second audio data set is mixed and fused to obtain fused audio.

11. An audio processing device, characterized in that: include: The first module is used to obtain multiple channels of original audio data; The second module is used to perform a first screening on each channel of the original audio data according to the delay information of each channel of the original audio data to obtain a first audio data set; wherein the delay information is used to characterize the data transmission time difference of each channel of the original audio data; A third module is used to perform a second screening on each channel of the original audio data in the first audio data set according to the noise information of each channel of the original audio data in the first audio data set to obtain a second audio data set; The fourth module is used to mix and fuse the original audio data in each channel of the second audio data set to obtain fused audio.

12. The audio processing device according to claim 11, characterized in that: The audio processing device further comprises: A fifth module, configured to perform derivative processing on each channel of the original audio data in the second audio data set to obtain a derived second audio data set; The derivative processing includes at least one of the following: pitch adjustment, timbre adjustment, speed adjustment or volume adjustment.

13. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 10.

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