Speech feature processing method, speech recognition method, speech feature processing device, speech recognition device and electronic equipment

By identifying semantic frames and blank frames in the speech feature sequence, the key frame set is determined for encoding processing, which solves the problem of slow recognition rate caused by the unequal length of the input and output sequences in the Conformer model, and realizes adaptive compression and recognition of the speech feature sequence. Performance improvements.

CN118782020APending Publication Date: 2024-10-15DUXIAOMAN TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410983920.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In existing speech recognition technology, when the Conformer model processes speech feature sequences, the recognition rate is too slow due to the unequal lengths of the input and output sequences, and the existing down-sampling method cannot adaptively adjust the compression ratio, affecting the recognition effect and speed.

Method used

By identifying the semantic frames and blank frames in the speech feature sequence, and determining the key frame set according to their temporal relationship, adaptive coding processing is performed to reduce redundant information coding, thereby achieving faster processing speed.

Benefits of technology

While ensuring no loss of recognition performance, adaptive compression of the length of the speech feature sequence is achieved, improving processing speed and reducing unnecessary redundant feature processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118782020A_ABST
    Figure CN118782020A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a voice feature processing method and device, a voice recognition method and device and electronic equipment, and the method comprises the steps: carrying out the first coding processing of a first voice feature sequence, so as to obtain a second voice feature sequence; identifying a semantic frame and a blank frame in the second voice feature sequence; a key frame set in the second voice feature sequence is determined according to the sequential relationship between the blank frame and the semantic frame, and the key frame set at least comprises the semantic frame; and performing second coding processing on the key frame set to obtain a third voice feature sequence. According to the embodiment of the invention, the method can achieve the adaptive compression of the length of the voice feature sequence under the condition that the recognition performance is not lost, can reduce the coding of redundant information, and achieves a higher reasoning speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of speech recognition technology, and in particular to a speech feature processing method, a speech recognition method, a device and an electronic device. Background Art

[0002] Automatic Speech Recognition (ASR) is a technology that converts speech into text. Its goal is to automatically convert human speech into text using a computer. It is different from speaker recognition and speaker verification, which attempt to identify or verify the speaker of the speech rather than the words contained in it.

[0003] With the development of neural networks, speech generally adopts an end-to-end ASR system, using deep neural networks (DNN) to learn the complex relationship between audio signals and transcriptions. ASR systems in related technologies generally go through a pre-feature extraction module, an acoustic model, and a language model. The main task of the pre-feature extraction module is to extract features from the input signal for processing by the acoustic model. The acoustic model is used to extract acoustic features based on phonemes, characters, subwords, or words. The features are then passed through a language model to output text content with semantic information.

[0004] The front-end feature extraction method of the automatic speech recognition model generally uses filter banks (FBank) features. FBank features are generally obtained by framing, windowing, discrete Fourier transform, and then applying a Mel filter bank to the energy spectrum. The frame size is 25ms per frame, and the frame shift is 10ms. Therefore, the most practical frame length is equivalent to 10ms per frame. Taking 1s of audio as an example, the corresponding FBank feature dimension is 100×80, where 100 is the number of frames and 80 is the length of each frame. In the present disclosure, the number of frames is used as the sequence length of the speech feature, and the length of each frame is used as the FBank feature length. The FBank feature with a dimension of 100×80 is input into the acoustic model for encoding.

[0005] The model based on the Conformer (a hybrid network structure of CNN and Transformer) attention mechanism (referred to as the Conformer model) has become one of the most widely used models in speech recognition technology. The Conformer model combines the convolutional neural network (CNN) and the self-attention mechanism into one module, and forms an acoustic encoder by stacking multiple modules. Unlike the seq-to-seq type of model, the input and output sequence lengths of a type of model based on the attention mechanism encoding (attention-based encoder) are generally in a fixed ratio. If the model does not undergo a downsampling process, the model input sequence length is generally equal to the output sequence length. However, the length of the text is often much smaller than the length of the speech feature sequence. In order to align the input and output sequences, the model usually introduces blank characters to solve the problem of unequal input and output lengths. However, the computational budget and video memory consumption will increase quadratically with the length of the input sequence. This results in a slow recognition rate.

[0006] To alleviate this problem, the Conformer model adds a convolutional layer with a stride of 2 at the front end of the model, achieving four-fold downsampling, that is, the input sequence length is reduced to 1 / 4 of the original. In order to achieve a more efficient recognition rate, existing technologies usually adopt a more aggressive downsampling method to reduce the input sequence length exponentially. However, this method has a fixed compression rate and cannot be adaptively adjusted according to speech features. If the compression ratio is too large, the recognition effect will deteriorate, and if the compression ratio is too small, the inference speed will slow down. Summary of the invention

[0007] According to one aspect of an embodiment of the present disclosure, a speech feature processing method is provided, comprising: performing a first encoding process on a first speech feature sequence to obtain a second speech feature sequence; identifying semantic frames and blank frames in the second speech feature sequence; determining a key frame set in the second speech feature sequence based on a temporal relationship between blank frames and semantic frames, wherein the key frame set includes at least semantic frames; performing a second encoding process on the key frame set to obtain a third speech feature sequence.

[0008] In some embodiments, the above method also includes: determining the blank frame as an auxiliary frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame to obtain an auxiliary frame set; and merging the auxiliary frame set with the third speech feature sequence according to the timing of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

[0009] In some embodiments, the above-mentioned determining the key frame set in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame includes: according to the timing relationship between the blank frame and the semantic frame, taking the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame as the key frame set; according to the timing relationship between the blank frame and the semantic frame, determining the blank frame as an auxiliary frame in the second speech feature sequence to obtain the auxiliary frame set, including: according to the timing relationship between the blank frame and the semantic frame, taking the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence as the auxiliary frame set.

[0010] In some embodiments, the above-mentioned determining the key frame set in the second speech feature sequence according to the temporal relationship between the blank frames and the semantic frames includes: taking the semantic frames in the second speech feature sequence as the key frame set; the above-mentioned determining the blank frames in the second speech feature sequence as auxiliary frames according to the temporal relationship between the blank frames and the semantic frames to obtain the auxiliary frame set includes: taking the blank frames in the second speech feature sequence as the auxiliary frame set.

[0011] In some embodiments, a key frame set in the second speech feature sequence is determined based on the temporal relationship between the blank frame and the semantic frame, including: based on the temporal relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence, the blank frame adjacent to the right side of the semantic frame, and the blank frame adjacent to the left side of the semantic frame are taken as the key frame set.

[0012] In some embodiments, the above-mentioned determining the key frame set in the second speech feature sequence based on the temporal relationship between the blank frame and the semantic frame includes: according to the temporal relationship between the blank frame and the semantic frame, obtaining the key frame set by combining the semantic frame in the second speech feature sequence and the blank frame adjacent to the left side of the semantic frame.

[0013] In some embodiments, the above-mentioned determining the key frame set in the second speech feature sequence based on the temporal relationship between the blank frame and the semantic frame includes: according to the temporal relationship between the blank frame and the semantic frame, obtaining the key frame set by combining the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame.

[0014] In some embodiments, the above-mentioned first encoding processing of the first speech feature sequence to obtain the second speech feature sequence includes: using a first encoding module based on attention mechanism encoding to perform a first encoding processing on the first speech feature sequence to obtain the second speech feature sequence, wherein the number of frames of the second speech feature sequence is equal to that of the first speech feature sequence.

