Audio processing method and device, electronic device and computer readable storage medium

By calculating the gain difference between the non-noise signal and the noise signal in the audio processing algorithm, the non-noise signal processing effect of the signal processing algorithm is evaluated, which solves the problem of low accuracy in the existing technology and improves the reliability of the evaluation results.

CN117727311BActive Publication Date: 2024-10-22SHUXING TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310456931.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-22
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

When evaluating the processing effect of signal processing algorithms on audio, the existing technology has low accuracy and cannot effectively evaluate the processing effect of non-noise signals and noise signals.

Method used

By obtaining the gain difference between the non-noise signal and the noise signal in the target audio, calculate the non-noise signal processing index, noise reduction index and stability index, and fuse these indexes to evaluate the effect of the signal processing algorithm.

Benefits of technology

The accuracy of non-noise signal processing indicators is improved, the audio processing effect of the signal processing algorithm can be more accurately evaluated, and the reliability of the evaluation results is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117727311B_ABST
    Figure CN117727311B_ABST
Patent Text Reader

Abstract

The present application discloses an audio processing method and device, an electronic device and a computer-readable storage medium. The method comprises: obtaining a target audio, wherein the target audio is the audio obtained after the original audio is processed by a target signal processing algorithm, wherein the target audio comprises a first non-noise signal, and the original audio comprises a second non-noise signal; according to the target audio, obtaining a first non-noise gain of the first non-noise signal; obtaining a second non-noise gain of the second non-noise signal; and determining a non-noise signal processing index of the target signal processing algorithm based on the difference between the first non-noise gain and the second non-noise gain, wherein the non-noise signal processing index represents the processing effect of the target signal processing algorithm on the non-noise signal in the audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing technology, and in particular to an audio processing method and device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In order to improve the quality of audio, it is usually necessary to use a signal processing algorithm to process the audio. The effect of the signal processing algorithm on the audio will directly determine the quality of the processed audio. Therefore, it is very important to evaluate the effect of the signal processing algorithm on the audio.

[0003] In current technology, the processing effect of a signal processing algorithm on audio is usually evaluated directly based on the quality of the audio before and after the signal processing algorithm is processed. For example, the processing effect of an audio processing algorithm is evaluated based on the difference between the signal-to-noise ratio of the audio before and after the processing. However, the accuracy of the evaluation result determined by this method is low. Summary of the invention

[0004] The present application provides an audio processing method and device, an electronic device, and a computer-readable storage medium.

[0005] In a first aspect, an audio processing method is provided, the method comprising:

[0006] Acquire target audio, where the target audio is audio obtained after the original audio is processed by a target signal processing algorithm, the target audio includes a first non-noise signal, and the original audio includes a second non-noise signal;

[0007] Obtaining a first non-noise gain of the first non-noise signal according to the target audio;

[0008] Acquire a second non-noise gain of the second non-noise signal;

[0009] Based on the difference between the first non-noise gain and the second non-noise gain, a non-noise signal processing index of the target signal processing algorithm is determined, and the non-noise signal processing index represents the processing effect of the target signal processing algorithm on the non-noise signal in the audio.

[0010] In combination with any implementation manner of the present application, obtaining a first non-noise gain of the first non-noise signal according to the target audio includes:

[0011] Divide the target audio into n first audio frames;

[0012] According to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames are obtained as the first non-noise gains, and the third non-noise gains correspond to the first audio frames one by one.

[0013] In combination with any implementation manner of the present application, the obtaining of the target audio includes:

[0014] Acquire the target signal processing algorithm, the second non-noise signal and the original noise signal;

[0015] fusing the second non-noise signal and the original noise signal to obtain the original audio;

[0016] The target audio is processed using the target signal processing algorithm to obtain the target audio.

[0017] In combination with any implementation manner of the present application, dividing the target audio into n first audio frames includes:

[0018] Aligning the target audio with the second non-noise signal to obtain aligned target audio;

[0019] The aligned target audio is divided into n audio frames to obtain the n first audio frames.

[0020] In combination with any embodiment of the present application, the original audio includes n second audio frames, and the first audio frame corresponds to the second audio frame one by one; the second non-noise gain includes n fourth non-noise gains, and the n fourth non-noise gains are the gains of non-noise signals in the n second audio frames;

[0021] The determining, based on the difference between the first non-noise gain and the second non-noise gain, a non-noise signal processing index of the target signal processing algorithm comprises:

[0022] respectively determining differences between the n third non-noise gains and two corresponding gains of the n fourth non-noise gains to obtain n first differences;

[0023] A non-noise signal processing index of the target signal processing algorithm is determined according to the n first difference values.

[0024] In combination with any embodiment of the present application, the non-noise signal processing index includes a distortion index, and a larger distortion index indicates that the target signal processing algorithm causes greater damage to the non-noise signal in the audio;

[0025] Determining the non-noise signal processing index of the target signal processing algorithm according to the n first difference values ​​includes:

[0026] The distortion index is determined according to the n first differences.

[0027] In combination with any implementation manner of the present application, the target audio further includes a target noise signal; after dividing the target audio into n first audio frames, the method further includes:

[0028] Determine, according to the n first audio frames, the gain of the target noise signal in the n first audio frames to obtain n first noise gains, where the first noise gains correspond to the first audio frames one by one;

[0029] A noise reduction index of the target signal processing algorithm is determined according to the n first noise gains, where the noise reduction index represents an effect of the target signal processing algorithm on removing noise signals in the audio.

[0030] In combination with any embodiment of the present application, the original audio further includes an original noise signal, the noise reduction index includes a noise signal suppression index, and a larger noise signal suppression index indicates that the target signal processing algorithm suppresses the noise signal in the audio more;

[0031] Determining the noise reduction index of the target signal processing algorithm according to the n first noise gains includes:

[0032] Acquire n second noise gains of the original noise signal in the n second audio frames, where the second noise gains correspond to the second audio frames one by one;

[0033] respectively determining differences between the n first noise gains and two corresponding gains of the n second noise gains to obtain n second differences;

[0034] The noise signal suppression index is determined according to the n second difference values.

[0035] In combination with any embodiment of the present application, the noise reduction index includes a noise signal residual index, and a larger noise signal residual index indicates that more noise signals remain in the audio after the audio is processed by the target signal processing algorithm;

[0036] Determining the noise reduction index of the target signal processing algorithm according to the n first noise gains includes:

[0037] The noise signal residual indicator is determined according to the n first noise gains.

[0038] In combination with any implementation manner of the present application, after obtaining the n second difference values, the method further includes:

[0039] Determine the difference between two difference values ​​with adjacent timestamps among the n second difference values ​​to obtain a third difference value;

[0040] The stability index of the target signal processing algorithm is determined according to the third difference, the third difference is negatively correlated with the stability index, and a larger stability index indicates a better stability of the target signal processing algorithm.

[0041] In combination with any implementation manner of the present application, after obtaining n first difference values, the method further includes:

[0042] Determine the difference between two difference values ​​with adjacent timestamps among the n first difference values ​​to obtain a fourth difference value;

[0043] The stability index of the target signal processing algorithm is determined according to the fourth difference, the fourth difference is negatively correlated with the stability index, and a larger stability index indicates better stability of the target signal processing algorithm.

[0044] In combination with any implementation manner of the present application, after determining the stability of the target signal processing algorithm according to the third difference, the method further includes:

[0045] The non-noise signal processing index, the noise reduction index and the stability index are integrated to obtain a target evaluation index of the target signal processing algorithm;

[0046] Acquire a target mapping relationship, where the target mapping relationship represents a mapping between an evaluation index and an evaluation score of the audio;

[0047] A target evaluation score of the target audio is determined according to the target mapping relationship and the target evaluation index, wherein the target evaluation score represents the sound quality of the target audio.

[0048] In combination with any implementation manner of the present application, the n first audio frames include a third audio frame, and the n third non-noise gains include a fifth non-noise gain corresponding to the third audio frame;

[0049] The obtaining, according to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames comprises:

