A keyword recognition method, device and medium

By using a method that combines the noise reduction neural network and the recognition neural network in the keyword recognition process, the time-frequency conversion step is reduced, the problem of waste of computing power and recognition accuracy in the existing technology is solved, and efficient keyword recognition is achieved.

CN115394291BActive Publication Date: 2024-10-29BEIJING BAIRUI INTERNET TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211072718.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-02
Publication Date
2024-10-29
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

The existing technology requires multiple time-frequency conversions during the keyword recognition process, resulting in a waste of computing power, a waste of storage functions and system delays, and the nonlinear processing of the noise reduction technology affects the recognition accuracy.

Method used

Partial decoding is used to obtain the discrete cosine transform spectral coefficients, noise reduction processing and feature extraction are performed through the noise reduction neural network, and keyword recognition is combined with the recognition neural network to reduce the time-frequency conversion step and improve the noise reduction technology to be suitable for keyword recognition.

Benefits of technology

It reduces the waste of computing power and system delays in the keyword recognition process, improves recognition accuracy, reduces unnecessary decoding steps, saves computing power, and is suitable for low-power Bluetooth and other wireless communication scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115394291B_ABST
    Figure CN115394291B_ABST
Patent Text Reader

Abstract

The present application discloses a keyword recognition method, device and medium, belonging to the field of Bluetooth technology. The method comprises: partially decoding the current frame code stream to obtain discrete cosine transform spectrum coefficients; using discrete cosine transform spectrum coefficients to calculate noisy speech features, and inputting the noisy speech features into a pre-trained denoising neural network model to calculate the denoising gain; using the denoising gain to process the discrete cosine transform spectrum coefficients to obtain denoised discrete cosine transform spectrum coefficients; using the denoised discrete cosine transform spectrum coefficients to calculate to obtain the denoised spectrum coefficient features of the denoised discrete cosine transform spectrum coefficients; in the pre-trained recognition neural network model, keyword recognition is performed based on the denoised spectrum coefficient features of the current frame and the denoised spectrum coefficient features of the predetermined number of historical frames to obtain the keywords in the speech code stream. The present application can reduce the number of time-frequency conversions in the keyword recognition process, reduce the amount of calculation in the recognition process, and improve the efficiency of recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Bluetooth technology, and in particular to a keyword recognition method, device and medium. Background Art

[0002] With the development of technology, keyword recognition technology for wireless audio is being applied in more and more usage scenarios, for example, in Bluetooth remote controls. Figure 1 As shown in the figure, the process of controlling home appliances using a Bluetooth remote control is: the user issues a voice control command, such as "turn on the air conditioner", and the remote control's microphone is used for acquisition, analog-to-digital conversion (ADC), audio preprocessing and audio encoder to generate an audio compression package, which is finally sent out through the wireless communication module; the wireless communication module at the receiving end receives the audio compression package, calls the audio decoder to generate audio PCM data, and the audio post-processing module and the keyword recognition module identify keywords, such as "turn on the air conditioner", and then convert them into corresponding control signals to control the home appliances.

[0003] In the keyword recognition process of the prior art, the receiving end needs to perform multiple time-frequency conversions, such as Figure 1 , the received frequency domain code stream is converted into time domain PCM data in the wireless communication module at the receiving end. However, when the audio post-processing module is used for audio noise reduction, the PCM data needs to be converted into frequency domain data to perform audio noise reduction in the frequency domain. The noise-reduced audio is then passed to the keyword recognition module in the form of PCM data for keyword recognition. However, time-frequency conversion is still required during keyword recognition. Therefore, the prior art requires multiple time-frequency conversions during keyword recognition, which causes a waste of computing power, a waste of storage function, and system delays. At the same time, because the existing noise reduction technology is mainly aimed at improving people's subjective hearing and is not designed for keyword recognition, the prior art introduces nonlinear processing during the noise reduction process, which results in a decrease in the accuracy of the keyword recognition process. Summary of the invention

[0004] In view of the problems existing in the prior art such as the waste of computing power and system delay caused by multiple time-frequency conversions during keyword recognition, the present application mainly provides a keyword recognition method, device and storage medium.

[0005] In order to achieve the above-mentioned purpose, a technical solution adopted in the present application is: to provide a keyword recognition method, which includes: at a signal receiving end, partially decoding the current frame code stream until the discrete cosine transform spectrum coefficients of the current frame code stream are obtained; using the discrete cosine transform spectrum coefficients to calculate the noisy speech features of the current frame code stream, and inputting the noisy speech features into a pre-trained denoising neural network model to calculate the denoising gain; using the denoising gain to perform denoising on the discrete cosine transform spectrum coefficients to obtain denoised discrete cosine transform spectrum coefficients; using the denoised discrete cosine transform spectrum coefficients to extract denoising spectrum coefficient features to obtain denoised spectrum coefficient features of the denoised discrete cosine transform spectrum coefficients; and, in the pre-trained recognition neural network model, performing keyword recognition based on the denoising spectrum coefficient features of the current frame and the denoising spectrum coefficient features of a predetermined number of historical frames to obtain keywords in the speech code stream.