[0015] In some embodiments, the above-mentioned identification of semantic frames and blank frames in the second speech feature sequence includes: using a first decoding module to decode the second speech feature sequence to output a probability indicating that the speech feature belongs to a blank frame; if the probability of the speech feature in the second speech feature sequence is greater than or equal to a preset probability threshold, determining that the speech feature is a blank frame; if the probability of the speech feature in the second speech feature sequence is less than a preset probability threshold, determining that the speech feature is a semantic frame.

[0016] In some embodiments, the method further includes: using a first decoding module to decode the third speech feature sequence to output a first decoding result; and using a second decoding module to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0017] According to another aspect of an embodiment of the present disclosure, a speech recognition method is provided, comprising: using a first encoding module of a speech recognition model to perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence; using a first decoding module of the speech recognition model to decode the second speech feature sequence to output the probability that the speech features in the second speech feature sequence belong to a blank frame, and based on the probability, dividing the speech features in the second speech feature sequence into semantic frames and blank frames; determining a set of key frames in the second speech feature sequence according to a temporal relationship between blank frames and semantic frames, wherein the key frame set includes at least semantic frames; using a second encoding module of the speech recognition model to perform a second encoding process on the key frame set to obtain a third speech feature sequence; using the first decoding module to decode the third speech feature sequence to output a first decoding result; using the second decoding module of the speech recognition model to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0018] In some embodiments, the above method also includes: determining the blank frame as an auxiliary frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame to obtain an auxiliary frame set; merging the auxiliary frame set with the third speech feature sequence according to the timing of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence; wherein, the fourth speech feature sequence is decoded using a first decoding module to output a first decoding result; and the fourth speech feature sequence is decoded using a second decoding module based on the first decoding result to output a speech recognition result.

[0019] In some embodiments, before using the first encoding module of the speech recognition model to perform a first encoding process on the first speech feature sequence, it also includes: extracting features from the speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features; downsampling the feature extraction result to obtain a first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

[0020] In some embodiments, the first encoding module and / or the second encoding module includes an encoding block based on attention mechanism encoding.

[0021] According to another aspect of an embodiment of the present disclosure, a method for training a speech recognition model is provided, comprising: downsampling a training feature extraction result to obtain a first speech feature sequence; performing a first encoding process on the first speech feature sequence using a first encoding module of the speech recognition model to obtain a second speech feature sequence; decoding the second speech feature sequence using a first decoding module of the speech recognition model to output a probability that the speech features in the second speech feature sequence belong to a blank frame, dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability, and determining a first loss of the first decoding module; decoding the second speech feature sequence using a second decoding module of the speech recognition model, and determining a first loss of the second decoding module. The method comprises the steps of: determining a first loss of a block; determining a set of key frames in a second speech feature sequence according to a temporal relationship between blank frames and semantic frames, wherein the set of key frames includes at least semantic frames; performing a second encoding process on the set of key frames using a second encoding module to obtain a third speech feature sequence; decoding the third speech feature sequence using a first decoding module to output a first decoding result, and determining a second loss of the first decoding module; decoding the third speech feature sequence based on the first decoding result using a second decoding module to output a speech recognition result, and determining a second loss of the second decoding module; and updating the network parameters of the speech recognition model based on the first loss and the second loss of the first decoding module and the first loss and the second loss of the second decoding module.

[0022] In some embodiments, the above method also includes: determining the blank frame as an auxiliary frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame to obtain an auxiliary frame set; merging the auxiliary frame set with the third speech feature sequence according to the timing of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence; wherein, the fourth speech feature sequence is decoded using a first decoding module to output a first decoding result; and the fourth speech feature sequence is decoded using a second decoding module based on the first decoding result to output a speech recognition result.

[0023] According to another aspect of an embodiment of the present disclosure, a speech feature processing device is provided, comprising: a first encoding module, used to perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence; a classification module, used to identify semantic frames and blank frames in the second speech feature sequence; a determination module, used to determine a key frame set in the second speech feature sequence according to a temporal relationship between blank frames and semantic frames, wherein the key frame set includes at least semantic frames; and a second encoding module, used to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0024] According to another aspect of an embodiment of the present disclosure, a speech recognition device is provided, comprising: a first encoding module, used to perform a first encoding process on a first speech feature sequence using the first encoding module to obtain a second speech feature sequence; a classification module, used to decode the second speech feature sequence using the first decoding module to output the probability that the speech features in the second speech feature sequence belong to a blank frame, and based on the probability, the speech features in the second speech feature sequence are divided into semantic frames and blank frames; a determination module, used to determine a set of key frames in the second speech feature sequence according to a temporal relationship between blank frames and semantic frames, wherein the key frame set includes at least the semantic frame; a second encoding module, used to perform a second encoding process on the key frame set using the second encoding module to obtain a third speech feature sequence; a decoding module, used to decode the third speech feature sequence using the first decoding module to output a first decoding result; and use the second decoding module to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0025] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the method mentioned in the embodiment of the present disclosure.

[0026] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method mentioned in the embodiment of the present disclosure.

[0027] One or more technical solutions provided in the embodiments of the present disclosure perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence; identify semantic frames and blank frames in the second speech feature sequence; determine a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, the key frame set at least including the semantic frame; perform a second encoding process on the key frame set to obtain a third speech feature sequence. It is possible to adaptively compress the length of the speech feature sequence while ensuring that the recognition performance is not lost, and it is possible to reduce the encoding of redundant information, thereby achieving a faster processing speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0029] Figure 1 A schematic diagram showing an example system in which various methods described herein may be implemented according to an exemplary embodiment of the present disclosure;

[0030] Figure 2 A flow chart of a speech feature processing method provided by an exemplary embodiment of the present disclosure is shown;

[0031] Figure 3 A flowchart of another speech feature processing method provided by an exemplary embodiment of the present disclosure is shown;

[0032] Figure 4 A schematic diagram showing a key frame set and an auxiliary frame set according to an exemplary embodiment of the present disclosure is shown;

[0033] Figure 5 A schematic diagram showing another key frame set and an auxiliary frame set according to an exemplary embodiment of the present disclosure is shown;

[0034] Figure 6 A schematic diagram showing a key frame set according to an exemplary embodiment of the present disclosure is shown;

[0035] Figure 7 A schematic diagram showing another key frame set according to an exemplary embodiment of the present disclosure is shown;

[0036] Figure 8 A schematic diagram showing another key frame set according to an exemplary embodiment of the present disclosure is shown;

[0037] Fig. 9 A schematic block diagram of a speech recognition model according to an exemplary embodiment of the present disclosure is shown;

[0038] Fig.10 A flow chart of a speech recognition method according to an exemplary embodiment of the present disclosure is shown;

[0039] Fig.11 A flowchart of another speech recognition method according to an exemplary embodiment of the present disclosure is shown;

[0040] Fig.12 A flow chart showing a method for training a speech recognition model according to an exemplary embodiment of the present disclosure is shown;

[0041] Fig.13 A schematic block diagram of a speech feature processing device according to an exemplary embodiment of the present disclosure is shown;

[0042] Fig.14 A schematic block diagram of a speech recognition device according to an exemplary embodiment of the present disclosure is shown;

[0043] Fig.15 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0044] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0045] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0046] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0047] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0048] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0049] It should be noted that the execution subject of the speech feature processing method, speech recognition method, and method for training a speech recognition model provided in the embodiments of the present disclosure may be one or more electronic devices, and the present disclosure does not limit this; wherein, the electronic device may be a terminal (i.e., a client) or a server, then when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the speech feature processing method, speech recognition method, and method for training a speech recognition model provided in the embodiments of the present disclosure may be jointly executed by the terminal and the server. Accordingly, the terminals mentioned here may include, but are not limited to: smart phones, tablet computers, laptop computers, desktop computers, smart watches, smart voice interaction devices, smart home appliances, vehicle-mounted terminals, and the like. The server mentioned here may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, and the like.