[0050] Performing Fourier transform on the third audio frame to obtain m frequency points;

[0051] Determine the gains of the non-noise signals of the m frequency points to obtain m sixth non-noise gains, wherein the sixth non-noise gains correspond one-to-one to the frequency points;

[0052] The fifth non-noise gain is obtained according to the m sixth non-noise gains.

[0053] In combination with any implementation manner of the present application, the target signal processing algorithm includes: an audio noise reduction algorithm and an audio encoding and decoding algorithm.

[0054] In a second aspect, an audio processing device is provided, the device comprising:

[0055] An acquisition unit, configured to acquire a target audio, wherein the target audio is an audio obtained after the original audio is processed by a target signal processing algorithm, the target audio includes a first non-noise signal, and the original audio includes a second non-noise signal;

[0056] a processing unit, configured to obtain a first non-noise gain of the first non-noise signal according to the target audio;

[0057] The acquisition unit is further used to acquire a second non-noise gain of the second non-noise signal;

[0058] A determination unit is used to determine a non-noise signal processing index of the target signal processing algorithm based on a difference between the first non-noise gain and the second non-noise gain, wherein the non-noise signal processing index represents a processing effect of the target signal processing algorithm on the non-noise signal in the audio.

[0059] In combination with any embodiment of the present application, the processing unit is used to:

[0060] Divide the target audio into n first audio frames;

[0061] According to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames are obtained as the first non-noise gains, and the third non-noise gains correspond to the first audio frames one by one.

[0062] In combination with any implementation manner of the present application, the acquisition unit is used to:

[0063] Acquire the target signal processing algorithm, the second non-noise signal and the original noise signal;

[0064] fusing the second non-noise signal and the original noise signal to obtain the original audio;

[0065] The target audio is processed using the target signal processing algorithm to obtain the target audio.

[0066] In combination with any embodiment of the present application, the processing unit is used to:

[0067] Aligning the target audio with the second non-noise signal to obtain aligned target audio;

[0068] The aligned target audio is divided into n audio frames to obtain the n first audio frames.

[0069] In combination with any embodiment of the present application, the original audio includes n second audio frames, and the first audio frame corresponds to the second audio frame one by one; the second non-noise gain includes n fourth non-noise gains, and the n fourth non-noise gains are the gains of non-noise signals in the n second audio frames;

[0070] The determining unit is used for:

[0071] respectively determining differences between the n third non-noise gains and two corresponding gains of the n fourth non-noise gains to obtain n first differences;

[0072] A non-noise signal processing index of the target signal processing algorithm is determined according to the n first difference values.

[0073] In combination with any embodiment of the present application, the non-noise signal processing index includes a distortion index, and a larger distortion index indicates that the target signal processing algorithm causes greater damage to the non-noise signal in the audio;

[0074] The determining unit is used for:

[0075] The distortion index is determined according to the n first differences.

[0076] In combination with any embodiment of the present application, the target audio further includes a target noise signal; and the determining unit is further configured to:

[0077] Determine, according to the n first audio frames, the gain of the target noise signal in the n first audio frames to obtain n first noise gains, where the first noise gains correspond to the first audio frames one by one;

[0078] A noise reduction index of the target signal processing algorithm is determined according to the n first noise gains, where the noise reduction index represents an effect of the target signal processing algorithm on removing noise signals in the audio.

[0079] In combination with any embodiment of the present application, the original audio further includes an original noise signal, the noise reduction index includes a noise signal suppression index, and a larger noise signal suppression index indicates that the target signal processing algorithm suppresses the noise signal in the audio more;

[0080] The determining unit is used for:

[0081] Acquire n second noise gains of the original noise signal in the n second audio frames, where the second noise gains correspond to the second audio frames one by one;

[0082] respectively determining differences between the n first noise gains and two corresponding gains of the n second noise gains to obtain n second differences;

[0083] The noise signal suppression index is determined according to the n second difference values.

[0084] In combination with any embodiment of the present application, the noise reduction index includes a noise signal residual index, and a larger noise signal residual index indicates that more noise signals remain in the audio after the audio is processed by the target signal processing algorithm;

[0085] The determining unit is used for:

[0086] The noise signal residual indicator is determined according to the n first noise gains.

[0087] In combination with any implementation manner of the present application, the determining unit is further configured to:

[0088] Determine the difference between two difference values ​​with adjacent timestamps among the n second difference values ​​to obtain a third difference value;

[0089] The stability index of the target signal processing algorithm is determined according to the third difference, the third difference is negatively correlated with the stability index, and a larger stability index indicates a better stability of the target signal processing algorithm.

[0090] In combination with any implementation manner of the present application, the determining unit is further configured to:

[0091] Determine the difference between two difference values ​​with adjacent timestamps among the n first difference values ​​to obtain a fourth difference value;

[0092] The stability index of the target signal processing algorithm is determined according to the fourth difference, the fourth difference is negatively correlated with the stability index, and a larger stability index indicates better stability of the target signal processing algorithm.

[0093] In combination with any embodiment of the present application, the processing unit is further used to fuse the non-noise signal processing index, the noise reduction index and the stability index to obtain a target evaluation index of the target signal processing algorithm;

[0094] The acquisition unit is further used to acquire a target mapping relationship, where the target mapping relationship represents a mapping between an evaluation index and an evaluation score of the audio;

[0095] The determination unit is further used to determine a target evaluation score of the target audio according to the target mapping relationship and the target evaluation index, wherein the target evaluation score represents the sound quality of the target audio.

[0096] In combination with any implementation manner of the present application, the n first audio frames include a third audio frame, and the n third non-noise gains include a fifth non-noise gain corresponding to the third audio frame;

[0097] The processing unit is used for:

[0098] Performing Fourier transform on the third audio frame to obtain m frequency points;

[0099] Determine the gains of the non-noise signals of the m frequency points to obtain m sixth non-noise gains, wherein the sixth non-noise gains correspond one-to-one to the frequency points;

[0100] The fifth non-noise gain is obtained according to the m sixth non-noise gains.

[0101] In combination with any implementation manner of the present application, the target signal processing algorithm includes: an audio noise reduction algorithm and an audio encoding and decoding algorithm.

[0102] According to a third aspect, an electronic device is provided, comprising: a processor and a memory, wherein the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to the first aspect and any possible implementation thereof.

[0103] In a fourth aspect, another electronic device is provided, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the first aspect and any one of its embodiments.

[0104] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor, the processor is caused to execute the first aspect and any one of its embodiments.

[0105] In a sixth aspect, a computer program product is provided, wherein the computer program product comprises a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is enabled to execute the above-mentioned first aspect and any embodiment thereof.

[0106] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0107] Because the target audio is the audio after the original audio is processed by the target signal processing algorithm, the target audio includes the first non-noise signal, and the original audio includes the second non-noise signal, so the first non-noise signal is obtained by processing the second non-noise signal by the target signal processing algorithm. Since the target signal processing algorithm may process the second non-noise signal in the original audio during the process of processing the original audio, thereby causing the gain of the second non-noise signal to change, there may be a difference between the first non-noise gain and the second non-noise gain, and the difference is caused by the processing of the target signal processing algorithm. Therefore, in an embodiment of the present application, after obtaining the target audio, the audio processing device obtains the first non-noise gain of the first non-noise signal according to the target audio, and then after obtaining the second non-noise gain of the second non-noise signal, it can determine the non-noise signal processing index of the target signal processing algorithm based on the difference between the first non-noise gain and the second non-noise gain.

[0108] Moreover, since the non-noise signal processing index of the target signal processing algorithm is determined based on the difference between the first non-noise gain and the second non-noise gain, the noise signal in the target audio and the original noise signal are not involved. By determining the non-noise signal processing index of the target signal processing algorithm by this method, the interference of the noise signal can be reduced, and the accuracy of the non-noise signal processing index can be improved. Therefore, the processing effect of the target signal processing algorithm can be evaluated based on the non-noise signal processing index, and the accuracy of the evaluation result can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0110] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0111] Figure 1 A schematic diagram of a signal processing algorithm provided in an embodiment of the present application for processing audio;

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

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