[0006] Optionally, the mixed speech code stream and the pure keyword speech code stream are partially decoded respectively to obtain the first discrete cosine transform spectrum coefficient of the mixed speech code stream and the second discrete cosine transform spectrum coefficient of the keyword speech code stream; the noisy speech features are calculated using the first discrete cosine transform spectrum coefficient, and the noise-free speech features are calculated using the second discrete cosine transform spectrum coefficient; the noisy speech features and the noise-free speech features are input into the denoising neural network model for training, so that the denoising neural network model obtains the noise reduction gain according to the input noisy speech features.

[0007] Optionally, the weights and biases of the denoising neural network model and the recognition neural network model are adjusted according to the recognized keywords and the keywords in the keyword speech, until the accuracy of the recognized keywords is greater than a predetermined threshold, thereby terminating the training of the denoising neural network model and the recognition neural network model.

[0008] Optionally, a cross entropy loss function is used to train the denoising neural network model and the recognition neural network model.

[0009] Optionally, obtain the sub-band noisy speech features of each frame of spectrum coefficients in the first discrete cosine transform spectrum coefficients of the mixed voice code stream and the sub-band noise-free speech features of the corresponding frame in the second discrete cosine transform spectrum coefficients of the keyword voice code stream respectively; input the sub-band noisy speech features and the sub-band noise-free speech features into the denoising neural network model for training, so that the generated denoising neural network model obtains the sub-band gains corresponding to each sub-band in a frame of spectrum coefficients according to the input frame of spectrum coefficients.

[0010] Optionally, the first discrete cosine transform spectral coefficient and the second discrete cosine transform spectral coefficient are used to respectively divide the current frame mixed speech code stream and the corresponding frame keyword speech code stream into subbands to obtain corresponding subbands; the subband energy of the subband is calculated using the pseudo-spectral coefficients of the subband, and the subband energy calculation is used to obtain the subband noisy speech characteristics or subband noise-free speech characteristics corresponding to the subband.

[0011] Optionally, the denoised discrete cosine transform spectrum coefficient of the subband is calculated by multiplying the subband gain and the discrete cosine transform spectrum coefficient corresponding to the subband; and the denoised discrete cosine transform spectrum coefficients of each subband are concatenated to obtain the denoised discrete cosine transform spectrum coefficients of the current frame code stream.

[0012] Optionally, the denoised discrete cosine transform spectrum coefficients are pre-emphasized to obtain the denoised discrete cosine transform spectrum coefficients after denoising; the energy spectrum of the denoised discrete cosine transform spectrum coefficients after denoising is generated using the denoised discrete cosine transform spectrum coefficients after denoising; the channel energy after the energy spectrum passes through the Mel filter group is calculated; and the channel energy is logarithmically transformed, and the calculation result is used to perform discrete cosine transform, and the calculated Mel-frequency cepstrum coefficients are used as denoised spectrum coefficient features.

[0013] Another technical solution adopted by the present application is: to provide a keyword recognition device, which includes: a semi-decoding module, which is used to partially decode the current frame code stream at the signal receiving end until the discrete cosine transform spectrum coefficients of the current frame code stream are obtained; a noise reduction gain acquisition module, which is used to calculate the noisy speech features of the current frame code stream using the discrete cosine transform spectrum coefficients, and input the noisy speech features into a pre-trained noise reduction neural network model to calculate the noise reduction gain; a noise reduction module, which is used to perform noise reduction processing on the discrete cosine transform spectrum coefficients using the noise reduction gain to obtain the noise-reduced discrete cosine transform spectrum coefficients; a noise reduction spectrum coefficient feature extraction module, which is used to extract noise reduction spectrum coefficient features using the noise-reduced discrete cosine transform spectrum coefficients to obtain the noise-reduced spectrum coefficient features of the noise-reduced discrete cosine transform spectrum coefficients; and a keyword recognition module, which is used to perform keyword recognition in the pre-trained recognition neural network model according to the noise reduction spectrum coefficient features of the current frame and the noise reduction spectrum coefficient features of a predetermined number of historical frames to obtain keywords in the speech code stream.

[0014] Another technical solution adopted by the present application is: providing a computer-readable storage medium storing computer instructions, which are operated to execute the keyword recognition method in solution one.

[0015] The beneficial effect that can be achieved by the technical solution of the present application is that the method does not need to perform time-frequency conversion multiple times during the keyword recognition process, thereby reducing the waste of computing power and system delays during the keyword recognition process, and at the same time improving the noise reduction technology to make it more suitable for keyword recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1 It is a schematic diagram of a prior art keyword recognition process of a keyword recognition method of the present application;

[0018] Figure 2 It is a schematic diagram of a specific implementation of a keyword identification method of the present application;

[0019] Figure 3 is a schematic diagram of a pre-emphasis frequency response of a keyword recognition method of the present application;

[0020] Figure 4 It is a schematic diagram of a keyword recognition process and a training process of a keyword recognition method of the present application;

[0021] Figure 5 It is a schematic diagram of a specific implementation of a keyword recognition device of the present application.

[0022] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0023] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present application.

