A speech enhancement method, device, electronic device and storage medium
By dividing the speech signal into low-frequency and mid-high frequency parts, only performing noise reduction processing on the low-frequency part and predicting mid- and high-frequency gains, the problem of poor noise suppression capability in the existing technology is solved, and efficient enhancement and clarity of full-band speech are achieved. Improved, suitable for live broadcast scenarios on mobile devices.
Patent Information
- Application Number
- CN202010987302.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-18
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-09-18
AI Technical Summary
Existing speech enhancement solutions have poor ability to suppress non-stationary sudden noise, have residual noise, and are difficult to adapt to complex and changeable actual scenarios, especially in live broadcast scenarios where the anchor’s voice is not clear.
By dividing the full frequency band of the noisy speech signal into a low frequency band and a mid-to-high frequency band, only the low frequency band is subjected to noise reduction processing, and the time-frequency gain of the low frequency band is used to predict the gain of the mid-to-high frequency band to synthesize an enhanced speech signal in the full frequency band. , reducing the amount and complexity of processing data and suitable for mobile device deployment.
It achieves efficient enhancement of full-band speech, significantly reduces residual noise, improves speech quality and intelligibility, and is suitable for streaming processing on mobile devices and suitable for live broadcast and other scenarios.
Smart Images

Figure CN113299308B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of speech processing technology, and in particular to a speech enhancement method, device, electronic device, and non-transitory computer-readable storage medium. Background Art
[0002] With the development of the e-commerce live broadcast industry and the popularization of mobile devices, live broadcast scenarios have gradually diversified. They are no longer limited to traditional live broadcast rooms. Mobile devices can be used for live broadcasts in open and noisy scenes such as outdoors, shopping malls and markets.
[0003] The two main factors that affect the viewing experience of live broadcasts are picture and sound. The diversity of live broadcast scenes has brought new challenges to the processing of the host's real-time sound signals. For example, the sound in the live broadcast scene is mixed, resulting in the host's voice being unclear.
[0004] In the prior art, a speech enhancement scheme is used to extract the host's voice from mixed sounds. However, the current speech enhancement scheme has poor ability to suppress non-stationary sudden noise, and there is residual noise in the enhanced speech. The residual noise will lead to poor subjective listening experience and even affect the intelligibility of the speech information. In addition, the current speech enhancement scheme has many assumptions in the process of obtaining an analytical solution, which is difficult to adapt to complex and changeable actual scenarios. The above description of the problem discovery process is only used to assist in understanding the technical solution of the present disclosure, and does not mean that the above content is recognized as prior art. Summary of the invention
[0005] In order to solve at least one problem existing in the prior art, at least one embodiment of the present disclosure provides a speech enhancement method, device, electronic device and storage medium.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for speech enhancement, the method comprising:
[0007] Acquire a noisy speech signal;
[0008] Dividing the full frequency band of the noisy speech signal into a first frequency bandwidth and a second frequency bandwidth;
[0009] Performing noise reduction processing on the noisy speech signal corresponding to the first bandwidth to obtain a first gain corresponding to the first bandwidth;
[0010] Predicting a second gain corresponding to the second bandwidth based on the first gain;
[0011] An enhanced speech signal of the noisy speech signal in the full frequency band is determined based on the first gain and the second gain.
[0012] In a second aspect, the present disclosure also provides a speech enhancement device, the device comprising:
[0013] An acquisition unit, configured to acquire a noisy speech signal; and divide the full frequency band of the noisy speech signal into a first frequency bandwidth and a second frequency bandwidth;
[0014] a noise reduction unit, configured to perform noise reduction processing on the noisy speech signal corresponding to the first bandwidth to obtain a first gain corresponding to the first bandwidth;
[0015] a prediction unit, configured to predict a second gain corresponding to the second bandwidth based on the first gain;
[0016] A determining unit is used to determine an enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain and the second gain.
[0017] In a third aspect, an embodiment of the present disclosure further proposes an electronic device, comprising: a processor and a memory; the processor is used to execute the steps of the speech enhancement method described in the first aspect by calling a program or instruction stored in the memory.
[0018] In a fourth aspect, the embodiments of the present disclosure further provide a non-transitory computer-readable storage medium for storing programs or instructions, wherein the programs or instructions enable a computer to execute the steps of the speech enhancement method described in the first aspect.
[0019] It can be seen that in at least one embodiment of the present disclosure, by dividing the full frequency band of the noisy speech signal into a low frequency band (first bandwidth) and a mid-high frequency band (second bandwidth), only the low frequency band is subjected to noise reduction processing, and gain prediction is performed on the mid-high frequency band, and full-band speech enhancement can be achieved without performing noise reduction processing on the full frequency band. Compared with the existing scheme of performing noise reduction processing on the full frequency band, the present disclosure can reduce the amount and complexity of processed data, improve the efficiency and speed of processing, and is suitable for deployment on mobile devices to achieve streaming full-band speech enhancement. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure, and a person skilled in the art can also obtain other drawings based on these drawings.
[0021] Figure 1 is an exemplary application scenario diagram of speech enhancement provided by an embodiment of the present disclosure;
[0022] Figure 2 is an exemplary block diagram of a speech enhancement device provided by an embodiment of the present disclosure;
[0023] Figure 3 is an exemplary block diagram of an electronic device provided by an embodiment of the present disclosure;
[0024] Figure 4 is an exemplary flow chart of a speech enhancement method provided by an embodiment of the present disclosure;
[0025] Figure 5 is an exemplary flow chart of another speech enhancement method provided by an embodiment of the present disclosure;
[0026] Figure 6 is an exemplary flow chart of determining a first gain provided by an embodiment of the present disclosure;
[0027] Figure 7 is an exemplary architecture diagram of a temporal convolutional network provided by an embodiment of the present disclosure;
[0028] Figure 8 is an exemplary flow chart of determining an enhanced speech signal of a first bandwidth provided by an embodiment of the present disclosure;
[0029] Fig. 9 is an exemplary waveform diagram of noisy speech and the corresponding spectrogram;
[0030] Fig.10 yes Fig. 9 The waveform and corresponding spectrogram of the noisy speech after OMLSA processing are shown;
[0031] Fig.11 yes Fig. 9 The waveform diagram and the corresponding spectrogram are obtained after the noisy speech is processed by the speech enhancement method provided in the embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. The specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in the field belong to the scope of protection of the present disclosure.
[0033] It should be noted that, in this document, relational terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.
[0034] In order to facilitate understanding of the solutions of the embodiments of the present disclosure, the terms involved in the embodiments of the present disclosure are explained as follows:
[0035] Speech enhancement: In real-world environments, speech may be disturbed by non-stationary or noisy background noise, such as noise from trains, cars, factories, and streets. Background noise interference can seriously affect the performance of speech processing systems. Therefore, the robustness of speech processing systems can be improved by enhancing speech that is disturbed by background noise in advance. The main purpose of speech enhancement is to suppress noise and improve the overall perceived quality and clarity of noisy speech.
[0036] Full-band: The bandwidth of the voice signal determines the richness of the frequency components. The more frequency components, the higher the sound quality of the voice signal, and the closer it is to the real analog sampling sound. The definition of full-band in different scenarios is slightly different. It is generally believed that the full-band of voice signals in real-time interactive scenarios refers to a 48khz sampling rate.
[0037] Streaming processing: refers to the ability of the voice processing system to output processed data streams with fixed or low latency.
[0038] TCN (Temporal Convolutional Network) network structure: MLP (Multi-layer perceptions) multi-layer perceptron model lacks the ability to obtain long-term information, while RNN (Recurrent Neural Network) such as LSTM (Long Short-Term Memory) and other network structures have the ability to obtain long-term information temporal dependencies, but have defects such as high latency and high training complexity. In order to solve these defects, TCN network structures have emerged in various sequence modeling tasks to replace RNN network structures. TCN network structures introduce causal convolutions and dilated convolutions into the traditional CNN (Convolutional Neural Networks) network structure to obtain an exponentially larger receptive field, and at the same time integrate densely connected networks (DenseNet) and residual networks (ResNet) so that the TCN network structure can be designed to be very deep and can obtain effective long-term historical information.
[0039] Single channel speech enhancement
[0040] OMLSA (Optimally-Modified Log-Spectral Amplitude) is a single-channel speech enhancement scheme. OMLSA has multiple assumptions and is difficult to adapt to complex and changing actual scenarios.
[0041] 1. Assume that the noise is additive
[0042] The relationship between noise and speech is relatively complex. It is generally believed that there are two relationships: additive relationship and convolution relationship. The common noise in life is additive noise. The amplitude spectrum and log spectrum estimation denoising algorithm based on the minimum mean square error criterion is mainly used to suppress additive noise. At this time, the noisy speech time domain signal y(t) can be regarded as the sum of the speech time domain signal x(t) and the noise time domain signal n(t). By performing short-time Fourier transform (STFT) on both sides of the signal, the frequency domain expression can be obtained. Assuming that it is additive noise, the frequency domain satisfies the additive relationship.
[0043] 2. Assume that speech and noise are independent of each other, and assume that the distribution of noisy speech, clean speech and noise signals all satisfy Gaussian distribution
[0044] At the same time, assuming that speech and noise are independent of each other, taking the expectation of both sides, and assuming that the distribution of noisy speech, clean speech and noise signals all satisfy the Gaussian distribution, the relationship between the variance of speech and noise can be obtained.
[0045] 3. Binary Hypothesis Model
[0046] VAD (Voice Activity Detection) is used to divide frames into two states (speech frames and non-speech frames) to obtain a binary hypothesis model, and then the noise variance can be iteratively updated and estimated. Generally speaking, the noise variance is only updated in the H0 state of the hypothesis test to ensure that the speech is not distorted to the greatest extent.
[0047] 4. Assume that the speech amplitude of the current frame is only related to the noisy speech signal of the current frame and is not related to other frames.
[0048] By putting the whole derivation process into a probability framework, we can first obtain the probability density function of noisy speech, and in the presence of speech, we can get an estimate of the speech amplitude spectrum.
[0049] Since the estimation of speech amplitude spectrum does not take into account the compression characteristics of human ears to sound, the estimation of logarithmic spectrum is proposed. However, both the estimation of speech amplitude spectrum and the estimation of logarithmic spectrum ignore the estimation of clean speech in non-speech frames. Especially in the case of low signal-to-noise ratio, VAD judgment is easy to make mistakes, which in turn causes speech damage. Therefore, the probability of speech existence is further introduced to avoid speech damage as much as possible. At the same time, a minimum gain is introduced to avoid speech distortion as much as possible in the case of non-speech frames.
[0050] It can be seen that OMLSA has the following problems:
[0051] (1) It is impossible to effectively suppress non-stationary burst noise. The power spectral density (PSD) estimation of the noise has a large tracking delay and requires offset compensation.
[0052] (2) There is residual noise, which affects the subjective listening experience.
[0053] (3) It is necessary to assume the distribution model of speech signals and noise signals, which is inconsistent with the actual scenario.
[0054] Therefore, in order to solve at least one problem of OMLSA, the embodiments of the present disclosure provide a speech enhancement method, device, electronic device and non-transitory computer-readable storage medium, which divide the full-band speech into low-frequency speech and medium-high frequency speech, and perform noise reduction processing on the low-frequency speech, predict the time-frequency gain of the low-frequency speech, obtain the frequency domain amplitude spectrum, and combine the phase spectrum of the low-frequency speech to synthesize the time domain data after the low-frequency speech enhancement; then use the time-frequency gain of the low-frequency speech to predict the time domain gain of the medium-high frequency speech, and apply the time domain gain to the medium-high frequency speech; finally, the time domain data after the low-frequency speech enhancement and the time domain data after the medium-high frequency speech enhancement are synthesized into an enhanced speech signal under the full frequency band, so as to enhance the full-band speech. The embodiments of the present disclosure do not make any distribution assumptions on the speech and noise signals to be processed, and can adapt to complex and changeable actual scenarios.
[0055] Figure 1 FIG. 1 is an exemplary application scenario diagram of speech enhancement provided by an embodiment of the present disclosure. Figure 1 As shown, a noisy speech signal is input into a speech enhancement device 10, and the speech enhancement device 10 performs noise reduction on the noisy speech signal and outputs an enhanced speech signal of the noisy speech signal in the full frequency band.
[0056] exist Figure 1 In the embodiment, the speech enhancement device 10 includes but is not limited to: a low-frequency speech noise reduction unit 11 and a medium- and high-frequency speech prediction unit 12.
[0057] The low-frequency speech noise reduction unit 11 is used to extract the low-frequency speech from the noisy speech signal, obtain the time-frequency gain of the low-frequency speech by performing noise reduction processing on the low-frequency speech, and then obtain the frequency domain amplitude spectrum of the low-frequency speech based on the time-frequency gain of the low-frequency speech, and combine the phase spectrum of the low-frequency speech to synthesize the time domain data of the low-frequency speech enhancement.
[0058] The mid-to-high frequency speech prediction unit 12 is used to use the time-frequency gain of the low-frequency speech obtained by the low-frequency speech noise reduction unit 11 to predict the time domain gain of the mid-to-high frequency speech, and apply the time domain gain to the mid-to-high frequency speech. For example, the time domain gain is multiplied by the mid-to-high frequency speech to obtain the time domain data after the mid-to-high frequency speech is enhanced.
[0059] In some embodiments, the mid-to-high frequency speech prediction unit 12 can estimate the prior signal-to-noise ratio and the posterior signal-to-noise ratio in the high frequency component based on the time-frequency gain of the low frequency speech, and then obtain the probability of speech existence based on the prior signal-to-noise ratio and the posterior signal-to-noise ratio in the high frequency component, and obtain the time domain gain of the mid-to-high frequency speech based on the smoothed posterior signal-to-noise ratio and the probability of speech existence.
[0060] In some embodiments, the speech enhancement device 10 may also include: an enhanced speech signal output unit, which is used to synthesize the enhanced speech signal in the full frequency band from the time domain data of the low-frequency speech enhancement obtained by the low-frequency speech noise reduction unit 11 and the time domain data of the high-frequency speech enhancement obtained by the medium- and high-frequency speech prediction unit 12, so as to enhance the full-band speech.
[0061] In some embodiments, the division of each unit in the speech enhancement device 10 is only a logical function division, and there may be other division methods in actual implementation. For example, the low-frequency speech noise reduction unit 11 or the medium-high frequency speech prediction unit 12 can be divided into multiple sub-units. It is understandable that each unit or sub-unit 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. Those skilled in the art can use different methods to implement the described functions for each specific application.
[0062] Figure 2 An exemplary block diagram of a speech enhancement device 20 provided in an embodiment of the present disclosure. In some embodiments, the speech enhancement device 20 may be implemented as Figure 1 The speech enhancement device 10 or a part of the speech enhancement device 10 is used to enhance the full-band speech.
[0063] exist Figure 2 In the embodiment, the speech enhancement device 20 may include but is not limited to: an acquisition unit 21, a noise reduction unit 22, a prediction unit 23 and a determination unit 24.
[0064] Get unit 21
[0065] The acquisition unit 21 is used to acquire the noisy speech signal and divide the full frequency band of the noisy speech signal into a first bandwidth and a second bandwidth, wherein the first bandwidth and the second bandwidth constitute the full frequency band of the noisy speech signal. The upper limit (maximum frequency) of the first bandwidth is less than or equal to the lower limit (minimum frequency) of the second bandwidth. In some embodiments, the first bandwidth is a low frequency band of the noisy speech signal, such as 0 to 16 kHz; the second bandwidth is a mid-high frequency band of the noisy speech signal, such as 16 kHz to 48 kHz.
[0066] In some embodiments, the acquisition unit 21 may determine the first bandwidth based on the voice processing capability information of the mobile terminal device, and further divide the full frequency band of the noisy voice signal into the first bandwidth and the second bandwidth based on the first bandwidth.
[0067] In some embodiments, the voice processing capability information of a mobile device can be determined in a variety of ways. For example, the processing speed of the mobile device can be tested through voice test data. Under the premise of satisfying streaming processing, the maximum frequency that the mobile device can process is used as the voice processing capability information of the mobile device.
[0068] For example: Under the premise of satisfying streaming processing, the maximum frequency that the mobile terminal device can process is 24KHz, then it can be determined that the first bandwidth is 0 to 24kHz; correspondingly, the second bandwidth is 24KHz to 48KHz.
[0069] In some embodiments, the acquisition unit 21 can determine the amplitude spectrum and phase spectrum of the first bandwidth, and the amplitude spectrum and phase spectrum of the second bandwidth. In some embodiments, the noisy speech signal acquired by the acquisition unit 21 is a full-band signal, that is, the noisy speech signal is 0 to 48KHz, therefore, the amplitude spectrum and phase spectrum corresponding to the full-band can be obtained, and after the full-band of the noisy speech signal is divided into the first bandwidth and the second bandwidth, the amplitude spectrum and phase spectrum of the first bandwidth, and the amplitude spectrum and phase spectrum of the second bandwidth can be determined from the amplitude spectrum and phase spectrum corresponding to the full bandwidth. The acquisition of the amplitude spectrum and the phase spectrum belongs to the mature technology in this field and will not be repeated here.
[0070] In some embodiments, the acquisition unit 21 may perform low-frequency sampling and time-frequency transformation on the acquired noisy speech signal to obtain an amplitude spectrum and a phase spectrum of a first bandwidth. For example, the acquisition unit 21 performs 16KHz sampling on a frame of speech signal. Since a frame of speech signal lasts for 10ms, 160 sampling points are obtained after sampling. The acquisition unit 21 performs a time-frequency transformation on these 160 sampling points, such as a 512-point FFT (Fast Fourier Transform), to obtain an amplitude spectrum and a phase spectrum of a first bandwidth. It should be noted that, considering the symmetry of the 512-point FFT, (512÷2+1=257) points can be used as the input of the noise reduction unit 22.
[0071] Noise reduction unit 22
[0072] The noise reduction unit 22 is used to perform noise reduction processing on the noisy speech signal corresponding to the first bandwidth to obtain a first gain corresponding to the first bandwidth. In some embodiments, the noise reduction unit 22 performs noise reduction processing on the amplitude spectrum of the first bandwidth to obtain a first gain corresponding to the first bandwidth. The first gain is the gain of the amplitude spectrum of the low-frequency noisy speech signal, and the first gain is a time-frequency domain gain (referred to as time-frequency gain). For example, the noise reduction unit 22 can perform noise reduction processing on the 257-point data output by the acquisition unit 21.
[0073] In some embodiments, the noise reduction unit 22 may determine the first signal energy ratio corresponding to the first bandwidth based on the amplitude spectrum of the first bandwidth. The first signal energy ratio is, for example, any one of the following but not limited to: a signal-to-noise ratio of speech to noise, a power ratio of speech to noise, an amplitude ratio of speech to noise, a power ratio of noise to speech, an amplitude ratio of noise to speech, etc., wherein the speech may be a clean speech, i.e., a speech without noise, or a speech with noise.
[0074] In some embodiments, the noise reduction unit 22 may determine a spectrogram of the first frequency bandwidth based on the amplitude spectrum of the first frequency bandwidth, and further determine a first signal energy ratio corresponding to the first frequency bandwidth based on the spectrogram of the first frequency bandwidth.
[0075] In some embodiments, the noise reduction unit 22 can perform a first feature extraction on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), wherein the first extraction is used to perform dimensionality reduction processing on the amplitude spectrum of the first bandwidth, reducing the odd-dimensional data into even-dimensional data, so as to facilitate the subsequent second feature extraction of the even-dimensional data. It can be seen that the first feature extraction does not perform substantial feature extraction. Therefore, the first feature extraction can be understood as feature pre-extraction or surface feature extraction, which is a preparatory work for subsequent substantial feature extraction. For example: the noise reduction unit 22 can perform dimensionality reduction processing on the 257-point data (which can be understood as 257-dimensional data) output by the acquisition unit 21 to obtain 256-point data (which can be understood as 256-dimensional data).
[0076] In some embodiments, the noise reduction unit 22 may perform a second feature extraction on the features obtained by the first extraction (e.g., even-dimensional data) after performing the first feature extraction, wherein the second extraction is used to extract features from inputs with a time sequence. Compared with the first feature extraction, the second feature extraction belongs to substantial feature extraction, and therefore, the second feature extraction can also be understood as abstract feature extraction. After performing the second feature extraction, the noise reduction unit 22 may output a first signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction.
[0077] In some embodiments, the noise reduction unit 22 can perform noise reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth) through a temporal convolutional network (TCN) to obtain a priori signal energy ratio corresponding to the first bandwidth. Among them, the TCN network can realize the first feature extraction of the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), and realize the dimensionality reduction processing of the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth). The TCN network can also perform a second feature extraction on the features obtained by the first extraction, and realize feature extraction of input with time series. The TCN network can also output the priori signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction.
[0078] In some embodiments, the TCN network includes a first fully connected layer, a plurality of hole causal convolution layers connected in series, and a second fully connected layer. The first fully connected layer performs a first feature extraction on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth) to achieve dimensionality reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), for example, reducing the dimension of 257-dimensional data to obtain 256-dimensional data. The plurality of hole causal convolution layers connected in series perform a second feature extraction on the features obtained by the first extraction, wherein the hole causal convolution layer can enhance the overall receptive field of the TCN network. The second fully connected layer outputs the first signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction. In addition, contrary to the function of the first fully connected layer, the second fully connected layer also performs dimensionality increase processing, for example, increasing the dimension of 256-dimensional data to obtain 257-dimensional data.
[0079] It should be noted that, in the above embodiment, taking into account the characteristics of the speech signal time series and the resource-constrained application scenarios, the conventional RNN-like structure is not used to capture long-term context information. Instead, a plurality of hole causal convolution layers connected in series are used to perform a second feature extraction on the features obtained by the first extraction, thereby improving the overall receptive field of the TCN network. In addition, when the hole causal convolution layer infers from the current time step, it will not use the information obtained in the future time step. At the same time, the normalization (norm) method is improved from the existing layernorm to framenorm. Specifically, the existing layernorm normalizes all neurons in each layer, that is, normalizes the input at each depth, which mainly has an obvious effect on RNN. In the above embodiment, the normalization of framenorm only depends on the results of the previous and next frames. Compared with the prior art, the normalization range is reduced and the efficiency is higher.
[0080] In some embodiments, the noise reduction unit 22 may perform gain processing on the first signal energy ratio to obtain a first gain corresponding to the first bandwidth. The gain processing may include but is not limited to: smoothing processing and gain compensation. The smoothing processing may improve the hearing of the speech. The gain compensation may ensure the fidelity of the speech.
[0081] In some embodiments, the noise reduction unit 22 may determine the initial gain based on the first signal capability ratio, and then smooth the initial gain; wherein, the process of determining the initial gain may follow the existing mature technology, which will not be described in detail here. In some embodiments, the smoothing process includes but is not limited to removing abnormal mutation points in the initial gain, thereby achieving a better continuous enhanced speech listening experience.
[0082] In some embodiments, the noise reduction unit 22 may perform gain compensation on the result obtained by the smoothing process to obtain a first gain corresponding to the first bandwidth. In some embodiments, the gain compensation is gain compensation for speech, including but not limited to performing statistical distribution characteristic analysis on the result obtained by the smoothing process, identifying the speech and performing corresponding compensation, and then obtaining the first gain corresponding to the first bandwidth. In some embodiments, the specific method of the gain compensation may also use existing mature technologies, which will not be described in detail here.
[0083] In some embodiments, the functional form of the first gain obtained by the noise reduction unit 22 is jointly determined by the assumed statistical model of clean speech and noise and the optimization criterion. The MMSE-STSA gain function based on the minimum mean square error MMSE and the Gaussian distribution assumption of clean speech and noise is adopted.
[0084] In some embodiments, the noise reduction unit 22 may adjust the magnitude of the first gain. For example, after performing gain processing on the first signal energy ratio to obtain a first gain corresponding to the first bandwidth, the first gain is multiplied by a noise reduction weight to adjust the magnitude of the first gain, wherein the noise reduction weight may be predetermined based on user information.
[0085] For example, the noise reduction weight for paying users is higher, while that for non-paying users is lower, so that different noise reduction effects are given to different users. For another example, the noise reduction weight for paying merchants (live broadcast merchants) is higher, while that for non-paying merchants is lower, so that different noise reduction effects are given to different live broadcast merchants.
[0086] Prediction Unit 23
[0087] The prediction unit 23 is used to predict the second gain corresponding to the second bandwidth based on the first gain corresponding to the first bandwidth obtained by the noise reduction unit 22. The second gain is the time domain gain of the mid-high frequency noisy speech signal, also known as the time domain noise reduction gain. In some embodiments, the first bandwidth is the low frequency band of the noisy speech signal, such as 0 to 16kHz; the second bandwidth is the mid-high frequency band of the noisy speech signal, such as 16KHz to 48KHz.
[0088] In some embodiments, the prediction unit 23 may determine the probability of speech existence corresponding to the second bandwidth based on the first gain corresponding to the first bandwidth. In some embodiments, the prediction unit 23 may estimate the priori signal-to-noise ratio and the a posteriori signal-to-noise ratio in the high-frequency component based on the first gain corresponding to the first bandwidth or the first signal energy ratio corresponding to the first bandwidth, and then obtain the probability of speech existence corresponding to the second bandwidth based on the priori signal-to-noise ratio and the a posteriori signal-to-noise ratio in the high-frequency component.
[0089] In some embodiments, the prediction unit 23 may determine the second gain corresponding to the second bandwidth based on the first gain corresponding to the first bandwidth and the speech existence probability corresponding to the second bandwidth. In some embodiments, the prediction unit 23 obtains the second gain corresponding to the second bandwidth based on the posterior signal-to-noise ratio of the smoothed high-frequency component and the speech existence probability corresponding to the second bandwidth.
[0090] Determine unit 24
[0091] The determination unit 24 is configured to determine the enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain and the second gain. In some embodiments, the determination unit 24 obtains the enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain corresponding to the first frequency bandwidth, the second gain corresponding to the second frequency bandwidth, the amplitude spectrum and the phase spectrum of the first frequency bandwidth, and the amplitude spectrum and the phase spectrum of the second frequency bandwidth.
[0092] In some embodiments, the determination unit 24 may obtain an enhanced speech signal of the first bandwidth based on the first gain corresponding to the first bandwidth and the amplitude spectrum and phase spectrum of the first bandwidth. For example, the determination unit 24 may apply the first gain corresponding to the first bandwidth to the spectrogram of the first bandwidth, such as by multiplication, to obtain a spectrogram with the first gain added; and then perform speech synthesis on the spectrogram with the first gain added and the phase spectrum of the first bandwidth to obtain an enhanced speech signal of the first bandwidth.
[0093] In some embodiments, the determination unit 24 may obtain an enhanced speech signal of the second bandwidth based on the second gain corresponding to the second bandwidth and the amplitude spectrum and phase spectrum of the second bandwidth. For example, the determination unit 24 may apply the second gain corresponding to the second bandwidth to the time domain signal of the second bandwidth (i.e., the mid-high frequency band noisy speech signal) to obtain an enhanced speech signal of the second bandwidth. The time domain signal of the second bandwidth may be obtained from the amplitude spectrum and phase spectrum of the second bandwidth.
[0094] In some embodiments, the determination unit 24 may obtain an enhanced speech signal of the noisy speech signal in the full frequency band based on the enhanced speech signal of the first frequency bandwidth and the enhanced speech signal of the second frequency bandwidth.
[0095] It can be seen that in at least one embodiment of the present disclosure, by dividing the full frequency band of the noisy speech signal into a low frequency band (first bandwidth) and a medium and high frequency band (second bandwidth), only the low frequency band is subjected to noise reduction processing, and gain prediction is performed on the medium and high frequency bands. No noise reduction processing is required for the full frequency band, and full-band speech enhancement can be achieved. Compared with the existing scheme of performing noise reduction processing on the full frequency band, the present disclosure can reduce the amount and complexity of processed data, improve the efficiency and speed of processing, and is suitable for deployment on mobile devices to achieve streaming full-band speech enhancement. Among them, the mobile terminal device can be a mobile electronic device such as a smart phone, a tablet computer, and a smart speaker. In some embodiments, the device used to play and / or collect audio in scenarios such as video conferencing and telephone conferencing can also adopt the scheme of the embodiments of the present disclosure.
[0096] It can be seen that in at least one embodiment of the present disclosure, the TCN network is designed in combination with the idea of data-driven supervised learning, and no distribution assumptions are made on the speech and noise signals to be processed. At the same time, by constructing a noise data set based on real scene noise, the TCN network is "artificially" made to remember some burst noises, and the noise reduction strategy is changed from the perspective of improving the generalization ability to perform speech reverse noise reduction so that the TCN network can cope with unseen burst noises, thereby solving the problems (1) and (3) of the OMLSA algorithm.
[0097] It can be seen that in at least one embodiment of the present disclosure, a TCN network (hole causal convolution) that can capture long-term contextual key information is used to improve the representation ability of the TCN network, so that the training error is reduced and the residual noise is significantly reduced.
[0098] It can be seen that in at least one embodiment of the present disclosure, a streaming full-band speech enhancement method suitable for mobile devices based on the TCN network structure is proposed, which has the characteristics of low power consumption and streaming processing, and is suitable for mobile scenario deployment of services such as cloud conferencing, live broadcast, microphone connection, and smart speakers with high noise.
[0099] In some embodiments, the division of each unit in the speech enhancement device 20 is only a logical function division. There may be other division methods in actual implementation. For example, at least two units of the acquisition unit 21, the noise reduction unit 22, the prediction unit 23 and the determination unit 24 can be implemented as one unit; the acquisition unit 21, the noise reduction unit 22, the prediction unit 23 or the determination unit 24 can also be divided into multiple sub-units. It is understandable that each unit or sub-unit 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. Those skilled in the art can use different methods to implement the described functions for each specific application.
[0100] Figure 3Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 3 As shown, the electronic device includes: at least one processor 31, at least one memory 32 and at least one communication interface 33. The various components in the electronic device are coupled together through a bus system 34. The communication interface 33 is used to transmit information between external devices. It can be understood that the bus system 34 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 34 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 3 Various buses are labeled as bus system 34 .
[0101] It can be understood that the memory 32 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
[0102] In some embodiments, the memory 32 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.
[0103] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic tasks and process hardware-based tasks. The application includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application tasks. The program for implementing the speech enhancement method provided in the embodiment of the present disclosure can be included in the application.
[0104] In the embodiment of the present disclosure, the processor 31 calls the program or instructions stored in the memory 32, specifically, the program or instructions stored in the application, and the processor 31 is used to execute the steps of each embodiment of the speech enhancement method provided in the embodiment of the present disclosure.
[0105] The speech enhancement method provided in the embodiment of the present disclosure can be applied to the processor 31, or implemented by the processor 31. The processor 31 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 31 or the instructions in the form of software. The above-mentioned processor 31 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0106] The steps of the speech enhancement method provided in the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 32, and the processor 31 reads the information in the memory 32 and completes the steps of the method in combination with its hardware.
[0107] Figure 4 An exemplary flow chart of a speech enhancement method provided in an embodiment of the present disclosure. The execution subject of the method is an electronic device. In some embodiments, the electronic device is a mobile terminal device, for example, a smart phone, a tablet computer, a smart speaker or other portable electronic device. In some embodiments, the device used to play and / or collect audio in scenes such as video conferencing and telephone conferencing may also adopt the scheme of the embodiment of the present disclosure. For ease of description, the process of the speech enhancement method is explained in the following embodiments using an electronic device as the execution subject.
[0108] like Figure 4 As shown, in step 401, the electronic device obtains a noisy speech signal, and divides the full frequency band of the noisy speech signal into a first bandwidth and a second bandwidth, and the first bandwidth and the second bandwidth constitute the full frequency band of the noisy speech signal. Among them, the upper limit (maximum frequency) of the first bandwidth is less than or equal to the lower limit (minimum frequency) of the second bandwidth.
[0109] In some embodiments, the first bandwidth is a low frequency band of the noisy speech signal, such as 0 to 16 kHz; the second bandwidth is a mid-high frequency band of the noisy speech signal, such as 16 KHz to 48 KHz.
[0110] In some embodiments, the electronic device may determine the first bandwidth based on the voice processing capability information, and further divide the full frequency band of the noisy voice signal into the first bandwidth and the second bandwidth based on the first bandwidth.
[0111] In some embodiments, the voice processing capability information of the electronic device can be determined in a variety of ways. For example, the processing speed of the electronic device can be tested through voice test data. Under the premise of satisfying streaming processing, the maximum frequency that the electronic device can process is used as the voice processing capability information.
[0112] For example: Under the premise of satisfying streaming processing, the maximum frequency that the electronic device can process is 24KHz, then the first bandwidth can be determined to be 0 to 24kHz; correspondingly, the second bandwidth is 24KHz to 48KHz.
[0113] In some embodiments, the electronic device can determine the amplitude spectrum and phase spectrum of the first bandwidth, and the amplitude spectrum and phase spectrum of the second bandwidth. In some embodiments, the noisy speech signal acquired by the electronic device is a full-band signal, that is, the noisy speech signal is 0 to 48KHz, therefore, the amplitude spectrum and phase spectrum corresponding to the full-band can be obtained, and after the full-band of the noisy speech signal is divided into the first bandwidth and the second bandwidth, the amplitude spectrum and phase spectrum of the first bandwidth, and the amplitude spectrum and phase spectrum of the second bandwidth can be determined from the amplitude spectrum and phase spectrum corresponding to the full bandwidth. The acquisition of amplitude spectrum and phase spectrum belongs to the mature technology in this field and will not be repeated here.
[0114] In some embodiments, the electronic device may perform low-frequency sampling and time-frequency transformation on the acquired noisy speech signal to obtain an amplitude spectrum and a phase spectrum of a first bandwidth. For example, the electronic device samples a frame of speech signal at 16KHz. Since a frame of speech signal lasts for 10ms, 160 sampling points are obtained after sampling. The electronic device performs time-frequency transformation on these 160 sampling points, such as a 512-point FFT (Fast Fourier Transform), to obtain an amplitude spectrum and a phase spectrum of a first bandwidth. It should be noted that, considering the symmetry of the 512-point FFT, the electronic device can perform noise reduction processing on (512÷2+1=257) points.
[0115] In step 402, the electronic device performs noise reduction processing on the noisy speech signal corresponding to the first bandwidth to obtain a first gain corresponding to the first bandwidth. In some embodiments, the electronic device may perform noise reduction processing on the amplitude spectrum of the first bandwidth to obtain a first gain corresponding to the first bandwidth. The first gain is the gain of the amplitude spectrum of the low-frequency noisy speech signal, and the first gain is a time-frequency domain gain (referred to as time-frequency gain). For example, the electronic device may perform noise reduction processing on 257-point data.
[0116] In some embodiments, the electronic device may determine the first signal energy ratio corresponding to the first bandwidth based on the amplitude spectrum of the first bandwidth; and then perform gain processing on the first signal energy ratio to obtain the first gain corresponding to the first bandwidth. The gain processing may include but is not limited to: smoothing processing and gain compensation. The smoothing processing can improve the hearing of the voice. The gain compensation can ensure the fidelity of the voice.
[0117] In some embodiments, the electronic device may determine a spectrogram of the first frequency bandwidth based on the amplitude spectrum of the first frequency bandwidth, and further determine a first signal energy ratio corresponding to the first frequency bandwidth based on the spectrogram of the first frequency bandwidth.
[0118] In some embodiments, the first signal energy ratio is, for example, any one of the following but not limited to: the signal-to-noise ratio of speech and noise, the power ratio of speech and noise, the amplitude ratio of speech and noise, the power ratio of noise and speech, the amplitude ratio of noise and speech, etc., wherein the speech can be clean speech, that is, speech without noise, or speech with noise.
[0119] In some embodiments, the electronic device may perform a first feature extraction on the amplitude spectrum of the first frequency bandwidth (or the spectrogram of the first frequency bandwidth), and the first extraction is used to perform dimensionality reduction processing on the amplitude spectrum of the first frequency bandwidth; then perform a second feature extraction on the features obtained by the first extraction, and the second extraction is used to perform feature extraction on input with a time series; thereby, based on the features obtained by the second extraction, a first signal energy ratio corresponding to the first frequency bandwidth is output.
[0120] The first feature extraction can reduce the odd-dimensional data into even-dimensional data, which is convenient for the subsequent second feature extraction of the even-dimensional data. It can be seen that the first feature extraction does not perform substantial feature extraction. Therefore, the first feature extraction can be understood as feature pre-extraction or surface feature extraction, which is a preparatory work for the subsequent substantial feature extraction. For example: the noise reduction unit 22 can perform dimensionality reduction processing on the 257-point data (which can be understood as 257-dimensional data) output by the acquisition unit 21 to obtain 256-point data (which can be understood as 256-dimensional data).
[0121] Compared with the first feature extraction, the second feature extraction belongs to the substantial feature extraction. Therefore, the second feature extraction can also be understood as abstract feature extraction.
[0122] In some embodiments, the electronic device may perform noise reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth) through a temporal convolutional network (TCN) to obtain a priori signal energy ratio corresponding to the first bandwidth. Among them, the TCN network can realize the first feature extraction of the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), and realize the dimensionality reduction processing of the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth). The TCN network can also perform a second feature extraction on the features obtained by the first extraction, and realize feature extraction of input with time series. The TCN network can also output the priori signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction.
[0123] In some embodiments, the TCN network includes a first fully connected layer, a plurality of hole causal convolution layers connected in series, and a second fully connected layer. The first fully connected layer performs a first feature extraction on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth) to achieve dimensionality reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), for example, reducing the dimension of 257-dimensional data to obtain 256-dimensional data. The plurality of hole causal convolution layers connected in series perform a second feature extraction on the features obtained by the first extraction, wherein the hole causal convolution layer can enhance the overall receptive field of the TCN network. The second fully connected layer outputs the first signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction. In addition, contrary to the function of the first fully connected layer, the second fully connected layer also performs dimensionality increase processing, for example, increasing the dimension of 256-dimensional data to obtain 257-dimensional data.
[0124] It should be noted that, in the above embodiment, taking into account the characteristics of the speech signal time series and the resource-constrained application scenarios, the conventional RNN-like structure is not used to capture long-term context information. Instead, a plurality of hole causal convolution layers connected in series are used to perform a second feature extraction on the features obtained by the first extraction, thereby improving the overall receptive field of the TCN network. In addition, when the hole causal convolution layer infers from the current time step, it will not use the information obtained in the future time step. At the same time, the normalization (norm) method is improved from the existing layernorm to framenorm. Specifically, the existing layernorm normalizes all neurons in each layer, that is, normalizes the input at each depth, which mainly has an obvious effect on RNN. In the above embodiment, the normalization of framenorm only depends on the results of the previous and next frames. Compared with the prior art, the normalization range is reduced and the efficiency is higher.
[0125] In some embodiments, the electronic device may determine an initial gain based on the first signal capability ratio, and then perform smoothing on the initial gain; thereby performing gain compensation on a result obtained by the smoothing process to obtain a first gain corresponding to the first bandwidth.
[0126] In some embodiments, the smoothing process includes but is not limited to removing abnormal mutation points in the initial gain, thereby achieving a better continuous enhanced speech listening experience. In some embodiments, the gain compensation is gain compensation for speech, including but not limited to performing statistical distribution characteristic analysis on the result obtained by the smoothing process, identifying the speech and performing corresponding compensation, thereby obtaining a first gain corresponding to the first bandwidth.
[0127] In some embodiments, the functional form of the first gain obtained by the electronic device is determined by the assumed statistical model of clean speech and noise and the optimization criterion. The MMSE-STSA gain function based on the minimum mean square error MMSE and the Gaussian distribution assumption of clean speech and noise is adopted.
[0128] In some embodiments, the electronic device may adjust the magnitude of the first gain. For example, after performing gain processing on the first signal energy ratio to obtain the first gain corresponding to the first bandwidth, the first gain is multiplied by the noise reduction weight to adjust the magnitude of the first gain, wherein the noise reduction weight may be predetermined based on user information.
[0129] For example, the noise reduction weight for paying users is higher, while that for non-paying users is lower, so that different noise reduction effects are given to different users. For another example, the noise reduction weight for paying merchants (live broadcast merchants) is higher, while that for non-paying merchants is lower, so that different noise reduction effects are given to different live broadcast merchants.
[0130] In step 403, the electronic device predicts a second gain corresponding to the second bandwidth based on the first gain corresponding to the first bandwidth, wherein the second gain is a time domain gain of the mid-high frequency noisy speech signal, also known as a time domain noise reduction gain.
[0131] In some embodiments, the electronic device determines the speech existence probability corresponding to the second frequency bandwidth based on the first gain corresponding to the first frequency bandwidth; and further determines the second gain corresponding to the second frequency bandwidth based on the first gain and the speech existence probability.
[0132] In some embodiments, the electronic device may estimate the prior signal-to-noise ratio and the a posteriori signal-to-noise ratio in the high-frequency component based on the first gain corresponding to the first frequency bandwidth or the first signal energy ratio corresponding to the first frequency bandwidth, and then obtain the probability of speech existence corresponding to the second frequency bandwidth based on the prior signal-to-noise ratio and the a posteriori signal-to-noise ratio in the high-frequency component.
[0133] In some embodiments, the electronic device may obtain a second gain corresponding to the second frequency bandwidth based on the a posteriori signal-to-noise ratio of the smoothed high-frequency component and the probability of speech existence corresponding to the second frequency bandwidth.
[0134] In step 404, the electronic device determines an enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain and the second gain. In some embodiments, the electronic device can obtain the enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain corresponding to the first frequency bandwidth, the second gain corresponding to the second frequency bandwidth, the amplitude spectrum and phase spectrum of the first frequency bandwidth, and the amplitude spectrum and phase spectrum of the second frequency bandwidth.
[0135] In some embodiments, the electronic device can obtain an enhanced speech signal of a first frequency bandwidth based on a first gain corresponding to the first frequency bandwidth and an amplitude spectrum and a phase spectrum of the first frequency bandwidth; and obtain an enhanced speech signal of a second frequency bandwidth based on a second gain corresponding to the second frequency bandwidth and an amplitude spectrum and a phase spectrum of the second frequency bandwidth; and further obtain an enhanced speech signal of the noisy speech signal in the full frequency band based on the enhanced speech signal of the first frequency bandwidth and the enhanced speech signal of the second frequency bandwidth.
[0136] It can be seen that in at least one embodiment of the present disclosure, by dividing the full frequency band of the noisy speech signal into a low frequency band (first bandwidth) and a mid-high frequency band (second bandwidth), only the low frequency band is subjected to noise reduction processing, and gain prediction is performed on the mid-high frequency band, and full-band speech enhancement can be achieved without performing noise reduction processing on the full frequency band. Compared with the existing scheme of performing noise reduction processing on the full frequency band, the present disclosure can reduce the amount and complexity of processed data, improve the efficiency and speed of processing, and is suitable for deployment on mobile devices to achieve streaming full-band speech enhancement.
[0137] It can be seen that in at least one embodiment of the present disclosure, combined with the idea of data-driven supervised learning, a streaming full-band speech enhancement method suitable for mobile terminals based on the TCN network structure is proposed, which has the characteristics of low power consumption and streaming processing, and is suitable for mobile terminal scenario deployment of cloud conferencing, live broadcast, and microphone connection services.
[0138] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all described as a series of action combinations, but those skilled in the art can understand that the embodiments of the present disclosure are not limited by the described action sequence, because according to the embodiments of the present disclosure, some steps can be performed in other sequences or simultaneously. In addition, those skilled in the art can understand that the embodiments described in the specification are all optional embodiments.
[0139] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, which stores programs or instructions. The programs or instructions enable a computer to execute the steps of the various embodiments of the speech enhancement method. To avoid repeated description, they are not repeated here.
[0140] Figure 5It is an exemplary flow chart of a speech enhancement method provided in an embodiment of the present disclosure. The execution subject of the method is an electronic device. For the convenience of description, the description of the speech enhancement method flow performed by the execution subject is omitted in the following embodiments.
[0141] like Figure 5 As shown, in step 501, the noisy speech signal is sampled in the time domain and transformed in the frequency domain to obtain an amplitude spectrum and a phase spectrum of a first bandwidth, as well as an amplitude spectrum and a phase spectrum of a second bandwidth. The first bandwidth and the second bandwidth constitute the full frequency band of the noisy speech signal. In some embodiments, the first bandwidth is the low frequency band of the noisy speech signal, such as 0 to 16kHz; the second bandwidth is the middle and high frequency band of the noisy speech signal, such as 16KHz to 48KHz.
[0142] In step 502, based on the amplitude spectrum of the first bandwidth, a spectrogram of the first bandwidth can be determined, and the spectrogram of the first bandwidth is subjected to noise reduction processing to obtain a first gain corresponding to the first bandwidth. The first gain is the gain of the amplitude spectrum of the low-frequency noisy speech signal, and the first gain is a time-frequency domain gain (referred to as time-frequency gain).
[0143] In step 503, a second gain corresponding to the second bandwidth is predicted based on the first gain corresponding to the first bandwidth, wherein the second gain is a time domain gain of the mid-high frequency noisy speech signal, also known as a time domain noise reduction gain.
[0144] In step 504, an enhanced speech signal of the noisy speech signal in the full frequency band is synthesized based on the first gain corresponding to the first frequency bandwidth, the second gain corresponding to the second frequency bandwidth, the amplitude spectrum and the phase spectrum of the first frequency bandwidth, and the amplitude spectrum and the phase spectrum of the second frequency bandwidth.
[0145] In some embodiments, an enhanced speech signal of the first bandwidth is obtained based on a first gain corresponding to the first bandwidth and an amplitude spectrum and a phase spectrum of the first bandwidth; an enhanced speech signal of the second bandwidth is obtained based on a second gain corresponding to the second bandwidth and an amplitude spectrum and a phase spectrum of the second bandwidth; based on the enhanced speech signal of the first bandwidth and the enhanced speech signal of the second bandwidth, an enhanced speech signal of the noisy speech signal in the full frequency band is synthesized.
[0146] Figure 6 is an exemplary flow chart of determining a first gain provided by an embodiment of the present disclosure, and the flow chart is applicable to Figure 5 In step 502 of determining the first gain, that is, Figure 6 The process shown is an implementation of step 502 .
[0147] like Figure 6As shown, the amplitude spectrum of the first bandwidth is input into a temporal convolutional network (TCN), and the TCN network performs noise reduction processing and then outputs a first signal energy ratio corresponding to the first bandwidth. In this embodiment, the first signal energy ratio is a priori signal energy ratio.
[0148] In some embodiments, based on the amplitude spectrum of the first bandwidth, a spectrogram of the first bandwidth can be determined, and the spectrogram of the first bandwidth is input into a temporal convolutional network (TCN), which performs noise reduction processing and outputs a first signal energy ratio corresponding to the first bandwidth.
[0149] In some embodiments, the TCN network can perform a first feature extraction on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), and perform dimensionality reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth). The TCN network can also perform a second feature extraction on the features obtained by the first extraction, and perform feature extraction on the input with a time sequence. The TCN network can also output the prior signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction.
[0150] In step 601, the first signal energy ratio is subjected to gain processing to obtain a first gain corresponding to the first bandwidth. The gain processing may include but is not limited to: smoothing processing and gain compensation. The smoothing processing can improve the hearing of the speech. The gain compensation can ensure the fidelity of the speech.
[0151] In some embodiments, an initial gain is determined based on the first signal capability ratio, and then the initial gain is smoothed; thereby, gain compensation is performed on the result obtained by the smoothing process to obtain a first gain corresponding to the first bandwidth.
[0152] In some embodiments, the smoothing process includes but is not limited to removing abnormal mutation points in the initial gain, thereby achieving a better continuous enhanced speech listening experience. In some embodiments, the gain compensation is gain compensation for speech, including but not limited to performing statistical distribution characteristic analysis on the result obtained by the smoothing process, identifying the speech and performing corresponding compensation, thereby obtaining a first gain corresponding to the first bandwidth.
[0153] Figure 7 is an exemplary architecture diagram of a temporal convolutional network (TCN) provided in an embodiment of the present disclosure. In some embodiments, Figure 7 The temporal convolutional network shown can be implemented as Figure 6 The temporal convolutional network or a portion thereof shown in .
[0154] like Figure 7As shown, the temporal convolutional network includes a first fully connected layer, a plurality of hole causal convolutional layers connected in series, and a second fully connected layer. The first fully connected layer performs a first feature extraction on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth) to achieve dimensionality reduction processing on the amplitude spectrum of the first bandwidth (or the spectrogram of the first bandwidth), for example, reducing the dimension of 257-dimensional data to obtain 256-dimensional data. The plurality of hole causal convolutional layers connected in series perform a second feature extraction on the features obtained by the first extraction, wherein the hole causal convolutional layer can improve the overall receptive field of the TCN network. The second fully connected layer outputs the first signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction. In addition, contrary to the function of the first fully connected layer, the second fully connected layer also performs dimensionality increase processing, for example, increasing the dimension of 256-dimensional data to obtain 257-dimensional data.
[0155] Figure 8 This is an exemplary flow chart of determining a first bandwidth of an enhanced speech signal provided by an embodiment of the present disclosure. The first bandwidth is a low frequency band of a noisy speech signal, for example, 0 to 16 kHz.
[0156] like Figure 8 As shown, after determining the amplitude spectrum and phase spectrum of the first frequency bandwidth of the noisy speech signal 801, a spectrogram 802 of the first frequency bandwidth of the noisy speech signal 801 is obtained based on the amplitude spectrum of the first frequency bandwidth.
[0157] The spectrogram 802 of the first bandwidth is used as the input of the residual convolution network (ResNetConv network) 803. The ResNetConv network 803 can be implemented as a TCN network structure, including a first fully connected layer (FC) 8031, a plurality of hole causal convolution layers (Conv blocks) 8032 connected in series, and a second fully connected layer (FC) 8033.
[0158] The output of the ResNetConv network 803 is a first signal energy ratio corresponding to the first bandwidth. In this embodiment, the first signal energy ratio is a priori signal energy ratio, for example, a priori signal-to-noise ratio.
[0159] The energy ratio of the prior signal output by the ResNetConv network 803 is subjected to gain processing by a gain postprocessing (Gain postprocessing) 804, and the gain processing may include but is not limited to: smoothing processing and gain compensation. The smoothing processing can improve the hearing of the speech. The gain compensation can ensure the fidelity of the speech.
[0160] The output of gain post processing 804 is the first gain corresponding to the first bandwidth. The first gain is the gain of the amplitude spectrum of the low-frequency noisy speech signal, and the first gain is a gain in the time-frequency domain (referred to as time-frequency gain). Therefore, the first gain can be applied to the spectrogram 802 of the first bandwidth, such as by multiplication operation, to obtain a spectrogram 805 with the first gain added.
[0161] Audio synthesis 806 is performed on the spectrogram 805 with the first gain added and the phase spectrum corresponding to the first bandwidth to obtain an enhanced speech signal 807 of the first bandwidth.
[0162] based on Figure 8 In the illustrated embodiment, the process of predicting the second gain corresponding to the second bandwidth is described as follows (1) to (6):
[0163] (1) For the first gain segment, it is divided into 4 segments by default, and the length of each segment is deltaBweHB.
[0164] (2) The first signal energy ratio corresponding to the first bandwidth is the prior signal-to-noise ratio snrLocPrior; correspondingly, the posterior signal-to-noise ratio is recorded as snrLocPost.
[0165] snrLocPost(i)=snrLocPrior(i)+1.0(i=0, 1,…binNum)
[0166] Among them, i represents the index of the frequency dimension, ranging from 0 to binNum, and binNum is the maximum frequency dimension index, which is generally 257.
[0167]
[0168] Wherein, logLrtTimeavg(i, t) represents the speech state likelihood factor of the tth frame at the ith frequency point, and LRT_TAVG is a smoothing factor in the time domain. Wherein, LRT_TAVG can be 0.5.
[0169]
[0170] Wherein, logLrtTimeAvgKsum is the average speech state likelihood factor at all frequency points.
[0171] (3) widthPrior is a parameter of the sigmoid mapping in the prior TCN network, which is used to scale the value range of the non-speech segment. The default value of widthPrior is widthPrior0. If logLrtTimeAvgKsum<threshPrior0, the default value of widthPrior is widthPrior1. Among them, widthPrior0 can be 4, widthPrior1=2×widthPrior0.
[0172] (4) Perform tanh mapping
[0173] indPrior=weightIndPrior0×(0.5×(tanh(widthPrior×(logLrtTimeAvgKsum-threshPrior0))+1.0))
[0174] priorSpeechProb(t)=priorSpeechProb(t-1)+priorUpdate×(indPrior-priorSpeechProb(t-1))
[0175] Among them, weightIndPrior0 can be 1, threshPrior0 can be 0.5, priorUpdate can be 0.1, priorSpeechProb(t) is the prior probability of speech existence at time t, and indPrior is the spectrum flatness feature.
[0176] (5) PriorSpeechProb(t) is limited to the range of (0.01, 1.0) and the average value within the fixed frequency band is calculated, and finally the speech existence probability avgProbSpeechHB corresponding to the second bandwidth is obtained.
[0177]
[0178]
[0179] (6) caledGain is the first gain corresponding to the first bandwidth.
[0180]
[0181] gainModHB=0.5×(1.0+tanh(gainMapParHB×(2.0×avgProbSpeechHB-1.0)))
[0182] gainTimeDomainHB=0.5×gainModHB+0.5×avgFilterGainHB
[0183] Wherein, avgFilterGainHB is the average value of the first gain in a specific frequency band, gainTimeDomainHB is the second gain corresponding to the second bandwidth. gainMapParHB can be 1. If gainTimeDomainHB≥0.5, the gainModHB coefficient can be adjusted to 0.25, the avgFilterGainHB coefficient can be adjusted to 0.75, and the amplitude can be limited at the same time.
[0184] Technical Effects
[0185] Based on the description of the above embodiments, the technical effects of the embodiments of the present disclosure are explained:
[0186] 1. Objective indicators:
[0187] The solution of the embodiment of the present disclosure improves speech quality PESQ by about 11.8% and speech intelligibility STOI by about 17.0% compared with the OMLSA algorithm; at the same time, it meets the requirements of real-time streaming processing on mobile terminal consumption and can cover most mobile terminal devices. Table 1 is a comparison of the effects of the solution of the embodiment of the present disclosure and the OMLSA algorithm.
[0188] Table 1 is a comparison of the effects of the solution of the embodiment of the present disclosure and the OMLSA algorithm
[0189]
[0190] 2. Subjective listening experience:
[0191] Fig. 9 It is an exemplary waveform diagram and corresponding spectrogram of noisy speech in a real environment; Fig.10 yes Fig. 9 The waveform and corresponding spectrogram of the noisy speech after OMLSA processing are shown; Fig.11 yes Fig. 9 The waveform diagram and the corresponding spectrogram are obtained after the noisy speech is processed by the speech enhancement method provided in the embodiment of the present disclosure.
[0192] It can be seen that the solution of the embodiment of the present disclosure has significantly better suppression capability for non-stationary burst noise than the OMLSA algorithm.
[0193] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0194] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present disclosure and to form different embodiments.
[0195] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0196] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A speech enhancement method, characterized in that: The method comprises: Obtaining a noisy speech signal; Dividing the full frequency band of the noisy speech signal into a first frequency bandwidth and a second frequency bandwidth; The method comprises: performing noise reduction processing on the noisy speech signal corresponding to the first frequency bandwidth to obtain a first gain corresponding to the first frequency bandwidth, including: determining a first signal energy ratio corresponding to the first frequency bandwidth based on the amplitude spectrum of the first frequency bandwidth; performing gain processing on the first signal energy ratio to obtain a first gain corresponding to the first frequency bandwidth; the first gain is a time-frequency gain of the amplitude spectrum of the low-frequency noisy speech signal; Predicting a second gain corresponding to the second bandwidth based on the first gain includes: determining a speech existence probability corresponding to the second bandwidth based on the first gain; determining a second gain corresponding to the second bandwidth based on the first gain and the speech existence probability; the second gain is a time domain noise reduction gain of a mid-high frequency noisy speech signal; An enhanced speech signal of the noisy speech signal in the full frequency band is determined based on the first gain and the second gain.
2. The method according to claim 1, characterized in that Dividing the full frequency band of the noisy speech signal into a first frequency bandwidth and a second frequency bandwidth comprises: Determining a first bandwidth based on voice processing capability information of the mobile terminal device; Based on the first bandwidth, the full frequency band of the noisy speech signal is divided into a first frequency bandwidth and a second frequency bandwidth.
3. The method according to claim 1, Its characteristics are characterized in that, The determining, based on the first gain and the second gain, an enhanced speech signal of the noisy speech signal in the full frequency band comprises: determining an amplitude spectrum and a phase spectrum of a second frequency bandwidth; Based on the first gain, the second gain, the amplitude spectrum and the phase spectrum of the first bandwidth, and the amplitude spectrum and the phase spectrum of the second bandwidth, an enhanced speech signal of the noisy speech signal in the full frequency band is obtained.
4. The method according to claim 1, characterized in that: The determining, based on the amplitude spectrum of the first bandwidth, a first signal energy ratio corresponding to the first bandwidth includes: Performing a first feature extraction on the amplitude spectrum of the first bandwidth, wherein the first extraction is used to perform a dimensionality reduction process on the amplitude spectrum of the first bandwidth; Performing a second feature extraction on the features obtained by the first extraction, wherein the second extraction is used to perform feature extraction on an input having a time sequence; Based on the second extracted feature, a first signal energy ratio corresponding to the first bandwidth is output.
5. The method according to claim 4, characterized in that The determining, based on the amplitude spectrum of the first bandwidth, a first signal energy ratio corresponding to the first bandwidth includes: The amplitude spectrum of the first bandwidth is subjected to noise reduction processing through a time convolution network to obtain a priori signal energy ratio corresponding to the first bandwidth.
6. The method according to claim 5, characterized in that The temporal convolutional network includes a first fully connected layer, a plurality of hole causal convolutional layers connected in series, and a second fully connected layer; Among them, the first fully connected layer performs a first feature extraction on the amplitude spectrum of the first bandwidth; the multiple hole causal convolutional layers connected in series perform a second feature extraction on the features obtained by the first extraction; and the second fully connected layer outputs a first signal energy ratio corresponding to the first bandwidth based on the features obtained by the second extraction.
7. The method according to claim 1, characterized in that The first signal energy ratio includes any one of the following: Signal-to-noise ratio, power ratio of speech to noise, amplitude ratio of speech to noise, power ratio of noise to speech, amplitude ratio of noise to speech.
8. The method according to claim 1, characterized in that The performing gain processing on the first signal energy ratio to obtain a first gain corresponding to the first bandwidth includes: determining an initial gain based on the first signal capability ratio; Performing smoothing on the initial gain; Gain compensation is performed on a result obtained by the smoothing process to obtain a first gain corresponding to the first bandwidth.
9. The method according to claim 3, characterized in that: The step of obtaining an enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain, the second gain, the amplitude spectrum and the phase spectrum of the first bandwidth, and the amplitude spectrum and the phase spectrum of the second bandwidth comprises: Obtaining an enhanced speech signal of the first bandwidth based on the first gain and the amplitude spectrum and the phase spectrum of the first bandwidth; Obtaining an enhanced speech signal of the second bandwidth based on the second gain and the amplitude spectrum and the phase spectrum of the second bandwidth; Based on the enhanced speech signal of the first frequency bandwidth and the enhanced speech signal of the second frequency bandwidth, an enhanced speech signal of the noisy speech signal in the full frequency band is obtained.
10. A speech enhancement device, characterized in that: The device comprises: An acquisition unit, configured to acquire a noisy speech signal; and divide the full frequency band of the noisy speech signal into a first frequency bandwidth and a second frequency bandwidth; A noise reduction unit, configured to perform noise reduction processing on the noisy speech signal corresponding to the first frequency bandwidth to obtain a first gain corresponding to the first frequency bandwidth, comprising: determining a first signal energy ratio corresponding to the first frequency bandwidth based on an amplitude spectrum of the first frequency bandwidth; performing gain processing on the first signal energy ratio to obtain a first gain corresponding to the first frequency bandwidth; the first gain is a time-frequency gain of an amplitude spectrum of a low-frequency noisy speech signal; A prediction unit, configured to predict a second gain corresponding to the second bandwidth based on the first gain, comprising: determining a speech existence probability corresponding to the second bandwidth based on the first gain; determining a second gain corresponding to the second bandwidth based on the first gain and the speech existence probability; the second gain being a time domain noise reduction gain of a mid-high frequency noisy speech signal; A determining unit is used to determine an enhanced speech signal of the noisy speech signal in the full frequency band based on the first gain and the second gain.
11. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the steps of the method according to any one of claims 1 to 9 by calling the program or instruction stored in the memory.
12. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores a program or instruction, which enables a computer to execute the steps of the method according to any one of claims 1 to 9.