[0114] Figure 4 A schematic diagram of the structure of an audio processing device provided in an embodiment of the present application;

[0115] Figure 5A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0116] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0117] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0118] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0119] In order to improve the quality of audio, it is usually necessary to use a signal processing algorithm to process the audio. The effect of the signal processing algorithm on the audio will directly determine the quality of the processed audio. Therefore, it is very important to evaluate the effect of the signal processing algorithm on the audio.

[0120] In current technology, the effect of a signal processing algorithm on audio is usually evaluated directly based on the quality of the audio before and after being processed by the signal processing algorithm. However, audio includes non-noise signals and noise signals, and the signal processing algorithm processes both non-noise signals and noise signals when processing audio, and current technology does not analyze the composition of audio. Therefore, if the effect of a signal processing algorithm on audio is evaluated based on current technology, it will be impossible to determine the effect of the signal processing algorithm on non-noise signals and noise signals, which will lead to low accuracy of the evaluation results.

[0121] For example, in current technology, the processing effect of an audio processing algorithm is often evaluated through perceptual evaluation of speech quality (PESQ). Specifically, after obtaining a non-noise signal and a noise signal, the audio before processing is obtained by fusing the non-noise signal and the noise signal, and the audio before processing is processed using a signal processing algorithm to obtain the processed audio, and finally the processing effect of the signal processing algorithm on the audio before processing is determined based on the difference between the processed audio and the non-noise signal. Obviously, this evaluation method does not analyze the components in the audio, and it is difficult to evaluate the effect of the signal processing algorithm on removing the noise signal in the audio before processing and whether the signal processing algorithm damages the non-noise signal in the audio before processing, resulting in low accuracy of the evaluation result.

[0122] For example, Figure 1 FIG. 1 shows a schematic diagram of a signal processing algorithm for processing audio. Figure 1 As shown, the synthesized audio consists of a speech signal (ie, a non-noise signal) and a noise signal, and the resultant audio (evaluation audio) obtained by performing signal processing on the synthesized audio using a signal processing algorithm also consists of a non-noise signal (ie, a speech signal) and a noise signal.

[0123] Specifically, by fusing the speech signal with the noise signal, a synthesized audio can be obtained, wherein the signal-to-noise ratio of the synthesized audio is 6 dB, and the synthesized audio can be expressed as: y(synthesized audio) = 2×S+N, wherein S represents a non-noise signal and N represents a noise signal. The signal-to-noise ratio of the resultant audio obtained by the signal processing algorithm is increased to 12 dB, and the resultant audio can be expressed as: Y(synthesized audio) = 2×S+0.5×N, wherein S represents a non-noise signal and N represents a noise signal.

[0124] In other words, the improvement of the signal-to-noise ratio is caused by reducing the gain of the noise, and the signal processing algorithm does not damage the non-noise signal (i.e., the speech signal) in the synthesized audio. If the processing effect of the signal processing algorithm is evaluated based on the current technology, it can only be determined that the signal processing algorithm can improve the signal-to-noise ratio, but it is impossible to determine the processing effect of the signal processing algorithm on the non-noise signal and the processing effect on the noise signal.

[0125] Based on this, an embodiment of the present application provides an audio processing method to determine the processing effect of a signal processing algorithm on a non-noise signal and the processing effect on a noise signal.

[0126] The execution subject of the embodiment of the present application is an audio processing device, wherein the audio processing device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the audio processing device can be one of the following: a computer, a server.

[0127] It should be understood that the method embodiment of the present application can also be implemented by a processor executing a computer program code. The following describes the embodiment of the present application in conjunction with the drawings in the embodiment of the present application. Figure 2 , Figure 2 It is a flowchart of an audio processing method provided in an embodiment of the present application.

[0128] 201. Obtain target audio.

[0129] In the embodiment of the present application, the target audio is the audio obtained after the original audio is processed by the target signal processing algorithm, wherein the original audio can be any audio segment. For example, the original audio is a speech segment, another example, the original audio is a segment of audio in a video, and another example, the original audio is a piece of music. The target signal processing algorithm can be any algorithm for processing audio, for example, the target signal processing algorithm is an algorithm for performing noise reduction processing on audio, and another example, the target signal processing algorithm is an audio codec algorithm, that is, the target signal processing algorithm can be used to encode and decode audio.

[0130] In the embodiment of the present application, the non-noise signal (including the first non-noise signal, the second non-noise signal and the second non-noise signal to be mentioned below) is a signal other than the noise signal in the audio. The target audio includes the first non-noise signal, and the original audio includes the second non-noise signal, that is, the signal other than the noise signal in the target audio is the first non-noise signal, and the signal other than the noise signal in the original audio is the second non-noise signal. Since the target audio is the audio obtained by processing the original audio using the target signal processing algorithm, and the target signal processing algorithm processes the non-noise signal in the original audio during the process of processing the original audio, the first non-noise signal is the result obtained by processing the second non-noise signal by the target signal processing algorithm.

[0131] In one possible implementation, the audio processing device obtains a target signal processing algorithm, a second non-noise signal, and an original noise signal. The second non-noise signal and the original noise signal are fused to obtain the original audio. Optionally, the audio processing device fuses the second non-noise signal and the original noise signal according to a target signal-to-noise ratio to obtain the original audio. In the original audio, the ratio of the intensity of the second non-noise signal to the intensity of the original noise signal is the target signal-to-noise ratio, that is, the ratio of the amplitude of the second non-noise signal to the amplitude of the original noise signal is the target signal-to-noise ratio. The original audio is processed using the target signal processing algorithm to obtain the target audio.

[0132] In another implementation of acquiring the target audio, the audio processing device receives the target audio input by the user through an input component to acquire the target audio. The input component includes at least one of the following: a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.

[0133] In another implementation of acquiring the target audio, the audio processing device receives the target audio sent by the terminal to acquire the target audio. The terminal may be any of the following: a mobile phone, a computer, a tablet computer, or a server.

[0134] In yet another implementation of acquiring the target audio, the audio processing device, upon acquiring the original audio and the target signal processing algorithm, uses the target signal processing algorithm to process the original audio to obtain the target audio.

[0135] 202. Obtain a first non-noise gain of the first non-noise signal according to the target audio.

[0136] In the embodiment of the present application, the non-noise gain (including the first non-noise gain mentioned above, and the second non-noise gain, the third non-noise gain, the fourth non-noise gain, the fifth non-noise gain, and the sixth non-noise gain to be mentioned below) are all gains of the amplitude of the non-noise signal in the audio. Specifically, the audio includes a non-noise signal and a noise signal, and the audio = a×non-noise signal+b×noise signal, where a is the non-noise gain and b is the gain of the noise signal.

[0137] In one possible implementation, the audio processing device obtains at least one frequency point of the target audio by performing Fourier transform on the target audio, and obtains a first non-noise gain of the first non-noise signal according to the amplitude of the at least one frequency point of the target audio and the phase of the at least one frequency point of the target audio.

[0138] 203. Obtain a second non-noise gain of the second non-noise signal.

[0139] In the embodiment of the present application, the gain of the second non-noise signal is referred to as a second non-noise gain. In an implementation of obtaining the second non-noise gain, the audio processing device receives a second non-noise gain input by a user through an input component to obtain the second non-noise gain.

[0140] In another implementation manner of acquiring the second non-noise gain, the audio processing device receives the second non-noise gain sent by the terminal to acquire the second non-noise gain.

[0141] In yet another implementation of obtaining the second non-noise gain, the audio processing device obtains the second non-noise gain of the second non-noise signal according to the original audio when the original audio is obtained.

[0142] 204. Determine a non-noise signal processing index of the target signal processing algorithm based on a difference between the first non-noise gain and the second non-noise gain.