[0050] Figure 1 A schematic diagram of an example system in which various methods described herein may be implemented according to an exemplary embodiment of the present disclosure is shown. Figure 1 As shown, the speech recognition system 100 may include: a feature extraction module 101, an acoustic module 102 and a language module 103. The main task of the front feature extraction module 101 is to extract features from the input speech signal for processing by the acoustic module 102. The acoustic module 102 is used to extract acoustic features with phonemes, characters, subwords or words as units, and its features are then processed by the language module 103 to output text content with semantic information, thereby realizing the conversion of the speech signal into the corresponding text. The feature extraction module 101 can extract features from the speech signal for processing by the acoustic module 102. The acoustic module 102 extracts acoustic features with phonemes, characters, subwords or words as units through an acoustic model. The features extracted by the acoustic module 102 are then processed by the language module 103, and the language module 103 outputs text content with semantic information through the language model.

[0051] In some embodiments, the feature extraction module 101 can extract FBank features. The feature extraction module 101 can obtain FBank features through framing, windowing, discrete Fourier transform, and then apply a Mel filter group on the energy spectrum. In the example, the frame size is 25ms per frame and the frame shift is 10ms. Therefore, the most practical frame length is equivalent to 10ms per frame. Taking 1s of audio as an example, the corresponding FBank feature dimension is 100×80, where 100 is the number of frames and 80 is the length of each frame. In the present disclosure, the number of frames is used as the sequence length of the speech feature, and the length of each frame is used as the FBank feature length. The FBank feature with a dimension of 100×80 is input into the acoustic model for encoding.

[0052] In some embodiments, the feature extraction module 101 can extract Mel frequency cepstral coefficient features (MFCC features for short). The feature extraction module 101 can frame and window the speech signal, process the speech signal into multiple frames, calculate the periodogram estimate of the power spectrum for each frame, apply the Mel filter bank to the power spectrum, calculate the energy of the filter bank, add the energy in each filter, take the logarithm of all filter bank energies, take the discrete cosine transform (DCT) of the logarithmic filter bank energy, keep DCT coefficients 2-13, and discard the rest to obtain MFCC features.

[0053] In the disclosed embodiment, the acoustic model and the language model may adopt a neural network model, and the two constitute a speech recognition model.

[0054] In some embodiments, the acoustic model includes a coding model, and the coding model may include a sequence-to-sequence coding model and a coding model based on attention mechanism coding. The coding model based on attention mechanism coding is different from the sequence-to-sequence model. The sequence lengths of the input and output of the model based on attention mechanism coding are generally in a fixed ratio. If the model does not undergo a downsampling process, the model input sequence length is generally equal to the output sequence length. However, the length of the text corresponding to the speech is often much smaller than the length of the speech feature sequence. In order to align the input and output sequences, the model usually introduces blank characters to solve the problem of unequal input and output lengths. However, the computational budget and video memory consumption will grow quadratically with the length of the input sequence. This results in a slow recognition rate.

[0055] In the embodiments of the present disclosure, the coding model may be a Conformer model (also referred to as a Conformer encoder), a Branchformer model (also referred to as a Branchformer encoder), a Zipformer model (also referred to as a Zipformer encoder), etc., which is not limited in the embodiments of the present disclosure. A Conformer encoder, a Branchformer encoder, and a Zipformer encoder may each include multiple (also referred to as multi-layer) coding blocks, and multiple coding blocks form a coding block sequence, which is encoded multiple times in sequence. The coding block structures of a Conformer encoder, a Branchformer encoder, and a Zipformer encoder are different, and details may be found in the related art.

[0056] In an embodiment of the present disclosure, the decoding model may include a continuous form of temporal data classification (Connectionist Temporal Classification, referred to as CTC) decoder and an attention-based decoder (Attention-based Decoder, referred to as AED decoder). The CTC decoder may be composed of a linear layer that converts the output of the encoding model into CTC activation. The AED decoder may be composed of multiple (also called multi-layer Transformer decoding blocks. The attention decoder re-scores the output of the CTC decoder.

[0057] The embodiment of the present disclosure provides a method for processing speech features. Figure 2 A flow chart of a speech feature processing method provided by an exemplary embodiment of the present disclosure is shown. Figure 2 As shown, the method includes steps S201 to S204.

[0058] Step S201: Perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence.

[0059] In some embodiments, feature extraction may be performed on a speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features. In some examples, the feature extraction result is used as a first speech feature sequence. In some examples, in order to increase processing speed, the feature extraction result is downsampled to obtain a first speech feature sequence, and the number of frames of the first speech feature sequence obtained by downsampling is less than the number of frames of the feature extraction result. Exemplarily, the speech feature may include an FBank feature.

[0060] In the embodiment of the present disclosure, the sequence lengths of the first speech feature sequence and the second speech feature sequence are equal, that is, the number of frames of the first speech feature sequence and the second speech feature sequence are equal.

[0061] Step S202: identifying semantic frames and blank frames in the second speech feature sequence.

[0062] Step S203: determining a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame.

[0063] Step S204: performing a second encoding process on the key frame set to obtain a third speech feature sequence.

[0064] In step S203, key frames are selected to obtain a key frame set, and in step S204, a second encoding process is performed on the key frames, and blank frames outside the key frame set are discarded.

[0065] In some implementations, the third voice feature sequence may be decoded to output a voice recognition result. In the disclosed embodiment, the voice recognition result refers to a text corresponding to the voice signal. In the disclosed embodiment, the third voice feature sequence may be decoded by a decoding module to output a voice recognition result.

[0066] The disclosed embodiment identifies semantic frames and blank frames, determines key frames according to the temporal relationship between blank frames and semantic frames, automatically adjusts the compression ratio, and reduces unnecessary redundant feature processing processes, that is, it can reduce unnecessary redundant feature processing in the second encoding module. If the speech signal contains a large amount of invalid speech content, or the speaker speaks too slowly, the semantic frame accounts for a small proportion, and determining a key frame set can achieve a larger compression ratio. If the recognized audio contains a small amount of silence, or the speaker speaks too fast, the interval between acoustic units is too short, and a large compression ratio will confuse the features of neighboring acoustic units, resulting in poor recognition effect. For short and fast audio, the semantic frame accounts for a large proportion, and determining a key frame set can achieve a smaller compression ratio. The disclosed embodiment can adaptively adjust the compression ratio according to the proportion of information content, and increase the compression ratio while ensuring performance.

[0067] Figure 3 A flowchart of another speech feature processing method provided by an exemplary embodiment of the present disclosure is shown. Figure 3 As shown, the method includes steps S301 to S306.

[0068] Step S301: Perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence.

[0069] In some embodiments, feature extraction may be performed on a speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features. In some examples, the feature extraction result is used as a first speech feature sequence. In some examples, in order to increase processing speed, the feature extraction result is downsampled to obtain a first speech feature sequence, and the number of frames of the first speech feature sequence obtained by downsampling is less than the number of frames of the feature extraction result. Exemplarily, the speech feature may include an FBank feature.

[0070] In the embodiment of the present disclosure, the sequence lengths of the first speech feature sequence and the second speech feature sequence are equal, that is, the number of frames of the first speech feature sequence and the second speech feature sequence are equal.

[0071] Step S302: identifying semantic frames and blank frames in the second speech feature sequence.

[0072] Step S303: determining a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame.

[0073] Step S304: According to the temporal relationship between the blank frames and the semantic frames, a blank frame in the second speech feature sequence is determined as an auxiliary frame to obtain an auxiliary frame set.

[0074] In the embodiment of the present disclosure, the execution order of step S303 and step S304 is not limited, and step S303 and step S304 may be executed simultaneously, or step S304 may be executed before step S303.

[0075] Step S305: perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0076] In the embodiment of the present disclosure, the third speech feature sequence and the number of frames of speech features included in the key frame set are equal.