[0024] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0025] In the prior art, the wireless communication module of the Bluetooth receiving end receives the audio code stream transmitted by the Bluetooth transmitting end, and uses the audio decoder to obtain PCM data through code stream analysis, arithmetic and residual decoding, noise filling and global gain, time domain noise decoding, transform domain noise decoding, frequency domain to time domain conversion (usually low-delay improved inverse discrete cosine transform) and long-term post-filter processing. The audio processing module uses the PCM data to complete the audio denoising process by converting from time domain to frequency domain, estimating noise and audio signals in the frequency domain, calculating gain, applying gain to spectral coefficients and converting from frequency domain to time domain, and obtains denoised PCM data. The denoised PCM data is used by the keyword recognition module to obtain the keywords to be identified through feature extraction, deep neural network and post-processing, wherein the feature extraction step includes pre-emphasis, windowing, time domain to frequency domain conversion (usually discrete Fourier transform), energy spectrum, Mel filter bank, logarithmic transform, discrete cosine transform and Mel frequency cepstrum coefficient (abbreviated as MFCC).

[0026] The keyword recognition process of the prior art requires multiple time-frequency conversions, which will cause related algorithm delays and processing delays. The main function of the time-frequency related module is to realize the conversion between the time domain and the frequency domain. The amount of calculation is large and the storage demand is large, which poses a great challenge to the deployment of the keyword recognition module on the embedded Bluetooth receiver. In addition, the role of the long-term post-filter processing in the audio decoder is to improve people's hearing, which is of no benefit to the noise reduction or keyword recognition module and has a large amount of calculation. Therefore, in the above application scenarios, complete decoding is unnecessary. At the same time, the prior art introduces nonlinear processing in the noise reduction process, which will lead to a decrease in the accuracy of the keyword recognition process.

[0027] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The specific embodiments described below can be combined with each other to form new embodiments. The same or similar ideas or processes described in one embodiment may not be repeated in other embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0028] Figure 2 An implementation of a keyword recognition method of the present application is shown.

[0029] Figure 2 The keyword recognition method shown includes: step S201, at the signal receiving end, partially decoding the current frame code stream until the discrete cosine transform spectrum coefficient of the current frame code stream is obtained;

[0030] Step S202, using discrete cosine transform spectrum coefficients to calculate the noisy speech features of the current frame stream, and inputting the noisy speech features into a pre-trained denoising neural network model to calculate a denoising gain;

[0031] Step S203, performing denoising processing on the discrete cosine transform spectrum coefficients using the denoising gain to obtain denoised discrete cosine transform spectrum coefficients;

[0032] Step S204, extracting denoising spectrum coefficient features using denoising discrete cosine transform spectrum coefficients to obtain denoising spectrum coefficient features of the denoising discrete cosine transform spectrum coefficients; and,

[0033] Step S205, in the pre-trained recognition neural network model, keyword recognition is performed based on the denoising spectrum coefficient characteristics of the current frame and the denoising spectrum coefficient characteristics of a predetermined number of historical frames to obtain keywords in the speech code stream.

[0034] This method does not require multiple time-frequency conversions during the keyword recognition process, which reduces the waste of computing power, large storage requirements, algorithm delays and system delays in the keyword recognition process. It improves the noise reduction technology to make it more suitable for keyword recognition, while reducing unnecessary decoding steps to save computing power.

[0035] exist Figure 2 In the illustrated implementation, the keyword recognition method includes step S201, at the signal receiving end, partially decoding the current frame code stream until the discrete cosine transform spectrum coefficient of the current frame code stream is obtained. This step saves unnecessary decoding steps, saves computing power in the keyword recognition process, and reduces storage requirements.

[0036] Specifically, when performing keyword recognition, the input PCM signal is first divided into frames, and subsequent processing such as decoding is performed by frame. Taking the LC3 decoder as an example, each frame of the signal is processed by arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding to obtain the discrete cosine transform spectrum coefficient X(k) of the current frame. For example, the PCM signal is divided into signal frames of 10ms in size and 160 sampling points in total, and the discrete cosine transform spectrum coefficient X(k) is obtained after partial decoding, where k=0,1,2,…,159. Among them, because the long-term post-filter decoding step in the decoding process is reduced, the purpose of reducing computing power requirements and storage requirements is achieved without affecting the audio quality, and the PCM signal here can be voice data containing noise or pure voice data.

[0037] exist Figure 2 In the specific implementation shown, the keyword recognition method also includes step S202, using discrete cosine transform spectrum coefficients to calculate the noisy speech features of the current frame code stream, and inputting the noisy speech features into a pre-trained denoising neural network model to calculate the denoising gain. This step improves the denoising technology to make it more suitable for keyword recognition, and at the same time does not require additional time-frequency conversion, which reduces the computing power and storage requirements and improves the processing efficiency of the system.

[0038] In a specific embodiment of the present application, a specific denoising neural network model training method includes partially decoding a mixed speech code stream and a pure keyword speech code stream respectively to obtain a first discrete cosine transform spectrum coefficient of the mixed speech code stream and a second discrete cosine transform spectrum coefficient of the keyword speech code stream; using the first discrete cosine transform spectrum coefficient to calculate the noisy speech features, and using the second discrete cosine transform spectrum coefficient to calculate the noise-free speech features; inputting the noisy speech features and the noise-free speech features into the denoising neural network model for training, so that the denoising neural network model obtains a denoising gain according to the input noisy speech features.