[0143] In an embodiment of the present application, the non-noise signal processing index characterizes the processing effect of the target signal processing algorithm on the non-noise signal in the audio. In one possible implementation, the processing effect of the target signal processing algorithm on the non-noise signal in the audio includes a distortion index, wherein the distortion index characterizes the damage of the target signal processing algorithm to the non-noise signal in the audio, and specifically, the larger the distortion index, the greater the damage of the target signal processing algorithm to the non-noise signal in the audio.

[0144] Since the target signal processing algorithm processes the original audio, it may damage the second non-noise signal in the original audio, thereby causing the gain of the second non-noise signal to change, and the first non-noise signal is obtained by processing the second non-noise signal through the target signal processing algorithm, there may be a difference between the first non-noise gain and the second non-noise gain, and the difference is caused by the processing of the target signal processing algorithm. Therefore, the audio processing device can determine the distortion index based on the difference between the first non-noise gain and the second non-noise gain. Specifically, the audio processing device determines the fifth difference between the first non-noise gain and the second non-noise gain, and when the fifth difference is a negative number, it is determined that the target signal processing algorithm will damage the non-noise signal in the audio, and the smaller the fifth difference is, the greater the damage to the non-noise signal in the audio by the target signal processing algorithm is, so the audio processing device can determine the distortion index according to the fifth difference.

[0145] In another possible implementation, the processing effect of the target signal processing algorithm on the non-noise signal in the audio includes an enhancement index, wherein the enhancement index represents the enhancement of the non-noise signal in the audio by the target signal processing algorithm, and specifically, the larger the enhancement index is, the greater the enhancement of the non-noise signal in the audio by the target signal processing algorithm is. Specifically, the audio processing device determines the fifth difference between the first non-noise gain and the second non-noise gain, and when the fifth difference is a positive number, determines that the target signal processing algorithm can enhance the non-noise signal in the audio, and the larger the fifth difference is, the greater the degree of enhancement of the non-noise signal in the audio by the target signal processing algorithm is, so the audio processing device can determine the enhancement index according to the fifth difference.

[0146] Because the target audio is the audio after the original audio is processed by the target signal processing algorithm, the target audio includes the first non-noise signal, and the original audio includes the second non-noise signal, so the first non-noise signal is obtained by processing the second non-noise signal by the target signal processing algorithm. Since the target signal processing algorithm may process the second non-noise signal in the original audio during the process of processing the original audio, thereby causing the gain of the second non-noise signal to change, there may be a difference between the first non-noise gain and the second non-noise gain, and the difference is caused by the processing of the target signal processing algorithm. Therefore, in an embodiment of the present application, after obtaining the target audio, the audio processing device obtains the first non-noise gain of the first non-noise signal according to the target audio, and then after obtaining the second non-noise gain of the second non-noise signal, it can determine the non-noise signal processing index of the target signal processing algorithm based on the difference between the first non-noise gain and the second non-noise gain.

[0147] Moreover, since the non-noise signal processing index of the target signal processing algorithm is determined based on the difference between the first non-noise gain and the second non-noise gain, the noise signal in the target audio and the original noise signal are not involved. By determining the non-noise signal processing index of the target signal processing algorithm by this method, the interference of the noise signal can be reduced, and the accuracy of the non-noise signal processing index can be improved. Therefore, the processing effect of the target signal processing algorithm can be evaluated based on the non-noise signal processing index, and the accuracy of the evaluation result can be improved.

[0148] As an optional implementation, the audio processing device performs the following steps during the process of executing step 202:

[0149] 301. Divide the target audio into n first audio frames.

[0150] In the embodiment of the present application, n is an integer greater than 1. The audio processing device can obtain a first audio frame of a segment by dividing the target audio into n segments.

[0151] In one possible implementation, the audio processing device aligns the target audio with the second non-noise signal to obtain an aligned target audio, so that the target audio is aligned with the same phoneme in the second non-noise signal. The aligned target audio is divided into n audio frames to obtain the above n first audio frames.

[0152] 302. Obtain, according to the n first audio frames, n third non-noise gains of non-noise signals in the n first audio frames as the first non-noise gains.

[0153] In an embodiment of the present application, the third non-noise gain is the non-noise gain of the first audio frame, and the third non-noise gain corresponds to the first audio frame one-to-one. In one possible implementation, the audio processing device obtains at least one frequency point of the first audio frame by performing Fourier transform on the first audio frame. The third non-noise gain of the first audio frame is obtained according to the amplitude of at least one frequency point of the first audio frame and the phase of at least one frequency point of the first audio frame. The audio processing device can obtain the third non-noise gain of each segment of the first audio frame according to n segments of the first audio frame, and then obtain n third non-noise gains.

[0154] Specifically, the n first audio frames include a third audio frame, wherein the third audio frame is any one of the n first audio frames, and the n third non-noise gains include a fifth non-noise gain corresponding to the third audio frame. The audio processing device determines the fifth non-noise gain of the third audio frame by performing the following steps: performing Fourier transform on the third audio frame to obtain m frequency points of the third audio frame, wherein m is a positive integer. Determine the gains of the non-noise signals of the m frequency points to obtain m sixth non-noise gains, wherein the sixth non-noise gains all correspond one-to-one to the frequency points of the third audio frame. According to the m sixth non-noise gains, the fifth non-noise gain is obtained.

[0155] After obtaining the n third non-noise gains, the audio processing device uses the n third non-noise gains as the first non-noise gain, that is, the first non-noise gain includes the n third non-noise gains.

[0156] In this embodiment, the audio processing device first divides the target audio into n first audio frames, then determines the third non-noise gain of each first audio frame to obtain n third non-noise gains, and finally uses the n third non-noise gains as the first non-noise gain, thereby increasing the speed of obtaining the first non-noise gain.

[0157] As an optional implementation, the original audio includes n second audio frames, wherein the first audio frame corresponds to the second audio frame one-to-one, that is, the first audio frame and the second audio frame having a corresponding relationship include the same phoneme. The second non-noise gain includes n fourth non-noise gains, wherein the n fourth non-noise gains are the gains of the non-noise signals in the n second audio frames, and the fourth non-noise gains correspond to the second audio frames one-to-one.

[0158] In this implementation, the audio processing device performs the following steps during the process of executing step 204:

[0159] 401. Determine differences between two corresponding gains of the n third non-noise gains and the n fourth non-noise gains respectively to obtain n first differences.

[0160] In the embodiment of the present application, the two corresponding gains among the n third non-noise gains and the n fourth non-noise gains refer to the correspondence between the first audio frame corresponding to the third non-noise gain and the second audio frame corresponding to the fourth non-noise gain. For example, the n first audio frames include the first audio frame a, and the audio frame corresponding to the first audio frame a among the n second audio frames is the second audio frame b, then the third non-noise gain of the first audio frame a and the fourth non-noise gain of the second audio frame b are two corresponding gains.

[0161] The audio processing device determines the difference between two corresponding gains among the n third non-noise gains and the n fourth non-noise gains to obtain a first difference, that is, the result of subtracting the corresponding fourth non-noise gain from the third non-noise gain is determined to obtain a first difference. The audio processing device determines the difference between all the corresponding two gains to obtain n first differences.

[0162] 402. Determine a non-noise signal processing index of the target signal processing algorithm according to the n first differences.

[0163] The first difference is the difference between the two corresponding non-noise gains, that is, the first difference can characterize the difference between the non-noise signal in the target audio and the non-noise signal in the original audio. As mentioned above, the difference between the non-noise signal in the target audio and the non-noise signal in the original audio is caused by the processing of the target signal processing algorithm. Specifically, the difference is caused by the target signal processing algorithm processing the non-noise signal in the original audio. Therefore, the audio processing device can determine the processing effect of the target signal processing algorithm on the non-noise signal in the original audio based on the n first differences.

[0164] In an embodiment of the present application, the non-noise signal processing index characterizes the processing effect of the target signal processing algorithm on the non-noise signal in the original audio. In one possible implementation, the non-noise signal processing index includes a distortion index, wherein the larger the distortion index, the greater the damage of the target signal processing algorithm to the non-noise signal in the audio. At this time, if the third non-noise gain is less than the fourth non-noise gain, it means that the target signal processing algorithm has damaged the non-noise signal in the original audio, that is, the target has damaged the non-noise signal in the audio, and the larger the first difference is, the greater the damage of the target signal processing algorithm to the non-noise signal in the audio.

