Voice activity detection method and device, computer equipment and storage medium
By using information compression and nonlinear excitation processing to generate weighted features in voice activity detection, the shortcomings of traditional convolutional neural networks in feature expression are solved, and the accuracy of voice activity detection is improved, especially in noisy environments. performance.
Patent Information
- Application Number
- CN202310337809.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-03-31
AI Technical Summary
Traditional convolutional recurrent neural networks cannot effectively enhance feature expression in speech activity detection, resulting in inaccurate detection results, especially in noisy environments where it is difficult to separate speech signals.
By obtaining the acoustic features of the audio sampling data, inputting the pre-trained voice activity detection model, performing information compression and non-linear changes, and generating weighted features, which are used to calculate the voice probability of the audio frame for detection. Specific steps include acoustic feature extraction, convolution operation, batch normalization, maximum pooling, long short-term memory training, global feature map compression, nonlinear excitation and weighting processing.
The accuracy of speech activity detection is improved. By giving different weights to different feature channels, the dependence between channels is enhanced, and speech segments and non-speech segments in the signal are effectively separated.
Smart Images

Figure CN118737204A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent voice technology, and in particular to a voice activity detection method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of intelligent voice technology, more and more smart devices are beginning to use intelligent voice technology to complete voice interaction, such as smart cars, smart phones, and smart speakers.
[0003] Voice activity detection technology is one of the key steps in intelligent voice technology. Its purpose is to determine the voice signal from an audio file containing voice. Voice activity detection not only involves digital signal processing issues, but also involves auditory perception characteristics and human voice characteristics. At the same time, the diversity of noise also increases the difficulty of voice activity detection.
[0004] In traditional technology, the traditional convolutional recurrent neural network structure is used to model audio timing information for voice activity detection. However, the traditional convolutional recurrent neural network cannot enhance the expression between features, making the detection results inaccurate. Summary of the invention
[0005] Based on this, it is necessary to provide a voice activity detection method, apparatus, computer device and storage medium that can improve the accuracy of voice activity detection in response to the above technical problems.
[0006] A voice activity detection method comprises: obtaining acoustic features of each audio frame of audio sampling data; inputting the acoustic features into a pre-trained voice activity detection model to obtain intermediate features of the outputs of each feature channel of the voice activity detection model; performing information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel; performing nonlinear changes on the first output to obtain a second output; multiplying the second output by the intermediate feature to obtain a weighted feature; calculating the probability that the audio frame is voice according to the weighted feature, and performing voice activity detection according to the probability.
[0007] In some embodiments, obtaining the acoustic features of each audio frame of the audio sampling data includes: obtaining the audio sampling data; performing frame processing on the audio sampling data to obtain at least one audio frame; and extracting acoustic features from each audio frame to obtain the acoustic features corresponding to each audio frame.
[0008] In some embodiments, the acoustic features are input into a pre-trained voice activity detection model to obtain intermediate features of the outputs corresponding to each feature channel of the voice activity detection model, including: performing a first convolution operation, batch normalization processing, linear rectification processing and maximum pooling processing on each acoustic feature in sequence to obtain a first convolution output; performing a second convolution operation, batch normalization processing, linear rectification processing and maximum pooling processing on the first convolution output in sequence to obtain a second convolution output; performing long short-term memory training on the second convolution output to obtain intermediate features of the outputs corresponding to each feature channel.
[0009] In some embodiments, information compression processing is performed based on the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel, including: determining the height and width of the global feature map; based on the height and width of the feature map and using global average pooling processing, generating channel statistical information corresponding to each intermediate feature, and using the channel statistical information as the first output.
[0010] In some embodiments, a nonlinear change is performed on the first output to obtain a second output, including: obtaining the weights of the first fully connected layer and the weights of the second fully connected layer; performing a first nonlinear change on the first output according to the weights of the first fully connected layer and a linear rectification activation function; performing a second nonlinear change on the first output after the first nonlinear change according to the weights of the second fully connected layer and an S-shaped growth curve activation function to obtain a second output.
[0011] In some embodiments, the probability that the audio frame is speech is calculated based on the weighted features, and speech activity detection is performed based on the probability, including: performing fully connected layer mapping and exponential normalization processing on the weighted features to obtain the probability that the audio frame is speech; comparing the probability with a preset threshold, and if the probability is greater than the preset threshold, determining that the audio frame is a frame containing speech activity.
[0012] In some embodiments, a training method for a voice activity detection model includes: obtaining vehicle noise, the vehicle noise including at least one of the noise when the vehicle is driving on a road with the windows open, the noise when the vehicle is driving on a road with the windows closed, the noise when the vehicle is in a parking lot environment with the windows open, and the noise when the vehicle is in a parking lot environment with the windows closed; generating an audio sample set based on the vehicle noise; optimizing the parameters of the voice activity detection model using the audio sample set and minimizing the cross-entropy loss function; and training the voice activity detection model using the audio sample set and an adaptive torque estimation optimization algorithm.
[0013] A voice activity detection device, the device comprising:
[0014] An acoustic feature acquisition module, used to acquire the acoustic features of each audio frame of the audio sampling data;
[0015] An intermediate feature calculation module, used for inputting the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model;
[0016] A feature compression module, used to perform information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel;
[0017] A feature excitation module, used for performing a nonlinear change on the first output to obtain a second output;
[0018] A feature weighting module, used for multiplying the second output by the intermediate feature to obtain a weighted feature;
[0019] The voice activity detection module is used to calculate the probability that the audio frame is voice according to the weighted features, and perform voice activity detection according to the probability.
[0020] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned voice activity detection methods when executing the computer program.
[0021] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the above-mentioned voice activity detection methods.
[0022] The above-mentioned voice activity detection method, apparatus, computer equipment and storage medium obtain the acoustic features of each audio frame of the audio sampling data, obtain the intermediate features based on the pre-trained voice activity detection model, and then perform information compression processing and nonlinear changes on the intermediate features, and multiply the processed results with the intermediate features as weights to obtain weighted features for voice activity detection. This scheme uses compression and excitation to generate a model with new inter-channel dependencies by assigning different weights to different feature channels, and weights the results of voice activity detection under different feature expressions. This method is applied to voice activity detection, effectively improving the performance of separating voice segments and non-voice segments in the signal, thereby improving the accuracy of voice activity detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of a voice activity detection method in one embodiment;
[0024] Figure 2 is a structural diagram of a voice activity detection model in one embodiment;
[0025] Figure 3Schematic diagram of the structure of a channel attention unit in one embodiment;
[0026] Figure 4 is a structural block diagram of a voice activity detection device in one embodiment;
[0027] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] The voice activity detection method provided in the present application can be used in a computer device. It should be noted that its execution subject can be a configuration device for virtual network card resources, which can be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware. The computer device can be a terminal, a client, or a server. The server can be a single server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application can be a vehicle-mounted terminal, a smart phone, a smart speaker, a personal computer, a tablet computer, a wearable device, an intelligent robot, and other intelligent hardware devices. In the following method embodiments, the execution subject is a computer device as an example for explanation.
[0030] In one embodiment, Figure 1 As shown, a voice activity detection method is provided, which is described by taking the method applied to a vehicle-mounted terminal as an example, and includes the following steps:
[0031] Step S102: Acquire the acoustic features of each audio frame of the audio sampling data.
[0032] The audio sampling data refers to data sampled from the audio to be detected, and the audio to be detected may be real-time or pre-recorded audio. Acoustic features refer to features containing acoustic information. Specifically, the vehicle-mounted terminal may perform speech signal processing on the audio sampling data, for example, speech framing and other processing may be performed to obtain at least one audio frame, and then acoustic feature extraction may be performed on each audio frame to obtain acoustic features corresponding to each audio frame.
[0033] In some embodiments, obtaining the acoustic features of each audio frame of the audio sampling data includes: obtaining the audio sampling data; dividing the audio sampling data into frames to obtain at least one audio frame; and extracting features from each audio frame to obtain the acoustic features corresponding to each audio frame.
[0034] Step S104: input the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model.
[0035] Among them, the voice activity detection model can be constructed based on a neural network model. For example, it can be constructed based on the basic framework of a convolutional recurrent neural network, a convolutional recurrent neural network based on a channel attention mechanism, etc.
[0036] Specifically, the extracted acoustic features of each audio frame can be input into a pre-trained voice activity detection model to obtain the output tensor of a single-layer LSTM (Long Short Term Memory) of the voice activity detection model, and the output tensor of the single-layer LSTM is dimensionally sorted to obtain the intermediate features corresponding to each feature channel.
[0037] For example, the shape of the intermediate feature matrix U can be [batch_size×seq_len, channel_num, hight, width], where batch_size is the batch size, seq_len is the sequence length, hight is the height, and width is the width. U=[u 1 ,u 2 ,…,u c ], c is the number of feature channels.
[0038] Step S106: Perform information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel.
[0039] The first output refers to the output corresponding to each feature channel obtained after the intermediate features of each feature channel are compressed (Squeeze) processing.
[0040] In some embodiments, information compression processing is performed based on the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel, including: determining the height and width of the global feature map; generating channel statistical information corresponding to each intermediate feature based on the height and width of the feature map and based on global average pooling processing, and using the channel statistical information as the first output.
[0041] For example, the information compression process may be performed with reference to the following formula:
[0042]
[0043] Among them, H represents the height of the global feature map, W represents the width of the global feature map, and u c Represents the intermediate feature corresponding to feature channel c. cIt represents the feature corresponding to feature channel c after feature compression processing, which is also the first output.
[0044] In this step, based on feature compression processing, feature channel statistics are generated by using global average pooling, so that the global spatial information in the global feature map is compressed into the channel descriptor, thereby enhancing the dependency between feature channels and filtering and emphasizing important information.
[0045] Step S108: Perform nonlinear changes on the first output to obtain a second output.
[0046] Specifically, the first output obtained through compression processing may be subjected to excitation processing. For example, two nonlinear changes may be performed to obtain an excitation weight for activating each layer of channels, which is the second output.
[0047] In some embodiments, a nonlinear change is performed on the first output to obtain a second output, including: obtaining the weights of the first fully connected layer and the weights of the second fully connected layer; performing a first nonlinear change on the first output according to the weights of the first fully connected layer and a linear rectification activation function; performing a second nonlinear change on the first output after the first nonlinear change according to the weights of the second fully connected layer and an S-shaped growth curve activation function to obtain a second output.
[0048] Exemplarily, the excitation processing can be implemented by using the information gathered in the compression processing, and is obtained through two layers of nonlinear transformation. For details, please refer to the following formula:
[0049] s=σ(W 2 δ(W 1 z))
[0050] Where z is the output result of the compression operation, W 1 is the weight of the first fully connected layer, δ is the linear rectification activation function (ReLU activation function), W 2 is the second layer full connection weight, σ is the S-type growth curve activation function (sigmoid activation function). 1 and W 2 It is a trainable parameter that can be adjusted through model training.
[0051] Step S110: multiply the second output by the intermediate feature to obtain a weighted feature.
[0052] Specifically, the second output of each feature channel obtained after excitation processing can be used as the weight value of the intermediate feature corresponding to each feature channel. The second output of each feature channel is multiplied by the intermediate feature corresponding to each feature channel, which is equivalent to multiplying the intermediate feature of each channel by a weight value. This weight value reflects the importance of the information contained in each channel, thereby weighting the feature expression of each channel and further emphasizing important information.
[0053] For example, after the above-mentioned squeezing process and excitation process, the weighted features finally outputted can be expressed as:
[0054]
[0055] in, Output result of stimulus processing c with u c Multiplication is equivalent to multiplying the intermediate features of each feature channel of the intermediate feature matrix U by a weight value, which reflects the importance of the information contained in the feature channel. Furthermore, the unit performing the squeezing process and the unit performing the excitation process can be inserted into the convolutional recurrent neural network model after the nonlinear process after each convolution process, thereby being integrated into the model standard architecture.
[0056] Step S112: Calculate the probability that the audio frame is speech based on the weighted features, and perform speech activity detection based on the probability.
[0057] Specifically, the weighted features can be mapped to a fully connected layer and normalized, for example, by Softmax processing, to obtain the probability of judging whether the audio frame is speech or non-speech. Finally, the probability of the audio frame being speech can be compared with a preset threshold to obtain the result of voice activity detection.
[0058] In some embodiments, the probability that the audio frame is speech is calculated based on the weighted features, and speech activity detection is performed based on the probability, including: performing fully connected layer mapping and exponential normalization on the weighted features to obtain the probability that the audio frame is speech; comparing the probability with a preset threshold, if the probability is greater than the preset threshold, determining that the audio frame is a frame containing speech activity; if the probability is less than the preset threshold, determining that the audio frame is a frame that does not contain speech activity.
[0059] The above-mentioned voice activity detection method obtains the acoustic features of each audio frame of the audio sampling data, obtains the intermediate features based on the pre-trained voice activity detection model, and then performs information compression processing and nonlinear changes on the intermediate features, and multiplies the processed results with the intermediate features as weights, thereby obtaining weighted features for voice activity detection. This scheme uses compression and excitation to generate a model with new inter-channel dependencies by assigning different weights to different feature channels, and weights the results of voice activity detection under different feature expressions. This method is applied to voice activity detection, effectively improving the performance of separating voice segments and non-voice segments in the signal, thereby improving the accuracy of voice activity detection.
[0060] In some embodiments, acoustic features are input into a pre-trained voice activity detection model to obtain intermediate features of each feature channel output of the voice activity detection model, including: performing a first convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing on the acoustic features in sequence to obtain a first convolution output; performing a second convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing on the first convolution output in sequence to obtain a second convolution output; performing long short-term memory training on the second convolution output to obtain intermediate features of each feature channel output.
[0061] Exemplarily, a convolutional neural network model based on the channel attention mechanism can be constructed as a voice activity detection model. The embodiments of the present application creatively adjust the basic architecture of the convolutional recurrent neural network, combine the channel attention mechanism with the basic architecture of the convolutional recurrent neural network, and generate more meaningful feature expressions by fusing the CNN (convolution neural network) and LSTM network structures, and adjust each layer of the model. Figure 2 As shown, Figure 2 A structural schematic diagram of a voice activity detection model in an embodiment is shown.
[0062] from Figure 2It can be seen that the model can be composed of a first convolution layer with a convolution kernel of 5×5 and a second convolution layer of 3×3. The first convolution layer is used to perform the first convolution operation, and the second convolution layer is used to perform the second convolution operation. Each convolution layer is followed by a Batch Norm layer, a ReLu activation function layer, and a 2×2 maximum pooling layer. The Batch Norm layer is used to perform batch normalization processing, so that the input of each layer of the neural network maintains the same distribution during the deep neural network training process. The ReLu activation function layer is used for linear rectification processing, and the maximum pooling layer is used for maximum pooling processing. Then, a single-layer LSTM layer and a channel attention unit are connected, and the single-layer LSTM layer and the channel attention unit perform the steps of processing the intermediate features in any of the above embodiments to obtain weighted features. Then, the weighted features output by the channel attention unit are processed by two layers of fully connected layers and a tanh activation function layer to obtain the probability that the audio frame is speech.
[0063] In some embodiments, reference Figure 3 As shown, Figure 3 A schematic diagram of the structure of a channel attention unit in one embodiment is shown.
[0064] like Figure 3 As shown, information compression processing can be performed based on the global pooling layer and according to the global feature maps of each feature channel and each intermediate feature to obtain the first output corresponding to each feature channel. The first output can be nonlinearly changed based on the first fully connected layer, the ReLu activation function layer, the second fully connected layer and the sigmoid activation function layer to obtain the second output. The second output is multiplied by the intermediate feature to finally obtain the weighted feature.
[0065] In some embodiments, the training method of the voice activity detection model includes: obtaining vehicle noise, the vehicle noise includes at least one of the noise when the vehicle is driving on the road with the window open, the noise when the vehicle is driving on the road with the window closed, the noise when the vehicle is in a parking lot environment with the window open, and the noise when the vehicle is in a parking lot environment with the window closed; generating an audio sample set according to the vehicle noise; optimizing the parameters of the voice activity detection model according to the audio sample set and minimizing the cross entropy loss function; and training the voice activity detection model according to the audio sample set and an adaptive torque estimation optimization algorithm (ADAM optimization algorithm). Through the above-mentioned model training method, the adaptability of the model to verify the vehicle voice activity can be improved, thereby further improving the detection accuracy.
[0066] It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0067] In one embodiment, Figure 4 As shown, a voice activity detection device is provided, comprising: an acoustic feature acquisition module 402, an intermediate feature calculation module 404, a feature compression module 406, a feature excitation module 408, a feature weighting module 410 and a voice activity detection module 412, wherein:
[0068] The acoustic feature acquisition module 402 is used to acquire the acoustic features of each audio frame of the audio sampling data;
[0069] An intermediate feature calculation module 404 is used to input the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model;
[0070] A feature compression module 406 is used to perform information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel;
[0071] A feature excitation module 408, configured to perform a nonlinear change on the first output to obtain a second output;
[0072] A feature weighting module 410, configured to multiply the second output by the intermediate feature to obtain a weighted feature;
[0073] The voice activity detection module 412 is configured to calculate the probability that the audio frame is voice according to the weighted features, and perform voice activity detection according to the probability.
[0074] In some embodiments, the acoustic feature acquisition module 402 acquires audio sampling data; performs frame processing on the audio sampling data to obtain at least one audio frame; and extracts acoustic features from each audio frame to obtain acoustic features corresponding to each audio frame.
[0075] In some embodiments, the intermediate feature calculation module 404 performs a first convolution operation, batch normalization, linear rectification and maximum pooling on each acoustic feature in sequence to obtain a first convolution output; performs a second convolution operation, batch normalization, linear rectification and maximum pooling on the first convolution output in sequence to obtain a second convolution output; performs long short-term memory training on the second convolution output to obtain intermediate features corresponding to the outputs of each feature channel.
[0076] In some embodiments, the feature compression module 406 determines the height and width of the global feature map; based on the height and width of the feature map and using global average pooling processing, generates channel statistical information corresponding to each intermediate feature, and uses the channel statistical information as the first output.
[0077] In some embodiments, the feature excitation module 408 obtains the weights of the first fully connected layer and the weights of the second fully connected layer; performs a first nonlinear change on the first output according to the weights of the first fully connected layer and the linear rectification activation function; performs a second nonlinear change on the first output after the first nonlinear change according to the weights of the second fully connected layer and the S-shaped growth curve activation function to obtain a second output.
[0078] In some embodiments, the feature weighting module 410 performs fully connected layer mapping and exponential normalization processing on the weighted features to obtain the probability that the audio frame is speech; the probability is compared with a preset threshold, and if the probability is greater than the preset threshold, the audio frame is determined to be a frame containing speech activity.
[0079] In some embodiments, the voice activity detection module 412 is also used for training a voice activity detection model, specifically including: obtaining vehicle noise, the vehicle noise including at least one of the noise when the vehicle is driving on a road with the windows open, the noise when the vehicle is driving on a road with the windows closed, the noise when the vehicle is in a parking lot environment with the windows open, and the noise when the vehicle is in a parking lot environment with the windows closed; generating an audio sample set based on the vehicle noise; optimizing the parameters of the voice activity detection model using the audio sample set and minimizing the cross entropy loss function; and training the voice activity detection model using the audio sample set and an adaptive torque estimation optimization algorithm.
[0080] For the specific definition of the voice activity detection device, please refer to the definition of the voice activity detection method above, which will not be repeated here. Each module in the above-mentioned voice activity detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0081] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a voice activity detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0082] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0083] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: inputting acoustic features into a pre-trained voice activity detection model to obtain intermediate features of the outputs of each feature channel of the voice activity detection model; performing information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel; performing nonlinear changes on the first output to obtain a second output; multiplying the second output by the intermediate feature to obtain a weighted feature; calculating the probability that the audio frame is voice according to the weighted feature, and performing voice activity detection according to the probability.
[0084] In one embodiment, when the processor executes the computer program to obtain the acoustic features of each audio frame of the audio sampling data, the following are specifically implemented: obtaining the audio sampling data; performing frame processing on the audio sampling data to obtain at least one audio frame; and extracting acoustic features from each audio frame to obtain the acoustic features corresponding to each audio frame.
[0085] In one embodiment, when a processor executes a computer program to input acoustic features into a pre-trained voice activity detection model to obtain intermediate features of the outputs of each feature channel of the voice activity detection model, the following is specifically implemented: performing a first convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing on each acoustic feature in sequence to obtain a first convolution output; performing a second convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing on the first convolution output in sequence to obtain a second convolution output; and performing long short-term memory training on the second convolution output to obtain intermediate features of the outputs of each feature channel in sequence.
[0086] In one embodiment, when a processor executes a computer program to implement information compression processing based on the global feature map of each feature channel and each intermediate feature to obtain the first output corresponding to each feature channel, the specific implementation is: determining the height and width of the global feature map; based on the height and width of the feature map and using global average pooling processing, generating channel statistical information corresponding to each intermediate feature, and using the channel statistical information as the first output.
[0087] In one embodiment, when the processor executes a computer program to implement a nonlinear change on the first output to obtain a second output, the specific implementation is: obtaining the weight of the first fully connected layer and the weight of the second fully connected layer; performing a first nonlinear change on the first output according to the weight of the first fully connected layer and a linear rectification activation function; performing a second nonlinear change on the first output after the first nonlinear change according to the weight of the second fully connected layer and an S-shaped growth curve activation function to obtain a second output.
[0088] In one embodiment, the processor executes a computer program to calculate the probability that the audio frame is speech based on the weighted features, and when performing voice activity detection based on the probability, the specific implementation is: the weighted features are fully connected layer mapped and exponentially normalized to obtain the probability that the audio frame is speech; the probability is compared with a preset threshold, and if the probability is greater than the preset threshold, the audio frame is determined to be a frame containing voice activity. In one embodiment, the processor executes the computer program to further implement the following steps: obtain vehicle noise, the vehicle noise includes at least one of the noise when the vehicle opens the window while driving on the road, the noise when the vehicle closes the window while driving on the road, the noise when the vehicle opens the window in a parking lot environment, and the noise when the vehicle closes the window in a parking lot environment; generate an audio sample set based on the vehicle noise; optimize the parameters of the voice activity detection model using the audio sample set and minimizing the cross entropy loss function; and train the voice activity detection model using the audio sample set and an adaptive torque estimation optimization algorithm.
[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: inputting acoustic features into a pre-trained voice activity detection model to obtain intermediate features of the output corresponding to each feature channel of the voice activity detection model; performing information compression processing based on the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel; performing a nonlinear change on the first output to obtain a second output; multiplying the second output by the intermediate feature to obtain a weighted feature; calculating the probability that the audio frame is speech based on the weighted feature, and performing voice activity detection based on the probability.
[0090] In one embodiment, when the computer program is executed by a processor to obtain the acoustic features of each audio frame of the audio sampling data, the computer program specifically implements: obtaining the audio sampling data; performing frame processing on the audio sampling data to obtain at least one audio frame; and extracting acoustic features from each audio frame to obtain the acoustic features corresponding to each audio frame.
[0091] In one embodiment, the computer program is executed by a processor to input acoustic features into a pre-trained voice activity detection model to obtain intermediate features of the outputs of each feature channel of the voice activity detection model. Specifically, each acoustic feature is sequentially subjected to a first convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing to obtain a first convolution output; the first convolution output is sequentially subjected to a second convolution operation, batch normalization processing, linear rectification processing, and maximum pooling processing to obtain a second convolution output; the second convolution output is subjected to long short-term memory training to obtain intermediate features of the outputs of each feature channel.
[0092] In one embodiment, a computer program is executed by a processor to implement information compression processing based on the global feature map of each feature channel and each intermediate feature, and when the first output corresponding to each feature channel is obtained, the specific implementation is: determining the height and width of the global feature map; based on the height and width of the feature map and using global average pooling processing, generating channel statistical information corresponding to each intermediate feature, and using the channel statistical information as the first output.
[0093] In one embodiment, when a computer program is executed by a processor to implement a nonlinear change on a first output and obtain a second output, the specific implementation is: obtaining the weight of a first fully connected layer and the weight of a second fully connected layer; performing a first nonlinear change on the first output according to the weight of the first fully connected layer and a linear rectification activation function; performing a second nonlinear change on the first output after the first nonlinear change according to the weight of the second fully connected layer and an S-shaped growth curve activation function to obtain a second output.
[0094] In one embodiment, the computer program is executed by a processor to calculate the probability that the audio frame is speech according to the weighted features, and when the voice activity detection is performed according to the probability, the specific implementation is: the weighted features are fully connected layer mapped and exponentially normalized to obtain the probability that the audio frame is speech; the probability is compared with a preset threshold, and if the probability is greater than the preset threshold, the audio frame is determined to be a frame containing voice activity. In one embodiment, the computer program is executed by the processor to further implement the following steps: obtaining vehicle noise, the vehicle noise includes at least one of the noise when the vehicle is driving on the road with the window open, the noise when the vehicle is driving on the road with the window closed, the noise when the vehicle is in a parking lot environment with the window open, and the noise when the vehicle is in a parking lot environment with the window closed; generating an audio sample set according to the vehicle noise; optimizing the parameters of the voice activity detection model using the audio sample set and minimizing the cross entropy loss function; and training the voice activity detection model using the audio sample set and an adaptive torque estimation optimization algorithm.
[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0097] The terms such as “first” and “second” in the present application are only used to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual contextual relationship or sequence between these entities or operations.
[0098] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A voice activity detection method, the method comprising: Acquiring acoustic features of each audio frame of the audio sampling data; Inputting the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model; Performing information compression processing according to the global feature map of each of the feature channels and each of the intermediate features to obtain a first output corresponding to each of the feature channels; Performing a nonlinear change on the first output to obtain a second output; Multiplying the second output by the intermediate feature to obtain a weighted feature; The probability that the audio frame is speech is calculated according to the weighted features, and speech activity detection is performed according to the probability.
2. The method according to claim 1, characterized in that The obtaining of the acoustic features of each audio frame of the audio sampling data includes: Get audio sampling data; Performing frame processing on the audio sampling data to obtain at least one audio frame; Acoustic features are extracted from each of the audio frames to obtain acoustic features corresponding to each of the audio frames.
3. The method according to claim 1, characterized in that The step of inputting the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model includes: Performing a first convolution operation, a batch normalization process, a linear rectification process, and a maximum pooling process on each of the acoustic features in sequence to obtain a first convolution output; The first convolution output is sequentially subjected to a second convolution operation, a batch normalization process, a linear rectification process, and a maximum pooling process to obtain a second convolution output; The second convolution output is subjected to long short-term memory training to obtain intermediate features of the output corresponding to each of the feature channels.
4. The method according to claim 1, characterized in that: The performing information compression processing according to the global feature map of each of the feature channels and each of the intermediate features to obtain a first output corresponding to each of the feature channels includes: Determining the height and width of the global feature map; According to the height and width of the feature map and by using global average pooling processing, channel statistical information corresponding to each of the intermediate features is generated, and the channel statistical information is used as the first output.
5. The method according to claim 1, characterized in that The step of performing a nonlinear change on the first output to obtain a second output comprises: Get the weight of the first fully connected layer and the weight of the second fully connected layer; Performing a first nonlinear change on the first output according to the first fully connected layer weight and a linear rectification activation function; Perform a second nonlinear change on the first output after the first nonlinear change according to the weight of the second fully connected layer and the S-shaped growth curve activation function to obtain the second output.
6. The method according to claim 1, characterized in that The calculating the probability that the audio frame is speech according to the weighted features, and performing speech activity detection according to the probability, comprises: Performing full connection layer mapping and exponential normalization processing on the weighted features to obtain the probability that the audio frame is speech; The probability is compared with a preset threshold, and if the probability is greater than the preset threshold, the audio frame is determined to be a frame containing voice activity.
7. The method according to claim 1, characterized in that The training method of the voice activity detection model includes: Acquire vehicle noise, where the vehicle noise includes at least one of noise when the vehicle is driving on a road with the windows open, noise when the vehicle is driving on a road with the windows closed, noise when the vehicle is in a parking lot with the windows open, and noise when the vehicle is in a parking lot with the windows closed; generating an audio sample set according to the vehicle noise; Optimizing parameters of the voice activity detection model using the audio sample set and minimizing a cross entropy loss function; The voice activity detection model is trained using the audio sample set and an adaptive moment estimation optimization algorithm.
8. A voice activity detection device, characterized in that: The device comprises: An acoustic feature acquisition module, used to acquire the acoustic features of each audio frame of the audio sampling data; An intermediate feature calculation module, used for inputting the acoustic features into a pre-trained voice activity detection model to obtain intermediate features outputted corresponding to each feature channel of the voice activity detection model; A feature compression module, used to perform information compression processing according to the global feature map of each feature channel and each intermediate feature to obtain a first output corresponding to each feature channel; A feature excitation module, used for performing a nonlinear change on the first output to obtain a second output; A feature weighting module, used for multiplying the second output by the intermediate feature to obtain a weighted feature; The voice activity detection module is used to calculate the probability that the audio frame is voice according to the weighted features, and perform voice activity detection according to the probability.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Audio recognition method and device, computer equipment and storage medium
CN110047510A
Voice detection method and device, electronic equipment and storage medium
CN111696580A
Voiceprint registration method, voiceprint registration device and electronic equipment
CN114203186A
Self-adaptive voiceprint recognition method and system
CN115440228A
Systems, methods, and computer-readable media for improved real-time audio processing
US20190318755A1