[0039] Specifically, Figure 4 In the offline training process, the pure keyword speech and the mixed speech obtained by mixing noise into the keyword speech are respectively encoded by an encoder to obtain a mixed speech code stream and a keyword speech code stream, and the mixed speech code stream and the keyword speech code stream are partially decoded to obtain the corresponding first discrete cosine transform spectrum coefficient and second discrete cosine transform spectrum coefficient. Figure 4 In the feature 1 extraction step, the noisy speech feature corresponding to the mixed audio is calculated according to the first discrete cosine transform spectrum coefficient, such as Figure 4In the feature 2 extraction step, the noise-free speech features corresponding to the pure keyword speech are calculated using the second discrete cosine transform spectrum coefficients. The noise reduction gain applied to the mixed audio is obtained by comparing and calculating the noisy speech features and the noise-free speech features in the noise reduction step. The selection of the denoising neural network model is not limited by the present invention. Considering the front-back correlation characteristics of the speech frame, preferably, a recurrent neural network model (RNN) is selected as the denoising neural network model.

[0040] In a specific embodiment of the present application, the sub-band noisy speech features of each frame of spectrum coefficients in the first discrete cosine transform spectrum coefficients of the mixed speech code stream and the sub-band noise-free speech features of the corresponding frame in the second discrete cosine transform spectrum coefficients of the keyword voice code stream are obtained respectively; the sub-band noisy speech features and the sub-band noise-free speech features are input into the denoising neural network model for training, so that the generated denoising neural network model obtains the sub-band gains corresponding to each sub-band in a frame of spectrum coefficients according to the input frame of spectrum coefficients.

[0041] Furthermore, the first discrete cosine transform spectrum coefficient and the second discrete cosine transform spectrum coefficient are used to sub-band divide the current frame mixed speech code stream and the corresponding frame keyword speech code stream into corresponding sub-bands respectively, and the sub-band energy of the sub-band is calculated using the pseudo-spectral coefficient of the sub-band, and the sub-band noisy speech feature or the sub-band noise-free speech feature corresponding to the sub-band is obtained using the sub-band energy calculation.

[0042] Specifically, the sub-band noisy speech feature and the sub-band noise-free speech feature are calculated in the same manner, and the specific calculation method is as follows.

[0043] For example, when the speech frame obtained by framing is an audio frame with a sampling rate of 16 kHz and a frame length of 10 ms, the 160 spectral coefficients of each frame are divided into 17 subbands according to the Bark frequency, where the subband sequence numbers are recorded as subband = 0, 1, 2, ..., 16, and the number of spectral coefficients in each subband is: 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 16, 16, 16, 24, 24.

[0044] Because the characteristics of the pseudo spectrum have a better correspondence with the actual frequency distribution, the pseudo spectrum coefficient corresponding to each sub-band is calculated. The calculation formula is: Where X pseudo (k) represents the pseudo-spectral coefficient corresponding to each sub-band, X(k) is the discrete cosine transform spectral coefficient corresponding to the sub-band, N E The pseudo-spectrum coefficient corresponding to each sub-band is then used to calculate the pseudo-spectrum sub-band energy corresponding to the sub-band. The calculation formula is: Energy subband (b) = ∑ k Xpseudo (k), where b is the subband number and k is the pseudo-spectral coefficient number corresponding to the subband. For example, when the subband number b = 0, the corresponding pseudo-spectral subband energy calculation formula is Energy subband (0) = X pseud (0)+X pseudo (1)+X pse (2)+X pseu (3).

[0045] The energy of each pseudo-spectrum sub-band is logarithmically transformed, and the calculation formula is: Energy log (m) = log(Energy subband (m)), m = 0, 1, ..., 16. Then, the logarithmic transformation result of the calculated pseudo-spectrum subband energy is used for discrete cosine transformation to obtain the discrete cosine transformation result BFCC. The specific calculation formula is:

[0046] Then, the BFCC is used to calculate the speech features of the current frame, that is, the discrete cosine transform results of the pseudo-spectral subband energies of the 17 sub-bands corresponding to the current frame are calculated, and the time difference of the discrete cosine transform results of the pseudo-spectral subband energies of the first 6 sub-bands among the discrete cosine transform results of the pseudo-spectral sub-band energies of the 17 sub-bands are calculated, and these 6 time differences and the discrete cosine transform results of the pseudo-spectral sub-band energies of the 17 sub-bands are used as the feature data extracted from the current frame, wherein the calculation process of the noisy speech features and the noise-free speech features are the same.