[0165] The audio processing device obtains a first average value by averaging n first difference values. When the first average value is less than 0, the non-noise signal processing index of the target signal processing algorithm is determined according to the first average value, wherein the smaller the first average value, the greater the damage of the target signal processing algorithm to the non-noise signal in the audio is represented by the non-noise signal processing index.

[0166] In this embodiment, after the audio processing device determines the difference between two corresponding gains among the n third non-noise gains and the n fourth non-noise gains to obtain n first difference values, it determines the non-noise signal processing index of the target signal processing algorithm according to the n first difference values, thereby improving the accuracy of the non-noise signal processing index.

[0167] As an optional implementation manner, the target audio further includes a target noise signal. After dividing the target audio into n first audio frames, the audio processing device further performs the following steps:

[0168] 501. Determine, according to the n first audio frames, gains of noise signals in the n first audio frames to obtain n first noise gains.

[0169] In an embodiment of the present application, the first noise gain is the noise gain of the first audio frame. Specifically, the first noise gain is the gain of the target noise signal in each segment of the first audio frame, and the first noise gain corresponds to the first audio frame one by one. In one possible implementation, the audio processing device obtains at least one frequency point of the first audio frame by performing Fourier transform on the first audio frame. According to the amplitude of at least one frequency point of the first audio frame and the phase of at least one frequency point of the first audio frame, the first noise gain of the first audio frame is obtained. The audio processing device can obtain the first noise gain of each segment of the first audio frame according to n segments of the first audio frame, and then obtain n first noise gains.

[0170] 502. Determine a noise reduction index of the target signal processing algorithm according to the n first noise gains.

[0171] In an embodiment of the present application, the noise reduction index represents the effect of the target signal processing algorithm on removing the noise signal in the audio. In one possible implementation, the noise reduction index includes a noise residual index, wherein the larger the noise signal residual index is, the more noise signals remain in the audio after the audio is processed by the target signal processing algorithm.

[0172] Since the first noise gain can characterize the intensity of the target noise signal in the target audio, and the target audio is the audio obtained by the target signal processing algorithm, the residue of the noise signal in the audio processed by the target signal processing algorithm can be determined according to the first noise gain. Therefore, the audio processing device can determine the noise signal residue index according to the n first noise gains, and optionally, the audio processing device determines the average value of the n first noise gains to obtain a second average value, and determines the noise signal residue index of the target signal processing algorithm according to the second average value, wherein the second average value is positively correlated with the noise signal residue index.

[0173] In another possible implementation, the noise reduction index includes a noise signal suppression index, wherein the larger the noise signal suppression index is, the greater the suppression of the noise signal in the audio by the target signal processing algorithm is. In this implementation, the original audio also includes the original noise signal, and in this case, each second audio frame includes a noise signal. The audio processing device obtains n second noise gains of the original noise signal in n second audio frames, wherein the second noise gain is the gain of the original noise signal in each second audio frame, and the second noise gain corresponds to the second audio frame one-to-one. Optionally, the audio processing device obtains at least one frequency point of the second audio frame by performing Fourier transform on the second audio frame. According to the amplitude of at least one frequency point of the second audio frame and the phase of at least one frequency point of the second audio frame, the second noise gain of the noise signal in the second audio frame is obtained.

[0174] The audio processing device determines the difference between the two corresponding gains of the n first noise gains and the n second noise gains, respectively, to obtain n second differences. In the embodiment of the present application, the two corresponding gains of the n first noise gains and the n second noise gains refer to the correspondence between the first audio frame corresponding to the first noise gain and the second audio frame corresponding to the second noise gain. For example, the n first audio frames include the first audio frame a, and the audio frame corresponding to the first audio frame a in the n second audio frames is the second audio frame b, then the first noise gain of the first audio frame a and the second noise gain of the second audio frame b are two corresponding gains. The audio processing device determines the difference between the two corresponding gains of the n first noise gains and the n second noise gains to obtain a second difference, that is, to determine the result of subtracting the corresponding second noise gain from the first non-noise gain to obtain a second difference. The audio processing device determines the difference between all the corresponding two gains to obtain n second differences.

[0175] The second difference is the difference between the two corresponding noise gains, that is, the second difference can characterize the difference between the noise signal in the target audio and the noise signal in the original audio. As mentioned above, the difference between the noise signal in the target audio and the noise signal in the original audio is caused by the processing of the target signal processing algorithm. Specifically, the difference is caused by the target signal processing algorithm processing the noise signal in the original audio. Therefore, the audio processing device can determine the suppression effect of the target signal processing algorithm on the noise signal in the original audio based on the n second differences, that is, the audio processing device can determine the noise signal suppression index based on the n second differences.

[0176] In one possible implementation, the audio processing device obtains a third average value by averaging n second difference values. The smaller the third average value is, the less the target signal processing algorithm suppresses the noise signal in the original audio, and accordingly, the smaller the value of the noise suppression index is.

[0177] In this implementation, after obtaining n first noise gains of noise signals in n first audio frames according to n first audio frames, the noise reduction index of the target signal processing algorithm is determined according to the n first noise gains, thereby improving the accuracy of the noise reduction index.

[0178] As an optional implementation manner, after respectively determining the differences between two corresponding gains of the n first noise gains and the n second noise gains to obtain n second differences, the audio processing device further performs the following steps:

[0179] 601. Determine the difference between two difference values ​​with adjacent timestamps among the n second difference values ​​to obtain a third difference value.

[0180] In the embodiment of the present application, the timestamp of the second difference is the timestamp of the first audio frame corresponding to the second difference. Two differences with adjacent timestamps among the n second differences are two second differences with adjacent timestamps of the first audio frame corresponding to the n second differences.

[0181] For example, the n first audio frames include the first audio frame a, the first audio frame b, and the first audio frame c, and the n second differences include the second difference d of the first audio frame a, the second difference e of the first audio frame b, and the second difference f of the first audio frame c. If the timestamp of the first audio frame a is adjacent to the timestamp of the first audio frame b, and the timestamp of the first audio frame b is adjacent to the timestamp of the first audio frame c, then the second difference d and the second difference e are two differences with adjacent timestamps, and the second difference e and the second difference f are two differences with adjacent timestamps.

[0182] In a possible implementation, the audio processing device calculates the second difference with the smaller time stamp among two second differences with adjacent time stamps minus the second difference with the larger time stamp among two gains with adjacent time stamps to obtain a third difference. For example, the second difference d and the second difference e are two gains with adjacent time stamps among n second differences, wherein the time stamp of the second difference d is smaller than the gain of the second difference e. At this time, the third difference is: second difference d-second difference e.

[0183] In a possible implementation, the audio processing device calculates the second difference with a larger time stamp among two second differences with adjacent timestamps minus the second difference with a smaller time stamp among two gains with adjacent timestamps to obtain a third difference. For example, the second difference d and the second difference e are two gains with adjacent timestamps among n second differences, wherein the timestamp of the second difference d is smaller than the gain of the second difference e. At this time, the third difference is: second difference e-second difference d.

[0184] 602. Determine a stability index of the target signal processing algorithm according to the third difference.

[0185] In the embodiment of the present application, the larger the stability index is, the better the stability of the target signal processing algorithm is. Specifically, the better the stability of the target signal processing algorithm is, the smaller the difference in the processing effect of the target signal processing algorithm on different first audio frames is, that is, the noise reduction stability of the target signal processing algorithm is good. Therefore, the audio processing device can determine the stability index of the target signal processing algorithm according to the third difference. Specifically, the third difference is negatively correlated with the stability index, wherein the larger the stability index is, the better the stability of the target signal processing algorithm is.

[0186] In this embodiment, the audio processing device determines a third difference between two differences with adjacent timestamps among the n second differences, and determines a stability index of the target signal processing algorithm based on the third difference, thereby determining the stability of the target signal processing algorithm based on the stability index.

