Voice detection method and device, equipment and storage medium

By obtaining the complex spectrum characteristics of audio data in a multi-microphone array environment and encoding phase information, extracting time-frequency domain vectors, and combining historical frame capture dependencies, the problem of low accuracy of existing speech detection algorithms in desktop speakerphones is solved. problem, achieving higher speech detection accuracy and linearity.

CN118629425APending Publication Date: 2024-09-10ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310213973.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing speech detection algorithms are ineffective in a multi-microphone array desktop speakerphone environment, with low signal-to-noise ratio and large reverberation, resulting in reduced speech detection accuracy and inability to work properly.

Method used

By obtaining the complex spectrum characteristics of audio data, using phase information encoding to convert it into real number form, extracting dimensional vectors in the time-frequency domain, combining historical audio frames to capture time series dependencies, and using preset function mapping relationship processing to achieve speech frame processing. Probabilistic detection.

Benefits of technology

It improves the accuracy of speech detection in multi-channel audio data, is suitable for devices with lower performance, enhances the recognition of echoes, and improves the linearity and accuracy of speech detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629425A
    Figure CN118629425A
Patent Text Reader

Abstract

The invention relates to a voice detection method and device, equipment and a storage medium. The method comprises the following steps: acquiring a first spectrum feature represented by a current audio frame in a complex number form in audio data; converting the first spectrum feature into a second spectrum feature through phase information coding; respectively extracting first dimension vectors of the second spectrum feature under N dimensions in a time-frequency domain; capturing a second dimension vector representing a dependency relationship of the first dimension vector on a time sequence by referring to a historical audio frame in the audio data; and processing the second dimension vector by adopting a preset function mapping relation to obtain the probability that the voice exists in the current audio frame. According to the embodiment of the invention, the detection of the voice in the multi-channel audio data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology, and in particular to a speech detection method, apparatus, device and storage medium. Background Art

[0002] Currently, desktop speakerphones are widely used in voice communication environments. Desktop speakerphones usually have multiple microphone arrays, which are integrated with speakers on the speakerphone cavity. The product design of the desktop speakerphone requires that the desktop speakerphone supports long-distance speaking of 5 meters or even more than 8 meters. Such product design requirements will cause the sound picked up by the microphone to have a large reverberation, and the signal-to-noise ratio and signal-to-response ratio are very low. At the same time, the cavity resonance will also cause serious nonlinear distortion, affecting the accuracy of the user's voice detection in the desktop speakerphone. Summary of the invention

[0003] The present application provides a voice detection method, apparatus, device and storage medium for detecting the voice of a user in a desktop speakerphone.

[0004] In a first aspect, a speech detection method is provided, comprising:

[0005] Obtaining a first frequency spectrum feature represented in plural form by a current audio frame in the audio data;

[0006] Converting the first spectrum feature into a second spectrum feature represented in real number form by encoding phase information;

[0007] Extracting first-dimensional vectors of the second spectrum feature in N dimensions respectively in the time-frequency domain;

[0008] Referring to historical audio frames in the audio data, capturing a second dimensional vector representing the dependency of the first dimensional vector in a time series; the historical audio frames are audio frames in the audio data that occur before the current audio frame;

[0009] The second dimensional vector is processed using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame.

[0010] Optionally, converting the first spectrum feature into a second spectrum feature represented in real number form by phase information encoding includes:

[0011] Extracting phase information and amplitude information of the current audio frame from the first spectrum feature;

[0012] The first frequency spectrum feature is encoded using the phase information and the amplitude information to obtain the second frequency spectrum feature.

[0013] Optionally, using a preset function mapping relationship to process the second dimensional vector to obtain a probability that speech exists in the audio frame includes:

[0014] The second dimensional vector is mapped using a fully connected network and an activation function suitable for a neural network to obtain a probability that speech exists in the audio frame.

[0015] Optionally, before respectively extracting the first dimensional vectors of the second spectrum features in N dimensions in the time-frequency domain, the method further includes:

[0016] Using a preset compression method to compress the second frequency spectrum feature to obtain a compressed second frequency spectrum feature;

[0017] Accordingly, extracting first-dimensional vectors of the second spectrum feature in N dimensions in the time-frequency domain respectively includes:

[0018] Extracting first-dimensional vectors of the compressed second frequency spectrum features in N dimensions respectively in the time-frequency domain;

[0019] The first dimensional vector of the compressed second spectrum feature in N dimensions is used as the first dimensional vector of the second spectrum feature in N dimensions.

[0020] Optionally, compressing the second spectrum feature by using a preset compression method includes:

[0021] A square root compression method is used to compress the dynamic range of the eigenvalues ​​of the second spectrum feature; and / or an equivalent matrix bandwidth method is used to compress the feature dimension of the second spectrum feature.

[0022] Optionally, before the method uses a preset function mapping relationship to process the second dimensional vector to obtain the probability that speech exists in the current audio frame, the method further includes:

[0023] Taking a preset time length as a time window, performing frame skipping processing on the second dimensional vector to obtain a frame skipping second dimensional vector;

[0024] Accordingly, the second dimensional vector is processed using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame, including:

[0025] The function mapping relationship is used to process the frame skipping second dimension vector to obtain the probability that speech exists in the current audio frame.

[0026] Optionally, obtaining a first frequency spectrum feature represented in plural form by a current audio frame in the audio data includes:

[0027] Convert the current audio frame from the time domain space to the frequency domain space to obtain an audio spectrum corresponding to the current audio frame;

[0028] Dividing the audio spectrum according to a set frequency to obtain at least one sub-band;

[0029] The at least one sub-band is used as the first frequency spectrum feature.

[0030] In a second aspect, a speech detection device is provided, comprising:

[0031] An acquisition module, used for acquiring a first frequency spectrum feature represented in plural form by a current audio frame in the audio data;

[0032] An encoding module, configured to convert the first spectrum feature into a second spectrum feature represented in a real number form by encoding the phase information;

[0033] An extraction module, used to extract first dimensional vectors of the second spectrum feature in N dimensions in time and frequency domains respectively;

[0034] A capture module, configured to capture a second dimensional vector representing a dependency of the first dimensional vector in a time series with reference to a historical audio frame in the audio data; the historical audio frame is an audio frame in the audio data that occurs before the current audio frame;

[0035] A mapping module is used to process the second dimensional vector using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame.

[0036] In a third aspect, an electronic device is provided, characterized in that it includes: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other through the communication bus;

[0037] The memory is used to store computer programs;

[0038] The processor is used to execute the program stored in the memory to implement the speech detection method described in the first aspect.

[0039] According to a fourth aspect, a computer-readable storage medium is provided, storing a computer program, wherein the computer program implements the speech detection method according to the first aspect when executed by a processor.

[0040] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application obtains the first spectrum feature represented in complex form in the current audio frame in the audio data; converts the first spectrum feature into the second spectrum feature by encoding the phase information; extracts the first dimension vector of the second spectrum feature in N dimensions in the time-frequency domain respectively; captures the second dimension vector representing the dependency of the first dimension vector in the time series with reference to the historical audio frames in the audio data; processes the second dimension vector using a preset function mapping relationship to obtain the probability of the existence of speech in the current audio frame. This embodiment realizes the detection of speech in multi-channel audio data. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0042] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flow chart of a speech detection method in an embodiment of the present application;

[0044] Figure 2 This is a schematic diagram of the structure of a speech detection device in an embodiment of the present application;

[0045] Figure 3 This is a schematic diagram of the structure of a speech detection device in an embodiment of the present application;

[0046] Figure 4 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0049] In the related art, in a voice communication environment, especially in a conference system, hands-free phone and other communication devices where a microphone and a speaker coexist, the voice signal at the far end is played through the local speaker, and is collected by the local microphone together with the voice of the local user, and transmitted back to the far end, so that the far end user is disturbed by the echo. In order to avoid the interference of echo and other noise to the far end, the VAD (Voice Activity Detection) algorithm is currently usually used to detect the sound at the local end to determine whether there is voice in the sound.

[0050] The VAD algorithm is designed based on a single microphone signal. When the signal-to-noise ratio is very high, the reverberation is small, and the device linearity is very good, the estimation accuracy is relatively high. However, when the device linearity is relatively poor, the environmental noise is relatively large, and the reverberation is relatively high, the estimation accuracy of the VAD algorithm will drop sharply. This also makes post-processing that relies on VAD results very difficult, especially the dual-talk sound quality and AGC gain control cannot work properly.