[0077] Step S306: merging the auxiliary frame set and the third speech feature sequence according to the time sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

[0078] In some implementations, the auxiliary frames are used to segment consecutively repeated semantic frames so as to merge the repeated semantic frames during decoding, thereby preventing missing or wrong words from being decoded.

[0079] As an implementation method, refer to Figure 4As shown, in the above steps S303 and S304, according to the timing relationship between the blank frame and the semantic frame, the semantic frame in the second voice feature sequence and the blank frame adjacent to the right side of the semantic frame are used as a key frame set, and the blank frame adjacent to the left side of the semantic frame in the second voice feature sequence is used as an auxiliary frame set. The remaining blank frames are discarded. In this embodiment, in the above step S305, the semantic frame and the blank frame adjacent to the right side of the semantic frame are subjected to a second encoding process to obtain a third voice feature sequence. In the above step S306, according to the timing of the voice feature in the first voice feature sequence, the blank frame adjacent to the left side of the semantic frame in the second voice feature sequence is merged with the third voice feature sequence to obtain a fourth voice feature sequence. This embodiment can maximize the reduction of the feature sequence length (i.e., the number of frames of the voice feature) of the second encoding process and improve the encoding process speed. In addition, the blank frame adjacent to the left side of the semantic frame is used to segment the continuously repeated semantic frames so as to merge the repeated semantic frames during decoding to prevent the decoding of missing words or wrong words. At the same time, the remaining blank frames are discarded, which can reduce the length of the voice feature sequence for decoding processing and improve the decoding process speed.

[0080] As an implementation method, refer to Figure 5 As shown, in the above steps S303 and S304, the semantic frames in the second voice feature sequence are used as a key frame set, and the blank frames in the second voice feature sequence are used as an auxiliary frame set. In this embodiment, in the above step S305, the semantic frames are subjected to a second encoding process to obtain a third voice feature sequence. In the above step S306, the blank frames are merged with the third voice feature sequence according to the timing of the voice features in the first voice feature sequence to obtain a fourth voice feature sequence. This embodiment can maximize the reduction of the feature sequence length (i.e., the number of frames of the voice features) of the second encoding process and improve the encoding process speed. In addition, the blank frames are used to segment the continuously repeated semantic frames, and the repeated semantic frames are merged during decoding to prevent the decoding of missing words or wrong words.

[0081] As an implementation method, refer to Figure 6 As shown, in the above step S203, according to the temporal relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence, the blank frame adjacent to the right side of the semantic frame, and the blank frame adjacent to the left side of the semantic frame are used as a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty. The key frame set includes the blank frame adjacent to the right side of the semantic frame and the blank frame adjacent to the left side of the semantic frame, which can segment the continuously repeated semantic frames so as to merge the repeated semantic frames during decoding to prevent the decoding of missing words or wrong words.

[0082] As an implementation method, refer to Figure 7As shown, in the above step S203, according to the timing relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the left side of the semantic frame are obtained to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty. The key frame set includes the blank frame adjacent to the left side of the semantic frame, which can segment the continuous repeated semantic frames, so as to merge the repeated semantic frames during decoding, and prevent the decoding from missing words or wrong words.

[0083] As an implementation method, refer to Figure 8 As shown, in the above step S203, according to the temporal relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame are obtained to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty. The key frame set includes the blank frame adjacent to the right side of the semantic frame, which can segment the continuous repeated semantic frames, so as to merge the repeated semantic frames during decoding, and prevent the decoding from missing words or wrong words.

[0084] As an implementation mode, in the above step S201 and the above step S301, a first encoding module based on attention mechanism encoding is used to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence, wherein the number of frames of the second speech feature sequence is equal to that of the first speech feature sequence. The first encoding module may include M layers of encoding blocks, and the M layers of encoding blocks are connected in sequence to form a coding block sequence. Performing a first encoding process on the first speech feature sequence includes: inputting the first speech feature sequence into a coding block sequence composed of M layers of coding blocks, and using the coding block sequence to encode the first speech feature sequence in sequence to obtain a second speech feature sequence.

[0085] As an implementation mode, in the above steps S204 and S305, a second encoding module based on attention mechanism encoding is used to perform a second encoding process on the second speech feature sequence to obtain a third speech feature sequence. The second encoding module may include N layers of encoding blocks, and the N layers of encoding blocks are connected in sequence to form a sequence of encoding blocks. Performing a second encoding process on the second speech feature sequence includes: inputting the second speech feature sequence into a sequence of encoding blocks composed of N layers of encoding blocks, and using the sequence of encoding blocks to encode the second speech feature sequence in sequence to obtain a third speech feature sequence.

[0086] As an implementation method, in the above-mentioned steps S202 and S302, the first decoding module can be used to decode the second speech feature sequence to output the probability that the speech feature belongs to a blank frame; if the probability of the speech feature in the second speech feature sequence is greater than a preset probability threshold, the speech feature is determined to be a blank frame; if the probability of the speech feature in the second speech feature sequence is less than the preset probability threshold, the speech feature is determined to be a non-blank frame, that is, a semantic frame.

[0087] In some implementations, the third voice feature sequence or the fourth voice feature sequence may be decoded to output a voice recognition result.

[0088] As an implementation, the above step S204 may also include: using a first decoding module to decode the third speech feature sequence to output a first decoding result; using a second decoding module to decode the third speech feature sequence based on the first decoding result to output a speech recognition result. Exemplarily, the first decoding module is a CTC decoder, and the second decoding module is an AED decoder. The CTC decoder expands the sequence by introducing blank characters, and the AED decoder uses an attention mechanism to align the input acoustic features with the input predicted characters.

[0089] As an implementation, the above step S306 may further include: using a first decoding module to decode the fourth voice feature sequence to output a first decoding result; using a second decoding module to decode the fourth voice feature sequence based on the first decoding result to output a voice recognition result. Exemplarily, the first decoding module is a CTC decoder, and the second decoding module is an AED decoder.

[0090] Fig. 9 A structural block diagram of a speech recognition model provided by an exemplary embodiment of the present disclosure is shown. Fig. 9 As shown, the speech recognition model 900 includes: a first encoding module 901, a classification module 902, a second encoding module 903, a first decoding module 904 and a second decoding module 905.

[0091] The first encoding module 901 encodes the first speech feature sequence to output the second speech feature sequence. In the embodiment of the present disclosure, the first encoding module 901 is an encoder based on attention mechanism encoding. In some embodiments, the first encoding module 901 may include multiple Conformer encoding blocks, multiple Conformer encoding blocks are sequentially connected to form a Conformer encoding block sequence, and the Conformer encoding block sequence sequentially encodes the first speech feature sequence multiple times. In some embodiments, the first encoding module 901 may include multiple Branchformer encoding blocks, multiple Branchformer encoding blocks are sequentially connected to form a Branchformer encoding block sequence, and the Branchformer encoding block sequence sequentially encodes the first speech feature sequence multiple times. In some embodiments, the first encoding module 901 may include multiple Zipformer encoding blocks, multiple Zipformer encoding blocks are sequentially connected to form a Zipformer encoding block sequence, and the Zipformer encoding block sequence sequentially encodes the first speech feature sequence multiple times.

[0092] The classification module 902 is used to identify semantic frames and blank frames in the second speech feature sequence, and determine a key frame set in the second speech feature sequence according to the temporal relationship between the blank frames and the semantic frames, where the key frame set includes at least the semantic frames.