[0187] As an optional implementation, after obtaining the n first difference values, the audio processing device may further determine the stability of the target signal processing algorithm by performing the following steps:

[0188] 701. Determine the difference between two difference values ​​with adjacent timestamps among the n first difference values ​​to obtain a fourth difference value.

[0189] In the embodiment of the present application, the timestamp of the first difference is the timestamp of the first audio frame corresponding to the first difference. Two differences with adjacent timestamps among the n first differences are two first differences with adjacent timestamps of the first audio frame corresponding to the n first differences.

[0190] For example, the n first audio frames include the first audio frame a, the first audio frame b, and the first audio frame c, and the n first differences include the first difference d of the first audio frame a, the first difference e of the first audio frame b, and the first difference f of the first audio frame c. If the timestamp of the first audio frame a is adjacent to the timestamp of the first audio frame b, and the timestamp of the first audio frame b is adjacent to the timestamp of the first audio frame c, then the first difference d and the first difference e are two differences with adjacent timestamps, and the first difference e and the first difference f are two differences with adjacent timestamps.

[0191] In a possible implementation, the audio processing device calculates the first difference with a smaller time stamp among two first differences with adjacent timestamps minus the first difference with a larger time stamp among two gains with adjacent timestamps to obtain a fourth difference. For example, the first difference d and the first difference e are two gains with adjacent timestamps among n first differences, wherein the timestamp of the first difference d is smaller than the gain of the first difference e. At this time, the fourth difference is: the first difference d-the first difference e.

[0192] In a possible implementation, the audio processing device calculates the first difference with a larger time stamp among two first differences with adjacent timestamps minus the first difference with a smaller time stamp among two gains with adjacent timestamps to obtain a fourth difference. For example, the first difference d and the first difference e are two gains with adjacent timestamps among n first differences, wherein the timestamp of the first difference d is smaller than the gain of the first difference e. At this time, the fourth difference is: the first difference e-the first difference d.

[0193] 702. Determine a stability index of the target signal processing algorithm according to the fourth difference.

[0194] In the embodiment of the present application, the fourth difference is negatively correlated with the stability index, wherein a larger stability index indicates a better stability of the target signal processing algorithm.

[0195] In this embodiment, the audio processing device determines a fourth difference between two differences with adjacent timestamps among the n first differences, and determines a stability index of the target signal processing algorithm based on the fourth difference, thereby determining the stability of the target signal processing algorithm based on the stability index.

[0196] As an optional implementation, after obtaining the third difference and the fourth difference, the audio processing device determines a stability index of the target signal processing algorithm based on the third difference and the fourth difference, wherein the stability index is negatively correlated with both the third difference and the fourth difference.

[0197] As an optional implementation, after determining the stability of the target signal processing algorithm, the audio processing device further performs the following steps:

[0198] 801. The non-noise signal processing index, the noise reduction index and the stability index are integrated to obtain a target evaluation index of the target signal processing algorithm.

[0199] In a possible implementation, the audio processing device obtains a target evaluation index of a target signal processing algorithm by performing weighted summation on a non-noise signal processing index, a noise reduction index, and a stability index.

[0200] 802. Obtain a target mapping relationship.

[0201] In the embodiment of the present application, the target mapping relationship represents the mapping between the evaluation index and the evaluation score, wherein the evaluation score represents the processing effect of the target signal processing algorithm. Specifically, the higher the evaluation score, the better the processing effect of the target signal processing algorithm.

[0202] 803. Determine a target evaluation score for the target audio according to the target mapping relationship and the target evaluation index.

[0203] In the embodiment of the present application, the target evaluation score represents the sound quality of the target audio. Optionally, a larger target evaluation score indicates a higher sound quality of the target audio. Since the target audio is the audio obtained after being processed by the target signal processing algorithm, the higher the sound quality of the target audio, the higher the sound quality of the audio obtained after being processed by the target signal processing algorithm, which also indicates that the processing effect of the target signal processing algorithm is better.

[0204] In this embodiment, after obtaining the non-noise signal processing index, the noise reduction index and the stability index, the audio processing device obtains the target evaluation index of the target signal processing algorithm by fusing the non-noise signal processing index, the noise reduction index and the stability index. After obtaining the target mapping relationship, the target evaluation score of the target audio is determined according to the target mapping relationship and the target evaluation index, so that the processing effect of the target signal processing algorithm can be evaluated by the target evaluation score.

[0205] As an optional implementation method, the audio processing device obtains a statistical model, wherein the statistical model is a trained deep learning model, and the statistical model can determine the evaluation score of the audio according to the non-noise signal processing index, the noise reduction index and the stability index. The audio processing device uses the statistical model to process the non-noise signal processing index, the noise reduction index and the stability index to obtain a target evaluation score of the target audio.

[0206] As an optional implementation manner, after obtaining the target audio, the audio processing device further performs the following steps:

[0207] 901. Determine a first signal-to-noise ratio of the original audio and a second signal-to-noise ratio of the target audio.

[0208] 902. Determine a signal-to-noise ratio index of the target signal processing algorithm based on the first signal-to-noise ratio and the second signal-to-noise ratio.

[0209] In the embodiment of the present application, the signal-to-noise ratio index represents the effect of the target signal processing algorithm on improving the signal-to-noise ratio of the audio. In one possible implementation, the larger the signal-to-noise ratio index is, the greater the improvement of the signal-to-noise ratio of the audio by the target signal processing algorithm is. The audio processing device determines the difference between the second signal-to-noise ratio and the first signal-to-noise ratio to obtain a fifth difference, and determines the signal-to-noise ratio index representation according to the fifth difference, wherein the fifth difference is positively correlated with the signal-to-noise ratio index.

[0210] In this embodiment, after determining the first signal-to-noise ratio of the original audio and the second signal-to-noise ratio of the target audio, the audio processing device determines the signal-to-noise ratio index of the target signal processing algorithm based on the first signal-to-noise ratio and the second signal-to-noise ratio, so that the improvement effect of the target signal processing algorithm on the signal-to-noise ratio of the audio can be determined according to the target signal-to-noise ratio index.

[0211] See also Figure 3, Figure 3 FIG. 1 is a flow chart of another audio processing method provided in an embodiment of the present application. Figure 3 As shown, after acquiring the speech signal and the original noise signal, the audio processing device fuses the speech signal and the original noise signal according to the target signal-to-noise ratio (i.e. Figure 3 The original audio can be obtained by using the signal-to-noise ratio fusion in the above text. It should be understood that the speech signal is equivalent to the second non-noise signal described above. The original audio is processed by the target signal processing algorithm to obtain the target audio. The delay time of the same phoneme in the target audio and the speech signal is calculated, and the speech signal and the target audio are aligned according to the delay time to obtain the aligned target audio.

[0212] By framing the aligned target audio, the aligned target audio is divided into n first audio frames. By framing the speech signal, the speech signal is divided into n speech audio frames. By framing the original noise signal, the original noise signal is divided into n noise audio frames. Fourier transform is performed on each first audio frame, each speech audio frame, and each noise audio frame respectively, to achieve frequency domain transformation of the n first audio frames, n speech audio frames, and n noise audio frames, and obtain m frequency points of each first audio frame, m frequency points of each speech audio frame, and m frequency points of each noise audio frame.

[0213] After obtaining m frequency points of each first audio frame, m frequency points of each speech audio frame, and m frequency points of each noise audio frame through frequency domain transformation, the audio processing device solves the non-noise gain and the noise gain according to the m frequency points of each first audio frame, the m frequency points of each speech audio frame, and the m frequency points of each noise audio frame, and obtains the non-noise gain and the noise gain. Specifically, according to the m frequency points of each first audio frame, the gain of the non-noise signal (i.e., the speech signal) in each first audio frame and the gain of the noise signal in each first audio frame are determined respectively, and the third non-noise gain of each first audio frame and the first noise gain of each first audio frame are obtained.

[0214] According to the m frequency points of each speech audio frame, the m frequency points of each noise audio frame and the target signal-to-noise ratio, n fourth non-noise gains of the non-noise signals (i.e., speech signals) of the n second audio frames in the original audio and n second noise gains of the noise signals of the n second audio frames are determined, wherein the n second audio frames correspond one-to-one to the n first audio frames.

[0215] The audio processing device can then determine the evaluation index according to the third non-noise gain of each first audio frame, the first noise gain of each first audio frame, n fourth non-noise gains and n second noise gains (the implementation process can be specifically referred to the implementation method of determining the non-noise signal processing index, the noise reduction index and the stability index as described above). By performing index statistics on each evaluation index, the sound quality score of the target audio can be determined. Optionally, by performing weighted summation on each evaluation index, the target evaluation index of the target signal processing algorithm is obtained, and then the target evaluation score of the target audio is determined according to the target evaluation index. Finally, the processing effect of the target signal processing algorithm can be evaluated according to the target evaluation score, and the target signal processing algorithm can be optimized according to the target evaluation score to improve the processing effect of the target signal processing algorithm on the audio.

[0216] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0217] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among which, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.