[0047] Finally, the discrete cosine transform result and time difference result of the pseudo-spectrum subband energy are used to calculate the gain of the noise reduction module output through the noise reduction neural network model. The specific calculation formula is: BFCC diff (k) = BFCC curr (k)-BFCC lastlast (k), k = 0, 1, 2, 3, 4, 5, where BFCC diff (k) represents the first-order difference of BFCC, BFCC curr (k) represents the kth BFCC coefficient of the current frame, BFCC lastlast (k) represents the kth BFCC coefficient of the previous two audio frames of the current frame, and the formula BFCC diff2 (k) = BFCC curr (k)-2*BFCC last (k)+BFCC lastlast (k), k = 0, 1, 2, 3, 4, 5, where BFCC diff2 (k) represents the kth second-order difference of BFCC, BFCC last(k) represents the kth BFCC coefficient of the previous frame. The output result of the denoising neural network model of the denoising module is the subband gain corresponding to the subband of the current frame. nr (b), b=0, 1, 2,…,16.

[0048] exist Figure 2 In the specific implementation shown, the keyword recognition method further includes step S203, using the noise reduction gain to perform noise reduction processing on the discrete cosine transform spectrum coefficients to obtain noise-reduced discrete cosine transform spectrum coefficients. This step can perform noise reduction processing on the audio without performing time-frequency conversion, and at the same time makes the noise reduction processing more suitable for keyword recognition.

[0049] In a specific embodiment of the present application, the specific noise reduction process includes: using the product between the subband gain and the discrete cosine transform spectrum coefficient corresponding to the subband to calculate the noise reduction discrete cosine transform spectrum coefficient of the subband; and splicing the noise reduction discrete cosine transform spectrum coefficient of each subband to obtain the noise reduction discrete cosine transform spectrum coefficient of the current frame code stream. This specific embodiment can perform noise reduction processing without time-frequency conversion, reduce the amount of calculation, ensure audio quality, and lay the foundation for subsequent keyword recognition.

[0050] For example, the four spectral coefficients of the first subband are X(0), X(1), X(2) and X(3). The subband gain of the first subband calculated by the noise reduction module is Gain nr (0), then the calculation method of applying sub-band gain noise reduction is: ′ (0) = X(0) * Gain nr (0);X ′ (1) = X(1) * Gain nr (0);X ′ (2) = X(2) * Gain nr (0);X ′ (3) = X (3) * Gain nr (0). Where X ′ (0),X ′ (1),X ′ (2) and X ′ (3) is the spectral coefficient after noise reduction.

[0051] exist Figure 2 In the specific implementation shown, the keyword recognition method further includes step S204, using the denoised discrete cosine transform spectrum coefficients to perform denoised spectrum coefficient feature extraction to obtain denoised spectrum coefficient features of the denoised discrete cosine transform spectrum coefficients. This step can lay the foundation for keyword recognition and can reduce system delays, waste of computing power and waste of storage space.

[0052] In a specific embodiment of the present application, step S204 includes pre-emphasis on the denoised discrete cosine transform spectrum coefficients to obtain the emphasized denoised discrete cosine transform spectrum coefficients; using the emphasized denoised discrete cosine transform spectrum coefficients to generate the energy spectrum of the emphasized denoised discrete cosine transform spectrum coefficients; calculating the channel energy after the energy spectrum passes through the Mel filter group; and performing logarithmic transformation on the channel energy, and using the calculated result to perform discrete cosine transform, and using the calculated Mel frequency cepstrum coefficients as denoised spectrum coefficient features. This specific embodiment does not require multiple time-frequency conversions, reducing the waste of computing power, large storage requirements, algorithm delays, and system delays in the keyword recognition process.

[0053] Specifically, when extracting the denoising spectrum coefficient features, the denoising discrete cosine transform spectrum coefficients must first be pre-emphasized. The pre-emphasis in the prior art is usually performed in the time domain, that is, Figure 1 The audio pre-processing or audio post-processing module is implemented as follows: y[n] = x[n]-0.95*x[n-1], where x[n] is the current input audio data PCM sampling point, x[n-1] is the previous audio data PCM sampling point of the current input, and y[n] is the result of pre-emphasis (i.e., time domain filtering). The frequency response of the filter in the prior art is as follows: Figure 3 The pre-emphasis processing of the present invention is implemented in the frequency domain. Taking the sampling rate of 16kHz as an example, the pre-emphasis frequency response is saved as a pre-emphasis frequency response table at 50Hz intervals: p(0), p(1), p(2), ..., p(159). When the spectral coefficients of MDCT are 160 in total, N F The corresponding value is 160, The pre-emphasis process of this application is: in, As a result of pre-emphasis, is the discrete cosine transform spectrum coefficient of the current frame, and p(k) is the pre-emphasis frequency response table.

[0054] The energy spectrum is calculated using the result of pre-emphasis. The specific process is to first generate pseudo-spectrum coefficients using the result of pre-emphasis. The specific formula is: Where k = 0…N F -1 and when k = -1 or N F hour, The present invention does not limit whether to use pseudo-spectrum coefficients. For example, directly using MDCT spectrum coefficients can also generate energy spectrum for keyword recognition. However, since the energy distribution of MDCT pseudo-spectrum coefficients has a better correspondence with the energy distribution of Fourier transform spectrum coefficients, using pseudo-spectrum to calculate energy spectrum can improve the performance of training and recognition. The energy spectrum is calculated using pseudo-spectrum coefficients, and its specific calculation formula is:

[0055] The calculated result is filtered through the Mel filter bank, that is, the spectrum energy is filtered through the Mel filter bank, and the energy of each channel is calculated. The specific calculation process is: Among them, H m is the mth Mel filter.