[0093] As an implementation mode, the classification module 902 uses the first decoding module 904 to decode the second speech feature sequence to output the probability that the speech feature belongs to a blank frame; if the probability of the speech feature in the second speech feature sequence is greater than or equal to the preset probability threshold, the speech feature is determined to be a blank frame; if the probability of the speech feature in the second speech feature sequence is less than the preset probability threshold, the speech feature is determined to be a non-blank frame, that is, a semantic frame. As an implementation mode, the classification module 902 marks the blank frame adjacent to the right side of the semantic frame (i.e., the preceding sequence adjacent in the time sequence) as a right blank frame, and marks the blank frame adjacent to the left side of the semantic frame (i.e., the following sequence adjacent in the time sequence) as a left blank frame according to the time sequence relationship between the blank frame and the semantic frame, thereby classifying the speech features into four types: semantic frame, left blank frame, right blank frame and blank frame.

[0094] The second encoding module 903 is used to encode the key frame set to output a third speech feature sequence. In the embodiment of the present disclosure, the second encoding module 903 can be an encoder based on attention mechanism encoding. In some embodiments, the second encoding module 903 may include multiple Conformer encoding blocks, multiple Conformer encoding blocks are sequentially connected to form a Conformer encoding block sequence, and the Conformer encoding block sequence sequentially encodes the key frame set multiple times. In some embodiments, the second encoding module 903 may include multiple Branchformer encoding blocks, multiple Branchformer encoding blocks are sequentially connected to form a Branchformer encoding block sequence, and the Branchformer encoding block sequence sequentially encodes the key frame set multiple times. In some embodiments, the second encoding module 903 may include multiple Zipformer encoding blocks, multiple Zipformer encoding blocks are sequentially connected to form a Zipformer encoding block sequence, and the Zipformer encoding block sequence sequentially encodes the key frame set multiple times.

[0095] The first decoding module 904 can decode the second speech feature sequence to output a probability indicating that the speech feature belongs to a blank frame. The first decoding module 904 and the second decoding module 905 can jointly decode the third speech feature sequence to output a speech recognition result. Exemplarily, the first decoding module 904 decodes the third speech feature sequence to output a first decoding result, and the second decoding module 905 decodes the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0096] In some embodiments, the speech recognition model 900 may further include a recovery module 906. The classification module 902 is also used to determine the blank frames in the second speech feature sequence as auxiliary frames according to the temporal relationship between the blank frames and the semantic frames to obtain an auxiliary frame set. The recovery module 906 may combine the auxiliary frame set and the third speech feature sequence according to the temporal sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence. The first decoding module 904 and the second decoding module 905 may jointly decode the fourth speech feature sequence to output a speech recognition result.

[0097] In some embodiments, the speech recognition model 900 may further include a downsampling layer 907. The downsampling layer 907 downsamples the feature extraction result of the speech signal to obtain a first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result. Exemplarily, the number of frames of the first speech feature sequence may be 1 / 2 or 1 / 4 of the number of frames of the feature extraction result.

[0098] As an implementation method, refer to Fig. 9 As shown, the first encoding module 901 may include M layers of Conformer encoding blocks, and the second encoding module 903 may include N layers of Conformer encoding blocks. The first decoding module 904 may include a CTC decoder, and the second decoding module 905 may include an AED decoder, and the AED decoder may include P Transformer decoding blocks. The downsampling layer 907 may include two convolutional layers with a stride of 2.

[0099] refer to Fig. 9 As shown, the downsampling layer 907 receives the feature extraction result X of the speech signal, and uses a two-layer convolution layer with a step size of 2 to perform convolution processing on the Xs feature extraction result X to obtain a first speech feature sequence Xs, and the sequence length of the first speech feature sequence Xs is 1 / 4 times the feature extraction result X. The M-layer Conformer encoding block (first encoding module 901) sequentially encodes the first speech feature sequence Xs to obtain a second speech feature sequence h1, and the formula is as follows:

[0100] h1=E1(Xs) (1)

[0101] Here, E1 represents the encoding process of the first encoding module 901 (M-layer Conformer encoding block).

[0102] The classification module 902 inputs the second speech feature sequence h1 into the CTC decoder, and the CTC decoder outputs the probability that each speech feature in the second speech feature sequence h1 belongs to a blank frame. The classification module 902 determines which are blank frames and semantic frames (i.e., non-blank frames) based on the probability, and optionally divides the second speech feature sequence h1 into three groups using different segmentation strategies: key frame set h1, key frame set h2, key frame set h3, key frame set h4, key frame set h5, key frame set h6, key frame set h7, key frame set h8, key frame set h9, key frame set h11, key frame set h12, key frame set h13, key frame set h14, key frame set h15, key frame set h26, key frame set h3, key frame set h4 1-c , auxiliary frame set h 1-t , discard the frame set h 1-i , the formula is as follows:

[0103] h 1-c ,h 1-t ,h 1-i = Split(h1 | CTC(h1)) (2)

[0104] Keyframe set h 1-c The key frame set is mainly a semantic frame containing most of the information. The classification module 902 inputs the key frame set to the subsequent N-layer Conformer encoding block (i.e., the second encoding module 903). The N-layer Conformer encoding block processes the key frame set h 1-c Perform encoding processing to obtain the third speech feature sequence h 2-c , the formula is as follows:

[0105] h 2-c = E2(h 1-c ) (3)

[0106] Here, E2 represents the encoding process of the second encoding module 903 (N-layer Conformer encoding block).

[0107] The auxiliary frame is used to segment the continuous repeated semantic frames so as to merge the repeated semantic frames during decoding to prevent missing or wrong words from being decoded. 1-t It is mainly a blank frame adjacent to the semantic frame, which plays a role in assisting the subsequent CTC decoding. 1-t It can segment the continuous repeated semantic frames, so that when CTC is decoding, it can merge the repeated semantic frames to prevent the occurrence of missing or wrong words in decoding. 1-t The semantic information that does not contain is not important in subsequent calculations. The recovery module 906 converts the auxiliary frame set h 1-t and the third speech feature sequence h 2-c , according to the time sequence arrangement of the first speech feature sequence h1 as the encoding output, the fourth speech feature sequence h2 is obtained, the formula is as follows:

[0108] h2 = Recover(h 2-c ) (4)

[0109] Here, Recover represents the merge processing of the recovery module 906.

[0110] Discarded frame set h 1-i Does not participate in subsequent encoding and decoding.

[0111] As an example, the input Fbank feature dimension is 80 and the feature sequence length is 100. In the frequency domain feature space, the data augmentation method is used. The speech recognition model contains 12 layers of Conformer encoding blocks and 6 layers of transformer decoding blocks. The feature dimension length of the attention layer of the encoding block and the decoding block is 256, and the number of heads is 4. The dimension of the fully connected layer is 2048. For Chinese recognition, M=5, that is, the first encoding module includes 5 Conformer encoding blocks; N=7, that is, the second encoding module includes 7 Conformer encoding blocks; the convolution kernel size in the first encoding module is 15, and the convolution kernel size in the second encoding module is 5. For English recognition, M=6, that is, the first encoding module includes 6 Conformer encoding blocks; N=6, that is, the second encoding module includes 6 Conformer encoding blocks, the convolution kernel size in the first encoding module is 31, and the convolution kernel size in the second encoding module is 9.

[0112] According to an embodiment of the present disclosure, a speech recognition method is also provided. The method can be performed as follows: Fig. 9 The speech recognition model shown performs speech recognition.

[0113] Fig.10 A flow chart of a speech recognition method according to an exemplary embodiment of the present disclosure is shown. Fig.10 As shown, the method includes steps S1001 to S1007.

