A speech enhancement method and speech recognition method in a vehicle environment
By adaptively adjusting the spectral subtraction method of α and β parameters, combined with fuzzy controller and Fourier transform technology, the problem of noise interference in speech recognition technology in the vehicle environment is solved, significantly improving the speech recognition accuracy and avoiding the 'music noise', achieving better signal-to-noise ratio and user experience.
Patent Information
- Application Number
- CN202210088439.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Speech recognition technology in the vehicle environment is seriously interfered by noise, resulting in reduced recognition accuracy and poor user experience. The traditional spectral subtraction method has insufficient noise suppression capabilities and 'music noise' problems.
Adopt adaptive α and β parameter adjustment method, combined with fuzzy controller and Fourier transform technology, perform frame processing and power spectrum analysis on the speech signal, adaptively calculate the pure speech signal in the time domain, avoid noise residue and improve signal-to-noise Compare.
It effectively improves the accuracy of speech recognition in the vehicle environment, eliminates the problem of "music noise", and retains the effective signal of the speech signal, which is verified through actual simulation and experiments.
Smart Images

Figure CN114387953B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of speech recognition technology, and specifically relates to a speech enhancement method and a speech recognition method in a vehicle-mounted environment. Background Art
[0002] In order to reduce the need for users to press buttons and improve the convenience of human-vehicle interaction in the vehicle cockpit, voice recognition technology has been widely used. However, the voice recognition process is easily interfered by environmental noise. Various noises in the cockpit, such as the vehicle engine, gearbox, motor, air noise and tire noise, pose great challenges to voice recognition, resulting in reduced voice recognition accuracy and poor user experience.
[0003] The purpose of speech enhancement is to retain the useful signal in the speech signal as much as possible while attenuating the noise inside and outside the car, thereby improving the accuracy of speech recognition. Common speech enhancement methods include: Wiener filtering, homomorphic filtering and spectral subtraction. Among them, spectral subtraction has been widely used in the field of speech recognition because of its simple and convenient algorithm, but at the same time, spectral subtraction also has its disadvantages: first, some negative amplitudes are generated during the spectral subtraction process; second, some noise will remain during the spectral subtraction process, resulting in the "music noise" problem.
[0004] Technical Solution
[0005] In order to solve at least one of the above problems, the present application proposes a speech enhancement method and a speech recognition method in a vehicle environment, which can effectively improve the speech signal-to-noise ratio and improve the accuracy of speech recognition. At the same time, the method has good adaptability and can effectively avoid the "music noise" problem.
[0006] In a first aspect, the present application provides a method for speech enhancement in a vehicle environment, comprising:
[0007] The original speech signal in the vehicle environment is subjected to frame processing and windowing processing to obtain a time domain speech signal x(k), where the time domain noise signal is represented by n(k) and the time domain pure speech signal is represented by s(k);
[0008] Perform Fourier transform on the time domain speech signal x(k) to obtain the power spectrum P x (w), while preserving the phase φ of the original speech signal;
[0009] According to the power spectrum P x (w) Estimate the power spectrum P of the time domain noise signal n(k) n (w);
[0010] The power spectrum of the pure speech signal s(k) in the time domain is represented by P s (w) represents, then there is a formula: Where α and β are based on the power spectrum P xThe average amplitude A and the maximum amplitude M of (w) are adaptively changed parameters, the value range of α is 0<α<5, and the value range of β is 0<β<1; the power spectrum P is calculated according to the formula s (w), the power spectrum P s (w) After Fourier inverse transform is performed on the phase φ of the original speech signal, the time domain pure speech signal s(k) is obtained, completing the enhancement of the original speech input signal.
[0011] In a possible implementation, α and β are calculated based on the power spectrum P x The steps of adaptively changing the average amplitude A and the maximum amplitude M of (w) include:
[0012] The average amplitude A and the maximum amplitude M are input into the constructed fuzzy controller, and the fuzzy controller outputs the values of α and β.
[0013] In a possible implementation manner, the input and output of the fuzzy controller are respectively divided into seven levels.
[0014] In a possible implementation manner, the membership function of the fuzzy controller adopts a Gaussian function.
[0015] In a possible implementation, the fuzzy controller uses a max method for fuzzy synthesis and a centroid method for defuzzification.
[0016] In a second aspect, the present application provides a method for speech recognition in a vehicle environment, comprising the following steps:
[0017] Obtaining the original voice signal in the vehicle environment;
[0018] Preprocessing the original speech signal, the preprocessing comprising: performing speech enhancement according to the speech enhancement method described in the first aspect of the present application;
[0019] Perform feature extraction on the pre-processed speech signal;
[0020] The speech signal after feature extraction is input into the trained convolutional neural network model for speech recognition, and the convolutional neural network outputs the speech recognition result.
[0021] In a possible implementation, an MFCC method is used to extract features from the preprocessed signal.
[0022] In one possible implementation, the convolutional neural network model includes 1 input layer, 6 convolutional layers, 6 dropout layers and 1 fully connected layer.
[0023] This application combines the improved spectral subtraction with fuzzy theory, so that the spectral subtraction coefficients can adapt to different speech signals, effectively eliminate noise, avoid the "music noise" problem, and improve the signal-to-noise ratio, retaining the effective signal of the speech signal. Through actual simulation operations and in-car experiments, the algorithm in this paper can effectively improve the accuracy of speech recognition in a moving car. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can also be obtained based on these drawings without creative work. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowcharts shown in the drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.
[0025] Figure 1 is a flow chart of a method for speech enhancement in a vehicle environment provided by an embodiment of the present application;
[0026] Figure 2 is a flow chart of a method for speech recognition in a vehicle environment provided by an embodiment of the present application;
[0027] Figure 3 This is a diagram of the speech enhancement effect of the simulation comparison experiment of this application. DETAILED DESCRIPTION
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0029] It should be noted that, in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0030] Spectral subtraction was proposed by Boll in 1979. It is an independent noise suppression algorithm used to reduce the spectral effect of noise in speech. Spectral subtraction first divides the speech into frames, and then it can be assumed that the noise in the speech signal is a stationary random signal, which is an additive signal. Spectral subtraction first performs Fourier transform on the noisy signal and retains the phase information, and then estimates the noise spectrum. The spectrum of the noisy speech signal is subtracted from the estimated noise spectrum to obtain the pure speech signal spectrum, and finally the time domain signal is obtained through inverse Fourier transform. Let x(k) represent the noisy time domain speech signal, n(k) represent the time domain noise signal, s(k) represent the time domain pure speech signal, P x (w), P n (w) and P s (w) represent the power spectra of x(k), n(k) and s(k) respectively. The traditional spectrum subtraction can be expressed by formula (1):
[0031]
[0032] The traditional spectral subtraction method has weak noise suppression ability and has "music noise". To address this problem, Boll then proposed an improved spectral subtraction method, as shown in formula (2):
[0033]
[0034] γ is the spectrum factor, when γ=1, it represents the traditional spectrum subtraction method; δ is the subtraction factor, the value range is [1,5]; ε is the spectrum gain factor, the value range is [0.01,0.5]. This method can improve the problems of insufficient noise filtering in the traditional spectrum subtraction method, but the suppression effect on "music noise" is poor.
[0035] Based on formula (2), Berouti proposed a new improved expression (3), adding parameters for adjusting the noise power spectrum. The new expression is:
[0036]
[0037] In relevant applications, the α and β parameter values in expression (3) are manually set to constant values based on experience, lacking adaptive capabilities, and it is difficult to determine whether they are optimal parameter values. The α and β parameters have a crucial impact on the speech enhancement results. When α increases, the signal-to-noise ratio can be appropriately improved, and the output speech signal is relatively smooth with fewer glitches, but this will also lead to more serious speech distortion and even loss of useful speech signals in the signal; when β decreases, the noise can be effectively removed, but some "music noise" will also be increased. Reasonable design of the α and β parameters can appropriately improve the signal-to-noise ratio, while eliminating "music noise" and retaining more pure speech signals. Based on this, the embodiment of the present application proposes a speech enhancement method in a vehicle-mounted environment, which changes the way the α and β parameters are taken, and the α and β parameters are taken according to the power spectrum P x The average amplitude A and maximum amplitude M of (w) are adaptively adjusted to achieve better speech enhancement effect.
[0038] Please refer to Figure 1 , a method for speech enhancement in a vehicle environment provided by an embodiment of the present application includes the following steps:
[0039] Step S1, performing frame processing on the original voice input signal in the vehicle environment;
[0040] Step S2, performing windowing processing on the framed speech signal to obtain a time domain speech signal x(k);
[0041] Step S3: Perform Fourier transform on the time domain speech signal x(k) to obtain the power spectrum P x (w), while preserving the phase of the original speech signal
[0042] Step S4: According to the power spectrum P x (w) Estimate the power spectrum P of the time domain noise signal n(k) n (w);
[0043] Step S5: According to P x The average amplitude A and the maximum amplitude M of (w) determine the values of parameters α and β;
[0044] Step S6: Calculate the power spectrum P of the time-domain pure speech signal s(k) according to expression (3): s (w);
[0045] Step S7: The power spectrum P s (w) Combined with the phase of the original speech signal After inverse Fourier transform, the time domain pure speech signal s(k) is obtained, completing the enhancement of the original speech input signal.
[0046] In an embodiment of the present application, step S5 includes: inputting the average amplitude A and the maximum amplitude M into the constructed fuzzy controller, and the fuzzy controller outputs the values of α and β. Specifically, the input and output of the fuzzy controller are set to seven levels, and the input and output are divided into: negative large (NB), negative medium (NM), negative small (NS), 0 (ZE), positive small (PS), positive medium (PM), positive large (PB). The seven levels can cover the main range of numerical changes, meet the control requirements, and do not occupy high hardware resources, and have good computing efficiency. The membership function adopts a Gaussian function, and the max method fuzzy synthesis and the center of gravity method are used for defuzzification.
[0047] It should be noted that the step numbers in the embodiments of the present application do not constitute a limitation on the order of the steps in the technical solution of the present application. For example, there is no necessary order relationship between step S5 and step S4. In other specific embodiments, the two can be interchanged.
[0048] Based on the speech enhancement method in the vehicle environment in the above embodiment, the present application embodiment also provides a speech recognition method in the vehicle environment, please refer to Figure 2 , the steps of speech recognition include:
[0049] Step a, obtaining an original voice signal in a vehicle environment;
[0050] Step b, preprocessing the original speech signal, wherein the preprocessing includes: performing speech enhancement according to the speech enhancement method in the aforementioned embodiment;
[0051] Step c, extracting features from the pre-processed speech signal;
[0052] Step d: inputting the speech signal after feature extraction into the trained convolutional neural network model for speech recognition, and the convolutional neural network outputs the speech recognition result.
[0053] Specifically, step c uses the MFCC method to extract features from the clean speech signal; the convolutional neural network model described in step d includes 1 input layer, 6 convolutional layers, 6 dropout layers and 1 fully connected layer. MFCC is the abbreviation of Mel-Frequency Cepstral Coefficients, which is a common technical means for feature extraction in the field of speech recognition and will not be described in detail here.
[0054] It should be understood that in some other specific embodiments, the preprocessing in step b may also include other preprocessing means such as pre-emphasis.
[0055] Next, comparative experiments are used to further demonstrate the technical effects of the speech enhancement method in a vehicle environment and the speech recognition method in a vehicle environment provided by the embodiments of the present application.
[0056] Example
[0057] In a moving GAC Trumpchi M8, we collected a speech data set of 20 people (10 boys and 10 girls), 10 words, and each word was read 30 times. A 2-second male voice with the content of "picture capture" was selected as the original speech signal. Figure 3 As shown in part (a), the required calculation model is built in Matlab software.
[0058] Step S1, the original speech signal is divided into frames, and the duration of each segment of the speech signal after framing is 20 milliseconds, and the speech signals of adjacent segments overlap by 10 milliseconds.
[0059] Step S2: After the frame processing, a Hamming window is added to obtain a time domain speech signal x(k).
[0060] Step S3: Perform Fourier transform on the time domain speech signal x(k) to obtain the corresponding power spectrum P x (w).
[0061] Step S4: According to the power spectrum P x (w) is the power spectrum P of the estimated noise signal n (w), specifically, the power spectrum P x (w) The average of the first 5 frames is the noise power spectrum P n The amplitude of (w).
[0062] Step S5: Calculate the power spectrum P x The average amplitude A and the maximum amplitude M of (w) are used as inputs to the fuzzy controller, and the fuzzy controller outputs the values of α and β. The input and output of the fuzzy controller are set to seven levels, and the input and output are divided into: negative large (NB), negative medium (NM), negative small (NS), 0 (ZE), positive small (PS), positive medium (PM), and positive large (PB). The membership function uses a Gaussian function, and the max method fuzzy synthesis and centroid method are used for defuzzification. The fuzzy rules are shown in Tables 1 and 2:
[0063] Table 1α parameter rule table
[0064]
[0065] Table 2 β parameter rule table
[0066]
[0067] Step S6: The power spectrum Px (w), the estimated P n (w), the α and β parameter values output by the fuzzy controller are substituted into expression (3), and the power spectrum P of the pure speech signal is calculated. s (w).
[0068] Step S7: Power spectrum P of the pure speech signal s (w) performs inverse Fourier transform to obtain the time domain pure speech signal s(k), such as Figure 3 As shown in part (c) of .
[0069] Each small segment power spectrum P after framing x The average amplitude A of (w) (corresponding to a 20-ms time-domain speech signal) is different from the maximum amplitude M, so the values of α and β vary.
[0070] Comparative Example
[0071] The difference between the comparative example and the embodiment is that both α and β are fixed values. In the related art, the values of α and β are determined empirically. In order to compare with the embodiment as much as possible, in the comparative example of the present application, the mean value of α in the embodiment is taken as the fixed value of α in the comparative example, and the mean value of β in the embodiment is taken as the fixed value of β in the comparative example. The time domain pure speech signal output by the comparative example is as follows: Figure 3 As shown in part (b).
[0072] Blank example
[0073] The unprocessed original speech signal is used as a blank example. Figure 3 As shown in part (a) of .
[0074] Compare Figure 3 In the signals of parts (a), (b) and (c), the embodiment greatly eliminates the noise signal while retaining the useful signal, and the denoising effect is better than that of the comparative example.
[0075] Furthermore, speech recognition is performed based on the aforementioned comparative experiments. The speech recognition scheme uses the MFCC method to extract features and uses a convolutional neural network to perform speech recognition. MFCC is a method designed based on the human hearing effect. MFCC extracts features from speech signals for recognition tasks. The convolutional neural network CNN consists of 1 input layer, 6 convolutional layers, 6 dropout layers, and 1 dense layer. The recognition effect is shown in Table 3:
[0076] Table 3 Recognition rate comparison
[0077] Voice Commands Blank example Comparison Example Example "Video Recording" 65% 80% 90% "Picture Snap" 60% 77% 88% "Lower volume" 70% 83% 95% "Open Location" 63% 75% 85%
[0078] It can be seen from Table 3 that the recognition rate of the original speech signal (blank example) without speech enhancement is the lowest, and the recognition rate of the speech signal (embodiment) after speech enhancement using the speech enhancement method provided in the embodiment of the present application is much higher than that of the blank example and the comparison example.
[0079] In summary, the present application proposes an improved spectral subtraction method (expression (3)) combined with fuzzy theory, so that the spectral subtraction coefficients can adapt to different speech signals, effectively eliminate noise, avoid the "music noise" problem, and improve the signal-to-noise ratio, retaining the effective signal of the speech signal. Through actual simulation operations and in-vehicle experiments, the technical solution provided by the present application can effectively improve the accuracy of speech recognition in a moving car.
[0080] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for speech enhancement in a vehicle environment, It is characterized in that The steps include: The original speech signal in the vehicle environment is subjected to frame processing and windowing processing to obtain a time domain speech signal x(k), where the time domain noise signal is represented by n(k) and the time domain pure speech signal is represented by s(k); Perform Fourier transform on the time domain speech signal x(k) to obtain the power spectrum Px(w), while retaining the phase of the original speech signal The power spectrum Pn(w) of the time domain noise signal n(k) is estimated based on the power spectrum Px(w); The power spectrum of the time-domain clean speech signal s(k) is represented by Ps(w), and then there is a formula: wherein α and β are parameters that change adaptively according to the average amplitude A and the maximum amplitude M of the power spectrum Px(w), and the value range of α is 0<α<5, and the value range of β is 0<β<1; the power spectrum Ps(w) is calculated according to the formula, and the power spectrum Ps(w) is combined with the phase of the original speech signal to perform inverse Fourier transform to obtain the time-domain clean speech signal s(k), thereby completing the enhancement of the original speech input signal; The steps of adaptively changing α and β according to the average amplitude A and the maximum amplitude M of the power spectrum Px(w) include: The average amplitude A and the maximum amplitude M are input into the constructed fuzzy controller, and the fuzzy controller outputs the values of α and β.
2. The speech enhancement method according to claim 1, It is characterized in that The input and output of the fuzzy controller are divided into seven levels respectively.
3. The speech enhancement method according to claim 1, It is characterized in that The membership function of the fuzzy controller adopts a Gaussian function.
4. The speech enhancement method according to claim 1, It is characterized in that The fuzzy controller adopts the max method for fuzzy synthesis and the centroid method for defuzzification.
5. A speech recognition method in a vehicle environment, It is characterized in that The steps include: Obtain the original voice signal in the vehicle environment; Preprocessing the original speech signal, the preprocessing comprising: performing speech enhancement according to the speech enhancement method according to any one of claims 1 to 4; Perform feature extraction on the pre-processed speech signal; The speech signal after feature extraction is input into the trained convolutional neural network model for speech recognition, and the convolutional neural network outputs the speech recognition result.
6. The speech recognition method according to claim 5, It is characterized in that The MFCC method is used to extract features from the preprocessed signal.
7. The speech recognition method according to claim 6, It is characterized in that The convolutional neural network model includes 1 input layer, 6 convolutional layers, 6 dropout layers and 1 fully connected layer.