[0056] The filtered spectrum energy is logarithmically transformed, and the specific calculation method is: Mel db (m) = log(|Energy mel (m)|), m=0,1,…,M-1. The result of logarithmic transformation is subjected to discrete cosine transformation to generate Mel frequency cepstral coefficients (MFCC for short), which are the denoising spectrum coefficient features. The specific calculation process is: Where D is the dimension of MFCC features.

[0057] exist Figure 2 In the specific implementation shown, the keyword recognition method also includes step S205, in which, in the pre-trained recognition neural network model, keyword recognition is performed according to the noise reduction spectrum coefficient characteristics of the current frame and the noise reduction spectrum coefficient characteristics of the predetermined number of historical frames to obtain the keywords in the speech code stream. This step makes the application scope of the keyword recognition process wider, and can be used for low-power Bluetooth audio, classic Bluetooth or other wireless communication fields. At the same time, the joint processing of the noise reduction module and the keyword recognition module is used to improve the performance of keyword recognition in a noisy environment, and the audio decoder and the existing algorithm module are fully utilized to avoid a large number of time-frequency conversion operations, reduce the complexity of the system, and facilitate implementation in an embedded system, thereby saving power consumption, extending the use time of the device, saving the storage space required by the relevant modules, and reducing the cost of the device.

[0058] Specifically, Figure 4 In the online reasoning process, the trained recognition neural network model is used to process the current frame code stream to extract the keywords in the current frame code stream, and the recognized keywords are used to control products such as household appliances. Among them, the keyword recognition process and the noise reduction process are processed by neural networks. Preferably, the neural network of the keyword recognition module selects a convolutional neural network (CNN).

[0059] In a specific embodiment of the present application, a cross entropy loss function is used to train a denoising neural network model and a recognition neural network model. In this specific embodiment, by using the cross entropy loss function in both modules, the keyword detection and recognition efficiency and accuracy of the entire system are higher.

[0060] Specifically, in the prior art, noise reduction usually uses a mean square error loss function. The use of the mean square error loss function will maximize the signal-to-noise ratio of the audio signal output by the system, thereby achieving a noise reduction effect. However, this method has little effect on improving recognition accuracy and efficiency in the keyword recognition process. In the prior art, the keyword recognition process often uses a cross entropy loss function, so that the recognition result of the keyword recognition module can improve the efficiency and accuracy of keyword recognition. Therefore, the present application uses a cross entropy loss function to simultaneously perform the keyword recognition process and the noise reduction process, which can improve the accuracy and efficiency of the keyword recognition process. In the present application, the loss function is defined as: Where y is the real label of the keyword, It is the output of the keyword recognition process.

[0061] In a specific embodiment of the present application, the model training process includes adjusting the weights and biases of the denoising neural network model and the recognition neural network model according to the recognized keywords and keywords in the keyword speech, until the accuracy of the recognized keywords is greater than a predetermined threshold, thereby terminating the training of the denoising neural network model and the recognition neural network model.

[0062] Specifically, when the accuracy of the recognition result of the keyword recognition process reaches or exceeds a predetermined threshold, the keyword recognition process is performed according to the configuration data of the weight and bias of the keyword detection module and the noise reduction module at this time.

[0063] In a specific embodiment of the present application, the specific processing process of the present application is as follows: Figure 4In the process of offline training, firstly, the keyword speech mixed with noise and the pure keyword speech are divided into frames respectively, and each frame of speech is fully encoded and partially decoded to obtain the discrete cosine transform spectrum coefficient of the keyword speech mixed with noise and the discrete cosine transform spectrum coefficient of the keyword speech corresponding to each frame of speech. The discrete cosine transform spectrum coefficient of the keyword speech mixed with noise and the discrete cosine transform spectrum coefficient of the keyword speech of each frame of speech are processed as the above-mentioned feature extraction steps to obtain the noisy speech feature (feature 1) and the noise-free speech feature (feature 2). The noise reduction module is trained by the noisy speech feature and the noise-free speech feature to obtain the subband gain of the audio when mixed with noise, and the subband gain is used in the application gain module to reduce the noise of the discrete cosine transform spectrum coefficient of the keyword speech mixed with noise, and the spectrum coefficient feature after the noise reduction is extracted by the discrete cosine transform spectrum coefficient after the noise reduction. The spectrum coefficient feature after the noise reduction is used to train the keyword recognition module, and the keyword recognition module is based on the noise reduction spectrum coefficient feature of the current frame and the noise reduction spectrum coefficient feature of the predetermined number of historical frames to obtain the keyword in the speech code stream. In order to make the training speed of offline training faster, the spectrum coefficients of the audio data after LD-MDCT (inverse discrete cosine transform spectrum coefficients) transformation can also be used during offline training. Preferably, the discrete cosine transform spectrum coefficients (LD-IMDCT spectrum coefficients) after encoding and partial decoding are used for training, which can better match the actual application scenario. The noisy speech features of the current frame code stream are obtained by extracting features of the mixed speech with noise, and the noise-free speech features of the current frame code stream are obtained by extracting features of the keyword speech.

