Voice endpoint detection method and device
Through speech feature extraction and adaptive model update, the accuracy problem of speech endpoint detection when the noise scene changes in the existing technology is solved, achieving high-accuracy detection in a variety of noise scenes, and improving the universality of detection. .
Patent Information
- Application Number
- CN202011213344.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-03
AI Technical Summary
Existing voice endpoint detection methods have inaccurate detection results when the noise scene changes, and have poor universality and cannot adapt to a variety of noise scenes.
By extracting speech feature frames, calculating the likelihood values of speech and non-speech models, calculating the signal-to-noise ratio, and performing adaptive updates, the updated model is used to detect endpoints to achieve adaptability to different noise scenarios.
It improves the accuracy of voice endpoint detection, can accurately detect voice in a variety of noise scenarios, reduces the demand for data in specific scenarios, and improves the robustness of detection.
Smart Images

Figure CN112489692B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of sound recognition technology, and more specifically, to a method and device for voice endpoint detection. Background Art
[0002] Endpoint detection, also known as Voice Activity Detection (VAD), is used to distinguish between speech and non-speech areas. In layman's terms, endpoint detection is to accurately locate the start and end points of speech (the start and end points are also called endpoints) from noisy speech, remove the silent part, remove the noisy part, and find the truly effective content of a speech.
[0003] Endpoint detection is an important part of speech recognition and an indispensable part of it. Its quality will directly affect the accuracy of speech recognition. A good and excellent endpoint detection technology should neither detect too little nor too much. Too little detection will cause the loss of speech information and result in missed recognition; too much detection will cause the first part of the speech to contain noise, which may cause misrecognition or multiple recognition while also increasing the real-time rate of speech recognition. This shows that endpoint detection is crucial to the overall process of speech recognition.
[0004] Existing speech endpoint detection generally extracts speech features and judges the extracted features to determine whether it is speech or non-speech, or establishes an acoustic model to classify the sound into two categories or decodes the global information to determine whether it is speech or non-speech. However, both methods can only judge the environmental noise and speech in a single scene and cannot be applied to other scenes. When the scene changes, the model used needs to be retrained to adapt to the changing noise in the scene. Summary of the invention
[0005] Based on the above problems, the embodiments of the present application provide a voice endpoint detection method and device, aiming to solve the shortcomings of the existing voice endpoint detection methods, such as inaccurate detection results and poor universality.
[0006] A first aspect of an embodiment of the present application provides a method for detecting a voice endpoint, the method comprising:
[0007] Extract speech features from the speech to be detected to obtain multiple feature frames;
[0008] Calculating a speech likelihood value between a pre-trained speech model and each of the feature frames and calculating a non-speech likelihood value between a pre-trained non-speech model and each of the feature frames;
[0009] Calculating a signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value;
[0010] Determine, based on the signal-to-noise likelihood ratio, whether each of the feature frames corresponds to a frame in the to-be-detected speech as a speech frame or a non-speech frame;
[0011] Adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames;
[0012] Using the updated speech model and the updated non-speech model to respectively calculate a final speech likelihood value and a final non-speech likelihood value of each of the feature frames;
[0013] A final signal-to-noise likelihood ratio of each of the feature frames is calculated based on the final speech likelihood value and the final non-speech likelihood value, and an endpoint of the speech to be detected is detected based on the final signal-to-noise likelihood ratio.
[0014] Optionally, adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames, comprises:
[0015] When the conditions are met, stopping the adaptive updating of the speech model and the non-speech model;
[0016] The conditions include at least one of the following:
[0017] Until the result of the signal-to-noise likelihood ratio of the feature frame is stable;
[0018] Until the update error of the speech model or the non-speech model is less than a preset threshold.
[0019] Optionally, calculating the speech likelihood value between the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value between the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithms comprising:
[0020] Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
[0021] Optionally, the method further includes:
[0022] Acquiring training data, wherein the training data includes non-speech data and speech data;
[0023] Using the non-speech data to train a first preset Gaussian mixture model to obtain the non-speech model;
[0024] Using the speech data to train a second preset Gaussian mixture model to obtain the speech model;
[0025] Adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames, wherein the adaptive updating algorithm includes any one of the following:
[0026] Maximum a posteriori probability MAP, maximum likelihood linear regression MLLR.
[0027] Optionally, voice feature extraction is performed on the voice to be detected, including:
[0028] Pre-emphasize the speech to be detected to enhance the high frequency part of the speech to be detected, and obtain the pre-emphasized speech to be detected;
[0029] Dividing the pre-emphasized speech to be detected into a plurality of initial speech frames;
[0030] Multiplying each of the initial speech frames by a Hamming window to obtain an intermediate processed signal;
[0031] Performing a fast Fourier transform on the intermediate processed signal to obtain a frequency spectrum and energy distribution of the speech frame;
[0032] Filtering the energy spectrum by a set of Mel-scale triangular filter banks to smooth the frequency spectrum of the speech frame;
[0033] The logarithmic energy of each triangular filter group output is calculated, and the logarithmic energy is subjected to discrete cosine transform DCT to obtain Mel-frequency cepstrum MFCC coefficients, and the Mel-frequency cepstrum MFCC coefficients are used as the speech features.
[0034] Optionally, the length of a frame in the feature frame, the speech frame or the non-speech frame is 20 ms.
[0035] Optionally, among the multiple initial speech frames, there is no overlap between any two adjacent initial speech frames.
[0036] A second aspect of an embodiment of the present application provides a speech endpoint detection device, the device comprising:
[0037] A feature extraction module is used to extract speech features from the speech to be detected to obtain multiple feature frames;
[0038] A speech likelihood value calculation module, used to calculate the speech likelihood value of the pre-trained speech model and each of the feature frames;
[0039] A non-speech likelihood value calculation module, used to calculate the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames;
[0040] A signal-to-noise likelihood ratio calculation module, configured to calculate the signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value;
[0041] A speech frame judgment module, used for judging whether each of the feature frames corresponding to the frame in the speech to be detected is a speech frame or a non-speech frame based on the signal-to-noise likelihood ratio;
[0042] An adaptive updating module, configured to adaptively update the speech model based on all the speech frames, and adaptively update the non-speech model based on all the non-speech frames;
[0043] An endpoint detection module, configured to calculate a final signal-to-noise likelihood ratio of each of the feature frames based on the final speech likelihood value and the final non-speech likelihood value, and detect an endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio;
[0044] The updated speech model and the updated non-speech model are used to respectively calculate the final speech likelihood value and the final non-speech likelihood value of each of the feature frames.
[0045] Optionally, the adaptive update module includes:
[0046] A condition matching submodule, used for stopping the adaptive update of the speech model and the non-speech model when a condition is met;
[0047] The conditions include at least one of the following:
[0048] Until the result of the signal-to-noise likelihood ratio of the feature frame is stable;
[0049] Until the update error of the speech model or the non-speech model is less than a preset threshold.
[0050] Optionally, in the speech likelihood value calculation module and the non-speech likelihood value calculation module, calculating the speech likelihood value of the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithm comprising:
[0051] Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
[0052] The speech endpoint detection method and device provided by the present application are adopted. First, speech features of the speech to be detected are extracted. Then, the speech model and the non-speech model are used to judge frame by frame to obtain speech frames and non-speech frames. The speech model and the non-speech model are adaptively updated based on the speech frames and the non-speech frames, respectively, and the endpoints of the speech to be detected are detected using the updated speech model and the updated non-speech model. The above training process enables the initial speech model and the initial non-speech model to be adjusted using a smaller amount of data in a specific scene, so that the speech and non-speech in the specific scene can be accurately detected, which is convenient for rapid training convergence and decoding calculation. At the same time, adaptive training is performed for specific scenes, so that the speech model and the non-speech model can be changed according to the specific scene, so that the speech endpoint detection method and device can be applied to more noise scenes, and the target speech can be detected in a variety of noise scenes, and the accuracy of speech endpoint detection can also be improved in all scenes to which it is applied. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0054] Figure 1 is a flow chart of a voice endpoint detection method proposed in one embodiment of the present application;
[0055] Figure 2 is a flowchart of an adaptive update proposed in an embodiment of the present application;
[0056] Figure 3 This is a flow chart of extracting speech features of a speech to be detected proposed in an embodiment of the present application;
[0057] Figure 4 It is a schematic diagram of a voice endpoint detection device proposed in one embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 creative work are within the scope of protection of this application.
[0059] First, the method of speech endpoint detection in the prior art is described.
[0060] Existing speech endpoint detection VAD algorithms can be roughly divided into three categories: threshold-based VAD, VAD as a classifier, and model VAD. Threshold-based VAD: By extracting time domain (short-time energy, short-term zero-crossing rate, etc.) or frequency domain (MFCC, spectral entropy, etc.) features and setting thresholds reasonably, the purpose of distinguishing speech from non-speech is achieved. This is the traditional VAD method. VAD as a classifier: Speech detection can be regarded as a two-classification problem of speech and non-speech, and then the classifier can be trained using machine learning methods to achieve the purpose of detecting speech. Model VAD: A complete acoustic model (the granularity of the modeling unit can be very coarse) can be used to distinguish speech segments from non-speech segments based on decoding and global information.
[0061] However, there are many types of noise, and in many cases, environmental speech can also be considered a type of noise (this is because we need to extract the main conversation fragments, such as two people talking in a vegetable market, and the inactive part may be filled with shouting. If the shouting of other people is not cut off, it will affect the speech detection). A fixed VAD classification method is difficult to take care of all situations, and it is obviously redundant and complicated to develop a VAD method specifically for each environment. At this time, the limitations of the traditional VAD method are revealed.
[0062] refer to Figure 1 , Figure 1 1 is a flow chart of a voice endpoint detection method proposed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0063] Step S101: extract speech features from the speech to be detected to obtain multiple feature frames.
[0064] Extract speech features from the speech to be detected for subsequent judgment. The speech features can be power-normalized cepstral coefficients (PNCC) features, Mel-Frequency Cepstral Coefficients (MFCC) features, filter bank (FilterBank, Fblank) features, etc. The stride scale of feature extraction is frame, and feature extraction is performed frame by frame to obtain multiple features with a length of frame.
[0065] Step S102, calculating the speech likelihood value between the pre-trained speech model and each of the feature frames, and calculating the non-speech likelihood value between the pre-trained non-speech model and each of the feature frames.
[0066] Before endpoint detection, the non-speech model is trained with background data, and the speech model is trained with speech data. Speech data refers to the speech data of the target person to be detected, while background data refers to other speech data that does not contain the speech of the target person to be detected, such as other people's voices, car horns, birds, etc. The speech model and non-speech model can be obtained by training the initial model with background data and speech data. The initial model is a probability model in various forms such as Euler model, Laplace model, Gaussian model. Based on the background data and speech data, different models select corresponding training methods to obtain speech models and non-speech models that can be used for endpoint detection. At this time, the trained speech model and non-speech model respectively represent the feature distribution between the trained speech data and background data.
[0067] The speech likelihood values between the feature frames and the speech model are calculated one by one. The larger the speech likelihood value is, the closer the distribution of the feature frame is to the distribution of the speech model.
[0068] The non-speech likelihood values between the feature frames and the non-speech model are calculated one by one. The larger the non-speech likelihood value is, the closer the distribution of the feature frame is to the distribution of the non-speech model.
[0069] Step S103: Calculate the signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value.
[0070] Based on the speech likelihood value and the non-speech likelihood value calculated in step S102 above, the signal-to-noise likelihood ratio of each feature frame can be calculated. The signal-to-noise likelihood ratio represents the ratio between the signal likelihood and the noise likelihood of the frame, and the value indicates whether the frame is more inclined to a signal (i.e., speech) or more inclined to noise (i.e., non-speech). In one embodiment of the present application, the signal-to-noise likelihood ratio of the feature frame is obtained by directly dividing the speech likelihood value of the feature frame by the non-speech likelihood value of the feature frame.
[0071] Step S104: determining, based on the signal-to-noise likelihood ratio, whether each of the feature frames corresponds to a frame in the to-be-detected speech as a speech frame or a non-speech frame.
[0072] Based on the signal-to-noise likelihood ratio of each feature frame obtained in the above step S103, when the signal-to-noise likelihood ratio of the feature frame is greater than the preset threshold, it can be determined that the frame in the original speech to be detected corresponding to the feature frame is a speech frame; when the signal-to-noise likelihood ratio of the feature frame is less than the preset threshold, it can be determined that the frame in the original speech to be detected corresponding to the feature frame is a non-speech frame.
[0073] In one embodiment of the present application, the threshold is 1, and the frame in the speech to be detected corresponding to the signal-to-noise likelihood ratio of the feature frame being greater than 1 is a speech frame, otherwise it is a non-speech frame.
[0074] Step S105: adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames.
[0075] like Figure 2 The adaptive updating step is as follows: S1501, all speech frames are spliced together to obtain speech segments, and all non-speech frames are spliced together to obtain non-speech segments. At this time, since each segment is synthesized only by speech or non-speech, the segment can be considered to be single. In one embodiment of the present application, all speech frames are not spliced into one speech segment, but speech frames are spliced into several speech segments with a length of 3-5s. Similarly, all non-speech frames are spliced into several non-speech segments with a length of 3-5s.
[0076] The speech model is adaptively updated using the concatenated speech segments, and the non-speech model is adaptively updated using the concatenated non-speech segments.
[0077] S10502. Use the concatenated speech segments to perform a first update on the speech model, and use the concatenated non-speech segments to perform a first update on the non-speech model.
[0078] It should be noted that since the speech model and non-speech model of the present application can be trained by selecting different initial models, the specific algorithms and processes for implementing updates corresponding to the speech models and non-speech models that select different initial models will also be different.
[0079] S10503. Calculate the speech likelihood value of each of the feature frames using the speech model after the first update, and calculate the speech non-speech likelihood value of each of the feature frames using the non-speech model after the first update.
[0080] S10504. Determine whether the conditions are met, if not, continue to execute the update steps; if yes, exit the update.
[0081] In one embodiment of the present application, the updating step to be continued includes:
[0082] S10505. Calculate a new round of signal-to-noise likelihood ratio of speech for each feature frame based on the speech likelihood value and the non-speech likelihood value.
[0083] S10506: Based on the new round of signal-to-noise likelihood ratio, determine whether each feature frame in the speech to be detected is a speech frame or a non-speech frame, and after the determination is completed, jump to step S1501.
[0084] After the above-mentioned speech model and non-speech model are adaptively updated in step S105.
[0085] Step S106: Use the updated speech model and the updated non-speech model to respectively calculate a final speech likelihood value and a final non-speech likelihood value of each of the feature frames.
[0086] The speech likelihood value of each feature frame is calculated for the last time using the adaptively updated speech model, and the non-speech likelihood value of each feature frame is calculated for the last time using the adaptively updated non-speech model.
[0087] Step S107: Calculate a final signal-to-noise likelihood ratio of each of the feature frames based on the final speech likelihood value and the final non-speech likelihood value, and detect the endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio.
[0088] Based on the final speech likelihood value and the final non-speech likelihood value calculated in step S106 above, the signal-to-noise likelihood ratio of each feature frame can be calculated, and based on the signal-to-noise likelihood ratio, it is determined for the last time whether the frame corresponding to each feature frame in the speech to be detected is a speech frame or a non-speech frame.
[0089] Based on the distribution of speech frames and non-speech frames obtained in the last judgment, the endpoint of the speech to be detected can be detected.
[0090] The above-mentioned speech endpoint detection method extracts speech features from the speech to be detected to obtain multiple feature frames; calculates the speech likelihood value between a pre-trained speech model and each of the feature frames and calculates the non-speech likelihood value between a pre-trained non-speech model and each of the feature frames; calculates the signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value; determines whether each of the feature frames corresponding to the frame in the speech to be detected is a speech frame or a non-speech frame based on the signal-to-noise likelihood ratio; adaptively updates the speech model based on all the speech frames and adaptively updates the non-speech model based on all the non-speech frames; uses the updated speech model and the updated non-speech model to respectively calculate the final speech likelihood value and the final non-speech likelihood value of each of the feature frames; calculates the final signal-to-noise likelihood ratio of each of the feature frames based on the final speech likelihood value and the final non-speech likelihood value, and detects the endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio. By adaptively training two types of classification models, speech and non-speech, the speech endpoint detection method and device can adapt to scenes with excessive noise, and can also improve the accuracy of speech endpoint detection.
[0091] In an optional embodiment of the present application, for the adaptive updating performed in step S105, the speech model is adaptively updated based on all the speech frames, and the non-speech model is adaptively updated based on all the non-speech frames, including:
[0092] When the conditions are met, stopping the adaptive updating of the speech model and the non-speech model;
[0093] The conditions include at least one of the following:
[0094] Until the result of the signal-to-noise likelihood ratio of the feature frame is stable;
[0095] Until the update error of the speech model or the non-speech model is less than a preset threshold.
[0096] In an optional embodiment of the present application, in step S102, calculating the speech likelihood value between the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value between the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithms comprising:
[0097] Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
[0098] In an optional embodiment of the present application, the method further includes:
[0099] Acquiring training data, wherein the training data includes non-speech data and speech data;
[0100] Using the non-speech data to train a first preset Gaussian mixture model to obtain the non-speech model;
[0101] Using the speech data to train a second preset Gaussian mixture model to obtain the speech model;
[0102] Adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames, wherein the adaptive updating algorithm includes any one of the following:
[0103] Maximum a posteriori probability MAP, maximum likelihood linear regression MLLR.
[0104] The algorithms used for adaptive updating in the non-speech model based on Gaussian mixture model and the speech model based on Gaussian mixture model may be maximum a posteriori probability MAP, maximum likelihood linear regression MLLR, etc.
[0105] In an optional embodiment of the present application, Figure 3 In step S101, voice feature extraction is performed on the voice to be detected, including:
[0106] In one embodiment of the present application, MFCC features of the speech to be detected are extracted, and the feature extraction step includes:
[0107] Step S301, pre-emphasize the speech to be detected, enhance the high frequency part of the speech to be detected, and obtain the pre-emphasized speech to be detected. By pre-emphasizing the speech to be detected to enhance the high frequency part, the spectrum of the signal becomes flat and remains in the entire frequency band from low frequency to high frequency, and the spectrum can be obtained with the same signal-to-noise ratio.
[0108] Step S302, dividing the pre-emphasized speech to be detected into a plurality of initial speech frames. The speech to be detected is divided according to a certain length to obtain a plurality of frames of speech. The speech here does not specifically refer to human speech, but generally refers to any sound recorded in the speech with detection, that is, the speech frame here generally refers to the frame of sound. The speech signal is a non-steady-state, time-varying signal. However, within a short time range, the speech signal can be considered to be steady-state and temporarily unchanged. Therefore, when processing the speech signal, in order to reduce the non-steady-state and time-varying effects of the speech signal as a whole, the speech signal is segmented, and each segment is called a frame. Furthermore, the length of the frame in the feature frame, the speech frame or the non-speech frame is 20ms. The speech to be detected is divided into a plurality of frames based on a scale of 20ms, and the frame lengths of the subsequent feature frames, speech frames, and non-speech frames will not change and are the same as the lengths of the previously divided frames.
[0109] Furthermore, among the multiple initial speech frames, there is no overlap between any two adjacent initial speech frames. Because speech and noise are usually unrelated to the previous and next frames, there is no need to overlap, thereby reducing the amount of calculation. The time difference between the starting positions of two adjacent frames is called frame shift, and the frame shift value is generally 10ms in use.
[0110] Observation is performed in frames, and there are different numbers of sampling points in a frame according to the frame length and sampling frequency. In one embodiment of the present application, for an audio sampled at 16000 Hz and with a frame length of 20 ms, there are 16000×0.020=320 points in a frame length, so a frame is also referred to as an observation unit composed of N sampling points, and a frame shift has 16000×0.010=160 points.
[0111] Step S303: Multiply each of the initial speech frames by a Hamming window to obtain an intermediate processed signal. Each frame is multiplied by a Hamming window to increase the continuity of the left and right ends of the frame.
[0112] Step S304: Perform fast Fourier transform on the intermediate processed signal to obtain the frequency spectrum and energy distribution of the speech frame.
[0113] The frequency spectrum and energy distribution of each frame are obtained by performing fast Fourier transform on each frame signal after frame division and windowing.
[0114] Step S305: Filter the energy spectrum through a set of Mel-scale triangular filter banks to smooth the spectrum of the speech frame. The Mel filter bank smoothes the spectrum by passing the energy spectrum through a set of Mel-scale triangular filter banks, eliminates the effect of harmonics, and highlights the formant of the original speech.
[0115] Step S306: Calculate the logarithmic energy of each triangular filter group output, obtain Mel-frequency Cepstrum (MFCC) coefficients by discrete cosine transform (DCT) of the logarithmic energy, and use the Mel-frequency Cepstrum (MFCC) coefficients as the speech features.
[0116] Based on the same inventive concept, an embodiment of the present application provides a speech endpoint detection device. Figure 4 , Figure 4 Schematic diagram of a speech endpoint detection device proposed in one embodiment of the present application. Figure 4 As shown, the device comprises:
[0117] The feature extraction module 401 is used to extract speech features from the speech to be detected to obtain multiple feature frames;
[0118] A speech likelihood value calculation module 402 is used to calculate the speech likelihood value of the pre-trained speech model and each of the feature frames;
[0119] The non-speech likelihood value calculation module 403 is used to calculate the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames;
[0120] A signal-to-noise likelihood ratio calculation module 404, configured to calculate the signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value;
[0121] A speech frame determination module 405 is used to determine whether each of the feature frames corresponding to the frame in the speech to be detected is a speech frame or a non-speech frame based on the signal-to-noise likelihood ratio;
[0122] An adaptive updating module 406, configured to adaptively update the speech model based on all the speech frames, and adaptively update the non-speech model based on all the non-speech frames;
[0123] An endpoint detection module 407 is used to calculate a final signal-to-noise likelihood ratio of each of the feature frames based on the final speech likelihood value and the final non-speech likelihood value, and detect the endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio;
[0124] The updated speech model and the updated non-speech model are used to respectively calculate the final speech likelihood value and the final non-speech likelihood value of each of the feature frames.
[0125] In an optional embodiment of the present application, the adaptive update module includes:
[0126] A condition matching submodule, used for stopping the adaptive update of the speech model and the non-speech model when a condition is met;
[0127] The conditions include at least one of the following:
[0128] Until the result of the signal-to-noise likelihood ratio of the feature frame is stable;
[0129] Until the update error of the speech model or the non-speech model is less than a preset threshold.
[0130] In an optional embodiment of the present application, in the speech likelihood value calculation module and the non-speech likelihood value calculation module, calculating the speech likelihood value of the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithm comprising:
[0131] Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
[0132] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0133] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0134] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0138] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0139] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal 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 terminal device including the elements.
[0140] The above is a detailed introduction to a voice endpoint detection method and device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, based on the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A speech endpoint detection method, It is characterized in that The method comprises: Extract speech features from the speech to be detected to obtain multiple feature frames; Calculating a speech likelihood value between a pre-trained speech model and each of the feature frames and calculating a non-speech likelihood value between a pre-trained non-speech model and each of the feature frames; Calculating a signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value; Determine, based on the signal-to-noise likelihood ratio, whether each of the feature frames corresponds to a frame in the to-be-detected speech as a speech frame or a non-speech frame; Adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames; Using the updated speech model and the updated non-speech model to respectively calculate a final speech likelihood value and a final non-speech likelihood value of each of the feature frames; Calculating a final signal-to-noise likelihood ratio of each of the feature frames based on the final speech likelihood value and the final non-speech likelihood value, and detecting the endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio; The speech feature extraction of the speech to be detected comprises: Pre-emphasize the speech to be detected to enhance the high frequency part of the speech to be detected, and obtain the pre-emphasized speech to be detected; Dividing the pre-emphasized speech to be detected into a plurality of initial speech frames; Multiplying each of the initial speech frames by a Hamming window to obtain an intermediate processed signal; Performing a fast Fourier transform on the intermediate processed signal to obtain a frequency spectrum and energy distribution of the speech frame; Filtering the energy spectrum by a set of Mel-scale triangular filter banks to smooth the frequency spectrum of the speech frame; Calculate the logarithmic energy of each triangular filter group output, obtain Mel-frequency Cepstrum (MFCC) coefficients by discrete cosine transform (DCT) of the logarithmic energy, and use the Mel-frequency Cepstrum (MFCC) coefficients as the speech features; The adaptively updating the speech model based on all the speech frames, and the adaptively updating the non-speech model based on all the non-speech frames, comprises: When the conditions are met, stopping the adaptive updating of the speech model and the non-speech model; The conditions include at least one of the following: Until the result of the signal-to-noise likelihood ratio of the feature frame is stable; Until the update error of the speech model or the non-speech model is less than a preset threshold; The method further comprises: Before performing endpoint detection, the speech model is trained using speech data, and the non-speech model is trained using background data; the speech data is the speech data of the target person to be detected, and the background data is the speech data other than the speech of the target person to be detected; the background data includes the speech of other people other than the target person.
2. The method according to claim 1, It is characterized in that Calculating the speech likelihood value between the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value between the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithm comprising: Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
3. The method according to claim 1, It is characterized in that The method further comprises: Acquiring training data, wherein the training data includes non-speech data and speech data; Using the non-speech data to train a first preset Gaussian mixture model to obtain the non-speech model; Using the speech data to train a second preset Gaussian mixture model to obtain the speech model; Adaptively updating the speech model based on all the speech frames, and adaptively updating the non-speech model based on all the non-speech frames, wherein the adaptive updating algorithm includes any one of the following: Maximum a posteriori probability MAP, maximum likelihood linear regression MLLR.
4. The method according to claim 1, It is characterized in that The length of a frame in the feature frame, the speech frame or the non-speech frame is 20 ms.
5. The method according to claim 1, It is characterized in that Among the multiple initial speech frames, there is no overlap between any two adjacent initial speech frames.
6. A speech endpoint detection device, It is characterized in that The device comprises: A feature extraction module is used to extract speech features from the speech to be detected to obtain multiple feature frames; A speech likelihood value calculation module, used to calculate the speech likelihood value of the pre-trained speech model and each of the feature frames; A non-speech likelihood value calculation module, used to calculate the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames; A signal-to-noise likelihood ratio calculation module, configured to calculate the signal-to-noise likelihood ratio of each of the feature frames based on the speech likelihood value and the non-speech likelihood value; A speech frame judgment module, used for judging whether each of the feature frames corresponding to the frame in the speech to be detected is a speech frame or a non-speech frame based on the signal-to-noise likelihood ratio; An adaptive updating module, configured to adaptively update the speech model based on all the speech frames, and adaptively update the non-speech model based on all the non-speech frames; An endpoint detection module, configured to calculate a final signal-to-noise likelihood ratio of each of the feature frames based on a final speech likelihood value and a final non-speech likelihood value, and detect an endpoint of the speech to be detected based on the final signal-to-noise likelihood ratio; wherein the final speech likelihood value and the final non-speech likelihood value of each of the feature frames are calculated using the updated speech model and the updated non-speech model respectively; The speech feature extraction of the speech to be detected comprises: Pre-emphasize the speech to be detected to enhance the high frequency part of the speech to be detected, and obtain the pre-emphasized speech to be detected; Dividing the pre-emphasized speech to be detected into a plurality of initial speech frames; Multiplying each of the initial speech frames by a Hamming window to obtain an intermediate processed signal; Performing a fast Fourier transform on the intermediate processed signal to obtain a frequency spectrum and energy distribution of the speech frame; Filtering the energy spectrum by a set of Mel-scale triangular filter banks to smooth the frequency spectrum of the speech frame; Calculate the logarithmic energy of each triangular filter group output, obtain Mel-frequency Cepstrum (MFCC) coefficients by discrete cosine transform (DCT) of the logarithmic energy, and use the Mel-frequency Cepstrum (MFCC) coefficients as the speech features; The adaptive update module comprises: A condition matching submodule, used for stopping the adaptive update of the speech model and the non-speech model when a condition is met; The conditions include at least one of the following: Until the result of the signal-to-noise likelihood ratio of the feature frame is stable; Until the update error of the speech model or the non-speech model is less than a preset threshold; The speech endpoint detection device is also used to train a speech model using speech data and to train a non-speech model using background data before performing endpoint detection; the speech data is the speech data of a target person to be detected, and the background data is speech data other than the speech data of the target person to be detected; the background data includes the speech of other persons other than the target person.
7. The device according to claim 6, It is characterized in that In the speech likelihood value calculation module and the non-speech likelihood value calculation module, calculating the speech likelihood value of the pre-trained speech model and each of the feature frames and calculating the non-speech likelihood value of the pre-trained non-speech model and each of the feature frames are calculated by any of the following algorithms, the algorithm comprising: Maximum a posteriori probability algorithm, maximum likelihood estimation algorithm, and maximum expectation algorithm.
Citation Information
Patent Citations
End-point detecting method applied to speech identification system
CN101308653A
Real-time speech endpoint detection method and device
CN109545188A
Speaker-related end-to-end voice endpoint detection method and device
CN110136749A
Voice endpoint detection method and system
CN110648692A
Voice endpoint detection method and system based on deep learning
CN110706694A