[0114] Step S1001: Use a first encoding module of a speech recognition model to perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence.

[0115] In some embodiments, before using the first encoding module to perform a first encoding process on the first speech feature sequence, it also includes: performing feature extraction on the speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features; downsampling the feature extraction result to obtain a first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

[0116] Step S1002: Use the first decoding module of the speech recognition model to decode the second speech feature sequence to output the probability that the speech features in the second speech feature sequence belong to a blank frame.

[0117] Step S1003: dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability.

[0118] Step S1004: determining a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame.

[0119] As an implementation method, refer to Figure 6 As shown, according to the temporal relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence, the blank frame adjacent to the right side of the semantic frame, and the blank frame adjacent to the left side of the semantic frame are used as the key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0120] As an implementation method, refer to Figure 7 As shown, according to the time sequence relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the left side of the semantic frame are used to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0121] As an implementation method, refer to Figure 8 As shown, according to the time sequence relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame are used to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0122] Step S1005: Use the second encoding module of the speech recognition model to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0123] Step S1006: Use the first decoding module to decode the third speech feature sequence to output a first decoding result.

[0124] Step S1007: Use the second decoding module of the speech recognition model to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0125] Fig.11 A flow chart of a speech recognition method according to an exemplary embodiment of the present disclosure is shown. Fig.11 As shown, the method includes steps S1101 to S1109.

[0126] Step S1101: Use a first encoding module of a speech recognition model to perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence.

[0127] In some embodiments, before using the first encoding module to perform a first encoding process on the first speech feature sequence, it also includes: performing feature extraction on the speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features; downsampling the feature extraction result to obtain a first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

[0128] Step S1102: Use the first decoding module of the speech recognition model to decode the second speech feature sequence to output the probability that the speech features in the second speech feature sequence belong to a blank frame.

[0129] Step S1103: dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability.

[0130] Step S1104: determining a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame.

[0131] Step S1105: According to the temporal relationship between the blank frames and the semantic frames, a blank frame in the second speech feature sequence is determined as an auxiliary frame to obtain an auxiliary frame set.

[0132] In some implementations, the auxiliary frames are used to segment consecutively repeated semantic frames so as to merge the repeated semantic frames during decoding, thereby preventing missing or wrong words from being decoded.

[0133] Step S1106: Use the second encoding module of the speech recognition model to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0134] Step S1107: merging the auxiliary frame set and the third speech feature sequence according to the time sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

[0135] As an implementation method, refer to Figure 4 As shown, in the above steps S1104 and S1105, according to the timing relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame are used as a key frame set, and the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence is used as an auxiliary frame set. The remaining blank frames are discarded. In this embodiment, step S1107 merges the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence with the third speech feature sequence according to the timing of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

[0136] As an implementation method, refer to Figure 5As shown, in the above steps S1104 and S1105, the semantic frames in the second speech feature sequence are used as a key frame set, and the blank frames in the second speech feature sequence are used as an auxiliary frame set. In this embodiment, step S1107 merges the blank frames with the third speech feature sequence according to the time sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

[0137] Step S1108: Use the first decoding module to decode the fourth speech feature sequence to output a first decoding result.

[0138] Step S1109: Use the second decoding module of the speech recognition model to decode the fourth speech feature sequence based on the first decoding result to output a speech recognition result.

[0139] According to an embodiment of the present disclosure, a method for training a speech recognition model is also provided. The method can train Fig. 9 The speech recognition model shown.

[0140] Fig.12 A flow chart of a method for training a speech recognition model according to an exemplary embodiment of the present disclosure is shown. Fig.12 As shown, the method includes steps S1201 to S1210.

[0141] Step S1201, downsampling the training feature extraction result to obtain a first speech feature sequence. The number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

[0142] Before step S1201, feature extraction may be performed on the training speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features.

[0143] Step S1202: Use a first encoding module of a speech recognition model to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence.

[0144] Step S1203: Use the first decoding module of the speech recognition model to decode the second speech feature sequence to output the probability that the speech features in the second speech feature sequence belong to the blank frame, and determine the first loss of the first decoding module.

[0145] It is possible to pre-mark whether the speech feature in the training feature extraction result is a blank frame. In step S1203, the first loss of the first decoding module is determined based on the probability of the first decoding module decoding and outputting the second speech feature sequence and the mark.

[0146] Step S1204: decode the second speech feature sequence using a second decoding module of the speech recognition model, and determine a first loss of the second decoding module.

[0147] The text corresponding to the training feature extraction result may be marked in advance. In step S1203, the first loss of the second decoding module is determined based on the output of the second decoding module decoding the second speech feature sequence and the text.

[0148] Step S1205: dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability.

[0149] Step S1206: determining a key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame.

[0150] As an implementation method, refer to Figure 6 As shown, according to the temporal relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence, the blank frame adjacent to the right side of the semantic frame, and the blank frame adjacent to the left side of the semantic frame are used as the key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0151] As an implementation method, refer to Figure 7 As shown, according to the time sequence relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the left side of the semantic frame are used to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0152] As an implementation method, refer to Figure 8 As shown, according to the time sequence relationship between the blank frame and the semantic frame, the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame are used to obtain a key frame set. The remaining blank frames are discarded. In this embodiment, the auxiliary frame set is empty.

[0153] Step S1207: Use a second encoding module to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0154] Step S1208: use the first decoding module to decode the third speech feature sequence to output a first decoding result, and determine a second loss of the first decoding module.

[0155] The text corresponding to the training feature extraction result may be pre-marked, and in step S1208, the second loss of the first decoding module is determined based on the output of the first decoding module decoding the third speech feature sequence and the text.

[0156] Step S1209: Use the second decoding module to decode the third speech feature sequence based on the first decoding result to output a speech recognition result, and determine a second loss of the second decoding module.

[0157] The text corresponding to the training feature extraction result may be pre-marked, and in step S1209, the second loss of the second decoding module is determined based on the output of the second decoding module decoding the third speech feature sequence and the text.

[0158] Step S1210, updating the network parameters of the speech recognition model based on the first loss and the second loss of the first decoding module and the first loss and the second loss of the second decoding module.

[0159] In some embodiments, the method further includes: determining the blank frames as auxiliary frames in the second speech feature sequence according to the timing relationship between the blank frames and the semantic frames to obtain an auxiliary frame set. Before step S1208, the method further includes: merging the auxiliary frame set with the third speech feature sequence according to the timing of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence. In the above step S1209, the fourth speech feature sequence is decoded using the first decoding module to output a first decoding result. In the above step S1210, the fourth speech feature sequence is decoded using the second decoding module based on the first decoding result to output a speech recognition result.

[0160] As an implementation method, refer to Figure 4 As shown, in the above step S1206, according to the timing relationship between the blank frame and the semantic frame, the semantic frame in the second voice feature sequence and the blank frame adjacent to the right side of the semantic frame are used as a key frame set, and the blank frame adjacent to the left side of the semantic frame in the second voice feature sequence is used as an auxiliary frame set. The remaining blank frames are discarded. In this embodiment, according to the timing of the voice features in the first voice feature sequence, the blank frame adjacent to the left side of the semantic frame in the second voice feature sequence is merged with the third voice feature sequence to obtain a fourth voice feature sequence.

[0161] As an implementation method, refer to Figure 5 As shown, in the above step S1206, the semantic frames in the second speech feature sequence are used as the key frame set, and the blank frames in the second speech feature sequence are used as the auxiliary frame set. In this embodiment, according to the time sequence of the speech features in the first speech feature sequence, the blank frames are merged with the third speech feature sequence to obtain a fourth speech feature sequence.