[0064] like Figure 4 The dotted line in the figure shows that after completing the keyword recognition, the keyword recognition result is passed to the keyword recognition module according to the keyword recognition result. The keyword recognition module propagates the system's neural network gradient related information to the denoising module, thereby adjusting the weights and biases of various parameters in the keyword recognition module and the denoising module according to the recognition result, so that the output result of the denoising module is easier to be detected by the keyword detection module.

[0065] When in the online reasoning process, at the audio receiving end, the Bluetooth communication module transmits the code stream to the partial decoding module after receiving the audio code stream of the current frame, and the partial decoding module decodes the code stream into discrete cosine transform spectrum coefficients. The noisy speech feature is extracted by the feature 4 extraction module (the extraction method is the same as feature 1), and the noise reduction gain corresponding to the noisy speech feature is obtained by using the noise reduction module. Using the application gain module, the discrete cosine transform spectrum coefficient of the current frame code stream is denoised according to the calculated gain to obtain the denoised discrete cosine transform spectrum coefficient. Through the feature 5 extraction module, the denoised discrete cosine transform spectrum coefficient of the current frame and the denoised discrete cosine transform spectrum coefficient of the predetermined number of historical frames are used to identify the denoised spectrum coefficient feature (the method and content are the same as feature 3), and the denoised spectrum coefficient feature is used to identify keywords. A control signal is sent according to the identified keyword to control the home appliance to perform the corresponding action. Among them, since the keyword is generally 3 to 5 words and usually lasts 1 to 1.5 seconds, taking the keyword duration of 1 second as an example, if the frame length is 10ms, there are a total of 100 frames, and the historical frame denoising discrete cosine transform spectrum coefficients of the predetermined number of frames are 99 frames.

[0066] Figure 5 A specific implementation of a keyword recognition device of the present application is shown.

[0067] exist Figure 5 In the specific implementation shown, the keyword recognition device mainly includes: a semi-decoding module 501, which is used to partially decode the current frame code stream at the signal receiving end until the discrete cosine transform spectrum coefficients of the current frame code stream are obtained;

[0068] The noise reduction gain acquisition module 502 is used to calculate the noisy speech features of the current frame code stream using discrete cosine transform spectrum coefficients, and input the noisy speech features into a pre-trained noise reduction neural network model to calculate the noise reduction gain;

[0069] A noise reduction module 503 is used to perform noise reduction processing on discrete cosine transform spectrum coefficients using noise reduction gains to obtain noise-reduced discrete cosine transform spectrum coefficients;

[0070] A denoising spectrum coefficient feature extraction module 504 is used to extract denoising spectrum coefficient features using denoising discrete cosine transform spectrum coefficients to obtain denoising spectrum coefficient features of denoising discrete cosine transform spectrum coefficients; and

[0071] The keyword recognition module 505 is used to perform keyword recognition in a pre-trained recognition neural network model according to the denoising spectrum coefficient characteristics of the current frame and the denoising spectrum coefficient characteristics of a predetermined number of historical frames to obtain keywords in the speech code stream.

[0072] The keyword recognition device provided in the present application can be used to execute the keyword recognition method described in any of the above embodiments. Its implementation principles and technical effects are similar and will not be repeated here.

[0073] In a specific embodiment of the present application, each functional module in a keyword recognition device of the present application can be directly in hardware, in a software module executed by a processor, or in a combination of the two.

[0074] The software modules may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from and write information to the storage medium.

[0075] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0076] In another specific embodiment of the present application, a computer-readable storage medium stores computer instructions, and the computer instructions are operated to execute the keyword identification method described in the above embodiment.

[0077] In a specific embodiment of the present application, a computer device includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores computer instructions that can be executed by the at least one processor, and the at least one processor operates the computer instructions to execute the keyword recognition method described in the above embodiment.

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

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

[0080] The above description is only an embodiment of the present application and does not limit the patent scope of the present application. Any equivalent structural 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 keyword recognition method, characterized in that: include: At the signal receiving end, partially decoding the current frame code stream until a discrete cosine transform spectrum coefficient of the current frame code stream is obtained; The noisy speech features of the current frame code stream are calculated using the discrete cosine transform spectrum coefficients, and the noisy speech features are input into a pre-trained denoising neural network model to calculate a denoising gain; Performing denoising processing on the discrete cosine transform spectrum coefficients by using the denoising gain to obtain denoised discrete cosine transform spectrum coefficients; Extracting denoising spectrum coefficient features using the denoising discrete cosine transform spectrum coefficients to obtain denoising spectrum coefficient features of the denoising discrete cosine transform spectrum coefficients; as well as, In the pre-trained recognition neural network model, keyword recognition is performed based on the denoising spectrum coefficient characteristics of the current frame and the denoising spectrum coefficient characteristics of a predetermined number of historical frames to obtain keywords in the speech code stream.

2. The keyword recognition method according to claim 1, characterized in that: The pre-training process of the pre-trained denoising neural network model includes: Partially decoding the mixed speech code stream and the pure keyword speech code stream respectively to obtain a first discrete cosine transform spectrum coefficient of the mixed speech code stream and a second discrete cosine transform spectrum coefficient of the keyword speech code stream; Using the first discrete cosine transform spectrum coefficients to calculate the noisy speech features, and using the second discrete cosine transform spectrum coefficients to calculate the noise-free speech features; The noisy speech features and the noise-free speech features are input into a denoising neural network model for training, so that the denoising neural network model obtains the denoising gain according to the input noisy speech features.