[0051] Therefore, the VAD algorithm is not suitable for desktop speakerphones integrated with multiple microphone arrays, and the effect of the VAD algorithm in this scenario is very poor.

[0052] The embodiment of the present application provides a voice detection method, which can be applied to an electronic device, which can be a terminal device or a server. The terminal device can be at least one of a mobile phone, a tablet computer, a laptop computer, a desktop speakerphone, etc., and the server can be a cloud server.

[0053] It should be understood that the electronic device may be configured with a microphone capable of collecting audio, or may not be configured with a microphone. When the electronic device is a device not configured with a microphone, the audio data processed by the electronic device is the audio data collected by other devices configured with a microphone. The electronic device can communicate with a device configured with a microphone via a wired network or a wireless network. When the electronic device itself is configured with a microphone, the audio data processed by the electronic device may be the audio data collected by the microphone configured therein, or may be the audio data collected by other devices communicating with the electronic device, and this embodiment does not specifically limit this.

[0054] like Figure 1 As shown, the method may specifically include the following steps:

[0055] Step 101: Obtain a first frequency spectrum feature represented in plural form in a current audio frame in audio data.

[0056] In this embodiment, the audio data may be single-channel audio data collected by a device equipped with only a single microphone, or may be multi-channel audio data collected by a device equipped with multiple microphones, which is not specifically limited in this embodiment. The current audio frame is any audio frame in the audio data. In actual application, the audio data may be divided into more than one audio frame in the time domain space, thereby obtaining the current audio frame in the audio data.

[0057] In this embodiment, in order to increase the recognition of echoes and improve the accuracy of voice detection of devices with poor linearity, when the audio data is multi-channel audio data, the multi-channel audio data includes audio data transmitted back from the remote end. For example, in a scene where multiple people are attending a meeting, the voice signal of the remote end is transmitted to the local end, and the local end speaker plays the voice signal, and the voice signal can be used as one of the multi-channel audio data.

[0058] In this embodiment, the current audio frame may be converted from the time domain space to the frequency domain space to obtain an audio spectrum corresponding to the current audio frame, and at least one subband corresponding to the audio spectrum may be determined as the first spectrum feature of the current audio frame.

[0059] In this embodiment, the current audio frame can be converted from the time domain space to the frequency domain space by fast Fourier transform to obtain the audio spectrum of the current audio frame. The audio spectrum can then be divided into more than one sub-band according to a set fixed frequency segment. The sub-band is also called a sub-frequency band.

[0060] In practical applications, other time-frequency analysis methods for the audio data to which the current audio frame belongs can also be used to perform time-frequency analysis (TFA) on the audio data to obtain the first spectrum characteristics of the audio data, and further obtain the first spectrum characteristics of the current audio frame. In practice, time-frequency analysis is a method for determining time-frequency distribution. The above-mentioned time-frequency distribution can be characterized by a joint function of time and frequency (also called a time-frequency distribution function). The joint function can be used to describe the energy density or intensity of the signal at different times and frequencies. By performing time-frequency analysis on the audio data to which the current audio frame belongs, information such as the instantaneous frequency and amplitude of the audio data at each moment can be obtained.

[0061] In practice, various common time-frequency distribution functions may be used for time-frequency analysis, for example, short-time Fourier transform (STFT), Cohen distribution function, improved Wigner distribution, etc., which are not limited here.

[0062] In this embodiment, after performing time-frequency analysis on the audio data to which the current audio frame belongs, the time-frequency analysis result of the audio data can be represented by the spectrum in the complex domain. Here, the complex domain is the number domain formed by the set of all complex numbers of the form a+bi under the four arithmetic operations. Among them, a and b are both real numbers, and i is an imaginary unit. The expression of the spectrum in the complex domain can contain a real part and an imaginary part. The amplitude and phase of the audio data can be determined by the real part and the imaginary part. In practice, the real part and the imaginary part in the expression of the spectrum corresponding to each time point can be combined into the form of a two-dimensional vector. Therefore, after performing time-frequency analysis on the audio data, the spectrum of the audio data in the complex domain can be represented in the form of a two-dimensional vector sequence.