[0162] As an implementation mode, the total loss is determined in the above step S1210, and the network parameters of the speech recognition model are adjusted based on the total loss. Taking the first decoding module as a CTC decoder and the second decoding module as an AED decoder as an example, the formula is as follows:

[0163]

[0164] Among them, the superscript inter represents the loss function calculated by the output of the intermediate layer, the superscript final represents the loss function calculated by the output of the last layer; the subscript CTC represents the loss function of the CTC decoder, and the subscript AED represents the loss function of the AED decoder; α, λ1, and λ2 are hyperparameters; L represents the loss. Hyperparameters can be set to constants, for example, α = 0.3, λ1 = 0.5, and λ2 = 0.5.

[0165] According to an embodiment of the present disclosure, a speech feature processing device is also provided. Fig.13 As shown, the speech feature processing device includes: a first encoding module 1301, used to perform a first encoding process on a first speech feature sequence to obtain a second speech feature sequence; a classification module 1302, used to identify semantic frames and blank frames in the second speech feature sequence; according to the temporal relationship between the blank frames and the semantic frames, determine a key frame set in the second speech feature sequence, wherein the key frame set includes at least the semantic frame; a second encoding module 1303, used to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

[0166] In some implementations, the classification module 1302 is further configured to determine the blank frames in the second speech feature sequence as auxiliary frames according to the temporal relationship between the blank frames and the semantic frames, and obtain an auxiliary frame set. The speech feature processing device may also include: a recovery module 1304, configured to merge the auxiliary frame set with the third speech feature sequence according to the temporal sequence of the speech features in the first speech feature sequence, and obtain a fourth speech feature sequence.

[0167] In some implementations, the classification module 1302 is used to, based on the temporal relationship between the blank frame and the semantic frame, take the semantic frame in the second speech feature sequence and the blank frame adjacent to the right side of the semantic frame as a key frame set; based on the temporal relationship between the blank frame and the semantic frame, take the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence as an auxiliary frame set. The remaining blank frames are discarded.

[0168] In some implementations, the classification module 1302 is configured to use semantic frames in the second speech feature sequence as a key frame set, use blank frames in the second speech feature sequence as an auxiliary frame set, and discard the remaining blank frames.

[0169] In some implementations, the classification module 1302 is used to take the semantic frame in the second speech feature sequence, the blank frame adjacent to the right side of the semantic frame, and the blank frame adjacent to the left side of the semantic frame as a key frame set according to the temporal relationship between the blank frame and the semantic frame. In this implementation, the auxiliary frame set is empty. The remaining blank frames are discarded.

[0170] In some implementations, the classification module 1302 is used to obtain a key frame set from the semantic frame and the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame. In this implementation, the auxiliary frame set is empty. The remaining blank frames are discarded.

[0171] In some implementations, the classification module 1302 is used to obtain a key frame set from the semantic frame and the blank frame adjacent to the right side of the semantic frame in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame. In this implementation, the auxiliary frame set is empty. The remaining blank frames are discarded.

[0172] In some embodiments, the first encoding module 1301 is used to perform a first encoding process on the first speech feature sequence using a first encoding module based on attention mechanism encoding to obtain a second speech feature sequence, wherein the number of frames of the second speech feature sequence is equal to that of the first speech feature sequence.

[0173] In some embodiments, the classification module 1302 is used to decode the second speech feature sequence using the first decoding module to output a probability indicating that the speech feature belongs to a blank frame; if the probability of the speech feature in the second speech feature sequence is greater than a preset probability threshold, the speech feature is determined to be a blank frame.

[0174] In some embodiments, the speech feature processing device further includes: a decoding module for decoding the third speech feature sequence using the first decoding module to output a first decoding result; and decoding the third speech feature sequence based on the first decoding result using the second decoding module to output a speech recognition result.

[0175] In some embodiments, the classification module 1302 is further used to determine the blank frame as an auxiliary frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame, and obtain an auxiliary frame set. The speech feature processing device may also include: a recovery module 1304, which is used to merge the auxiliary frame set and the third speech feature sequence according to the timing of the speech feature in the first speech feature sequence to obtain a fourth speech feature sequence. A decoding module is used to decode the fourth speech feature sequence using the first decoding module to output a first decoding result; and decode the fourth speech feature sequence based on the first decoding result using the second decoding module to output a speech recognition result.

[0176] According to an embodiment of the present disclosure, a speech recognition device is also provided. Fig.14As shown, the speech recognition device includes: a first encoding module 1401, used to use the first encoding module of the speech recognition model to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence; a classification module 1402, used to use the first decoding module of the speech recognition model to decode the second speech feature sequence to output the probability that the speech features in the second speech feature sequence belong to the blank frame, and based on the probability, the speech features in the second speech feature sequence are divided into semantic frames and blank frames; according to the temporal relationship between the blank frame and the semantic frame, a key frame set in the second speech feature sequence is determined, wherein the key frame set includes at least the semantic frame; a second encoding module 1403, used to use the second encoding module of the speech recognition model to perform a second encoding process on the key frame set to obtain a third speech feature sequence; a decoding module 1404, used to use the first decoding module to decode the third speech feature sequence to output a first decoding result; and use the second decoding module of the speech recognition model to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

[0177] In some embodiments, the classification module 1402 is further used to determine the blank frame as an auxiliary frame in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame, and obtain an auxiliary frame set. The speech recognition device also includes: a recovery module 1405, which is used to merge the auxiliary frame set and the third speech feature sequence according to the temporal sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence. The decoding module 1404 is used to decode the fourth speech feature sequence using the first decoding module to output a first decoding result; and decode the fourth speech feature sequence based on the first decoding result using the second decoding module to output a speech recognition result.

[0178] In some embodiments, it also includes: a feature extraction module, used to extract features from a speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features; a downsampling module, used to downsample the feature extraction result using a downsampling layer of a speech recognition model to obtain a first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

[0179] In some embodiments, the first encoding module and / or the second encoding module of the speech recognition model includes an encoding block encoded based on an attention mechanism.

[0180] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the method mentioned in the embodiment of the present disclosure.

[0181] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method mentioned in the embodiment of the present disclosure.

[0182] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0183] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.

[0184] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.

[0185] refer to Fig.15 , a block diagram of an electronic device 1500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0186] like Fig.15 As shown, the electronic device 1500 includes a computing unit 1501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1502 or a computer program loaded from a storage unit 1508 into a random access memory (RAM) 1503. In the RAM 1503, various programs and data required for the operation of the electronic device 1500 can also be stored. The computing unit 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0187] Multiple components in the electronic device 1500 are connected to the I / O interface 1505, including: an input unit 1506, an output unit 1507, a storage unit 1508, and a communication unit 1509. The input unit 1506 can be any type of device that can input information to the electronic device 1500, and the input unit 1506 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 1507 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1508 can include but is not limited to a disk, an optical disk. The communication unit 1509 allows the electronic device 1500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0188] The computing unit 1501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1501 performs the various methods and processes described above. For example, in some embodiments, the method of the embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1500 via the ROM 1502 and / or the communication unit 1509. In some embodiments, the computing unit 1501 may be configured to perform the method of the embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0189] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0190] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0191] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0192] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0193] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0194] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A speech feature processing method, characterized in that: include: Performing a first encoding process on the first speech feature sequence to obtain a second speech feature sequence; Identifying semantic frames and blank frames in the second speech feature sequence; Determining a key frame set in the second speech feature sequence according to a temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame; A second encoding process is performed on the key frame set to obtain a third speech feature sequence.