3. The keyword recognition method according to claim 2, characterized in that: The training process of the pre-trained denoising neural network model and the pre-trained recognition neural network model includes: According to the recognized keywords and the keywords corresponding to the keyword voice code stream, the weights and biases of the denoising neural network model and the recognition neural network model are adjusted until the accuracy of the recognized keywords is greater than a predetermined threshold, thereby terminating the training of the denoising neural network model and the recognition neural network model.

4. The keyword recognition method according to claim 2, characterized in that: The training process of the pre-trained denoising neural network model and the training process of the pre-trained recognition neural network model include: The denoising neural network model and the recognition neural network model are trained using a cross entropy loss function.

5. The keyword recognition method according to claim 2, characterized in that: The step of inputting the noisy speech feature and the noise-free speech feature into a denoising neural network model for training, so that the denoising neural network model obtains the denoising gain according to the input noisy speech feature, comprises: Respectively obtain the sub-band noisy speech features of each frame of spectrum coefficients in the first discrete cosine transform spectrum coefficients of the mixed speech code stream and the sub-band noise-free speech features of the corresponding frame in the second discrete cosine transform spectrum coefficients of the keyword speech code stream; The sub-band noisy speech features and the sub-band noise-free speech features are input into the denoising neural network model for training, so that the generated denoising neural network model obtains the sub-band gains corresponding to each sub-band in the current frame spectral coefficients according to the input current frame spectral coefficients.

6. The keyword recognition method according to claim 5, characterized in that: The step of respectively obtaining the sub-band noisy speech features of each frame of the first discrete cosine transform spectrum coefficients of the mixed speech code stream and the sub-band noise-free speech features of the corresponding frame of the second discrete cosine transform spectrum coefficients of the keyword speech code stream comprises: Using the first discrete cosine transform spectrum coefficient and the second discrete cosine transform spectrum coefficient, the mixed speech code stream of the current frame and the keyword speech code stream of the corresponding frame are respectively divided into sub-bands to obtain corresponding sub-bands; The subband energy of the subband is calculated using the pseudo-spectral coefficient of the subband, and the subband noisy speech feature or the subband noise-free speech feature corresponding to the subband is calculated using the subband energy.

7. The keyword recognition method according to claim 5, characterized in that: The step of performing denoising processing on the discrete cosine transform spectrum coefficients by using the denoising gain to obtain denoised discrete cosine transform spectrum coefficients includes: Calculating the denoised discrete cosine transform spectrum coefficient of the subband by multiplying the subband gain by the discrete cosine transform spectrum coefficient corresponding to the subband; and, The denoised discrete cosine transform spectrum coefficients of each sub-band are concatenated to obtain the denoised discrete cosine transform spectrum coefficients of the current frame code stream.

8. The keyword recognition method according to claim 1, characterized in that: The step of extracting denoising spectrum coefficient features by using the denoising discrete cosine transform spectrum coefficients to obtain denoising spectrum coefficient features of the denoising discrete cosine transform spectrum coefficients includes: Pre-emphasize the denoised discrete cosine transform spectrum coefficients to obtain emphasized denoised discrete cosine transform spectrum coefficients; Using the weighted denoised discrete cosine transform spectrum coefficients, generating an energy spectrum of the weighted denoised discrete cosine transform spectrum coefficients; Calculating the channel energy of the energy spectrum after passing through the Mel filter bank; and, The channel energy is logarithmically transformed, and a discrete cosine transform is performed using the calculated result, and the Mel-frequency cepstrum coefficients obtained after discrete cosine transform are used as the denoising spectrum coefficient features.

9. A keyword recognition device, characterized in that: include: A semi-decoding module, used for partially decoding the current frame code stream at the signal receiving end until the discrete cosine transform spectrum coefficients of the current frame code stream are obtained; A noise reduction gain acquisition module, used to calculate the noisy speech features of the current frame code stream using the discrete cosine transform spectrum coefficients, and input the noisy speech features into a pre-trained noise reduction neural network model to calculate the noise reduction gain; A denoising module, configured to perform denoising processing on the discrete cosine transform spectrum coefficients using the denoising gain to obtain denoised discrete cosine transform spectrum coefficients; A denoising spectrum coefficient feature extraction module, used to extract denoising spectrum coefficient features using the denoising discrete cosine transform spectrum coefficients to obtain denoising spectrum coefficient features of the denoising discrete cosine transform spectrum coefficients; as well as, The keyword recognition module is used to perform keyword recognition in a pre-trained recognition neural network model based on the noise reduction spectrum coefficient characteristics of the current frame and the noise reduction spectrum coefficient characteristics of a predetermined number of historical frames to obtain keywords in the voice code stream.

10. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are operated to execute the keyword identification method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Voice enhancement method and device based on deep circulation neural network

    CN110164465A

  • Voice conversion system, method and application

    CN112017644A