Audio processing method, device, electronic device and readable storage medium
By performing spectrum reconstruction processing and noise signal removal on the mixed speech signal, the problem of low recognition rate of the target sound source under noise interference is solved, and higher speech recognition accuracy is achieved.
Patent Information
- Application Number
- CN201910344914.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-04-26
AI Technical Summary
When the target sound source and the noise source are mixed, the speech recognition rate is low and the noise is seriously interfered.
By acquiring the second speech signal containing the noise signal, reconstructing the time spectrum of the first speech signal, estimating and removing the noise signal, thereby obtaining the time spectrum of the target speech signal. The method includes Fourier transform, nonnegative matrix factorization (NMF) and unique information processing of noise signals to identify and eliminate noise signals.
It improves the recognition rate of the target sound source and reduces the interference of the noise signal on the target speech signal. The spectrum of the obtained speech signal is relatively pure and suitable for speech recognition.
Smart Images

Figure CN111863014B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an audio processing method, device, electronic device and readable storage medium. Background Art
[0002] At present, speech recognition technology is being applied in more and more scenarios, and the environment faced by speech recognition is becoming more and more complex, especially when the target sound source (for example, point sound source) and the noise sound source (for example, diffuse sound source, which includes echo, wind sound and other sound sources) are mixed together, it is more difficult to recognize the speech of the target sound source.
[0003] Since the noise source will cause great interference to the target sound source, when performing speech recognition on a mixed sound source in which the target sound source and the noise sound source are mixed together, the recognition rate of the target sound source is low. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide an audio processing method, device, electronic device and readable storage medium to improve the recognition rate of the target sound source.
[0005] In a first aspect, an embodiment of the present application provides an audio processing method, the audio processing method comprising:
[0006] Acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal;
[0007] Reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal;
[0008] The time-frequency spectrum of the target speech signal is obtained based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0009] Optionally, when the second speech signal further includes the target speech signal, wherein the signal strength ratio of the target speech signal in the first speech signal is greater than a first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than a second threshold, reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal includes:
[0010] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0011] Performing non-negative matrix decomposition (NMF) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal respectively to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal;
[0012] Obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix;
[0013] The time-frequency spectrum of the first speech signal is reconstructed using the third NMF basis matrix to obtain the noise estimate.
[0014] Optionally, obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix includes:
[0015] According to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix are removed to obtain the third NMF basis matrix.
[0016] Optionally, removing the elements corresponding to the target speech signal in the second NMF basis matrix according to the first NMF basis matrix to obtain the third NMF basis matrix includes:
[0017] Using a third threshold, comparing each element in the first NMF basis matrix;
[0018] According to the comparison result, determine a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, so as to use the candidate position as a position of the element corresponding to the target speech signal in the first NMF basis matrix;
[0019] Using the number 0, the elements at the target position identical to the candidate position in the second NMF basis matrix are replaced, so that the replaced second NMF basis matrix is used as the third NMF basis matrix.
[0020] Optionally, the using the second speech signal to reconstruct the time-frequency spectrum of the first speech signal to obtain the noise estimation of the first speech signal includes:
[0021] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0022] Performing NMF processing on the time-frequency spectrum of the second speech signal to obtain a second NMF basis matrix corresponding to the second speech signal;
[0023] The time-frequency spectrum of the first speech signal is reconstructed using the second NMF basis matrix to obtain the noise estimate.
[0024] Optionally, obtaining the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal includes:
[0025] Based on the noise estimation, the noise signal in the time-frequency spectrum of the first speech signal is removed to obtain the time-frequency spectrum of the target speech signal.
[0026] Optionally, removing the noise signal from the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal includes:
[0027] Calculating the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate;
[0028] Based on the Euclidean distance, a gain calculation is performed on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
[0029] Optionally, the performing gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance to obtain the time-frequency spectrum of the target speech signal includes:
[0030] Regularizing the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1;
[0031] The product of the time-frequency spectrum of the first speech signal and the gain coefficient is calculated, so as to use the product as the time-frequency spectrum of the target speech signal.
[0032] Optionally, after obtaining the time-frequency spectrum of the target speech signal, the audio processing method further includes:
[0033] Performing an inverse Fourier transform on the time-frequency spectrum of the target speech signal to obtain a time-domain signal of the target speech signal.
[0034] Optionally, after obtaining the time domain signal of the target speech signal, the audio processing method further includes:
[0035] Perform speech recognition on the time domain signal of the target speech signal.
[0036] In a second aspect, an embodiment of the present application provides an audio processing device, the audio processing device comprising:
[0037] an acquisition unit, configured to acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal, and the acquisition unit sends the first speech signal and the second speech signal to a reconstruction unit;
[0038] The reconstruction unit is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal, and the reconstruction unit sends the noise estimate and the time-frequency spectrum of the first speech signal to the processing unit;
[0039] The processing unit is used to obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0040] Optionally, when the second speech signal further includes the target speech signal, wherein the signal strength ratio of the target speech signal in the first speech signal is greater than a first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than a second threshold, the configuration of the reconstruction unit is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain the noise estimation of the first speech signal, including:
[0041] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0042] Performing non-negative matrix decomposition (NMF) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal respectively to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal;
[0043] Obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix;
[0044] The time-frequency spectrum of the first speech signal is reconstructed using the third NMF basis matrix to obtain the noise estimate.
[0045] Optionally, the configuration of the reconstruction unit for obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix includes:
[0046] According to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix are removed to obtain the third NMF basis matrix.
[0047] Optionally, the configuration of the reconstruction unit is used to remove the elements corresponding to the target speech signal in the second NMF basis matrix according to the first NMF basis matrix to obtain the third NMF basis matrix, including:
[0048] Using a third threshold, comparing each element in the first NMF basis matrix;
[0049] According to the comparison result, determine a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, so as to use the candidate position as a position of the element corresponding to the target speech signal in the first NMF basis matrix;
[0050] Using the number 0, the elements at the target position identical to the candidate position in the second NMF basis matrix are replaced, so that the replaced second NMF basis matrix is used as the third NMF basis matrix.
[0051] Optionally, the configuration of the reconstruction unit is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain the noise estimation of the first speech signal, including:
[0052] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0053] Performing NMF processing on the time-frequency spectrum of the second speech signal to obtain a second NMF basis matrix corresponding to the second speech signal;
[0054] The time-frequency spectrum of the first speech signal is reconstructed using the second NMF basis matrix to obtain the noise estimate.
[0055] Optionally, the configuration of the processing unit is used to obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal, including:
[0056] Based on the noise estimation, the noise signal in the time-frequency spectrum of the first speech signal is removed to obtain the time-frequency spectrum of the target speech signal.
[0057] Optionally, the configuration of the processing unit is used to remove the noise signal in the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal, including:
[0058] Calculating the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate;
[0059] Based on the Euclidean distance, a gain calculation is performed on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
[0060] Optionally, the configuration of the processing unit is used to perform gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance to obtain the time-frequency spectrum of the target speech signal, including:
[0061] Regularizing the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1;
[0062] The product of the time-frequency spectrum of the first speech signal and the gain coefficient is calculated, so as to use the product as the time-frequency spectrum of the target speech signal.
[0063] Optionally, the processing unit is further configured to:
[0064] After obtaining the time-frequency spectrum of the target speech signal, an inverse Fourier transform is performed on the time-frequency spectrum of the target speech signal to obtain a time domain signal of the target speech signal.
[0065] Optionally, the processing unit is further configured to:
[0066] After obtaining the time domain signal of the target speech signal, speech recognition is performed on the time domain signal of the target speech signal.
[0067] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the audio processing method as described in any one of the first aspects.
[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the audio processing method as described in any one of the first aspects are executed.
[0069] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0070] In an embodiment of the present application, after obtaining the first speech signal and the second speech signal, since the first speech signal contains a target speech signal and a noise signal, and the second speech signal contains a noise signal, the specific information of the noise signal can be obtained through the second speech signal, and then the time-frequency spectrum of the first speech signal can be reconstructed using the second speech signal to obtain a noise estimate of the first speech signal. The noise estimate can characterize the signal strength ratio of the noise signal in the first speech signal, so that the noise estimate can be used to eliminate the interference of the noise signal in the first speech signal on the target speech signal to obtain the time-frequency spectrum of the target speech signal. Since the obtained time-frequency spectrum of the target speech signal is no longer interfered by the noise signal, or the interference of the noise signal on the time-frequency spectrum of the target speech signal is reduced, the obtained time-frequency spectrum of the target speech signal is relatively pure, which is beneficial to improve the recognition rate of the target speech when the time-frequency spectrum of the target speech signal is recognized.
[0071] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0073] Figure 1 A flowchart of an audio processing method provided in Example 1 of the present application;
[0074] Figure 2 A flowchart of another audio processing method provided in Example 1 of the present application;
[0075] Figure 3 A flowchart of another audio processing method provided in Example 1 of the present application;
[0076] Figure 4 A flowchart of another audio processing method provided in Example 1 of the present application;
[0077] Figure 5 A flowchart of another audio processing method provided in Example 1 of the present application;
[0078] Figure 6 A flowchart of another audio processing method provided in Example 1 of the present application;
[0079] Figure 7A schematic diagram of the structure of an audio processing device provided in Embodiment 2 of the present application;
[0080] Figure 8 A schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0081] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0082] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0083] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0084] It should be noted in advance that the devices or electronic devices involved in the embodiments of the present application can be executed on a single server or on a server group. The server group can be centralized or distributed. In some embodiments, the server can be local or remote relative to the terminal. In some embodiments, the server can be implemented on a cloud platform; as an example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof.
[0085] In addition, the device or electronic device involved in the embodiment of the present application can also be executed on a mobile device, a tablet computer, a laptop computer or a built-in device of a vehicle, or any combination thereof. In some embodiments, the mobile device may include a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home device may include a control device for a smart electrical appliance, a smart monitoring device, and a smart TV, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart helmet, a smart watch, a smart accessory, or the like, or any combination thereof. In some embodiments, the smart mobile device may include a smart phone, a personal digital assistant (PDA), a gaming device, a navigation device, or the like, or any combination thereof. In some embodiments, the virtual reality device and / or the augmented reality device may include a virtual reality helmet, an augmented reality helmet, or the like, or any combination thereof. For example, the virtual reality device and / or the augmented reality device may include various virtual reality products, etc.
[0086] It is worth noting that before the present application was filed, the recognition rate of the target sound source was low when performing speech recognition on a mixed sound source in which the target sound source and the noise sound source were mixed together, because the target sound source was greatly affected by the noise sound source. However, the audio processing method provided by the present application can improve the recognition rate of the target speech, that is, can improve the recognition rate of the target sound source.
[0087] Embodiment 1
[0088] Figure 1 A flowchart of an audio processing method provided in Example 1 of the present application is shown as follows: Figure 1 As shown, the audio processing method comprises the following steps:
[0089] Step 101: Acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal.
[0090] Specifically, since the first speech signal is a mixed signal of a target speech signal and a noise signal, and the second speech signal includes a noise signal, specific information of the noise signal can be obtained through the second speech signal to eliminate the noise signal in the first speech signal.
[0091] It should be noted that the method for acquiring the first voice signal and the second voice signal is not specifically limited here. For example, the first voice signal and the second voice signal can be acquired through a specific voice acquisition method, or the first voice signal and the second voice signal can be obtained from the mixed audio through a specific voice processing method. The method for acquiring the first voice signal and the second voice signal will not be described in detail here.
[0092] Step 102: Reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal.
[0093] Specifically, since the unique information of the noise signal can be obtained based on the second speech signal, the time-frequency spectrum of the first speech signal can be reconstructed using the unique information to obtain the signal strength ratio of the noise signal in the first speech signal (i.e., noise estimation), so as to provide a basis for eliminating the noise signal.
[0094] It should be noted that the specific reconstruction method can be set according to actual needs and is not specifically limited here.
[0095] Step 103: Obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0096] Specifically, after determining the noise estimate of the first speech signal, the signal strength ratio of the noise signal in the first speech signal can be determined, so that the noise signal can be eliminated, thereby obtaining the time-frequency spectrum of the target speech signal.
[0097] It should be noted that the specific implementation method of obtaining the time-frequency spectrum of the target speech signal by using the noise estimation and the time-frequency spectrum of the first speech signal can be set according to actual needs and is not specifically limited here.
[0098] In an embodiment of the present application, after obtaining the first speech signal and the second speech signal, since the first speech signal contains a target speech signal and a noise signal, and the second speech signal contains a noise signal, the specific information of the noise signal can be obtained through the second speech signal, and then the time-frequency spectrum of the first speech signal can be reconstructed using the second speech signal to obtain a noise estimate of the first speech signal. The noise estimate can characterize the signal strength ratio of the noise signal in the first speech signal, so that the noise estimate can be used to eliminate the interference of the noise signal in the first speech signal on the target speech signal to obtain the time-frequency spectrum of the target speech signal. Since the obtained time-frequency spectrum of the target speech signal is no longer interfered by the noise signal, or the interference of the noise signal on the time-frequency spectrum of the target speech signal is reduced, the obtained time-frequency spectrum of the target speech signal is relatively pure, which is beneficial to improve the recognition rate of the target speech when the time-frequency spectrum of the target speech signal is recognized.
[0099] In one possible embodiment, Figure 2 A flowchart of another audio processing method provided in Embodiment 1 of the present application is shown as follows: Figure 2 As shown, when the second speech signal also includes the target speech signal, wherein the signal strength ratio of the target speech signal in the first speech signal is greater than the first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than the second threshold, when executing step 102, it can be achieved by the following steps:
[0100] Step 201: Perform Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain the time spectrum of the first speech signal and the time spectrum of the second speech signal.
[0101] Step 202: Perform NMF (Nonnegative Matrix Factorization) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal.
[0102] Step 203: Obtain a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix.
[0103] Step 204: Reconstruct the time-frequency spectrum of the first speech signal using the third NMF basis matrix to obtain the noise estimate.
[0104] Specifically, when both the first speech signal and the second speech signal include a target speech signal and a noise signal, wherein the first speech signal mainly includes the target speech signal and the second speech signal mainly includes the noise signal, in order to obtain the specific information of the noise signal, a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal can be obtained. Since the NMF basis matrix can characterize the statistical characteristics of the audio signal in the frequency domain, and since the first speech signal mainly includes the target speech signal and the second speech signal mainly includes the noise signal, similar data in the two NMF basis matrices can be used to obtain a third NMF basis matrix of the noise signal. Since the third NMF basis matrix can be considered as the NMF basis matrix of a pure noise signal, the time-frequency spectrum of the first speech signal can be reconstructed using the third NMF basis matrix to obtain the noise estimate.
[0105] For example, Figure 2 The first speech signal and the second speech signal in the method shown can be obtained by blind source separation of a mixed audio containing a target speech signal and a noise signal. Since blind source separation has a good separation effect on point sound sources and a poor separation effect on diffuse sound sources, one of the two audio signals obtained basically only includes a noise signal (including a small amount of target speech signal), and the other includes a certain amount of noise signal and most of the target speech signal. The target speech signal obtained after blind source separation is still greatly affected by the noise signal. Therefore, the mixed audio that is greatly affected by the noise signal can be used as the first speech signal in the embodiment of the present application, and the audio signal that basically only includes the noise signal can be used as the second speech signal in the embodiment of the present application. It should be noted that the above method is only a method for obtaining the first speech signal and the second speech signal provided in the embodiment of the present application, but it does not limit the embodiment of the present application. The method for obtaining the first speech signal and the second speech signal is not specifically limited here. It should be noted that the size of the first threshold and the second threshold can be set according to actual needs and is not specifically limited here.
[0106] In a feasible implementation manner, when executing step 203, the elements corresponding to the target speech signal in the second NMF basis matrix may be removed according to the first NMF basis matrix to obtain the third NMF basis matrix.
[0107] Specifically, since the first NMF basis matrix mainly represents the target speech signal and the second NMF basis matrix mainly represents the noise signal, the characteristics of the first NMF basis matrix can be used to screen out the elements corresponding to the target speech signal in the second NMF basis matrix, and then eliminate the elements corresponding to the target speech signal from the second NMF basis matrix, thereby obtaining a third NMF basis matrix of a relatively pure noise signal.
[0108] It should be noted that the method for eliminating the elements corresponding to the target speech signal in the second NMF basis matrix can be set according to actual needs and is not specifically limited here.
[0109] In one possible embodiment, Figure 3 A flowchart of another audio processing method provided in Embodiment 1 of the present application is shown as follows: Figure 3 As shown, when removing the elements corresponding to the target speech signal in the second NMF basis matrix according to the first NMF basis matrix to obtain the third NMF basis matrix, it can be achieved by the following steps:
[0110] Step 301: Use a third threshold to compare each element in the first NMF basis matrix.
[0111] Step 302: Determine, based on the comparison result, a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, and use the candidate position as the position of the element corresponding to the target speech signal in the first NMF basis matrix.
[0112] Step 303: Use the number 0 to replace the elements at the target position that is the same as the candidate position in the second NMF basis matrix, so as to use the replaced second NMF basis matrix as the third NMF basis matrix.
[0113] Specifically, since the first speech signal contains a target speech signal and a noise signal, and the target speech signal is the main signal, after obtaining the first NMF basis matrix, in the first NMF basis matrix, the value of the target speech signal element will be higher than the element corresponding to the noise signal. Therefore, a third threshold is introduced, and the elements in the first NMF basis matrix that are greater than or equal to the third threshold are used as the elements corresponding to the target speech signal, and the elements that are less than the third threshold are used as the elements corresponding to the noise signal, so that the position of the element corresponding to the target speech signal in the first NMF basis matrix can be determined. Since the position of the target speech signal in the first NMF basis matrix and the second NMF basis matrix can be considered to be the same, after determining the position of the element corresponding to the target speech signal in the first NMF basis matrix, the elements at the same position in the second basis matrix can be replaced with 0, thereby obtaining a third NMF basis matrix of a relatively pure noise signal.
[0114] For example, after performing NMF processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal, two NMF basis matrices of equal size can be obtained. For example, the first NMF basis matrix and the second NMF basis matrix are both 3*3 matrices. When the elements in the first row and third column and the elements in the second row and second column of the first NMF basis matrix are both less than the third threshold, the elements in the first row and third column and the elements in the second row and second column of the second NMF basis matrix can be replaced with 0, and then the replaced second NMF basis matrix is used as the third NMF basis matrix.
[0115] It should be noted that the above examples are only for illustrating the implementation principle of the embodiments of the present application, and do not limit the embodiments of the present application. The specific value of the third threshold can be set according to actual needs and is not specifically limited here.
[0116] In one possible embodiment, Figure 4 A flowchart of another audio processing method provided in Embodiment 1 of the present application is shown as follows: Figure 4 As shown, when executing step 102, it can also be implemented by the following steps:
[0117] Step 401: Perform Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain the time spectrum of the first speech signal and the time spectrum of the second speech signal.
[0118] Step 402: Perform NMF processing on the time-frequency spectrum of the second speech signal to obtain a second NMF basis matrix corresponding to the second speech signal.
[0119] Step 403: Reconstruct the time-frequency spectrum of the first speech signal using the second NMF basis matrix to obtain the noise estimate.
[0120] Specifically, when the second speech signal is a pure noise signal, the second NMF basis matrix corresponding to the second speech signal can characterize the statistical characteristics of the noise signal, so that the time-frequency spectrum of the first speech signal can be directly reconstructed using the second NMF basis matrix to obtain a noise estimate.
[0121] It should be noted that the specific reconstruction method can be set according to actual needs, but all methods of obtaining the noise estimation of the first speech signal through reconstruction processing belong to the protection scope of the embodiments of the present application.
[0122] In a feasible implementation, after obtaining a noise estimate of a first speech signal, when obtaining the time-frequency spectrum of the target speech signal based on the noise estimate and the time-frequency spectrum of the first speech signal, the noise signal in the time-frequency spectrum of the first speech signal can be removed based on the noise estimate to obtain the time-frequency spectrum of the target speech signal.
[0123] Specifically, after obtaining the noise estimation, the signal strength ratio of the noise signal in the time-frequency spectrum of the first speech signal can be determined. Therefore, the noise signal in the first speech signal can be eliminated using the noise estimation to obtain the time-frequency spectrum of the target speech signal.
[0124] In one possible embodiment, Figure 5 A flowchart of another audio processing method provided in Embodiment 1 of the present application is shown as follows: Figure 5 As shown, when performing the step of removing the noise signal in the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal, it can be achieved by the following steps:
[0125] Step 501: Calculate the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate.
[0126] Step 502: Based on the Euclidean distance, perform gain calculation on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
[0127] Specifically, the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate can represent the amount of time-frequency amplitude spectrum components of the target speech signal at each time-frequency point in the time-frequency spectrum of the first speech signal. The larger the Euclidean distance, the more time-frequency amplitude spectrum components of the target speech signal at the time-frequency point, and vice versa. Therefore, after obtaining the Euclidean distance, the amount of time-frequency amplitude spectrum components of the target speech at each time-frequency point in the time-frequency spectrum of the first speech signal can be determined, and after performing gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance, the time-frequency spectrum of the target speech signal can be obtained.
[0128] In one possible embodiment, Figure 6 A flowchart of another audio processing method provided in Embodiment 1 of the present application is shown as follows: Figure 6 As shown, when executing step 502, it can be implemented by the following steps:
[0129] Step 601: Regularize the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1.
[0130] Step 602: Calculate the product of the time-frequency spectrum of the first speech signal and the gain coefficient, and use the product as the time-frequency spectrum of the target speech signal.
[0131] Specifically, the Euclidean distance can represent the amount of time-frequency amplitude spectrum components of the target speech signal at a certain time-frequency point. In order to determine the proportion of the time-frequency amplitude spectrum of the target speech signal at the time-frequency point, the Euclidean distance needs to be regularized to obtain a gain coefficient greater than 0 and less than 1. The gain coefficient can represent the proportion of the time-frequency amplitude spectrum of the target speech signal at the time-frequency point. After obtaining the gain coefficient, the time-frequency spectrum of the first speech signal and the gain coefficient are multiplied to obtain the time-frequency spectrum of the target speech signal.
[0132] In a feasible implementation, after obtaining the time-frequency spectrum of the target speech signal, an inverse Fourier transform may be performed on the time-frequency spectrum of the target speech signal to obtain a time-domain signal of the target speech signal.
[0133] Specifically, after the time domain signal of the target speech signal is obtained, the target speech signal may be analyzed or processed using the time domain signal.
[0134] In a feasible implementation, after obtaining the time domain signal of the target speech signal, speech recognition may be performed on the time domain signal of the target speech signal.
[0135] Specifically, since the time domain signal of the target speech signal is basically no longer interfered by the noise signal, a recognition result with a high recognition rate can be obtained when speech recognition is performed on the time domain signal of the target speech signal.
[0136] Embodiment 2
[0137] Figure 7 A schematic diagram of the structure of an audio processing device provided in Embodiment 2 of the present application is shown in FIG. Figure 7 As shown, the audio processing device comprises:
[0138] An acquisition unit 71 is configured to acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal, and the acquisition unit sends the first speech signal and the second speech signal to a reconstruction unit;
[0139] The reconstruction unit 72 is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal, and the reconstruction unit sends the noise estimate and the time-frequency spectrum of the first speech signal to the processing unit;
[0140] The processing unit 73 is configured to obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0141] In a feasible implementation scheme, when the second speech signal also includes the target speech signal, wherein the signal strength ratio of the target speech signal in the first speech signal is greater than the first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than the second threshold, the configuration of the reconstruction unit 72 is used to use the second speech signal to reconstruct the time-frequency spectrum of the first speech signal to obtain the noise estimation of the first speech signal, including:
[0142] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0143] Performing non-negative matrix decomposition (NMF) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal respectively to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal;
[0144] Obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix;
[0145] The time-frequency spectrum of the first speech signal is reconstructed using the third NMF basis matrix to obtain the noise estimate.
[0146] In a feasible implementation manner, the configuration of the reconstruction unit 72 for obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix includes:
[0147] According to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix are removed to obtain the third NMF basis matrix.
[0148] In a feasible implementation manner, the configuration of the reconstruction unit 72 is used to remove the elements corresponding to the target speech signal in the second NMF basis matrix according to the first NMF basis matrix to obtain the third NMF basis matrix, including:
[0149] Using a third threshold, comparing each element in the first NMF basis matrix;
[0150] According to the comparison result, determine a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, so as to use the candidate position as a position of the element corresponding to the target speech signal in the first NMF basis matrix;
[0151] Using the number 0, the elements at the target position identical to the candidate position in the second NMF basis matrix are replaced, so that the replaced second NMF basis matrix is used as the third NMF basis matrix.
[0152] In a feasible implementation manner, the configuration of the reconstruction unit 72 is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain the noise estimation of the first speech signal, including:
[0153] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0154] Performing NMF processing on the time-frequency spectrum of the second speech signal to obtain a second NMF basis matrix corresponding to the second speech signal;
[0155] The time-frequency spectrum of the first speech signal is reconstructed using the second NMF basis matrix to obtain the noise estimate.
[0156] In a feasible implementation manner, the configuration of the processing unit 73 is used to obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal, including:
[0157] Based on the noise estimation, the noise signal in the time-frequency spectrum of the first speech signal is removed to obtain the time-frequency spectrum of the target speech signal.
[0158] In a feasible implementation manner, the configuration of the processing unit 73 is used to remove the noise signal in the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal, including:
[0159] Calculating the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate;
[0160] Based on the Euclidean distance, a gain calculation is performed on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
[0161] In a feasible implementation manner, the configuration of the processing unit 73 is used to perform gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance to obtain the time-frequency spectrum of the target speech signal, including:
[0162] Regularizing the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1;
[0163] The product of the time-frequency spectrum of the first speech signal and the gain coefficient is calculated, so as to use the product as the time-frequency spectrum of the target speech signal.
[0164] In a feasible implementation scheme, the processing unit 73 is further used for:
[0165] After obtaining the time-frequency spectrum of the target speech signal, an inverse Fourier transform is performed on the time-frequency spectrum of the target speech signal to obtain a time domain signal of the target speech signal.
[0166] In a feasible implementation scheme, the processing unit 73 is further used for:
[0167] After obtaining the time domain signal of the target speech signal, speech recognition is performed on the time domain signal of the target speech signal.
[0168] For a detailed description of the above units, please refer to the relevant description of the first embodiment, which will not be repeated here.
[0169] In an embodiment of the present application, after obtaining the first speech signal and the second speech signal, since the first speech signal contains a target speech signal and a noise signal, and the second speech signal contains a noise signal, the specific information of the noise signal can be obtained through the second speech signal, and then the time-frequency spectrum of the first speech signal can be reconstructed using the second speech signal to obtain a noise estimate of the first speech signal. The noise estimate can characterize the signal strength ratio of the noise signal in the first speech signal, so that the noise estimate can be used to eliminate the interference of the noise signal in the first speech signal on the target speech signal to obtain the time-frequency spectrum of the target speech signal. Since the obtained time-frequency spectrum of the target speech signal is no longer interfered by the noise signal, or the interference of the noise signal on the time-frequency spectrum of the target speech signal is reduced, the obtained time-frequency spectrum of the target speech signal is relatively pure, which is beneficial to improve the recognition rate of the target speech when the time-frequency spectrum of the target speech signal is recognized.
[0170] Embodiment 3
[0171] Figure 8 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application includes: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 includes: Figure 7 In the device shown, the storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs the above positioning method, the processor 801 communicates with the storage medium 802 through the bus 803, and the processor 801 executes the machine-readable instructions to perform the following steps:
[0172] Acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal;
[0173] Reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal;
[0174] The time-frequency spectrum of the target speech signal is obtained based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0175] In a feasible implementation, when the second speech signal also includes the target speech signal, wherein the signal strength ratio of the target speech signal in the first speech signal is greater than the first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than the second threshold, the processor 801 executes the machine-readable instructions of reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain the noise estimation of the first speech signal, including:
[0176] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0177] Performing non-negative matrix decomposition (NMF) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal respectively to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal;
[0178] Obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix;
[0179] The time-frequency spectrum of the first speech signal is reconstructed using the third NMF basis matrix to obtain the noise estimate.
[0180] In a feasible implementation, when the processor 801 executes the machine-readable instruction for obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix, the instruction includes:
[0181] According to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix are removed to obtain the third NMF basis matrix.
[0182] In a feasible implementation manner, when the processor 801 executes the machine-readable instruction to remove the elements corresponding to the target speech signal in the second NMF basis matrix according to the first NMF basis matrix to obtain the third NMF basis matrix, the instruction includes:
[0183] Using a third threshold, comparing each element in the first NMF basis matrix;
[0184] According to the comparison result, determine a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, so as to use the candidate position as a position of the element corresponding to the target speech signal in the first NMF basis matrix;
[0185] Using the number 0, the elements at the target position identical to the candidate position in the second NMF basis matrix are replaced, so that the replaced second NMF basis matrix is used as the third NMF basis matrix.
[0186] In a feasible implementation manner, when the processor 801 executes the machine-readable instruction for reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain the noise estimation of the first speech signal, it includes:
[0187] Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal;
[0188] Performing NMF processing on the time-frequency spectrum of the second speech signal to obtain a second NMF basis matrix corresponding to the second speech signal;
[0189] The time-frequency spectrum of the first speech signal is reconstructed using the second NMF basis matrix to obtain the noise estimate.
[0190] In a feasible implementation, when the processor 801 executes the machine-readable instruction for obtaining the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal, the instruction includes:
[0191] Based on the noise estimation, the noise signal in the time-frequency spectrum of the first speech signal is removed to obtain the time-frequency spectrum of the target speech signal.
[0192] In a feasible implementation, when the processor 801 executes the machine-readable instruction to remove the noise signal in the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal, it includes:
[0193] Calculating the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate;
[0194] Based on the Euclidean distance, a gain calculation is performed on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
[0195] In a feasible implementation manner, when the processor 801 executes the machine-readable instruction to perform gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance to obtain the time-frequency spectrum of the target speech signal, the instruction includes:
[0196] Regularizing the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1;
[0197] The product of the time-frequency spectrum of the first speech signal and the gain coefficient is calculated, so as to use the product as the time-frequency spectrum of the target speech signal.
[0198] In a feasible implementation, after obtaining the time-frequency spectrum of the target speech signal, the processor 801 executes the machine-readable instruction of performing an inverse Fourier transform on the time-frequency spectrum of the target speech signal to obtain the time-domain signal of the target speech signal.
[0199] In a feasible implementation, after obtaining the time domain signal of the target speech signal, the processor 801 executes the machine-readable instruction for performing speech recognition on the time domain signal of the target speech signal.
[0200] For the specific implementation method steps and principles, please refer to the description of Example 1, which will not be repeated here in detail.
[0201] Embodiment 4
[0202] Embodiment 4 of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are performed:
[0203] Acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, and the second speech signal includes the noise signal;
[0204] Reconstructing the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal;
[0205] The time-frequency spectrum of the target speech signal is obtained based on the noise estimation and the time-frequency spectrum of the first speech signal.
[0206] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when being run by the processor to execute other methods as described in Example 1. For the specific execution method steps and principles, please refer to the description of Example 1, which will not be repeated here.
[0207] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned audio processing method can be executed, thereby reducing the interference of the noise signal on the target speech signal, thereby improving the recognition rate of the target speech signal.
[0208] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0209] The modules described as separate components may or may not be physically separated, and the components shown as modules 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.
[0210] 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.
[0211] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0212] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An audio processing method, characterized in that: The audio processing method comprises: Acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, the second speech signal includes the target speech signal and the noise signal, the signal strength ratio of the target speech signal in the first speech signal is greater than a first threshold, and the signal strength ratio of the target speech signal in the second speech signal is less than a second threshold; Reconstructing the time-frequency spectrum of the first speech signal by using the second speech signal to obtain a noise estimate of the first speech signal, wherein the noise estimate is obtained by reconstructing the time-frequency spectrum of the first speech signal by using specific information of the noise signal, wherein the specific information is a third NMF basis matrix, and the third NMF basis matrix is determined according to a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal; The time-frequency spectrum of the target speech signal is obtained based on the noise estimation and the time-frequency spectrum of the first speech signal.
2. The audio processing method according to claim 1, characterized in that: The step of reconstructing the time-frequency spectrum of the first speech signal by using the second speech signal to obtain a noise estimate of the first speech signal includes: Performing Fourier transform on the time domain signal of the first speech signal and the time domain signal of the second speech signal respectively to obtain a time-frequency spectrum of the first speech signal and a time-frequency spectrum of the second speech signal; Performing non-negative matrix decomposition (NMF) processing on the time-frequency spectrum of the first speech signal and the time-frequency spectrum of the second speech signal respectively to obtain a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal; Obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix; The time-frequency spectrum of the first speech signal is reconstructed using the third NMF basis matrix to obtain the noise estimate.
3. The audio processing method according to claim 2, characterized in that: The step of obtaining a third NMF basis matrix of the noise signal according to the first NMF basis matrix and the second NMF basis matrix includes: According to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix are removed to obtain the third NMF basis matrix.
4. The audio processing method according to claim 3, characterized in that: The removing, according to the first NMF basis matrix, the elements corresponding to the target speech signal in the second NMF basis matrix to obtain the third NMF basis matrix includes: Using a third threshold, comparing each element in the first NMF basis matrix; According to the comparison result, determine a candidate position of an element in the first NMF basis matrix that is greater than or equal to the third threshold, so as to use the candidate position as a position of the element corresponding to the target speech signal in the first NMF basis matrix; Using the number 0, the elements at the target position identical to the candidate position in the second NMF basis matrix are replaced, so that the replaced second NMF basis matrix is used as the third NMF basis matrix.
5. The audio processing method according to claim 4, characterized in that: The step of obtaining the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal comprises: Based on the noise estimation, the noise signal in the time-frequency spectrum of the first speech signal is removed to obtain the time-frequency spectrum of the target speech signal.
6. The audio processing method according to claim 5, characterized in that: The removing the noise signal from the time-frequency spectrum of the first speech signal based on the noise estimation to obtain the time-frequency spectrum of the target speech signal includes: Calculating the Euclidean distance between the time-frequency spectrum of the first speech signal and the noise estimate; Based on the Euclidean distance, a gain calculation is performed on the time-frequency spectrum of the first speech signal to obtain the time-frequency spectrum of the target speech signal.
7. The audio processing method according to claim 6, characterized in that: The step of performing gain calculation on the time-frequency spectrum of the first speech signal based on the Euclidean distance to obtain the time-frequency spectrum of the target speech signal includes: Regularizing the Euclidean distance to obtain a gain coefficient greater than 0 and less than 1; The product of the time-frequency spectrum of the first speech signal and the gain coefficient is calculated, so as to use the product as the time-frequency spectrum of the target speech signal.
8. An audio processing device, characterized in that: The audio processing device comprises: an acquisition unit, configured to acquire a first speech signal and a second speech signal, wherein the first speech signal includes a target speech signal and a noise signal, the second speech signal includes the target speech signal and the noise signal, a signal strength ratio of the target speech signal in the first speech signal is greater than a first threshold, and a signal strength ratio of the target speech signal in the second speech signal is less than a second threshold, and the acquisition unit sends the first speech signal and the second speech signal to a reconstruction unit; The reconstruction unit is used to reconstruct the time-frequency spectrum of the first speech signal using the second speech signal to obtain a noise estimate of the first speech signal, wherein the noise estimate is obtained by reconstructing the time-frequency spectrum of the first speech signal using specific information of the noise signal, wherein the specific information is a third NMF basis matrix, and the third NMF basis matrix is determined according to a first NMF basis matrix corresponding to the first speech signal and a second NMF basis matrix corresponding to the second speech signal, and the reconstruction unit sends the noise estimate and the time-frequency spectrum of the first speech signal to a processing unit; The processing unit is used to obtain the time-frequency spectrum of the target speech signal based on the noise estimation and the time-frequency spectrum of the first speech signal.
9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the audio processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the audio processing method according to any one of claims 1 to 7 are executed.
