Voice activity detection method and device, audio equipment and readable storage medium
Through the generalized side lobe canceller algorithm and microphone array processing, the existing high cost problem of voice activity detection is solved, and a low-cost and efficient voice activity detection method is realized.
Patent Information
- Application Number
- CN202410824590.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-15
AI Technical Summary
Existing voice activity detection methods and equipment are expensive, mainly due to algorithm complexity and hardware implementation requirements, especially software implementation that requires the calculation of complex features and hardware that requires additional VPU devices.
A voice activity detection method based on the generalized sidelobe canceller algorithm is adopted to obtain multi-channel signals through a microphone array, use the upper branch and blocking matrix to process the signal, and obtain the signal amplitude to determine the probability of voice activity, reducing algorithm complexity and hardware requirements, avoiding the use of additional VPU devices.
This reduces the cost of voice activity detection, simplifies algorithm calculations, reduces hardware requirements, and improves detection efficiency and accuracy.
Smart Images

Figure CN118782084A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a voice activity detection method, apparatus, audio equipment and readable storage medium. Background Art
[0002] Voice Activity Detection (VAD) is a key technology widely used in voice communication, human-computer interaction and other fields. VAD can also be called Sound Activity Detection (SAD). Its function is to detect whether there is a voice activity signal in the input audio signal, where the voice activity signal is relative to the non-voice activity signal (such as environmental background noise, silence, etc.). Typical voice activity signals include speech, music, etc.
[0003] The existing VAD judgment method has complex algorithms and large amount of calculations in terms of software implementation. For example, it is necessary to calculate flatness features, energy features, etc. In terms of hardware implementation, it is usually necessary to use additional VPU (Voice-Pick-Up, bone voiceprint sensor) devices to improve the judgment accuracy, resulting in high software implementation costs and / or hardware implementation costs of existing VAD judgments. In short, the implementation cost of voice activity detection is high.
[0004] Therefore, how to reduce the implementation cost of voice activity detection is a technical problem that needs to be solved urgently in the technical field. Summary of the invention
[0005] The main purpose of the present application is to provide a voice activity detection method, apparatus, audio device and readable storage medium, aiming to solve the technical problem of reducing the implementation cost of voice activity detection.
[0006] To achieve the above object, the present application provides a voice activity detection method, the voice activity detection method comprising:
[0007] Acquire an original signal to be detected for voice activity, and acquire an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm;
[0008] respectively acquiring the signal amplitudes of the upper branch signal and the blocking signal, taking the signal amplitude of the upper branch signal as the first signal amplitude, and taking the signal amplitude of the blocking signal as the second signal amplitude;
[0009] Determining a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude;
[0010] If the voice activity existence probability is greater than a preset lower threshold, it is determined that voice activity exists in the original signal.
[0011] In one embodiment, the step of respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal comprises:
[0012] The statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal and the blocking signal are respectively obtained, and the statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal are used as the signal amplitudes of the upper branch signal, and the statistical signal amplitudes corresponding to all signal frequencies in the blocking signal are used as the signal amplitudes of the blocking signal.
[0013] In one embodiment, after the step of determining the probability of voice activity presence based on the first signal amplitude and the second signal amplitude, the method further includes:
[0014] If the probability of the voice activity existing is less than or equal to the preset lower threshold and greater than the preset upper threshold, respectively obtaining the statistical signal amplitudes corresponding to the local signal frequency points in the upper branch signal and the blocking signal, wherein the preset upper threshold is less than the preset upper threshold, and the local signal frequency point is a signal frequency point within the preset signal frequency point range;
[0015] Using the statistical signal amplitudes corresponding to all local frequency points in the upper branch signal as the new signal amplitude of the upper branch signal, and using the statistical signal amplitudes corresponding to all local frequency points in the blocking signal as the new signal amplitude of the blocking signal;
[0016] Based on the new signal amplitudes of the upper branch signal and the blocking signal, return to the step of using the signal amplitude of the upper branch signal as the first signal amplitude and using the signal amplitude of the blocking signal as the second signal amplitude.
[0017] In one embodiment, the step of respectively obtaining the statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal and the blocking signal includes:
[0018] Accumulating the signal amplitudes corresponding to all signal frequency points in the upper branch signal to obtain a statistical signal amplitude corresponding to the upper branch signal;
[0019] The signal amplitudes corresponding to all signal frequency points in the blocking signal are accumulated to obtain a statistical signal amplitude corresponding to the blocking signal.
[0020] In one embodiment, when the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to all signal frequency points, the preset lower limit threshold is the first preset lower limit threshold;
[0021] When the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to local signal frequencies, the preset lower limit threshold is a second preset lower limit threshold, wherein the second preset lower limit threshold is different from the first preset lower limit threshold.
[0022] In one embodiment, the step of determining the probability of voice activity presence based on the first signal amplitude and the second signal amplitude comprises:
[0023] taking the ratio between the first signal amplitude and the second signal amplitude as the probability of voice activity; or,
[0024] Calculate the sum of the second signal amplitude and a preset bias factor, use the sum of the second signal amplitude and the preset bias factor as the third signal amplitude, and use the ratio between the first signal amplitude and the third signal amplitude as the probability of voice activity existence, wherein the preset bias factor is greater than zero.
[0025] In one embodiment, the step of respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal comprises:
[0026] Respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal belonging to the same signal frame;
[0027] The step of determining that the original signal has voice activity if the voice activity existence probability is greater than a preset lower limit threshold comprises:
[0028] For each signal frame of the original signal, if the probability of existence of voice activity corresponding to the signal frame is greater than a preset lower limit threshold, it is determined that the original signal has voice activity in the signal frame.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a voice activity detection device, the voice activity detection device comprising:
[0030] A signal acquisition module, which acquires an original signal to be detected for voice activity, and acquires an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm;
[0031] a signal amplitude acquisition module, which acquires the signal amplitudes of the upper branch signal and the blocking signal respectively, takes the signal amplitude of the upper branch signal as the first signal amplitude, and takes the signal amplitude of the blocking signal as the second signal amplitude;
[0032] a determination module, which determines a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude;
[0033] The detection module is configured to determine that voice activity exists in the original signal if the probability of voice activity existing is greater than a preset lower threshold.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides an audio device, which includes a microphone array and a processor, and the microphone array is electrically connected to the processor; the processor is used to execute the steps of the voice activity detection method as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium, and a program for implementing the voice activity detection method is stored on the computer-readable storage medium. The program for implementing the voice activity detection method is executed by a processor to implement the steps of the voice activity detection method as described above.
[0036] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned voice activity detection method when executed by a processor.
[0037] The present application obtains an original signal to be detected for voice activity, and obtains an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal based on an upper branch and a blocking matrix of a generalized sidelobe canceller algorithm; respectively obtains the signal amplitudes of the upper branch signal and the blocking signal, takes the signal amplitude of the upper branch signal as the first signal amplitude, and takes the signal amplitude of the blocking signal as the second signal amplitude; determines the probability of the presence of voice activity based on the first signal amplitude and the second signal amplitude, wherein the probability of the presence of voice activity is positively correlated with the first signal amplitude, and the probability of the presence of voice activity is negatively correlated with the second signal amplitude; if the probability of the presence of voice activity is greater than a preset lower limit threshold, it is determined that voice activity exists in the original signal. In this way, in the embodiment of the present application, based on the characteristics that the upper branch of the generalized sidelobe canceller algorithm allows the signal in the direction of the sound source to pass through, while the blocking matrix allows the noise signal in other directions to pass through, the first signal amplitude of the upper branch signal and the second signal amplitude of the blocking signal are respectively obtained, and the probability of the existence of voice activity is determined by the first signal amplitude that can reflect the strength of the voice signal and the second signal amplitude that can reflect the strength of the noise signal, and based on the probability of the existence of voice activity, it is determined whether there is voice activity in the original signal. In terms of software implementation, there is no need to calculate complex features such as energy and flatness, and the algorithm is simple and has low computational complexity. In terms of hardware implementation, voice activity judgment is performed through a microphone array, and there is no need to use additional VPU devices, thereby reducing the implementation cost in both software and hardware implementations, that is, reducing the implementation cost of voice activity detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 This is a flow chart of the first embodiment of the voice activity detection method of the present application;
[0041] FIG2( a ) is a time domain waveform experimental simulation diagram of an input signal in a quiet scene according to an embodiment of a voice activity detection method of the present application;
[0042] FIG2( b ) is a frequency domain waveform experimental simulation diagram corresponding to FIG2( a );
[0043] Figure 2(c) is a simulation diagram of the speech activity existence probability experiment corresponding to Figure 2(b);
[0044] FIG3( a ) is a time domain waveform experimental simulation diagram of an input signal in a noise scene according to an embodiment of a voice activity detection method of the present application;
[0045] FIG3( b ) is a frequency domain waveform experimental simulation diagram corresponding to FIG3( a );
[0046] FIG3(c) is a simulation diagram of the speech activity existence probability experiment corresponding to FIG3(b);
[0047] FIG4( a ) is a local magnified experimental simulation diagram of FIG3( a );
[0048] FIG4( b ) is a local magnified experimental simulation diagram of FIG3( b );
[0049] FIG4( c ) is a local magnified experimental simulation diagram of FIG3( c );
[0050] Figure 5 A schematic diagram of the structure of a voice activity detection device of the present application;
[0051] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the voice activity detection device in the embodiment of the present application.
[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0054] The main solution of the present application is: obtaining an original signal to be detected for voice activity, and obtaining an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal using an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm; obtaining the signal amplitudes of the upper branch signal and the blocking signal respectively, taking the signal amplitude of the upper branch signal as the first signal amplitude, and taking the signal amplitude of the blocking signal as the second signal amplitude; determining the probability of voice activity based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity is positively correlated with the first signal amplitude, and the probability of voice activity is negatively correlated with the second signal amplitude; if the probability of voice activity is greater than a preset lower limit threshold, determining that voice activity exists in the original signal.
[0055] This application is based on the characteristics that the upper branch of the generalized sidelobe canceller algorithm allows the signal from the sound source direction to pass through, while the blocking matrix allows the noise signal from other directions to pass through, and obtains the first signal amplitude of the upper branch signal and the second signal amplitude of the blocking signal respectively, and determines the probability of voice activity based on the first signal amplitude that can reflect the strength of the voice signal and the second signal amplitude that can reflect the strength of the noise signal, and determines whether there is voice activity in the original signal based on the probability of voice activity. In terms of software implementation, there is no need to calculate complex features such as energy and flatness, and the algorithm is simple and has low computational complexity. In terms of hardware implementation, voice activity judgment is performed through a microphone array, and there is no need to use additional VPU devices, thereby reducing the implementation cost in both software and hardware implementations, that is, reducing the implementation cost of voice activity detection.
[0056] It should be noted that the execution subject of each embodiment of the voice activity detection method of the present application can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an audio device capable of realizing the above functions, such as a headset, a broadcast receiver, a PMP (Portable Media Player), etc. Exemplarily, the headset is used as the execution subject to illustrate each embodiment of the present application.
[0057] Based on this, the present application proposes a first embodiment of a voice activity detection method, please refer to Figure 1 , the voice activity detection method comprises steps S10 to S40:
[0058] Step S10, obtaining an original signal to be detected for voice activity, and obtaining an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm;
[0059] The original signal can be obtained by the headset itself fusing the multi-channel signal received by the microphone array, or by other devices fusing the multi-channel signal received by the microphone array and sending the fused multi-channel signal to the headset. Similarly, the upper branch signal and the blocking signal can also be obtained by the headset itself processing the multi-channel signal based on the upper branch and blocking matrix of the generalized sidelobe canceller (GSC) algorithm, or by other devices processing the multi-channel signal based on the upper branch and blocking matrix of the generalized sidelobe canceller algorithm, and sending the obtained upper branch signal and the blocking signal to the headset. This embodiment does not impose specific restrictions on this.
[0060] It can be understood that, considering the different positions of the microphones in the microphone array from the sound source, the multi-channel signals received by the microphone array can be time-aligned, and corresponding processing can be performed based on the time-aligned multi-channel signals to obtain the original signal, the upper branch signal and the blocking signal.
[0061] After the microphone array picks up the signal, the signal picked up by the microphone array is used as a multi-channel signal, and the multi-channel signal is fused. Specifically, a beamforming algorithm can be used to fuse the multi-channel signal. The beamforming algorithm can be an existing beamforming algorithm, such as a generalized sidelobe canceler algorithm (Generalized Sidelobe Canceller, GSC), a minimum variance distortionless response (Minimum Variance Distortionless Response, MVDR) algorithm, a linearly constrained minimum variance (Linearly Constrained Minimum Variance, LCMV) algorithm, etc. Considering that the upper branch and blocking matrix of the GSC algorithm are used in this embodiment to process the multi-channel signal to obtain the upper branch signal and the blocking signal, based on this, in a preferred embodiment, the GSC algorithm is used to fuse the multi-channel signal. In this way, the original signal, the upper branch signal and the blocking signal can be obtained through one algorithm processing, reducing the number of times the multi-channel signal is processed, and the original signal, the upper branch signal and the blocking signal are obtained based on the same algorithm processing, and the consistency of the data between the original signal, the upper branch signal and the blocking signal can also be maintained.
[0062] The GSC algorithm mainly consists of three parts: Fixed Beamforming (FBF), Blocking Matrix (BM) and Adaptive Noise Canceller (ANC), among which the fixed beamforming is the upper branch, and the blocking matrix and adaptive noise canceller are the lower branch. Assume that the main beam is aligned with the direction of the sound source, and the others are reference beams. The upper branch allows the main beam to pass, while the reference beam cannot pass. The lower branch blocks the main beam and allows the reference beam to pass. Specifically, the blocking matrix in the lower branch is used to block the main beam, and the ANC is used to equalize the signal Z output by the blocking matrix to make it consistent with the residual noise in the output result of the upper branch. The multi-channel signal x is output to the GSC algorithm, and the upper branch signal y is obtained after being processed by the upper branch. c , after being processed by the lower branch, the blocking signal y is obtained b , and then the upper branch signal y c With blocking signal y b Perform filtering, such as Wiener filtering on the two signals, to cancel out the noise of the upper and lower branches, and obtain the processing result y p When the GSC algorithm is used to fuse the multi-channel beams, the processing result y p The original signal to be detected for voice activity is y c It is the upper branch signal, and Z is the blocking signal.
[0063] It should be noted that since the multi-channel signals collected by the microphone array are time domain signals, if Fourier transform is not performed on them, but correlation processing is performed directly based on the time domain signals, there may be signals in the upper branch signal, the blocking signal and the original signal that are time domain signals. Then the time domain signal can be Fourier transformed to obtain a frequency domain signal, and the upper branch signal, the blocking signal and the original signal in the frequency domain are subsequently processed. Exemplarily, if the time domain signal is framed in the time domain, the length of each frame and the overlapping length can be set as needed, such as when the frame length is between 7.5ms and 30ms, and each frame of data is subjected to STFT (short-time Fourier transform) to obtain a frequency domain signal. It can be understood that each time domain signal is converted into a frequency domain signal using the same framing method to ensure consistency between signals.
[0064] Step S20, respectively acquiring the signal amplitudes of the upper branch signal and the blocking signal, taking the signal amplitude of the upper branch signal as the first signal amplitude, and taking the signal amplitude of the blocking signal as the second signal amplitude;
[0065] It should be noted that the signal amplitude of each signal frame of the upper branch signal and the blocking signal can be obtained in sequence, or the signal amplitude of a preset number of signal frames of the upper branch signal and the blocking signal can be obtained in sequence. Further, the cumulative signal amplitude or average signal amplitude of all signal frequency points can be obtained, or the cumulative signal amplitude or average signal amplitude of local signal frequency points can be obtained, and this embodiment does not impose specific restrictions on this.
[0066] It can be understood that after Fourier transform of N sampling points, the Fourier transform results of N signal points can be obtained. Each sampling point corresponds to a signal frequency point after Fourier transform, and each signal frequency point corresponds to a value after Fourier transform (recorded as FT value). Based on this, the signal amplitude of a certain signal frequency point is specifically the modulus of the FT value corresponding to the signal frequency point. For the convenience of subsequent elaboration and explanation, the first signal amplitude of the kth signal frequency point in the lth frame is recorded as Y p (k, l), the second signal amplitude of the kth signal frequency point in the lth frame is Y block (k,l).
[0067] Step S30, determining a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude;
[0068] It can be understood that the first signal amplitude is the signal amplitude of the upper branch signal, and the upper branch signal is a signal in the direction of the sound source, which mainly includes a voice signal, based on which the first signal amplitude can represent the signal strength of the voice signal. The second signal amplitude is the signal amplitude of the blocking signal, and the blocking signal is a signal in directions other than the sound source direction, which mainly includes a noise signal, based on which the second signal amplitude can represent the signal strength of the noise signal.
[0069] Further, the probability of voice activity is determined based on the first signal amplitude and the second signal amplitude. Specifically, the probability of voice activity is positively correlated with the first signal amplitude difference and negatively correlated with the second signal amplitude. In this way, the determined probability of voice activity can represent the probability of voice activity in the original signal.
[0070] It can be understood that the signal amplitudes of one or more signal frames are sequentially acquired, and then the existence probabilities of the voice activities corresponding to the one or more signal frames are sequentially calculated.
[0071] Step S40: If the voice activity existence probability is greater than a preset lower threshold, it is determined that voice activity exists in the original signal.
[0072] If the probability of voice activity is greater than the preset lower threshold, it is determined that there is voice activity in the original signal; if the probability of voice activity is less than or equal to the preset lower threshold, it can be determined that there is no voice activity in the original signal, or the original signal can be further detected for voice activity again until a preset end condition is met. The preset end condition can be an end condition set in advance, such as until the probability of voice activity based on the local signal frequency point of a frame of signal is calculated, and the probability of voice activity calculated at the preset end condition is less than or equal to the preset lower threshold, it is determined that there is no voice activity in the original signal; if the probability of voice activity calculated at the preset end condition is greater than the preset lower threshold, it is determined that there is voice activity in the original signal.
[0073] As for the further detection method, as one of the implementation methods, if the current probability of voice activity existence is calculated based on the signal amplitude of multiple signal frames, the signal amplitude of each signal frame in the multiple signal frames can be obtained again to calculate the probability of voice activity existence, and the voice activity existence probability can be detected again to detect whether it is greater than the preset lower limit threshold. As another implementation method, the current probability of voice activity existence is calculated based on the cumulative signal amplitude of all signal frequency points of the signal frame, the cumulative signal amplitude of the local signal frequency point of the signal frame can be obtained again, and the voice activity existence probability can be calculated again based on the cumulative signal amplitude of the local signal frequency point, and the voice activity existence probability can be detected again to detect whether it is greater than the preset lower limit threshold, etc. This embodiment does not impose specific restrictions on this.
[0074] In a feasible embodiment, for the voice activity existence probability calculated using different data, the calculation order of each type of data for calculating the voice activity existence probability can also be preset, and the voice activity existence probability is calculated in sequence based on the preset order until it is determined that the original signal has voice activity or meets the preset end condition. The different data is used to indicate different signal frame numbers or different signal frequencies, etc.
[0075] It should be noted that different lower limit thresholds may be preset for the voice activity existence probabilities calculated using different data.
[0076] It can be understood that by obtaining the probability of existence of voice activity corresponding to one or more signal frames, it can be determined whether there is voice activity in the original signal of the one or more signal frames.
[0077] This embodiment obtains an original signal to be detected for voice activity, and obtains an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal based on an upper branch and a blocking matrix of a generalized sidelobe canceller algorithm; respectively obtains the signal amplitudes of the upper branch signal and the blocking signal, takes the signal amplitude of the upper branch signal as a first signal amplitude, and takes the signal amplitude of the blocking signal as a second signal amplitude; determines the probability of voice activity based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity is positively correlated with the first signal amplitude, and the probability of voice activity is negatively correlated with the second signal amplitude; if the probability of voice activity is greater than a preset lower limit threshold, it is determined that voice activity exists in the original signal. In this way, in this embodiment, based on the characteristics that the upper branch of the generalized sidelobe canceller algorithm allows the signal in the direction of the sound source to pass through, while the blocking matrix allows the noise signal in other directions to pass through, the first signal amplitude of the upper branch signal and the second signal amplitude of the blocking signal are respectively obtained, and the probability of the existence of voice activity is determined by the first signal amplitude that can reflect the strength of the voice signal and the second signal amplitude that can reflect the strength of the noise signal, and whether there is voice activity in the original signal is determined based on the probability of the existence of voice activity. In terms of software implementation, there is no need to calculate complex features such as energy and flatness, and the algorithm is simple and has low computational complexity. In terms of hardware implementation, voice activity judgment is performed through a microphone array, and no additional VPU device is required, thereby reducing the implementation cost in both software and hardware implementations, that is, reducing the implementation cost of voice activity detection.
[0078] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction and will not be described in detail later. On this basis, the step of respectively obtaining the statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal and the blocking signal includes step A10 or step A20.
[0079] Wherein, in step A10, the ratio between the first signal amplitude and the second signal amplitude is used as the probability of existence of voice activity;
[0080] In the process of using the GSC algorithm, it is found that whether there is voice activity in the signal is correlated with the ratio of the first signal amplitude to the second signal amplitude. Specifically, the ratio of the first signal amplitude to the second signal amplitude of the signal segment without voice activity is smaller, and the ratio of the first signal amplitude to the second signal amplitude of the signal segment with voice activity is larger. Exemplarily, referring to Figures 2 to 4, Figure 2(a) is a time domain diagram of the input signal in a quiet scene (no noise), Figure 2(b) is a spectrum diagram of the input signal in a quiet scene, Figure 2(c) is the ratio of the first signal amplitude ratio to the second signal amplitude corresponding to the signal in Figure 2(b) (specifically, the first signal amplitude divided by the second signal amplitude), Figure 3(a) is a time domain diagram of the input signal in a noisy scene, Figure 3(b) is a spectrum diagram of the input signal in a noisy scene, and Figure 3(c) is the ratio of the first signal amplitude ratio to the second signal amplitude corresponding to the signal in Figure 3(b) (specifically, the first signal amplitude divided by the second signal amplitude). Figure 4(a) to Figure 4(c) They are Figure 3(a) to Figure 3(c) A local enlarged view. From Figures 2 to 4, it can be seen that whether there is voice activity in the signal is correlated with the ratio of the first signal amplitude to the second signal amplitude, and the ratio of the first signal amplitude to the second signal amplitude in the signal segment without voice activity is much smaller than the ratio of the first signal amplitude to the second signal amplitude in the signal segment with voice activity.
[0081] Based on the above correlation, in this embodiment, the ratio between the first signal amplitude and the second signal amplitude is used as the probability of the existence of voice activity. Specifically, the ratio between the first signal amplitude and the second signal amplitude is the first signal amplitude divided by the second signal amplitude, so that based on the probability of the existence of voice activity, it is possible to effectively detect whether there is voice activity in the original signal.
[0082] In which, step A20, calculates the sum of the second signal amplitude and the preset bias factor, takes the sum of the second signal amplitude and the preset bias factor as the third signal amplitude, and takes the ratio between the first signal amplitude and the third signal amplitude as the probability of voice activity, wherein the preset bias factor is greater than zero.
[0083] To avoid division by zero errors, the sum of the second signal amplitude and a preset bias factor is calculated, and the ratio between the second signal amplitude and the sum is used as the probability of voice activity. Specifically, the ratio between the first signal amplitude and the third signal amplitude is the first signal amplitude divided by the third signal amplitude.
[0084] It should be noted that, in order to reduce the influence of the preset bias factor on the result, the preset bias factor is a small positive value set in advance, such as 0.01, 0.02, 0.03, etc., and this embodiment does not impose any specific limitation on this.
[0085] In this embodiment, the probability of voice activity is calculated using the ratio of the first signal amplitude to the second signal amplitude. The calculation method of the probability of voice activity is simple and the calculation complexity is low, thereby reducing the complexity of voice activity detection and the computing power requirements of the device, so that low-computing-power devices (such as headphones) can also be embedded in the voice activity detection method of the embodiment of the present application to perform voice activity detection on the signal.
[0086] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above description and will not be described in detail later. On this basis, the steps of respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal include:
[0087] Step B10, respectively obtain the statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal and the blocking signal, and use the statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal as the signal amplitude of the upper branch signal, and use the statistical signal amplitudes corresponding to all signal frequency points in the blocking signal as the signal amplitude of the blocking signal.
[0088] The statistical signal amplitude corresponding to all signal frequency points may specifically be the accumulated signal amplitude of all signal frequency points or the average signal amplitude of all signal frequency points.
[0089] In a possible implementation manner, after the step of determining the probability of voice activity presence based on the first signal amplitude and the second signal amplitude, the method further includes:
[0090] Step C10: if the probability of the voice activity existing is less than or equal to the preset lower threshold and greater than the preset upper threshold, then respectively obtaining the statistical signal amplitudes corresponding to the local signal frequency points in the upper branch signal and the blocking signal, wherein the preset upper threshold is less than the preset upper threshold, and the local signal frequency point is a signal frequency point within the preset signal frequency point range;
[0091] The preset signal frequency range may specifically be a frequency range set in advance. Preferably, considering the characteristic that the frequency of speech is usually low, the preset frequency range may be less than or equal to a preset low frequency (such as 1 kHz).
[0092] Further, if the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to all signal frequency points, when the probability of voice activity existence is less than or equal to a preset upper limit threshold, it is determined that there is no voice activity in the original signal.
[0093] Step C20, using the statistical signal amplitude corresponding to all local frequency points in the upper branch signal as the new signal amplitude of the upper branch signal, and using the statistical signal amplitude corresponding to all local frequency points in the blocking signal as the new signal amplitude of the blocking signal;
[0094] Step C30, based on the new signal amplitudes of the upper branch signal and the blocking signal, return to the step of using the signal amplitude of the upper branch signal as the first signal amplitude and the signal amplitude of the blocking signal as the second signal amplitude.
[0095] In this embodiment, when the probability of voice activity calculated based on all signal frequency points is less than or equal to a preset lower threshold and greater than a preset upper threshold, the probability of voice activity is further calculated based on local signal frequency points, and further detection is performed on whether there is voice activity in the original signal to avoid missed judgment. For example, the blocking matrix may leak voice signals. At this time, since all leaked voice signals are used as noise signals to calculate the probability of voice activity, the probability of voice activity calculated based on all signal frequency points is low, which may mistakenly lead to the absence of voice in the original signal, resulting in missed judgment. The local signal frequency points contain less leaked voice signals than all signal frequency points, and the voice activity probability calculated based on the local signal frequency points has a higher reference value, thereby improving the reliability of the voice activity detection results.
[0096] In a possible implementation manner, the step of respectively acquiring statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal and the blocking signal includes:
[0097] Step D10, accumulating the signal amplitudes corresponding to all signal frequency points in the upper branch signal to obtain a statistical signal amplitude corresponding to the upper branch signal;
[0098] Step D20, accumulating the signal amplitudes corresponding to all signal frequency points in the blocking signal to obtain a statistical signal amplitude corresponding to the blocking signal.
[0099] Step D30, considering that the signal frequency points are equivalent when subsequently calculating the probability of existence of voice activity, the signal frequency points of the first signal amplitude and the second signal amplitude can offset each other. Based on this, the present embodiment accumulates the signal amplitudes of the signal frequencies.
[0100] It can be understood that, similarly, for the statistical signal amplitude corresponding to the local signal frequency point, the signal amplitude corresponding to the local signal frequency point in the branch signal can be accumulated to obtain the statistical signal amplitude corresponding to the upper branch signal, and the signal amplitude corresponding to the local signal frequency point in the blocking signal can be accumulated to obtain the statistical signal amplitude corresponding to the blocking signal.
[0101] In a possible implementation manner, when the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to all signal frequency points, the preset lower limit threshold is a first preset lower limit threshold;
[0102] When the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to local signal frequencies, the preset lower limit threshold is a second preset lower limit threshold, wherein the second preset lower limit threshold is different from the first preset lower limit threshold.
[0103] Further, if the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to the local signal frequency point, the probability of voice activity existence is less than or equal to the second preset lower threshold, and it is determined that there is no voice activity in the original signal.
[0104] It should be noted that the first preset lower limit threshold and the second preset lower limit threshold can be specifically measured in advance by experimentally measuring whether there is a correlation between voice activity and the probability of voice activity when the probability of voice activity is calculated based on all signal frequencies, and whether there is a correlation between voice activity and the probability of voice activity when the probability of voice activity is calculated based on local signal frequencies. Based on the correlation between the two, the corresponding lower limit thresholds can be preset in advance.
[0105] Based on the first embodiment, the second embodiment and / or the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment, the second embodiment and the third embodiment can be referred to the above introduction, and will not be described in detail later. On this basis, the steps of respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal include:
[0106] Step E10, respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal belonging to the same signal frame;
[0107] It can be understood that the upper branch signal and the blocking signal are multi-channel signals input into the GSC algorithm, and the signals are obtained after being processed by the upper branch and blocking matrices of the GSC algorithm respectively. Based on this, the signal frames of the upper branch signal and the blocking signal are one-to-one corresponding, and the upper branch signal and the blocking signal belonging to the same signal frame represent signals belonging to the same time period.
[0108] The step of determining that the original signal has voice activity if the voice activity existence probability is greater than a preset lower limit threshold comprises:
[0109] Step F10 : for each signal frame of the original signal, if the probability of existence of voice activity corresponding to the signal frame is greater than a preset lower threshold, it is determined that the original signal has voice activity in the signal frame.
[0110] Similarly, the upper branch signal, the blocking path signal and the original signal are signals obtained by performing different signal processing on the same multi-channel signal, and the signal frames of the three signals are consistent.
[0111] In this embodiment, voice activity detection is performed on the original signal based on the voice activity existence probability corresponding to each signal frame, so that voice activity detection is performed in units of signal frames, thereby improving the accuracy of voice activity detection.
[0112] For example, in order to help understand the technical concept or technical principle of the voice activity detection method after the present embodiment is combined with the above-mentioned embodiment 1, embodiment 2 and embodiment 3, a specific embodiment is listed. In this specific embodiment, the voice activity detection process is:
[0113] 1. Obtain the multi-channel signal collected by the microphone array, input the multi-channel signal into the GSC algorithm, and obtain the upper branch, blocking matrix and final output of the GSC algorithm respectively.
[0114] 2. Calculation Where l represents the lth signal frame, k represents the kth signal frequency, N represents the total number of signal frequencies, N1 is an integer smaller than N, ξ is the preset bias factor, B is the blocking matrix, X is the input multi-channel signal, and Y p It is the upper branch signal.
[0115] 3. If r corresponding to the current signal frame is greater than threshold 1, then VAD = 1, which means there is voice activity. If r corresponding to the current signal frame is less than or equal to threshold 1 and greater than threshold 2, then r is further determined. seg , if r seg If r is greater than the threshold 3, VAD = 1. seg If it is less than or equal to the threshold value 3, then VAD = 0, which means there is no voice activity.
[0116] It should be noted that the above specific embodiments are only used to understand the present application and do not constitute a limitation on the voice activity detection process of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0117] In addition, the present application also provides a voice activity detection device, referring to Figure 5 , the voice activity detection device comprises:
[0118] A signal acquisition module 10 is configured to acquire an original signal to be detected for voice activity, and acquire an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm;
[0119] A signal amplitude acquisition module 20, which acquires the signal amplitudes of the upper branch signal and the blocking signal respectively, and uses the signal amplitude of the upper branch signal as the first signal amplitude, and uses the signal amplitude of the blocking signal as the second signal amplitude;
[0120] A determination module 30, determining a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude;
[0121] The detection module 40 is configured to determine that voice activity exists in the original signal if the probability of voice activity existing is greater than a preset lower threshold.
[0122] In one embodiment, the signal amplitude acquisition module 20 is further used for:
[0123] The statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal and the blocking signal are respectively obtained, and the statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal are used as the signal amplitudes of the upper branch signal, and the statistical signal amplitudes corresponding to all signal frequencies in the blocking signal are used as the signal amplitudes of the blocking signal.
[0124] In one embodiment, the detection module 40 is further used for:
[0125] If the probability of the voice activity existing is less than or equal to the preset lower threshold and greater than the preset upper threshold, respectively obtaining the statistical signal amplitudes corresponding to the local signal frequency points in the upper branch signal and the blocking signal, wherein the preset upper threshold is less than the preset upper threshold, and the local signal frequency point is a signal frequency point within the preset signal frequency point range;
[0126] Using the statistical signal amplitudes corresponding to all local frequency points in the upper branch signal as the new signal amplitude of the upper branch signal, and using the statistical signal amplitudes corresponding to all local frequency points in the blocking signal as the new signal amplitude of the blocking signal;
[0127] Based on the new signal amplitudes of the upper branch signal and the blocking signal, return to the step of using the signal amplitude of the upper branch signal as the first signal amplitude and using the signal amplitude of the blocking signal as the second signal amplitude.
[0128] In one embodiment, the signal amplitude acquisition module 20 is further used for:
[0129] Accumulating the signal amplitudes corresponding to all signal frequency points in the upper branch signal to obtain a statistical signal amplitude corresponding to the upper branch signal;
[0130] The signal amplitudes corresponding to all signal frequency points in the blocking signal are accumulated to obtain a statistical signal amplitude corresponding to the blocking signal.
[0131] In one embodiment, when the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to all signal frequency points, the preset lower limit threshold is the first preset lower limit threshold;
[0132] When the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to local signal frequencies, the preset lower limit threshold is a second preset lower limit threshold, wherein the second preset lower limit threshold is different from the first preset lower limit threshold.
[0133] In one embodiment, the determining module 30 is further configured to:
[0134] The step of determining the probability of voice activity existence based on the first signal amplitude and the second signal amplitude comprises:
[0135] taking the ratio between the first signal amplitude and the second signal amplitude as the probability of voice activity; or,
[0136] Calculate the sum of the second signal amplitude and a preset bias factor, use the sum of the second signal amplitude and the preset bias factor as the third signal amplitude, and use the ratio between the first signal amplitude and the third signal amplitude as the probability of voice activity existence, wherein the preset bias factor is greater than zero.
[0137] In one embodiment, the signal amplitude acquisition module 20 is further used for:
[0138] Respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal belonging to the same signal frame;
[0139] For each signal frame of the original signal, the detection module determines that the original signal has voice activity in the signal frame if the probability of voice activity corresponding to the signal frame is greater than a preset lower threshold.
[0140] In addition, an embodiment of the present application further proposes an audio device, which includes a microphone array and a processor, wherein the microphone arrays are electrically connected to the processors respectively; and the processor is capable of executing the voice activity detection method in the above embodiment.
[0141] In addition, if Figure 6As shown, the audio device may also include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the audio device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the audio device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an audio device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0142] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0143] The audio device provided in the embodiment of the present application adopts the voice activity detection method in the above embodiment to solve the technical problem of voice activity detection. Compared with the prior art, the beneficial effects of the audio device provided in the present application are the same as the beneficial effects of the voice activity detection method provided in the above embodiment, and other technical features in the audio device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0144] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0146] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further provides a readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the voice activity detection method in the above-mentioned embodiment.
[0147] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0148] The computer-readable storage medium may be included in the audio device; or may exist independently without being installed in the audio device.
[0149] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the audio device, the audio device: obtains an original signal to be detected for voice activity, and obtains an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm; obtains the signal amplitudes of the upper branch signal and the blocking signal respectively, takes the signal amplitude of the upper branch signal as the first signal amplitude, and takes the signal amplitude of the blocking signal as the second signal amplitude; determines the probability of voice activity based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity is positively correlated with the first signal amplitude, and the probability of voice activity is negatively correlated with the second signal amplitude; if the probability of voice activity is greater than a preset lower limit threshold, it is determined that voice activity exists in the original signal.
[0150] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0151] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0152] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0153] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned voice activity detection method, and can solve the technical problem of voice activity detection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the voice activity detection method provided in the above-mentioned embodiment, and will not be repeated here.
[0154] In addition, an embodiment of the present application further provides a computer program product, including a voice activity detection program, which implements the steps of the voice activity detection method described above when executed by a processor.
[0155] The specific implementation manner of the computer program product of the present application is substantially the same as the above-mentioned embodiments of the voice activity detection method, and will not be described in detail here.
[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0157] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software sensor, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0159] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A voice activity detection method, characterized in that: The voice activity detection method comprises the following steps: Acquire an original signal to be detected for voice activity, and acquire an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm; respectively acquiring the signal amplitudes of the upper branch signal and the blocking signal, taking the signal amplitude of the upper branch signal as the first signal amplitude, and taking the signal amplitude of the blocking signal as the second signal amplitude; Determining a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude; If the voice activity existence probability is greater than a preset lower threshold, it is determined that voice activity exists in the original signal.
2. The method according to claim 1, characterized in that The step of respectively acquiring the signal amplitudes of the upper branch signal and the blocking signal comprises: The statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal and the blocking signal are respectively obtained, and the statistical signal amplitudes corresponding to all signal frequencies in the upper branch signal are used as the signal amplitudes of the upper branch signal, and the statistical signal amplitudes corresponding to all signal frequencies in the blocking signal are used as the signal amplitudes of the blocking signal.
3. The method according to claim 2, characterized in that: After the step of determining the probability of voice activity existence based on the first signal amplitude and the second signal amplitude, the method further includes: If the probability of the voice activity existing is less than or equal to the preset lower threshold and greater than the preset upper threshold, respectively obtaining the statistical signal amplitudes corresponding to the local signal frequency points in the upper branch signal and the blocking signal, wherein the preset upper threshold is less than the preset upper threshold, and the local signal frequency point is a signal frequency point within the preset signal frequency point range; Using the statistical signal amplitudes corresponding to all local frequency points in the upper branch signal as the new signal amplitude of the upper branch signal, and using the statistical signal amplitudes corresponding to all local frequency points in the blocking signal as the new signal amplitude of the blocking signal; Based on the new signal amplitudes of the upper branch signal and the blocking signal, return to the step of using the signal amplitude of the upper branch signal as the first signal amplitude and using the signal amplitude of the blocking signal as the second signal amplitude.
4. The method according to claim 2, characterized in that The step of respectively obtaining the statistical signal amplitudes corresponding to all signal frequency points in the upper branch signal and the blocking signal comprises: Accumulating the signal amplitudes corresponding to all signal frequency points in the upper branch signal to obtain a statistical signal amplitude corresponding to the upper branch signal; The signal amplitudes corresponding to all signal frequency points in the blocking signal are accumulated to obtain a statistical signal amplitude corresponding to the blocking signal.
5. The method according to any one of claims 1 to 4, characterized in that: In the case where both the first signal amplitude and the second signal amplitude are statistical signal amplitudes corresponding to all signal frequency points, the preset lower limit threshold is the first preset lower limit threshold; When the first signal amplitude and the second signal amplitude are both statistical signal amplitudes corresponding to local signal frequencies, the preset lower limit threshold is a second preset lower limit threshold, wherein the second preset lower limit threshold is different from the first preset lower limit threshold.
6. The method according to any one of claims 1 to 4, characterized in that: The step of determining the probability of voice activity existence based on the first signal amplitude and the second signal amplitude comprises: taking the ratio between the first signal amplitude and the second signal amplitude as the probability of voice activity; or, Calculate the sum of the second signal amplitude and a preset bias factor, use the sum of the second signal amplitude and the preset bias factor as the third signal amplitude, and use the ratio between the first signal amplitude and the third signal amplitude as the probability of voice activity existence, wherein the preset bias factor is greater than zero.
7. The method according to any one of claims 1 to 4, characterized in that: The step of respectively acquiring the signal amplitudes of the upper branch signal and the blocking signal comprises: Respectively obtaining the signal amplitudes of the upper branch signal and the blocking signal belonging to the same signal frame; The step of determining that the original signal has voice activity if the voice activity existence probability is greater than a preset lower limit threshold comprises: For each signal frame of the original signal, if the probability of existence of voice activity corresponding to the signal frame is greater than a preset lower limit threshold, it is determined that the original signal has voice activity in the signal frame.
8. A voice activity detection device, characterized in that: The voice activity detection device comprises: A signal acquisition module, which acquires an original signal to be detected for voice activity, and acquires an upper branch signal and a blocking signal, wherein the original signal is a signal obtained by fusing a multi-channel signal received by a microphone array, and the upper branch signal and the blocking signal are signals obtained by respectively processing the multi-channel signal by an upper branch and a blocking matrix based on a generalized sidelobe canceller algorithm; a signal amplitude acquisition module, which acquires the signal amplitudes of the upper branch signal and the blocking signal respectively, takes the signal amplitude of the upper branch signal as the first signal amplitude, and takes the signal amplitude of the blocking signal as the second signal amplitude; a determination module, which determines a probability of voice activity existence based on the first signal amplitude and the second signal amplitude, wherein the probability of voice activity existence is positively correlated with the first signal amplitude, and the probability of voice activity existence is negatively correlated with the second signal amplitude; The detection module is configured to determine that voice activity exists in the original signal if the probability of voice activity existing is greater than a preset lower threshold.
9. An audio device, characterized in that: The audio device comprises a microphone array and a processor, wherein the microphone array is electrically connected to the processor; The processor is configured to execute the steps of the voice activity detection method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing the voice activity detection method, and the program for implementing the voice activity detection method is executed by a processor to implement the steps of the voice activity detection method according to any one of claims 1 to 7.