[0063] Step 102: Convert the first spectrum feature into a second spectrum feature by encoding the phase information.

[0064] In an optional embodiment, the first spectrum feature may be converted into the second spectrum feature by extracting phase information and amplitude information from the first spectrum feature and encoding the first spectrum feature with the help of the phase information and amplitude information.

[0065] In this embodiment, phase information and amplitude information can be specifically extracted from the first spectrum feature by a complex convolutional neural network (CV-CNN). Among them, the complex convolutional neural network uses complex parameters and variables to extract features of complex input data and perform feature classification. The basic structure of the complex neural network mainly includes an input layer, a hidden layer, and an output layer. The layers are fully connected, and there is no connection within the layer. However, the input data of CV-CNN is complex, and the network weights and biases are initialized to complex form. In the process of forward propagation, the real part and imaginary part of the weighted sum of the input and weights are nonlinearly excited respectively. Therefore, the output of each layer of neurons is also complex. The backward training process of the network adopts the gradient descent algorithm in the complex domain.

[0066] Step 103: extract first-dimensional vectors of the second spectrum features in N dimensions in the time-frequency domain.

[0067] In this embodiment, the N dimensions include but are not limited to the time domain, the frequency domain and / or the time-frequency domain.

[0068] In an optional embodiment, a convolutional neural network (CNN) may be used to extract first-dimensional vectors of the second spectrum features in N dimensions in the time-frequency domain.

[0069] In this embodiment, the convolutional neural network includes at least an input layer, a convolutional layer and an output layer. Among them, the convolutional layer is used to extract the features of the second spectrum feature of the input, and the convolutional layer contains multiple convolution kernels. Each element of the convolution kernel corresponds to a weight coefficient and a bias vector, which is similar to a neuron in a feedforward neural network. Each neuron in the convolutional layer is connected to multiple neurons in a similar area in the previous layer, and the size of the area (also called the "receptive field") depends on the size of the convolution kernel. When the convolution kernel is working, it will regularly scan the input features, perform matrix element multiplication on the input features within the receptive field, and superimpose the bias.

[0070] In an optional embodiment, in order to reduce the processing amount of the algorithm, before using a convolutional neural network to extract the first dimensional vector of the second spectral feature in N dimensions in the time-frequency domain, a preset compression method can be used to compress the second spectral feature to obtain a compressed second spectral feature, and the compressed second spectral feature is used to replace the second spectral feature as the processing object of the convolutional neural network, that is, the convolutional neural network extracts the first dimensional vector of the compressed second spectral feature in N dimensions in the time-frequency domain.

[0071] This embodiment includes but is not limited to compressing the second spectrum feature from two aspects: a dynamic range of the second spectrum feature value and / or a feature dimension of the second spectrum feature.

[0072] In this embodiment, the square root compression method can be used to compress the dynamic range of the characteristic value of the second spectrum feature. This embodiment does not specifically limit this. For example, multiple compression can also be used to compress the dynamic range of the characteristic value of the second spectrum feature. Based on empirical data, when the square root compression method is used to compress the dynamic range of the characteristic value of the second spectrum feature, the compression effect of the fourth power compression is better. For example, when the dynamic range of the speech exceeds 80dB, the dynamic range of the second spectrum feature can be reduced by half through a fourth power compression.

[0073] In this embodiment, the feature dimension of the second spectrum feature is compressed by using an equivalent rectangular band-width (ERB) method. The equivalent rectangular band-width includes the following steps when implemented: spectrum decomposition, sub-band division according to the ERB scale, voice activity detection and noise estimation for each sub-band, determination of the over-subtraction factor and spectrum lower limit of each sub-band according to the noise estimation result, parameter spectrum subtraction for each sub-band, sub-band merging to obtain amplitude spectrum estimation of the voice signal, calculation of the estimated audio frame in combination with the initial phase information, and finally obtaining the dimension of the audio frame.

[0074] Step 104 , refer to the historical audio frames in the audio data to capture the second dimensional vector that represents the dependency of the first dimensional vector on the time series.

[0075] In an optional embodiment, a convolutional recurrent network can be used to capture the second dimensional vector of the dependency relationship between the standard first dimensional vector and the time series. The convolutional recurrent network is a neural network structure that combines the deep feature extraction capability of the convolutional neural network with the temporal modeling capability of the RNN (Recurrent Neural Network). The convolutional recurrent network can be applied to the field of speech processing to solve the problem of speech enhancement.