[0218] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0219] See also Figure 4 , Figure 4 This is a structural diagram of an audio processing device provided in an embodiment of the present application. The audio processing device 1 includes: an acquisition unit 11, a processing unit 12, and a determination unit 13. Specifically:

[0220] An acquisition unit 11 is used to acquire a target audio, where the target audio is an audio obtained after the original audio is processed by a target signal processing algorithm, the target audio includes a first non-noise signal, and the original audio includes a second non-noise signal;

[0221] A processing unit 12, configured to obtain a first non-noise gain of the first non-noise signal according to the target audio;

[0222] The acquisition unit 11 is further configured to acquire a second non-noise gain of the second non-noise signal;

[0223] The determination unit 13 is used to determine the non-noise signal processing index of the target signal processing algorithm based on the difference between the first non-noise gain and the second non-noise gain, and the non-noise signal processing index represents the processing effect of the target signal processing algorithm on the non-noise signal in the audio.

[0224] In combination with any embodiment of the present application, the processing unit 12 is used to:

[0225] Divide the target audio into n first audio frames;

[0226] According to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames are obtained as the first non-noise gains, and the third non-noise gains correspond to the first audio frames one by one.

[0227] In combination with any embodiment of the present application, the acquisition unit 11 is used to:

[0228] Acquire the target signal processing algorithm, the second non-noise signal and the original noise signal;

[0229] fusing the second non-noise signal and the original noise signal to obtain the original audio;

[0230] The target audio is processed using the target signal processing algorithm to obtain the target audio.

[0231] In combination with any embodiment of the present application, the processing unit 12 is used to:

[0232] Aligning the target audio with the second non-noise signal to obtain aligned target audio;

[0233] The aligned target audio is divided into n audio frames to obtain the n first audio frames.

[0234] In combination with any embodiment of the present application, the original audio includes n second audio frames, and the first audio frame corresponds to the second audio frame one by one; the second non-noise gain includes n fourth non-noise gains, and the n fourth non-noise gains are the gains of non-noise signals in the n second audio frames;

[0235] The determining unit 13 is used to:

[0236] respectively determining differences between the n third non-noise gains and two corresponding gains of the n fourth non-noise gains to obtain n first differences;

[0237] A non-noise signal processing index of the target signal processing algorithm is determined according to the n first difference values.

[0238] In combination with any embodiment of the present application, the non-noise signal processing index includes a distortion index, and a larger distortion index indicates that the target signal processing algorithm causes greater damage to the non-noise signal in the audio;

[0239] The determining unit 13 is used to:

[0240] The distortion index is determined according to the n first differences.

[0241] In combination with any embodiment of the present application, the target audio further includes a target noise signal; and the determining unit 13 is further configured to:

[0242] Determine, according to the n first audio frames, the gain of the target noise signal in the n first audio frames to obtain n first noise gains, where the first noise gains correspond to the first audio frames one by one;

[0243] A noise reduction index of the target signal processing algorithm is determined according to the n first noise gains, where the noise reduction index represents an effect of the target signal processing algorithm on removing noise signals in the audio.

[0244] In combination with any embodiment of the present application, the original audio further includes an original noise signal, the noise reduction index includes a noise signal suppression index, and a larger noise signal suppression index indicates that the target signal processing algorithm suppresses the noise signal in the audio more;

[0245] The determining unit 13 is used to:

[0246] Acquire n second noise gains of the original noise signal in the n second audio frames, where the second noise gains correspond to the second audio frames one by one;

[0247] respectively determining differences between the n first noise gains and two corresponding gains of the n second noise gains to obtain n second differences;

[0248] The noise signal suppression index is determined according to the n second difference values.

[0249] In combination with any embodiment of the present application, the noise reduction index includes a noise signal residual index, and a larger noise signal residual index indicates that more noise signals remain in the audio after the audio is processed by the target signal processing algorithm;

[0250] The determining unit 13 is used to:

[0251] The noise signal residual indicator is determined according to the n first noise gains.

[0252] In combination with any implementation manner of the present application, the determining unit 13 is further configured to:

[0253] Determine the difference between two difference values ​​with adjacent timestamps among the n second difference values ​​to obtain a third difference value;

[0254] The stability index of the target signal processing algorithm is determined according to the third difference, the third difference is negatively correlated with the stability index, and a larger stability index indicates a better stability of the target signal processing algorithm.

[0255] In combination with any implementation manner of the present application, the determining unit 13 is further configured to:

[0256] Determine the difference between two difference values ​​with adjacent timestamps among the n first difference values ​​to obtain a fourth difference value;

[0257] The stability index of the target signal processing algorithm is determined according to the fourth difference, the fourth difference is negatively correlated with the stability index, and a larger stability index indicates better stability of the target signal processing algorithm.

[0258] In combination with any embodiment of the present application, the processing unit 12 is further used to fuse the non-noise signal processing index, the noise reduction index and the stability index to obtain a target evaluation index of the target signal processing algorithm;

[0259] The acquisition unit 11 is further used to acquire a target mapping relationship, wherein the target mapping relationship represents a mapping between an evaluation index and an evaluation score of the audio;

[0260] The determining unit 13 is further configured to determine a target evaluation score of the target audio according to the target mapping relationship and the target evaluation index, wherein the target evaluation score represents the sound quality of the target audio.

[0261] In combination with any implementation manner of the present application, the n first audio frames include a third audio frame, and the n third non-noise gains include a fifth non-noise gain corresponding to the third audio frame;

[0262] The processing unit 12 is used for:

[0263] Performing Fourier transform on the third audio frame to obtain m frequency points;

[0264] Determine the gains of the non-noise signals of the m frequency points to obtain m sixth non-noise gains, wherein the sixth non-noise gains correspond one-to-one to the frequency points;

[0265] The fifth non-noise gain is obtained according to the m sixth non-noise gains.

[0266] In combination with any implementation manner of the present application, the target signal processing algorithm includes: an audio noise reduction algorithm and an audio encoding and decoding algorithm.

[0267] Because the target audio is the audio after the original audio is processed by the target signal processing algorithm, the target audio includes the first non-noise signal, and the original audio includes the second non-noise signal, so the first non-noise signal is obtained by processing the second non-noise signal by the target signal processing algorithm. Since the target signal processing algorithm may process the second non-noise signal in the original audio during the process of processing the original audio, thereby causing the gain of the second non-noise signal to change, there may be a difference between the first non-noise gain and the second non-noise gain, and the difference is caused by the processing of the target signal processing algorithm. Therefore, in an embodiment of the present application, after obtaining the target audio, the audio processing device obtains the first non-noise gain of the first non-noise signal according to the target audio, and then after obtaining the second non-noise gain of the second non-noise signal, it can determine the non-noise signal processing index of the target signal processing algorithm based on the difference between the first non-noise gain and the second non-noise gain.