2. The method according to claim 1, characterized in that Also includes: According to the temporal relationship between the blank frame and the semantic frame, determining the blank frame in the second speech feature sequence as an auxiliary frame to obtain an auxiliary frame set; The auxiliary frame set and the third speech feature sequence are combined according to the time sequence of the speech features in the first speech feature sequence to obtain a fourth speech feature sequence.

3. The method according to claim 2, characterized in that The step of determining the key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame comprises: according to the temporal relationship between the blank frame and the semantic frame, taking the semantic frame and the blank frame adjacent to the right side of the semantic frame in the second speech feature sequence as the key frame set; The method of determining blank frames as auxiliary frames in the second speech feature sequence according to the timing relationship between blank frames and semantic frames to obtain an auxiliary frame set includes: according to the timing relationship between blank frames and semantic frames, taking blank frames adjacent to the left side of the semantic frames in the second speech feature sequence as the auxiliary frame set.

4. The method according to claim 2, characterized in that Determining the key frame set in the second speech feature sequence according to the temporal relationship between the blank frame and the semantic frame includes: taking the semantic frame in the second speech feature sequence as the key frame set; Determining blank frames in the second speech feature sequence as auxiliary frames according to the temporal relationship between blank frames and semantic frames to obtain an auxiliary frame set includes: taking blank frames in the second speech feature sequence as an auxiliary frame set.

5. The method according to claim 1, characterized in that The method of determining the key frame set in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame includes: according to the timing relationship between the blank frame and the semantic frame, taking the semantic frame, the blank frame adjacent to the right side of the semantic frame and the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence as the key frame set.

6. The method according to claim 1, characterized in that The method of determining the key frame set in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame includes: obtaining the key frame set by combining the semantic frame and the blank frame adjacent to the left side of the semantic frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame.

7. The method according to claim 1, characterized in that The method of determining the key frame set in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame includes: obtaining the key frame set by combining the semantic frame and the blank frame adjacent to the right side of the semantic frame in the second speech feature sequence according to the timing relationship between the blank frame and the semantic frame.

8. The method according to claim 1, characterized in that The first encoding process is performed on the first speech feature sequence to obtain a second speech feature sequence, including: A first encoding module based on attention mechanism encoding is used to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence, wherein the number of frames of the second speech feature sequence is equal to that of the first speech feature sequence.

9. The method according to claim 1 or 2, characterized in that: The identifying of semantic frames and blank frames in the second speech feature sequence comprises: Decoding the second speech feature sequence using a first decoding module to output a probability indicating that the speech feature belongs to a blank frame; If the probability of the speech feature in the second speech feature sequence is greater than or equal to a preset probability threshold, determining that the speech feature is a blank frame; If the probability of the speech feature in the second speech feature sequence is less than the preset probability threshold, it is determined that the speech feature is a semantic frame.

10. The method according to claim 9, characterized in that Also includes: Decoding the third speech feature sequence using the first decoding module to output a first decoding result; The third speech feature sequence is decoded using a second decoding module based on the first decoding result to output a speech recognition result.

11. A speech recognition method, characterized in that: include: Using a first encoding module of a speech recognition model to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence; Decoding the second speech feature sequence using a first decoding module of a speech recognition model to output a probability that the speech features in the second speech feature sequence belong to a blank frame, and dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability; Determining a key frame set in the second speech feature sequence according to a temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame; Using a second encoding module of the speech recognition model to perform a second encoding process on the key frame set to obtain a third speech feature sequence; The first decoding module is used to decode the third speech feature sequence to output a first decoding result; and the second decoding module of the speech recognition model is used to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

12. The method according to claim 11, characterized in that Also includes: According to the temporal relationship between the blank frame and the semantic frame, determining the blank frame in the second speech feature sequence as an auxiliary frame to obtain an auxiliary frame set; According to the time sequence of the speech features in the first speech feature sequence, the auxiliary frame set and the third speech feature sequence are combined to obtain a fourth speech feature sequence; wherein the fourth speech feature sequence is decoded using the first decoding module to output the first decoding result; The fourth speech feature sequence is decoded using the second decoding module based on the first decoding result to output a speech recognition result.

13. The method according to claim 11 or 12, characterized in that Before using the first encoding module of the speech recognition model to perform a first encoding process on the first speech feature sequence, the method further includes: Performing feature extraction on the speech signal to obtain a feature extraction result, wherein the feature extraction result includes multiple frames of speech features; The feature extraction result is downsampled to obtain the first speech feature sequence, wherein the number of frames of the first speech feature sequence is less than the number of frames of the feature extraction result.

14. The method according to any one of claims 11 to 12, characterized in that The first encoding module and / or the second encoding module includes an encoding block based on attention mechanism encoding.

15. A method for training a speech recognition model, characterized in that: include: Downsampling the training feature extraction result to obtain a first speech feature sequence; Using the first encoding module of the speech recognition model to perform a first encoding process on the first speech feature sequence to obtain a second speech feature sequence; Decoding the second speech feature sequence using the first decoding module of the speech recognition model to output a probability that the speech features in the second speech feature sequence belong to a blank frame, dividing the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability, and determining a first loss of the first decoding module; Decoding the second speech feature sequence using a second decoding module of the speech recognition model, and determining a first loss of the second decoding module; Determining a key frame set in the second speech feature sequence according to a temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame; Using the second encoding module to perform a second encoding process on the key frame set to obtain a third speech feature sequence; Decoding the third speech feature sequence using the first decoding module to output a first decoding result, and determining a second loss of the first decoding module; Decoding the third speech feature sequence based on the first decoding result using the second decoding module to output a speech recognition result, and determining a second loss of the second decoding module; Based on the first loss and the second loss of the first decoding module and the first loss and the second loss of the second decoding module, the network parameters of the speech recognition model are updated.

16. The method according to claim 15, characterized in that Also includes: According to the temporal relationship between the blank frame and the semantic frame, determining the blank frame in the second speech feature sequence as an auxiliary frame to obtain an auxiliary frame set; According to the time sequence of the speech features in the first speech feature sequence, the auxiliary frame set and the third speech feature sequence are combined to obtain a fourth speech feature sequence; wherein the fourth speech feature sequence is decoded using the first decoding module to output the first decoding result; The fourth speech feature sequence is decoded using the second decoding module based on the first decoding result to output a speech recognition result.

17. A speech feature processing device, characterized in that: include: A first encoding module, used for performing a first encoding process on the first speech feature sequence to obtain a second speech feature sequence; A classification module, used for identifying semantic frames and blank frames in the second speech feature sequence; Determining a key frame set in the second speech feature sequence according to a temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame; The second encoding module is used to perform a second encoding process on the key frame set to obtain a third speech feature sequence.

18. A speech recognition device, characterized in that: include: A first encoding module, used for performing a first encoding process on the first speech feature sequence using the first encoding module of the speech recognition model to obtain a second speech feature sequence; a classification module, configured to decode the second speech feature sequence using the first decoding module of the speech recognition model to output a probability that the speech features in the second speech feature sequence belong to a blank frame, and classify the speech features in the second speech feature sequence into semantic frames and blank frames based on the probability; and determine a key frame set in the second speech feature sequence according to a temporal relationship between the blank frame and the semantic frame, wherein the key frame set includes at least the semantic frame; A second encoding module, configured to perform a second encoding process on the key frame set using a second encoding module of a speech recognition model to obtain a third speech feature sequence; A decoding module is used to use the first decoding module to decode the third speech feature sequence to output a first decoding result; and use a second decoding module of a speech recognition model to decode the third speech feature sequence based on the first decoding result to output a speech recognition result.

19. An electronic device comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 16.

20. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-16.