[0076] In this embodiment, the historical audio frames in the audio data refer to all audio frames before the current audio frame in the audio data. When the audio data is multi-channel audio data collected by multiple microphones, the historical audio frames here refer to all audio frames whose timestamps are before the current timestamp in the multi-channel audio data. The current timestamp refers to the timestamp of the current audio frame.

[0077] Step 105: Use a preset function mapping relationship to process the second dimensional vector to obtain the probability that speech exists in the current audio frame.

[0078] In this embodiment, the processing amount of the function mapping relationship is reduced, and the complexity of the function mapping relationship is reduced, so that the speech detection method proposed in this embodiment can be applied to desktop mobile products with lower performance. Before the second dimensional vector is processed by using the preset function mapping relationship to obtain the probability of the existence of speech in the current audio frame, the second dimensional vector can also be subjected to frame skipping processing. Specifically, the second dimensional vector is subjected to frame skipping processing with a preset duration as the time window to obtain a frame skipping second dimensional vector, and then the frame skipping second dimensional vector is processed by using the preset function mapping relationship to obtain the probability of the existence of speech in the current audio frame.

[0079] In this embodiment, the preset function mapping relationship can be implemented specifically through a fully connected network and an activation function. The activation function here includes but is not limited to a Sigmoid function.

[0080] In this embodiment, the preset duration can be set manually based on experience or demand, for example, the preset duration is set to the duration of one audio frame, so when skipping frames, one audio frame is processed for every two audio frames, that is, the data of one audio frame is discarded.

[0081] In this embodiment, in order to improve the accuracy of speech detection, the process of establishing the second dimensional vector of the convolutional recurrent neural network and / or skipping frames can be repeated multiple times. It should be noted that in the multiple processes, the number of times the second dimensional vector of the convolutional neural network is established and the number of frame skipping can be the same or different. For example, the second dimensional vector of the convolutional recurrent neural network is established three times, and frame skipping is performed twice. For another example, the second dimensional vector of the convolutional recurrent neural network is established twice, and frame skipping is performed twice.

[0082] Taking the example of establishing and skipping the second dimension of the convolutional recurrent neural network twice, the process of establishing and skipping the second dimension vector of the convolutional recurrent neural network can be as follows: for the first dimension vector obtained in step 103, the first time series modeling is performed on the first dimension vector through the convolutional recurrent neural network (that is, the dependency of the first dimension vector on the time series is captured by the convolutional recurrent neural network) to obtain the second dimension vector, and frame skipping is performed on the second dimension vector to obtain a frame skipping second dimension vector; then, time series modeling is performed on the frame skipping second dimension vector through the convolutional recurrent neural network to obtain a third dimension vector, frame skipping is performed on the third dimension vector to obtain a frame skipping third dimension vector, and feature mapping of the frame skipping third dimension vector is performed to obtain the probability of speech existing in the current audio frame.

[0083] It should be understood that the complex convolutional neural network, convolutional neural network and convolutional recurrent network mentioned above may be different network layers belonging to the same model. Before using the model for speech detection, noisy speech data can be used as a sample to pre-train the model, thereby realizing the training of each network layer of the model.

[0084] In the technical solution provided by the embodiment of the present application, the first spectrum feature represented in complex form in the current audio frame in the audio data is obtained; the first spectrum feature is converted into a second spectrum feature by phase information encoding; the first dimension vectors of the second spectrum feature in N dimensions are extracted in the time-frequency domain respectively; the second dimension vector representing the dependency of the first dimension vector in the time series is captured by referring to the historical audio frames in the audio data; the second dimension vector is processed by using a preset function mapping relationship to obtain the probability of the existence of speech in the current audio frame. This embodiment realizes the detection of speech in multi-channel audio data.

[0085] Based on the same inventive concept, this embodiment provides a speech detection device, such as Figure 2 As shown, the device may include:

[0086] Audio feature input module 201, phase information encoding module 202, multi-scale feature fusion module 203, time series modeling module 204 and feature mapping module 205.

[0087] The audio feature input module 201 is used to obtain a first frequency spectrum feature represented in plural form by a current audio frame in the audio data;