[0268] Moreover, since the non-noise signal processing index of the target signal processing algorithm is determined based on the difference between the first non-noise gain and the second non-noise gain, the noise signal in the target audio and the original noise signal are not involved. By determining the non-noise signal processing index of the target signal processing algorithm by this method, the interference of the noise signal can be reduced, and the accuracy of the non-noise signal processing index can be improved. Therefore, the processing effect of the target signal processing algorithm can be evaluated based on the non-noise signal processing index, and the accuracy of the evaluation result can be improved.

[0269] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0270] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device 2 includes a processor 21 and a memory 22. Optionally, the electronic device 2 also includes an input device 23 and an output device 24. The processor 21, the memory 22, the input device 23 and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines or buses, etc., which are not limited in the embodiments of the present application. It should be understood that in each embodiment of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, it can be connected through various interfaces, transmission lines, buses, etc.

[0271] The processor 21 may include one or more processors, for example, one or more central processing units (CPUs). When the processor is a CPU, the CPU may be a single-core CPU or a multi-core CPU. Optionally, the processor 21 may be a processor group consisting of multiple CPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.

[0272] The memory 22 can be used to store computer program instructions and various computer program codes including the program code for executing the program code of the present application. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

[0273] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The input device 23 and the output device 24 can be independent devices or an integrated device.

[0274] It can be understood that in the embodiment of the present application, the memory 22 can be used not only to store relevant instructions, but also to store relevant data. The embodiment of the present application does not limit the specific data stored in the memory.

[0275] Understandably, Figure 5Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all electronic devices that can implement the embodiments of the present application are within the protection scope of the present application.

[0276] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0277] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present application have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

[0278] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0279] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0280] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0281] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0282] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. An audio processing method, characterized in that: The method comprises: Acquire target audio, where the target audio is audio obtained after the original audio is processed by a target signal processing algorithm, the target audio includes a first non-noise signal, and the original audio includes a second non-noise signal; Obtaining a first non-noise gain of the first non-noise signal according to the target audio; Acquire a second non-noise gain of the second non-noise signal; Based on the difference between the first non-noise gain and the second non-noise gain, a non-noise signal processing index of the target signal processing algorithm is determined, and the non-noise signal processing index represents the processing effect of the target signal processing algorithm on the non-noise signal in the audio.

2. The method according to claim 1, characterized in that The obtaining, according to the target audio, a first non-noise gain of the first non-noise signal includes: Divide the target audio into n first audio frames; According to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames are obtained as the first non-noise gains, and the third non-noise gains correspond to the first audio frames one by one.

3. The method according to claim 2, characterized in that The step of obtaining the target audio includes: Acquire the target signal processing algorithm, the second non-noise signal and the original noise signal; fusing the second non-noise signal and the original noise signal to obtain the original audio; The target audio is processed using the target signal processing algorithm to obtain the target audio.

4. The method according to claim 2 or 3, characterized in that: The step of dividing the target audio into n first audio frames comprises: Aligning the target audio with the second non-noise signal to obtain aligned target audio; The aligned target audio is divided into n audio frames to obtain the n first audio frames.

5. The method according to claim 2 or 3, characterized in that: The original audio includes n second audio frames, and the first audio frame corresponds to the second audio frame one by one; the second non-noise gain includes n fourth non-noise gains, and the n fourth non-noise gains are gains of non-noise signals in the n second audio frames; The determining, based on the difference between the first non-noise gain and the second non-noise gain, a non-noise signal processing index of the target signal processing algorithm comprises: respectively determining differences between the n third non-noise gains and two corresponding gains of the n fourth non-noise gains to obtain n first differences; A non-noise signal processing index of the target signal processing algorithm is determined according to the n first difference values.

6. The method according to claim 5, characterized in that The non-noise signal processing index includes a distortion index, and the larger the distortion index is, the greater the damage caused by the target signal processing algorithm to the non-noise signal in the audio; Determining the non-noise signal processing index of the target signal processing algorithm according to the n first difference values ​​includes: The distortion index is determined according to the n first differences.

7. The method according to claim 5, characterized in that The target audio further includes a target noise signal; after dividing the target audio into n first audio frames, the method further includes: Determine, according to the n first audio frames, the gain of the target noise signal in the n first audio frames to obtain n first noise gains, where the first noise gains correspond to the first audio frames one by one; A noise reduction index of the target signal processing algorithm is determined according to the n first noise gains, where the noise reduction index represents an effect of the target signal processing algorithm on removing noise signals in the audio.

8. The method according to claim 7, characterized in that The original audio also includes an original noise signal, and the noise reduction index includes a noise signal suppression index, and a larger noise signal suppression index indicates that the target signal processing algorithm has a greater suppression effect on the noise signal in the audio; Determining the noise reduction index of the target signal processing algorithm according to the n first noise gains includes: Acquire n second noise gains of the original noise signal in the n second audio frames, where the second noise gains correspond to the second audio frames one by one; respectively determining differences between the n first noise gains and two corresponding gains of the n second noise gains to obtain n second differences; The noise signal suppression index is determined according to the n second difference values.

9. The method according to claim 7, characterized in that: The noise reduction index includes a noise signal residual index, and the larger the noise signal residual index is, the more noise signals remain in the audio after the audio is processed by the target signal processing algorithm; Determining the noise reduction index of the target signal processing algorithm according to the n first noise gains includes: The noise signal residual indicator is determined according to the n first noise gains.

10. The method according to claim 8, characterized in that After obtaining the n second difference values, the method further includes: Determine the difference between two difference values ​​with adjacent timestamps among the n second difference values ​​to obtain a third difference value; The stability index of the target signal processing algorithm is determined according to the third difference, the third difference is negatively correlated with the stability index, and a larger stability index indicates a better stability of the target signal processing algorithm.

11. The method according to claim 5, characterized in that After obtaining n first difference values, the method further includes: Determine the difference between two difference values ​​with adjacent timestamps among the n first difference values ​​to obtain a fourth difference value; The stability index of the target signal processing algorithm is determined according to the fourth difference, the fourth difference is negatively correlated with the stability index, and a larger stability index indicates better stability of the target signal processing algorithm.

12. The method according to claim 10, characterized in that After determining the stability of the target signal processing algorithm according to the third difference, the method further includes: The non-noise signal processing index, the noise reduction index and the stability index are integrated to obtain a target evaluation index of the target signal processing algorithm; Acquire a target mapping relationship, where the target mapping relationship represents a mapping between an evaluation index and an evaluation score of the audio; A target evaluation score of the target audio is determined according to the target mapping relationship and the target evaluation index, wherein the target evaluation score represents the sound quality of the target audio.

13. The method according to claim 2 or 3, characterized in that: The n first audio frames include a third audio frame, and the n third non-noise gains include a fifth non-noise gain corresponding to the third audio frame; The obtaining, according to the n first audio frames, n third non-noise gains of the non-noise signals in the n first audio frames comprises: Performing Fourier transform on the third audio frame to obtain m frequency points; Determine the gains of the non-noise signals of the m frequency points to obtain m sixth non-noise gains, wherein the sixth non-noise gains correspond one-to-one to the frequency points; The fifth non-noise gain is obtained according to the m sixth non-noise gains.

14. The method according to any one of claims 1 to 3, characterized in that The target signal processing algorithm includes: an audio noise reduction algorithm and an audio encoding and decoding algorithm.

15. An audio processing device, characterized in that: The device comprises: An acquisition unit, configured to acquire a target audio, wherein the target audio is an audio obtained after the original audio is processed by a target signal processing algorithm, the target audio includes a first non-noise signal, and the original audio includes a second non-noise signal; a processing unit, configured to obtain a first non-noise gain of the first non-noise signal according to the target audio; The acquisition unit is further used to acquire a second non-noise gain of the second non-noise signal; A determination unit is used to determine a non-noise signal processing index of the target signal processing algorithm based on a difference between the first non-noise gain and the second non-noise gain, wherein the non-noise signal processing index represents a processing effect of the target signal processing algorithm on the non-noise signal in the audio.

16. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor is enabled to execute the method according to any one of claims 1 to 14.