Speech enhancement method, device, earphone device and computer-readable storage medium
By configuring vibration sensors and deep learning algorithms in headphone devices, and using bone conduction signals to determine signal types and perform noise reduction processing on high-frequency and low-frequency signals, the complexity and computational load of voice enhancement algorithms on headphone devices are solved, enabling real-time voice enhancement on low-power devices and improving the clarity of voice signals.
Patent Information
- Application Number
- CN202210461573.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-04-28
AI Technical Summary
Existing speech enhancement algorithms are difficult to run in real time on headphone devices, mainly due to their complexity and high computational load, which makes it difficult for headphone devices to effectively eliminate background noise.
By configuring vibration sensors in the headphone device, the signal type is determined using bone conduction signals. Combined with deep learning and frequency domain processing, noise reduction processing is performed on high-frequency and low-frequency signals respectively, including time-frequency transformation, spectral energy calculation and fusion decision, to enhance the speech signal.
In low-power and low-resource headphone devices, it effectively eliminates background noise, improves the clarity and intelligibility of voice signals, and reduces auditory fatigue.
Smart Images

Figure CN114822573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio signal processing, and in particular to a speech enhancement method, device, earphone equipment and computer-readable storage medium. Background Art
[0002] In addition, when the user wears the headset to receive the voice signal, the voice signal can be transmitted to the user's inner ear through both air conduction and bone conduction. However, due to the influence of environmental noise, the voice signal transmitted through air conduction is very susceptible to noise pollution, and due to the limitations of existing technology, the frequency of the sound signal that can be transmitted through bone conduction is relatively low, which makes the voice signal sound dull to the user after it is transmitted to the user's inner ear.
[0003] Based on this, the prior art has developed some speech enhancement algorithms based on deep learning of neural network models. Although they can effectively eliminate noise to achieve the purpose of speech enhancement (extracting pure speech signals from noisy speech signals as much as possible at the receiving end, thereby reducing the audience's auditory fatigue and improving the intelligibility of speech signals), deep learning requires the extraction of high-dimensional feature vectors of speech signals, making the entire algorithm implementation process complex and computationally intensive, making it difficult to perform real-time operation and processing on low-power and low-resource embedded hardware devices such as headphone devices.
[0004] In summary, the existing speech enhancement algorithm process is complex and has a large amount of calculation, and it is difficult to run it in real time on the headphone device to perform speech enhancement on the speech signal received by the user through the headphone device. Summary of the invention
[0005] The main purpose of the present invention is to provide a speech enhancement method, apparatus, headphone device and computer-readable storage medium, aiming to implement a speech enhancement algorithm on an embedded hardware device such as a headphone device to effectively eliminate the background noise of the speech signal received by the user through the headphone device.
[0006] To achieve the above object, the present invention provides a speech enhancement method, which is applied to an earphone device, the earphone device includes a vibration sensor, and the speech enhancement method includes:
[0007] When a sound signal is collected, determining a signal type of the sound signal according to a bone conduction signal in the sound signal, wherein the bone conduction signal is collected based on the vibration sensor;
[0008] If the signal type is a speech signal, obtaining a posterior signal-to-noise ratio and determining a difference between the posterior signal-to-noise ratio and a preset threshold;
[0009] When it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, a first denoising process is performed on the high-frequency signal in the speech signal based on a deep learning method, and a second denoising process in the frequency domain is performed on the low-frequency signal in the speech signal to enhance the speech signal.
[0010] Optionally, the earphone device further includes an inner ear microphone, the low-frequency signal is acquired based on the inner ear microphone, and the step of performing a second noise reduction process in the frequency domain on the low-frequency signal in the speech signal includes:
[0011] Detecting a signal bandwidth of the low-frequency signal;
[0012] When the signal bandwidth meets the preset bandwidth design condition, performing a second noise reduction process in the frequency domain on the low-frequency signal;
[0013] or,
[0014] When the signal bandwidth does not meet the bandwidth design condition, bandwidth expansion is performed on the low-frequency signal, and the second noise elimination process is performed on the low-frequency signal after bandwidth expansion.
[0015] Optionally, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal includes:
[0016] Calculating time domain information according to the bone conduction signal in the sound signal, wherein the time domain information includes a zero crossing rate and a pitch period;
[0017] Performing time-frequency transformation on the bone conduction signal to obtain a frequency domain signal, and calculating frequency domain information according to the frequency domain signal, wherein the frequency domain information includes spectrum energy and spectrum centroid;
[0018] The zero-crossing rate, the pitch period, the spectrum energy and the spectrum centroid are fused and judged to obtain the signal type of the sound signal.
[0019] Optionally, after the step of enhancing the speech signal, the method further comprises:
[0020] Respectively filtering the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing to obtain corresponding signals to be output;
[0021] The signals to be output are fused and the fused signals to be output are subjected to dynamic range control before output.
[0022] Optionally, after the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal, the method further includes:
[0023] If the signal type is background noise, updating the noise power spectrum estimation of the microphone and the inner ear microphone respectively;
[0024] The output signal corresponding to the background noise is set to zero, or the background noise is converted into a preset comfort noise signal.
[0025] Optionally, after the step of determining the difference between the a posteriori signal-to-noise ratio and a preset threshold, the method further comprises:
[0026] When it is determined that the a posteriori signal-to-noise ratio is greater than the preset threshold, a third noise reduction process is performed on the speech signal based on a preset signal processing method to enhance the speech signal.
[0027] Optionally, the speech enhancement method further includes:
[0028] When the sound signal is collected, after echo cancellation processing is performed on the sound signal, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal and its subsequent steps are performed.
[0029] To achieve the above object, the present invention further provides a speech enhancement device, which is applied to an earphone device, the earphone device includes a vibration sensor, and the speech enhancement device includes:
[0030] a detection module, configured to determine the signal type of the sound signal according to a bone conduction signal in the sound signal when the sound signal is collected, wherein the bone conduction signal is collected based on the vibration sensor;
[0031] A determination module, configured to obtain a posterior signal-to-noise ratio and determine a difference between the posterior signal-to-noise ratio and a preset threshold value if the signal type is a speech signal;
[0032] The enhancement module is used to perform a first denoising process on the high-frequency signal in the speech signal based on a deep learning method when it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, and to perform a second denoising process in the frequency domain on the low-frequency signal in the speech signal, so as to enhance the speech signal.
[0033] Each functional module of the speech enhancement device of the present invention implements the steps of the speech enhancement method described above during operation.
[0034] To achieve the above objectives, the present invention also provides an earphone device, which includes: a memory, a processor, and a speech enhancement program stored in the memory and executable on the processor, wherein the speech enhancement program implements the steps of the speech enhancement method described above when executed by the processor.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a speech enhancement program is stored, and when the speech enhancement program is executed by a processor, the steps of the speech enhancement method described above are implemented.
[0036] In an embodiment of the present invention, when the headphone device collects and enhances the voice signal emitted by the wearer, first, when the sound signal is collected, the signal type of the sound signal currently collected is immediately determined according to the bone conduction signal collected by the vibration sensor configured by the headphone device in the sound signal; then, when the signal type is determined to be a voice signal, the posterior signal-to-noise ratio is further obtained and the size between the posterior signal-to-noise ratio and a preset threshold is determined; finally, when the posterior signal-to-noise ratio is less than or equal to the preset threshold, the first noise reduction processing is performed on the high-frequency signal in the voice signal based on the deep learning method, and the second noise reduction processing in the frequency domain is performed on the low-frequency signal in the voice signal at the same time, thereby completing the enhancement of the voice signal.
[0037] Compared with the existing speech enhancement method, the present invention determines the signal type through the bone conduction signal collected by the vibration sensor configured by the headphone device, so that when the wearer sends a speech signal, the method of noise reduction and enhancement for the speech is selected according to the posterior signal-to-noise ratio, that is, when the posterior signal-to-noise ratio is relatively small, the high-frequency signal of the speech signal is denoised and the low-frequency signal in the speech signal is denoised in the frequency domain by a deep learning-based method. In this way, the present invention realizes the efficient enhancement operation of the speech signal based on the bone conduction signal judgment of the signal type and the determination of the posterior signal-to-noise ratio on a low-power and low-resource headphone device, thereby effectively eliminating the background noise of the speech signal received by the user through the headphone device. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart of an embodiment of a speech enhancement method of the present invention;
[0039] Figure 2 A schematic diagram of an application scenario involved in an embodiment of a speech enhancement method of the present invention;
[0040] Figure 3 A schematic diagram of an application scenario of determining a signal type involved in an embodiment of a speech enhancement method of the present invention;
[0041] Figure 4 A schematic diagram of dividing frequency domain subbands involved in an embodiment of a speech enhancement method of the present invention;
[0042] Figure 5 A schematic diagram of a noise reduction and expansion structure based on deep learning according to an embodiment of a speech enhancement method of the present invention;
[0043] Figure 6 A schematic diagram of the structure of LSTM (Long Short-Term Memory) involved in an embodiment of a speech enhancement method of the present invention;
[0044] Figure 7 A schematic diagram of the structure of a GRU (Gate Recurrent Unit) according to an embodiment of a speech enhancement method of the present invention;
[0045] Figure 8 Schematic diagram of functional modules of a preferred embodiment of the speech enhancement device of the present invention.
[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0048] The embodiment of the present invention provides an embodiment of a speech enhancement method.
[0049] Reference Figure 1 , Figure 1 It is a flowchart of the first embodiment of the speech enhancement method of the present invention. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0050] In this embodiment, the speech enhancement method provided by the present invention can be specifically applied to a headphone device equipped with a vibration sensor, which can be specifically a bone voiceprint sensor or a supplementary vibration sensor. The sound signal collected by the vibration sensor has better integrity and fidelity in the low frequency band (0~4khz), and the signal in the low frequency band is not easily affected by noise.
[0051] The speech enhancement method of the present invention comprises:
[0052] Step S10: when a sound signal is collected, determining the signal type of the sound signal according to a bone conduction signal in the sound signal, wherein the bone conduction signal is collected based on the vibration sensor;
[0053] In this embodiment, when the wearer uses the earphone device to make a voice call, the earphone device continuously collects sound signals including the voice signal emitted by the wearer and / or the noise signal in the environment where the wearer is located through the sound collection device including the vibration sensor configured by the earphone device. In this way, when the earphone device collects the sound signal including the voice signal emitted by the wearer and / or the noise signal in the environment where the wearer is located, it immediately determines the signal type of the sound signal through the bone conduction signal collected by the vibration sensor in the sound signal, that is, determines whether the sound signal is a voice signal or a noise signal.
[0054] It should be noted that in this embodiment, in addition to the above-mentioned vibration sensor, the headphone device is also equipped with an ordinary microphone and an inner ear microphone. The working mechanism of the inner ear microphone is similar to that of the vibration sensor, and the sound signal collected by it also has high integrity and fidelity in the low-frequency band. In this way, when collecting the above-mentioned sound signal, the headphone device collects it through the vibration sensor, the ordinary microphone and the inner ear microphone at the same time.
[0055] For example, Figure 2 As shown, the headphone device collects sound signals in real time through a vibration sensor, two ordinary microphones and an inner ear microphone at the same time to obtain: a bone conduction signal collected by the vibration sensor, two high-frequency signals collected by the two ordinary microphones (microphone signal 1 and microphone signal 2 shown in the figure), and a low-frequency signal collected by the inner ear microphone (inner ear microphone signal shown in the figure). Afterwards, the headphone device immediately uses the sound signals including the bone conduction signal, the two high-frequency signals and the low-frequency signal as inputs in the current noise elimination process to achieve speech enhancement, and further performs a voice activation detection operation (VAD (voice activation detection) shown in the figure) through the bone conduction signal collected by the vibration sensor to determine whether the sound signal currently collected is a speech signal or a noise signal.
[0056] Further, in some feasible embodiments, in the above step S10, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal may specifically include:
[0057] Step S101: calculating time domain information according to the bone conduction signal in the sound signal, wherein the time domain information includes a zero crossing rate and a pitch period;
[0058] In this embodiment, when the headphone device determines the signal type of the sound signal according to the bone conduction signal collected by the vibration sensor in the collected sound signal, it first calculates the time domain information based on the bone conduction signal, that is, calculates the zero crossing rate and the fundamental frequency period.
[0059] It should be noted that, in this embodiment, the bone conduction signal collected by the headphone device through the vibration sensor, the high-frequency signal collected by the ordinary microphone, and the low-frequency signal collected by the inner ear microphone are all time domain signals.
[0060] For example, Figure 3 As shown, the headphone device uses the bone conduction signal collected by the vibration sensor among the currently collected sound signals as the input for calculating the time domain information, so as to obtain the zero crossing rate and the fundamental frequency period.
[0061] It should be noted that, in this embodiment, the headphone device can specifically obtain the time domain information—zero crossing rate Zn through the following formula:
[0062]
[0063] Where sgn is the sign function, m1 and m2 represent the time domain point numbers in the time domain bone conduction signal, n≤N, and N is the length of the bone conduction signal x(n). In addition,
[0064]
[0065]
[0066] ZCR=Zn / (m2-m1+1).
[0067] In addition, in this embodiment, the headphone device can specifically obtain the time domain information—the fundamental pitch period Pitch through the following formula:
[0068] Pitch=max{Rm}.
[0069] Where Rm is the autocorrelation function, n and m are time variables.
[0070] Step S102: performing time-frequency transformation on the bone conduction signal to obtain a frequency domain signal, and calculating frequency domain information according to the frequency domain signal, wherein the frequency domain information includes spectrum energy and spectrum centroid;
[0071] In this embodiment, when the headphone device determines the signal type of the sound signal based on the bone conduction signal collected by the vibration sensor in the collected sound signal, in addition to directly calculating the zero-crossing rate and fundamental frequency period of the time domain information based on the bone conduction signal, it also calculates the frequency domain information based on the frequency domain signal after obtaining the frequency domain signal by time-frequency transforming the bone conduction signal, that is, calculating the spectrum energy and the spectrum centroid.
[0072] For example, Figure 3As shown, the headphone device uses FFT (fast Fourier transform) to perform time-frequency transformation on the bone conduction signal Y collected by the vibration sensor in the currently collected sound signal to obtain a frequency domain signal Y(K), and then uses the frequency domain signal Y(K) as the input for calculating the frequency domain information, so as to obtain the spectrum energy and spectrum centroid.
[0073] It should be noted that, in this embodiment, the frequency domain information spectrum energy is the spectrum logarithmic energy Eg of the specified bandwidth. In this embodiment, assuming that the headphone device divides the 8 khz bandwidth into 128 sub-bands after FFT calculation of the bone conduction signal Y, and takes the energy of the lower 24 sub-bands, the formula for obtaining the frequency domain information - spectrum logarithmic energy Eg can be specifically:
[0074]
[0075] In addition, in this embodiment, the headphone device can specifically obtain the frequency domain information—spectral centroid birghtness through the following formula:
[0076]
[0077] Wherein, N indicates the number of frequency points, which is 128 here, f(k) indicates the frequency marked by the point, E(k) indicates the spectrum energy, and E(k) = |Y(K)| 2 .
[0078] Step S103: performing a fusion decision on the zero-crossing rate, the pitch period, the spectrum energy and the spectrum centroid to determine the signal type of the sound signal.
[0079] In this embodiment, after the headphone device calculates the zero-crossing rate and the fundamental frequency period of the time domain information based on the bone conduction signal, and calculates the frequency domain information spectral energy and the spectral centroid based on the frequency domain signal subjected to time-frequency transform processing on the bone conduction signal, the zero-crossing rate, the fundamental frequency period, the spectral energy and the spectral centroid are further used as features for fusion decision to obtain the result of voice activation detection: whether the signal type of the currently collected sound signal is a voice signal or a noise signal.
[0080] For example, Figure 3As shown, the headphone device compares the obtained zero-crossing rate, pitch period, spectrum energy and spectrum centroid with their corresponding characteristic thresholds, that is, the spectrum energy Eg is compared with the corresponding characteristic threshold K1 (K1 can be -9), the zero-crossing rate Zn is compared with the corresponding special diagnosis threshold K2 (K2 can be 0.6), the spectrum centroid brightness is compared with the corresponding characteristic threshold K5 (can be 3), and the pitch period Pitch is compared with the corresponding characteristic thresholds K3 (K3 can be 143) and K4 (K4 can be 8). In this way, only when the spectrum energy Eg is greater than or equal to K1, the zero-crossing rate Zn is less than or equal to K2, the spectrum centroid brightness is less than or equal to K5, and the pitch period Pitch is between K3 and K4, the vad flag for identifying the current sound signal as a speech signal is output, and in any other case, the vad flag for identifying the sound signal as a noise signal is output.
[0081] Step S20: If the signal type is a speech signal, obtaining a posteriori signal-to-noise ratio and determining a difference between the posteriori signal-to-noise ratio and a preset threshold;
[0082] In this embodiment, when the headphone device performs voice activation detection based on the bone conduction signal collected by the vibration sensor in the currently collected sound signal to determine that the signal type of the sound signal is a voice signal, it further calculates the size of the posterior signal-to-noise ratio and determines the size between the posterior signal-to-noise ratio and a preset threshold.
[0083] It should be noted that, in the present embodiment, the preset threshold is a posterior signal-to-noise ratio threshold pre-stored locally by the headphone device. It should be understood that, based on different design requirements of actual applications, in different feasible embodiments, the posterior signal-to-noise ratio threshold may of course be of different sizes, and the speech enhancement method of the present invention is not limited to the specific size of the posterior signal-to-noise ratio threshold.
[0084] In addition, when the headphone device calculates and obtains the a posteriori signal-to-noise ratio of the voice signal generated by the current wearer and the noise signal in the wearer's environment, the headphone device may specifically adopt the following noise elimination method, namely:
[0085]
[0086] in, represents the enhanced spectrum signal, k is the spectrum number, and the value range here is 0 to 127, H t (k) is the gain function, λ is the over-reduction factor, which is a constant, usually λ = 0.9,
[0087] In this way, the headphone device can specifically calculate the posterior signal-to-noise ratio post_snr by the following formula:
[0088]
[0089] In this embodiment, since the deep learning-based speech enhancement algorithm is usually performed on a sub-band, a case of frequency domain sub-band division can be as follows: Figure 4 As shown, the functional relationship between frequency f and frequency domain subband bark can be expressed as:
[0090]
[0091] The relationship between the frequency f and the spectrum number k is: k=f*128 / 8000.
[0092] In this way, it is assumed that the method in the frequency domain is method 1, and the method in the frequency domain subband bark is method 2, and the transfer function G is in H t (k) and g(b), then:
[0093] When using method 1, if post_snr(k)≥Coef k , then G=H t (k), if post_snr(k)<Coef k , then G=g(b)→g(k).
[0094] When using method 2, if 2 / 3 of the frequency domain subband bark meets the condition: post_snr(k)≥Coef k , then G=H t (k)→H t (b), and post_snr(k)<Coef k , then G=g(b), and the conclusion holds.
[0095] Step S30: When it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, a first denoising process is performed on the high-frequency signal in the speech signal based on a deep learning method, and a second denoising process is performed in the frequency domain on the low-frequency signal in the speech signal to enhance the speech signal.
[0096] In this embodiment, when the headphone device determines the size between the posterior signal-to-noise ratio currently calculated and the preset threshold, and thus determines that the posterior signal-to-noise ratio is less than or equal to the preset threshold, the headphone device performs a first noise reduction process on the high-frequency signal in the voice signal based on a deep learning method, and simultaneously performs a second noise reduction process in the frequency domain on the low-frequency signal in the voice signal collected by the inner ear microphone, thereby completing the enhancement of the voice signal.
[0097] For example, Figure 2 As shown, when the headphone device determines that the signal type of the currently collected sound signal is a speech signal, and when the a posteriori signal-to-noise ratio is less than or equal to a preset threshold, a first noise reduction process is performed on the high-frequency signal in the speech signal collected by the ordinary microphone, namely, the air conduction signal, based on a deep learning method, that is, the DNN-based noise reduction is performed on the air conduction signal as shown in the figure, and at the same time, a second noise reduction process is performed in the frequency domain on the low-frequency signal (inner ear microphone signal) collected by the inner ear microphone in the speech signal.
[0098] Further, in some feasible embodiments, in the above step S30, the step of performing a second noise reduction process in the frequency domain on the low-frequency signal in the speech signal may specifically include:
[0099] Step S301: Detecting the signal bandwidth of the low-frequency signal;
[0100] Step S302: When the signal bandwidth meets the preset bandwidth design condition, performing a second noise reduction process in the frequency domain on the low-frequency signal;
[0101] or,
[0102] Step S303: when the signal bandwidth does not meet the bandwidth design condition, bandwidth expansion is performed on the low-frequency signal, and the second noise elimination process is performed on the low-frequency signal after bandwidth expansion.
[0103] In this embodiment, when the headphone device performs the second noise reduction processing in the frequency domain on the low-frequency signal collected by the inner ear microphone in the voice signal, the signal bandwidth of the low-frequency signal is first detected. Thus, when the signal bandwidth is wide enough to meet the preset bandwidth design condition, the second noise reduction processing in the frequency domain is directly performed on the low-frequency signal; or, when the signal bandwidth is too narrow to meet the bandwidth design condition, the bandwidth of the low-frequency signal is first expanded, and then the second noise reduction processing in the frequency domain is performed on the low-frequency signal after the bandwidth expansion.
[0104] It should be noted that, in this embodiment, the preset bandwidth design condition earphone device pre-stores a bandwidth threshold determined locally based on the hardware performance of the inner ear microphone. When the signal bandwidth of the low-frequency signal is lower than the bandwidth threshold, it means that the signal bandwidth is too narrow, thus not meeting the bandwidth design condition. When the signal bandwidth is higher than or equal to the bandwidth threshold, it means that the signal bandwidth is wide enough, thus meeting the bandwidth design condition. It should be understood that based on different design requirements of actual applications, in different feasible implementations, the bandwidth threshold can of course be determined to be different sizes, and the speech enhancement method of the present invention does not limit the specific size of the bandwidth threshold.
[0105] In addition, in this embodiment, when the headphone device performs bandwidth expansion on the low-frequency signal, the headphone device may perform bandwidth expansion based on the DNN on the low-frequency signal. Figure 5 The deep neural network model corresponding to the structure shown is used to expand the bandwidth of the low-frequency signal. In the figure, N1, N2, N3, N4, and N5 represent the number of nodes or computing units.
[0106] In the above-mentioned deep neural network model adopted by the headphone device, the input signal is a feature vector composed of specific features (feature parameters include but are not limited to MFCC (Mel frequency domain cepstral coefficients), BFCC (bark frequency domain cepstral coefficients), LPCC (LPC cepstral coefficients) and other cepstral parameters), and the output signal is the gain g in the frequency domain.
[0107] Dense represents a fully connected network, that is, all nodes in the network are connected to data of all dimensions of the input.
[0108] The activation function can be selected from Tanh and RELU, where:
[0109]
[0110] RELU(x)=max(0,x).
[0111] The structure of LSTM (Long Short-Term Memory) is as follows Figure 6 As shown, the mathematical calculation process of the LSTM is:
[0112] 1. Forget gate f t =σ(W f ·[h t-1 ,x t ]+b f );
[0113] 2. Input gate i t =σ(Wi ·[h ti-1 ,x t ]+b i );
[0114] 3. Calculate the original neuron variables
[0115] 4. Update neuron variables
[0116] 5. Calculate the output gate O t =σ(W i ·[h ti-1 ,x t ]+b O );
[0117] 6. Final output h t =O t *tanh(C t ).
[0118] In addition, the headphone device can also use the GRU (Gate Recurrent Unit) training framework to replace the above LSTM. Since the design concept of GRU is similar to that of LSTM, and compared with LSTM, GRU has one less gate inside, that is, the parameters required for GRU are fewer than those required for LSTM, but GRU can also approach or achieve the same performance as LSTM. In this way, in the scenario where the computing power of the headphone device's own hardware and the time cost of training the network are relatively small, using GRU is more practical than using LSTM.
[0119] In this embodiment, the structure of the GRU used by the headphone device can be as follows: Figure 7 As shown, the mathematical calculation process of the GRU is:
[0120] 1. Calculate the reset gate r t =σ(W r x t +U r h t-1 );
[0121] 2. Calculate the update gate z t =σ(W z x t +U z h t-1 );
[0122] 3. Calculate hidden doors
[0123] 4. Final output
[0124] Based on this, the headphone device performs the network training of the deep neural network model used for the first noise reduction processing based on the deep learning method on the high-frequency signal - air conduction signal collected by the ordinary microphone in the current collected voice signal. The calculation process of the subband gain g and the steps of training the LSTM (or GRU) network are as follows:
[0125] 1. Actually record the noise signal n and the air-conducted speech signal s, and obtain the mixed signal s_mix of the noise signal n and the air-conducted speech signal s. Then, perform time-frequency transformation (such as FFT) on n, ss_mix and respectively to obtain the frequency domain signals N(k), S(k) and S_mix(k), and calculate their feature parameters respectively through the feature extraction module;
[0126] 2. Divide the signal into sub-bands (e.g., 18 sub-bands) in the frequency domain. The sub-band division method can adopt the mel frequency division method or the bark sub-band division method;
[0127] 3. Calculate the speech signal energy and mixed signal energy on each sub-band, that is, calculate the speech signal energy E s (b) and the mixed signal energy E s_mix (b) where:
[0128]
[0129]
[0130] b is the subband number, b=0, 1, ..., 18.
[0131] 4. Calculate subband gain
[0132] 5. Train the neural network, that is, use the real feature signal obtained in step 1 as the input signal, and the real subband gain g obtained in step 4 as the output signal, and continuously train and adjust the weight coefficients W, U bias b in the deep neural network, so that each output g' continues to approach the real value g. When the error between g' and g is less than a predetermined value, the network training is considered successful, and the network parameters at this time are the parameters used in actual applications.
[0133] It should be noted that, in this embodiment, the above-mentioned network training process can be specifically completed in advance using framework programming such as tensorflow, keras, Mxnet, etc.
[0134] In addition, in the deep learning model used by the above-mentioned headphone device to expand the bandwidth of low-frequency signals with narrow signal bandwidth that do not meet the bandwidth design conditions, the calculation process and training process of the sub-band gain g are as follows:
[0135] 1. The inner ear microphone is used to actually record the inner ear microphone noise signal ng and the inner ear microphone voice signal sg that remain after noise reduction, and the mixed signal sg_mix of the noise signal ng and the inner ear microphone voice signal sg is obtained. Time-frequency transformation (such as FFT) is performed on sg, ng and sg_mix to obtain frequency domain signals Ng(k), Sg(k) and Sg_mix(k), and their feature parameters are calculated respectively through the feature extraction module.
[0136] 2. Divide the signal into sub-bands (such as 5 sub-bands) in the frequency domain. The sub-band division method can adopt the mel frequency division method or the bark sub-band division method.
[0137] 3. Calculate the speech signal energy E on each sub-band sg (b) and the mixed signal energy E sg_mix (b) where:
[0138]
[0139]
[0140] b is the subband number, b=0, 1, ..., 5.
[0141] 4. Calculate subband gain
[0142] 5. Train the neural network, that is, use the real feature signal obtained in step 1 as the input signal, and the real subband gain g obtained in step 4 as the output signal, and continuously train and adjust the weight coefficients W, U bias b in the deep neural network, so that each output g' continues to approach the real value g. When the error between g' and g is less than a predetermined value, the network training is considered successful, and the network parameters at this time are the parameters used in actual applications.
[0143] Furthermore, in some feasible embodiments, after the above step of determining the difference between the posterior signal-to-noise ratio and the preset threshold, the speech enhancement method of the present invention may further include:
[0144] Step A: When it is determined that the a posteriori signal-to-noise ratio is greater than the preset threshold, a third noise reduction process is performed on the speech signal based on a preset signal processing method to enhance the speech signal.
[0145] It should be noted that, in this embodiment, the preset signal processing method can be specifically a method of performing noise reduction processing on the speech signal based on spectral subtraction. In addition, when the a posteriori signal-to-noise ratio is high, the speech signal is specifically a high-frequency sub-band air conduction signal collected by an ordinary microphone.
[0146] In this embodiment, if Figure 2In the application process shown, when the headphone device determines the size between the currently calculated a posteriori signal-to-noise ratio and a preset threshold value, and thus determines that the a posteriori signal-to-noise ratio is greater than the preset threshold value, the headphone device performs a third noise reduction process based on spectral subtraction (the traditional noise reduction process shown in the figure) on the currently collected voice signal to reduce noise on the voice signal, thereby completing the enhancement of the voice signal.
[0147] In this embodiment, when the posterior signal-to-noise ratio is high, the headphone device uses a speech enhancement method based on traditional signal processing of spectral subtraction for the high-frequency sub-band air conduction signal, thereby further reducing the complexity of the headphone device in enhancing the speech signal.
[0148] Furthermore, in some other feasible embodiments, after the above step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal, the speech enhancement method of the present invention may further include:
[0149] Step B: if the signal type is background noise, updating the noise power spectrum estimation of the microphone and the inner ear microphone respectively;
[0150] In this embodiment, if Figure 2 As shown, when the headphone device performs voice activation detection based on the bone conduction signal collected by the vibration sensor among the currently collected sound signals to determine that the signal type of the sound signal is background noise, the noise signal power spectrum estimation of the ordinary microphone configured in the headphone device - the microphone air conduction noise signal power spectrum, and the noise signal power spectrum estimation of the inner ear microphone configured in the headphone device - the inner ear microphone noise signal power spectrum are immediately updated.
[0151] It should be noted that, in this embodiment, the headphone device may specifically use the following formula when updating the noise power spectrum:
[0152] P n1 (k,t)=β*P n1 (k,t-1)+(1-β)*|Y1(k,t)| 2 ;
[0153] P n2 (k,t)=β*P n2 (k,t-1)+(1-β)*|Y2(k,t)| 2 .
[0154] Among them, P n1 (k,t) and P n2 (k, t) represents the noise signals received by the microphone and the bone conduction, respectively. The subscript t represents the tth frame. k is the frequency domain number and is the iteration factor, which is usually 0.9.
[0155] Step C: setting the output signal corresponding to the background noise to zero, or converting the background noise into a preset comfort noise signal.
[0156] It should be noted that, in this embodiment, the preset comfort noise signal may be a sound signal that relaxes people, and the comfort noise will not make people feel irritable or cause harm to the human body. For example, the preset comfort noise signal may be a white noise signal with relatively low energy.
[0157] In this embodiment, if Figure 2 As shown, when the headphone device performs voice activation detection based on the bone conduction signal collected by the vibration sensor among the currently collected sound signals to determine that the signal type of the sound signal is background noise, since the current sound signal collected by the headphone device is noise, the headphone device can directly set the output signal corresponding to the background noise to zero, or convert the background noise into a comfort noise signal through sound signal processing technology.
[0158] In addition, in some feasible embodiments, after the above step S30: enhancing the speech signal, the speech enhancement method of the present invention may further include:
[0159] Step S40: filtering the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing respectively to obtain corresponding signals to be output;
[0160] In this embodiment, after the headphone device performs the first noise reduction processing on the high-frequency signal in the voice signal and the second noise reduction processing on the low-frequency signal in the voice signal, it further uses a preset filter to filter the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing to obtain the corresponding signal to be output.
[0161] For example, Figure 2 As shown, the headphone device filters the high-frequency signal after the first noise reduction processing through a high-pass filter to obtain an output signal out1, and filters the low-frequency signal after the second noise reduction processing through a low-pass filter to obtain an output signal out2.
[0162] It should be noted that, in this embodiment, the high-pass filter and low-pass filter used by the headphone device can be specifically composed of 5 biquads (double second-order filters) connected in series, and the various coefficients of the high-pass filter and low-pass filter can be generated by matlab (commercial mathematical software produced by MathWorks, an American company).
[0163] In addition, in this embodiment, since the headphone device has used FFT to perform time-frequency transformation on the sound signal when determining the signal type of the currently collected sound signal, when the headphone device currently filters the voice signal after noise reduction processing, it is necessary to first perform IFFT inverse Fourier transform on the voice signal (including high-frequency signals and low-frequency signals).
[0164] Step S50: Fusing the signals to be output and performing dynamic range control on the fused signals to be output before outputting.
[0165] In this embodiment, after filtering the speech signals after noise reduction processing to obtain output signals, the headphone device further fuses the output signals, and then performs dynamic range control on the fused output signals and outputs them.
[0166] For example, Figure 2 As shown, the headphone device fuses the filtered output signals out1 and out2 to obtain a fused signal out=k1*out1+k2*out2, and then the headphone device further performs DRC dynamic range control on the fused signal out, that is, adjusts the output volume, frequency, etc. of the fused signal out to a standard range that meets the human ear's reception of voice signals, and then outputs the signal to the terminal device that is currently connected to the headphone device and is making a voice call.
[0167] Furthermore, in any of the above feasible embodiments, the speech enhancement method of the present invention may further include:
[0168] When the sound signal is collected, after echo cancellation processing is performed on the sound signal, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal and its subsequent steps are performed.
[0169] In this embodiment, if Figure 2 As shown, after the earphone device collects sound signals in real time through the vibration sensor, two ordinary microphones and the inner ear microphone configured by itself, it immediately performs echo cancellation processing on the bone conduction signal collected by the vibration sensor, the two high-frequency signals collected by the two ordinary microphones (microphone signal 1 and microphone signal 2 in the figure), and the low-frequency signal collected by the inner ear microphone (inner ear microphone signal in the figure) according to the far-end signal. A total of four signals are processed.
[0170] In addition, in order to further improve the effect of noise reduction processing on voice signals, the headphone device can also further beamform the two high-frequency signals collected by two ordinary microphones in the sound signal after performing echo cancellation processing on the collected sound signal - two microphone signals, so as to suppress noise other than directionality.
[0171] It should be noted that in this embodiment, the earphone device can use any mature echo cancellation method and beamforming method to perform echo cancellation and beamforming on the collected sound signal respectively. The speech enhancement method of the present invention does not limit the specific implementation process of the echo cancellation and beamforming.
[0172] In this embodiment, when the wearer uses the earphone device for voice calls, the earphone device continuously collects sound signals including the voice signal emitted by the wearer and / or the noise signal in the environment where the wearer is located through the sound collection device including the vibration sensor configured by the earphone device. In this way, when the earphone device collects the sound signal including the voice signal emitted by the wearer and / or the noise signal in the environment where the wearer is located, it immediately determines the signal type of the sound signal through the bone conduction signal collected by the vibration sensor in the sound signal, that is, determines whether the sound signal is a speech signal or a noise signal; then, when the earphone device determines that the signal type of the sound signal is a speech signal, it further calculates the size of the posterior signal-to-noise ratio and determines the size between the posterior signal-to-noise ratio and the preset threshold; finally, when the earphone device determines that the posterior signal-to-noise ratio is less than or equal to the preset threshold, the earphone device performs a first noise reduction process on the high-frequency signal in the speech signal based on a deep learning method, and simultaneously performs a second noise reduction process in the frequency domain on the low-frequency signal collected by the inner ear microphone in the speech signal, so as to complete the enhancement of the speech signal.
[0173] Thus, compared with the existing speech enhancement method, the present invention determines the signal type through the bone conduction signal collected by the vibration sensor configured by the headphone device, so that when the wearer sends a speech signal, the method of noise reduction and enhancement for the speech is selected according to the posterior signal-to-noise ratio, that is, when the posterior signal-to-noise ratio is relatively small, the high-frequency signal of the speech signal is denoised and the low-frequency signal in the speech signal is denoised in the frequency domain by a deep learning-based method. In this way, the present invention realizes the efficient enhancement operation of the speech signal based on the bone conduction signal judgment of the signal type and the determination of the posterior signal-to-noise ratio on a low-power and low-resource headphone device, thereby effectively eliminating the background noise of the speech signal received by the user through the headphone device.
[0174] In addition, an embodiment of the present invention further provides a speech enhancement device, which is applied to an earphone device, and the earphone device includes a vibration sensor, see Figure 8 , the speech enhancement device of the present invention comprises:
[0175] The detection module 10 is used to determine the signal type of the sound signal according to the bone conduction signal in the sound signal when the sound signal is collected, wherein the bone conduction signal is collected based on the vibration sensor;
[0176] A determination module 20, configured to obtain a posterior signal-to-noise ratio and determine a difference between the posterior signal-to-noise ratio and a preset threshold value if the signal type is a speech signal;
[0177] The enhancement module 30 is used to perform a first denoising process on the high-frequency signal in the speech signal based on a deep learning method when it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, and to perform a second denoising process in the frequency domain on the low-frequency signal in the speech signal, so as to enhance the speech signal.
[0178] Optionally, the earphone device further includes an inner ear microphone, and the low-frequency signal is acquired based on the inner ear microphone. The enhancement module 30 includes:
[0179] A detection unit, used to detect the signal bandwidth of the low-frequency signal;
[0180] A first noise elimination unit, configured to perform a second noise elimination process in the frequency domain on the low-frequency signal when the signal bandwidth meets a preset bandwidth design condition;
[0181] The second noise elimination unit is used to expand the bandwidth of the low-frequency signal when the signal bandwidth does not meet the bandwidth design condition, and perform the second noise elimination process on the low-frequency signal after the bandwidth expansion.
[0182] Optionally, the detection module 10 includes:
[0183] A first calculation unit, configured to calculate time domain information according to the bone conduction signal in the sound signal, wherein the time domain information includes a zero crossing rate and a pitch period;
[0184] A time-frequency conversion unit, configured to perform time-frequency conversion processing on the bone conduction signal to obtain a frequency domain signal, and calculate frequency domain information according to the frequency domain signal, wherein the frequency domain information includes spectrum energy and spectrum centroid;
[0185] A signal type determination unit is used to perform a fusion determination on the zero-crossing rate, the pitch period, the spectrum energy and the spectrum centroid to determine the signal type of the sound signal.
[0186] Optionally, the speech enhancement device of the present invention further includes:
[0187] A filtering module, used to filter the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing to obtain corresponding signals to be output;
[0188] The fusion output module is used to fuse the signals to be output and perform dynamic range control on the fused signals to be output before outputting them.
[0189] Optionally, the enhancement module 30 of the speech enhancement device of the present invention is further configured to perform a third noise reduction process on the speech signal based on a preset signal processing method to enhance the speech signal when it is determined that the a posteriori signal-to-noise ratio is greater than the preset threshold.
[0190] Optionally, the speech enhancement device of the present invention further includes:
[0191] A spectrum updating module, configured to update the noise power spectrum estimation of the microphone and the inner ear microphone respectively if the signal type is background noise;
[0192] The noise processing module is used to set the output signal corresponding to the background noise to zero, or to convert the background noise into a preset comfort noise signal.
[0193] Optionally, the detection module 10 of the speech enhancement device of the present invention is also used to execute the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal and its subsequent steps after performing echo cancellation processing on the sound signal when the sound signal is collected.
[0194] The extended contents of the specific implementation of the speech enhancement device of the present invention are basically the same as the above-mentioned embodiments of the speech enhancement method, and will not be elaborated here.
[0195] In addition, an embodiment of the present invention further provides an earphone device, which includes a structural housing, a communication module, a main control module (such as a microcontroller unit MCU), a speaker, a microphone, an inner ear microphone, a vibration sensor, a memory, etc. The main control module may include a microprocessor, an audio decoding unit, a power supply and a power management unit, sensors required by the system, and other active or passive devices (which may be replaced, deleted, or added according to actual functions) to realize the reception and playback functions of wireless audio.
[0196] The memory of the headset device of the present invention may store a speech enhancement program, which may be called by a microprocessor in the headset device and perform the following operations:
[0197] When a sound signal is collected, determining a signal type of the sound signal according to a bone conduction signal in the sound signal, wherein the bone conduction signal is collected based on the vibration sensor;
[0198] If the signal type is a speech signal, obtaining a posterior signal-to-noise ratio and determining a difference between the posterior signal-to-noise ratio and a preset threshold;
[0199] When it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, a first denoising process is performed on the high-frequency signal in the speech signal based on a deep learning method, and a second denoising process in the frequency domain is performed on the low-frequency signal in the speech signal to enhance the speech signal.
[0200] Optionally, the low-frequency signal is acquired based on the inner ear microphone, and the speech enhancement program stored in the memory of the headphone device of the present invention can be called by a microprocessor in the headphone device to perform the following operations:
[0201] Detecting a signal bandwidth of the low-frequency signal;
[0202] When the signal bandwidth meets the preset bandwidth design condition, performing a second noise reduction process in the frequency domain on the low-frequency signal;
[0203] or,
[0204] When the signal bandwidth does not meet the bandwidth design condition, bandwidth expansion is performed on the low-frequency signal, and the second noise elimination process is performed on the low-frequency signal after bandwidth expansion.
[0205] Optionally, the speech enhancement program stored in the memory of the headphone device of the present invention can be called by the microprocessor in the headphone device to further perform the following operations:
[0206] Calculating time domain information according to the bone conduction signal in the sound signal, wherein the time domain information includes a zero crossing rate and a pitch period;
[0207] Performing time-frequency transformation on the bone conduction signal to obtain a frequency domain signal, and calculating frequency domain information according to the frequency domain signal, wherein the frequency domain information includes spectrum energy and spectrum centroid;
[0208] The zero-crossing rate, the pitch period, the spectrum energy and the spectrum centroid are fused and judged to obtain the signal type of the sound signal.
[0209] Optionally, the speech enhancement program stored in the memory of the headphone device of the present invention can be called by the microprocessor in the headphone device to perform the following operations after performing the enhancement on the speech signal:
[0210] Respectively filtering the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing to obtain corresponding signals to be output;
[0211] The signals to be output are fused and the fused signals to be output are subjected to dynamic range control before output.
[0212] Optionally, the speech enhancement program stored in the memory of the headphone device of the present invention can be called by the microprocessor in the headphone device to perform the following operations after determining the difference between the a posteriori signal-to-noise ratio and a preset threshold:
[0213] When it is determined that the a posteriori signal-to-noise ratio is greater than the preset threshold, a third noise reduction process is performed on the speech signal based on a preset signal processing method to enhance the speech signal.
[0214] Optionally, the speech enhancement program stored in the memory of the headphone device of the present invention can be called by the microprocessor in the headphone device to further perform the following operations after determining the signal type of the sound signal according to the bone conduction signal in the sound signal:
[0215] If the signal type is background noise, updating the noise power spectrum estimation of the microphone and the inner ear microphone respectively;
[0216] The output signal corresponding to the background noise is set to zero, or the background noise is converted into a preset comfort noise signal.
[0217] Optionally, the speech enhancement program stored in the memory of the headphone device of the present invention can be called by the microprocessor in the headphone device to further perform the following operations:
[0218] When the sound signal is collected, after echo cancellation processing is performed on the sound signal, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal and its subsequent steps are performed.
[0219] In addition, the present invention also proposes a computer-readable storage medium, on which a speech enhancement program is stored. When the speech enhancement program is executed by a processor, the steps of the speech enhancement method of the present invention as described above are implemented.
[0220] The various embodiments of the earphone device and the computer-readable storage medium of the present invention may refer to the various embodiments of the speech enhancement method of the present invention, which will not be described in detail here.
[0221] 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 "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0222] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0223] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0224] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A speech enhancement method, characterized in that: The speech enhancement method is applied to an earphone device, the earphone device includes a vibration sensor, and the speech enhancement method includes: When a sound signal is collected, determining a signal type of the sound signal according to a bone conduction signal in the sound signal, wherein the bone conduction signal is collected based on the vibration sensor; If the signal type is a speech signal, obtaining a posterior signal-to-noise ratio and determining a difference between the posterior signal-to-noise ratio and a preset threshold; When it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, performing a first denoising process on the high-frequency signal in the speech signal based on a deep learning method, and performing a second denoising process in the frequency domain on the low-frequency signal in the speech signal, so as to enhance the speech signal; When it is determined that the a posteriori signal-to-noise ratio is greater than the preset threshold, a third noise reduction process is performed on the speech signal based on a preset signal processing method to enhance the speech signal, wherein the preset signal processing method is a method of performing noise reduction on the speech signal based on spectral subtraction.
2. The speech enhancement method according to claim 1, characterized in that: The earphone device further includes an inner ear microphone, the low-frequency signal is acquired based on the inner ear microphone, and the step of performing a second noise reduction process in the frequency domain on the low-frequency signal in the speech signal includes: Detecting a signal bandwidth of the low-frequency signal; When the signal bandwidth meets the preset bandwidth design condition, performing a second noise reduction process in the frequency domain on the low-frequency signal; or, When the signal bandwidth does not meet the bandwidth design condition, bandwidth expansion is performed on the low-frequency signal, and the second noise elimination process is performed on the low-frequency signal after bandwidth expansion.
3. The speech enhancement method according to claim 1, characterized in that: The step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal comprises: Calculating time domain information according to the bone conduction signal in the sound signal, wherein the time domain information includes a zero crossing rate and a pitch period; Performing time-frequency transformation on the bone conduction signal to obtain a frequency domain signal, and calculating frequency domain information according to the frequency domain signal, wherein the frequency domain information includes spectrum energy and spectrum centroid; The zero-crossing rate, the pitch period, the spectrum energy and the spectrum centroid are fused and judged to obtain the signal type of the sound signal.
4. The speech enhancement method according to claim 1, characterized in that: After the step of enhancing the speech signal, the method further comprises: Respectively filtering the high-frequency signal after the first noise reduction processing and the low-frequency signal after the second noise reduction processing to obtain corresponding signals to be output; The signals to be output are fused and the fused signals to be output are subjected to dynamic range control before output.
5. The speech enhancement method according to claim 1, characterized in that: After the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal, the method further includes: If the signal type is background noise, updating the noise power spectrum estimation of the microphone and the inner ear microphone respectively; The output signal corresponding to the background noise is set to zero, or the background noise is converted into a preset comfort noise signal.
6. The speech enhancement method according to any one of claims 1 to 5, characterized in that: The speech enhancement method further comprises: When the sound signal is collected, after echo cancellation processing is performed on the sound signal, the step of determining the signal type of the sound signal according to the bone conduction signal in the sound signal and its subsequent steps are performed.
7. A speech enhancement device, characterized in that: The speech enhancement device is applied to an earphone device, the earphone device includes a vibration sensor, and the speech enhancement device includes: a detection module, configured to determine the signal type of the sound signal according to a bone conduction signal in the sound signal when the sound signal is collected, wherein the bone conduction signal is collected based on the vibration sensor; A determination module, configured to obtain a posterior signal-to-noise ratio and determine a difference between the posterior signal-to-noise ratio and a preset threshold value if the signal type is a speech signal; an enhancement module, configured to, when it is determined that the posterior signal-to-noise ratio is less than or equal to the preset threshold, perform a first denoising process on the high-frequency signal in the speech signal based on a deep learning method, and perform a second denoising process in the frequency domain on the low-frequency signal in the speech signal, so as to enhance the speech signal; The enhancement module is also used to perform a third noise reduction process on the speech signal based on a preset signal processing method to enhance the speech signal when it is determined that the posterior signal-to-noise ratio is greater than the preset threshold, wherein the preset signal processing method is a method of performing noise reduction processing on the speech signal based on spectral subtraction.
8. An earphone device, characterized in that: The earphone device comprises: a memory, a processor, and a speech enhancement program stored in the memory and executable on the processor, wherein the speech enhancement program implements the steps of the speech enhancement method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a speech enhancement program, and when the speech enhancement program is executed by a processor, the steps of the speech enhancement method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Audio signal quality enhancement based on quantitative SNR analysis and adaptive wiener filtering
CN108630221A
Voice data acquisition method, terminal and readable storage medium
CN110970051A
Speech enhancement method, device and system and computer readable storage medium
CN112767963A
Audio noise reduction method and device, electronic equipment and computer readable storage medium
CN112951259A
Voice signal processing method and device thereof, medium and computer program product
CN113593612A