[0088] A phase information encoding module 202, configured to convert the first spectrum feature into a second spectrum feature represented in a real number form by phase information encoding;

[0089] A multi-scale feature fusion module 203 is used to extract first-dimensional vectors of the second spectrum features in N dimensions in the time-frequency domain respectively;

[0090] The time series modeling module 204 is used to capture the second dimensional vector representing the dependency relationship of the first dimensional vector on the time series with reference to the historical audio frames in the audio data; the historical audio frames are the audio frames that occur before the current audio frame in the audio data;

[0091] The feature mapping module 205 is used to process the second dimensional vector using a preset function mapping relationship to obtain the probability of speech existing in the current audio frame.

[0092] Optionally, the phase information encoding module 202 is used to:

[0093] Extracting phase information and amplitude information of the current audio frame from the first spectrum feature;

[0094] The first spectrum feature is encoded using the phase information and the amplitude information to obtain the second spectrum feature.

[0095] Optionally, the feature mapping module 205 is used to:

[0096] A fully connected network and an activation function suitable for a neural network are used to map the second dimension vector to obtain the probability of speech existing in the audio frame.

[0097] Optionally, the device may further include:

[0098] A feature dynamic range compression module, used for compressing the second spectrum feature using a preset compression method before respectively extracting the first dimension vectors of the second spectrum feature in N dimensions in the time-frequency domain to obtain a compressed second spectrum feature;

[0099] Accordingly, the multi-scale feature fusion module 203 is used for:

[0100] Extracting the first dimension vectors of the compressed second spectrum features in N dimensions in the time-frequency domain respectively;

[0101] The first dimensional vector of the second spectrum feature in N dimensions is compressed as the first dimensional vector of the second spectrum feature in N dimensions.

[0102] Optionally, the characteristic dynamic range compression module is used to:

[0103] A square root compression method is used to compress the dynamic range of the eigenvalue of the second spectrum feature; and / or an equivalent matrix bandwidth method is used to compress the feature dimension of the second spectrum feature.

[0104] Optionally, the device may further include:

[0105] A frame skipping module is used to process the second dimensional vector using a preset function mapping relationship, and before obtaining the probability of the existence of speech in the current audio frame, perform frame skipping processing on the second dimensional vector with a preset time length as a time window to obtain a frame skipping second dimensional vector;

[0106] Accordingly, the feature mapping module 205 is used to:

[0107] The second dimension vector of the frame skipping is processed by using a function mapping relationship to obtain the probability of speech existing in the current audio frame.

[0108] Optionally, the audio feature input module 201 is used to:

[0109] Convert the current audio frame from the time domain space to the frequency domain space to obtain the audio spectrum corresponding to the current audio frame;

[0110] Dividing the audio spectrum according to the set frequency to obtain at least one sub-band;

[0111] At least one sub-band is used as a first spectrum feature.

[0112] Based on the same concept, a speech detection device is provided in the embodiment of the present application. The specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 3 As shown, the device mainly includes:

[0113] An acquisition module 301 is used to acquire a first frequency spectrum feature represented in plural form by a current audio frame in the audio data;

[0114] An encoding module 301, configured to convert the first spectrum feature into a second spectrum feature represented in a real number form by encoding the phase information;

[0115] An extraction module 302 is used to extract first dimension vectors of the second spectrum feature in N dimensions in the time and frequency domains respectively;

[0116] A capture module 303 is used to capture a second dimensional vector representing a dependency relationship of the first dimensional vector in a time series with reference to a historical audio frame in the audio data; the historical audio frame is an audio frame in the audio data that occurs before the current audio frame;

[0117] The mapping module 304 is used to process the second dimensional vector using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame.

[0118] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 4 As shown, the electronic device mainly includes: a processor 401, a memory 402 and a communication bus 403, wherein the processor 401 and the memory 402 communicate with each other through the communication bus 403. The memory 402 stores a program that can be executed by the processor 401, and the processor 401 executes the program stored in the memory 402 to implement the following steps:

[0119] Acquire a first spectral feature in complex form of the current audio frame in the audio data; convert the first spectral feature into a second spectral feature in real form by encoding the phase information; extract first dimensional vectors of the second spectral feature in N dimensions in the time-frequency domain; capture a second dimensional vector representing the dependency of the first dimensional vector on the time series with reference to historical audio frames in the audio data; the historical audio frame is an audio frame in the audio data that occurs before the current audio frame; process the second dimensional vector using a preset function mapping relationship to obtain the probability of the presence of speech in the current audio frame.

[0120] The communication bus 403 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 403 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0121] The memory 402 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 401.

[0122] The above-mentioned processor 401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0123] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the speech detection method described in the above embodiment.

[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0125] It should be noted that, in this article, relational terms such as "first" and "second" 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0126] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A speech detection method, characterized in that: include: Obtain a first frequency spectrum feature represented in complex form by a current audio frame in the audio data; Converting the first spectrum feature into a second spectrum feature represented in real number form by encoding phase information; Extracting first-dimensional vectors of the second spectrum feature in N dimensions respectively in the time-frequency domain; Referring to historical audio frames in the audio data, capturing a second dimensional vector representing the dependency of the first dimensional vector in a time series; the historical audio frames are audio frames in the audio data that occur before the current audio frame; The second dimensional vector is processed using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame.

2. The method according to claim 1, characterized in that Converting the first spectrum feature into a second spectrum feature represented in real number form by phase information encoding includes: Extracting phase information and amplitude information of the current audio frame from the first spectrum feature; The first frequency spectrum feature is encoded using the phase information and the amplitude information to obtain the second frequency spectrum feature.

3. The method according to claim 1, characterized in that The second dimensional vector is processed using a preset function mapping relationship to obtain a probability that speech exists in the audio frame, including: The second dimensional vector is mapped using a fully connected network and an activation function suitable for a neural network to obtain a probability that speech exists in the audio frame.

4. The method according to any one of claims 1 to 3, characterized in that: Before respectively extracting the first dimension vectors of the second spectrum feature in N dimensions in the time-frequency domain, the method further includes: Using a preset compression method to compress the second frequency spectrum feature to obtain a compressed second frequency spectrum feature; Accordingly, extracting first-dimensional vectors of the second spectrum feature in N dimensions in the time-frequency domain respectively includes: Extracting first-dimensional vectors of the compressed second frequency spectrum features in N dimensions respectively in the time-frequency domain; The first dimensional vector of the compressed second spectrum feature in N dimensions is used as the first dimensional vector of the second spectrum feature in N dimensions.

5. The method according to claim 4, characterized in that The second spectrum feature is compressed using a preset compression method, including: A square root compression method is used to compress the dynamic range of the eigenvalues ​​of the second spectrum feature; and / or an equivalent matrix bandwidth method is used to compress the feature dimension of the second spectrum feature.

6. The method according to claim 1, characterized in that Before the method of processing the second dimensional vector by using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame, the method further includes: Taking a preset time length as a time window, performing frame skipping processing on the second dimensional vector to obtain a frame skipping second dimensional vector; Accordingly, the second dimensional vector is processed using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame, including: The function mapping relationship is used to process the frame skipping second dimension vector to obtain the probability that speech exists in the current audio frame.

7. The method according to claim 1, characterized in that Obtain the first spectrum feature of the current audio frame in the audio data in complex form, including: Convert the current audio frame from the time domain space to the frequency domain space to obtain an audio spectrum corresponding to the current audio frame; Dividing the audio spectrum according to a set frequency to obtain at least one sub-band; The at least one sub-band is used as the first frequency spectrum feature.

8. A speech detection device, characterized in that: include: An acquisition module, used for acquiring a first frequency spectrum feature represented in plural form by a current audio frame in the audio data; An encoding module, used for converting the first spectrum feature into a second spectrum feature represented in real number form by phase information encoding; An extraction module, used to extract first dimensional vectors of the second spectrum feature in N dimensions in time and frequency domains respectively; A capture module, configured to capture a second dimensional vector representing a dependency of the first dimensional vector in a time series with reference to a historical audio frame in the audio data; the historical audio frame is an audio frame in the audio data that occurs before the current audio frame; A mapping module is used to process the second dimensional vector using a preset function mapping relationship to obtain the probability that speech exists in the current audio frame.

9. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the speech detection method described in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the speech detection method according to any one of claims 1 to 7 is implemented.