Real-time speech recognition method, model training method, device and equipment
By dividing the speech data into blocks to be recognized and reusing the processing results of historical blocks, the problem of large amount of calculation in encoding processing in the existing technology is solved, faster speech recognition is achieved, and the demand for real-time recognition is met.
Patent Information
- Application Number
- CN202210253123.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-03-15
AI Technical Summary
In existing real-time speech recognition technology, the coding process requires a large amount of calculation, resulting in a long delay in speech recognition, making it difficult to meet the needs of real-time recognition.
By dividing the target speech data into multiple blocks to be recognized, and reusing the processing results of the previous or previous historical blocks during the encoding process, the calculation amount of the encoding process is reduced and the recognition speed is improved.
It effectively reduces the delay of speech recognition, improves the efficiency of real-time speech recognition, and meets the needs of real-time recognition.
Smart Images

Figure CN114596841B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a real-time speech recognition method, model training method, device and equipment. Background Art
[0002] Speech recognition refers to the recognition of speech data provided by an object to obtain corresponding text data.
[0003] Speech recognition is generally divided into real-time speech recognition and non-real-time speech recognition. Non-real-time speech recognition means that the system recognizes after the subject has finished speaking a sentence or a paragraph, while real-time speech recognition means that the system recognizes while the subject is still speaking. In the real-time speech recognition scenario, recognition speed and latency often become bottlenecks for its actual implementation.
[0004] In the related art, an end-to-end real-time speech recognition solution is provided. By constructing a speech recognition model including an encoder and a decoder, the audio features of the speech data input by the object are input to the encoder, the encoder encodes it to obtain hidden features, and then the decoder decodes the hidden features to obtain the corresponding speech recognition results.
[0005] However, this method requires a lot of computation during the encoding process, resulting in a large delay in speech recognition. Summary of the invention
[0006] The embodiments of the present application provide a real-time speech recognition method, model training method, device and equipment, which can solve the technical problem that the related technology has a large amount of calculation in the encoding process, resulting in a large delay in speech recognition. The technical solution is as follows:
[0007] According to one aspect of an embodiment of the present application, a real-time speech recognition method is provided, the method comprising:
[0008] In the process of collecting target speech data, an audio feature sequence of a block to be recognized of the target speech data is obtained, wherein the block to be recognized includes at least two consecutive frames in the target speech data, and the audio feature sequence of the block to be recognized includes audio features of each frame included in the block to be recognized;
[0009] Multiplexing the processing results of the historical blocks corresponding to the block to be identified, encoding the audio feature sequence of the block to be identified, and obtaining the hidden layer feature sequence of the block to be identified, wherein the hidden layer feature sequence includes the hidden layer features of each frame included in the block to be identified; wherein the historical block refers to a block that has at least one overlapping frame with the block to be identified and has been encoded;
[0010] According to the hidden layer feature sequence, the real-time speech recognition result of the block to be recognized is obtained by decoding.
[0011] According to one aspect of an embodiment of the present application, a method for training a real-time speech recognition model is provided, the method comprising:
[0012] Acquire an audio feature sequence of sample speech data, wherein the audio feature sequence includes audio features of multiple frames of the sample speech data;
[0013] Inputting the audio feature sequence into the encoder of the real-time speech recognition model, encoding the audio feature sequence through the encoder to obtain a hidden feature sequence of the sample speech data, wherein the hidden feature sequence includes hidden features of the multiple frames; wherein the encoder performs encoding processing in blocks, each block includes at least two consecutive frames of the multiple frames, and there is at least one overlapping frame between two adjacent blocks, and when the encoder performs encoding processing on the first block, the encoder reuses the processing result of at least one second block having overlapping frames with the first block;
[0014] Decoding the sample speech data using a decoder of the real-time speech recognition model according to the hidden layer feature sequence to obtain a predicted recognition result of the sample speech data;
[0015] The real-time speech recognition model is trained based on the predicted recognition results and the actual recognition results of the sample speech data.
[0016] According to one aspect of an embodiment of the present application, a real-time speech recognition device is provided, the device comprising:
[0017] A sequence acquisition module, used to acquire an audio feature sequence of a block to be recognized of the target voice data during the process of collecting the target voice data, wherein the block to be recognized includes at least two consecutive frames in the target voice data, and the audio feature sequence of the block to be recognized includes audio features of each frame included in the block to be recognized;
[0018] A coding processing module, used for multiplexing the processing results of the historical blocks corresponding to the block to be identified, encoding the audio feature sequence of the block to be identified, and obtaining the hidden layer feature sequence of the block to be identified, wherein the hidden layer feature sequence includes the hidden layer features of each frame included in the block to be identified; wherein the historical block refers to a block that has at least one overlapping frame with the block to be identified and has been coded;
[0019] The decoding processing module is used to decode and obtain the real-time speech recognition result of the block to be recognized according to the hidden layer feature sequence.
[0020] According to one aspect of an embodiment of the present application, a training device for a real-time speech recognition model is provided, the device comprising:
[0021] A sample acquisition module, used to acquire an audio feature sequence of sample speech data, wherein the audio feature sequence includes audio features of multiple frames of the sample speech data;
[0022] A coding processing module, used for inputting the audio feature sequence into the encoder of the real-time speech recognition model, and performing coding processing on the audio feature sequence through the encoder to obtain a hidden feature sequence of the sample speech data, wherein the hidden feature sequence includes hidden features of the multiple frames; wherein the encoder performs coding processing in units of blocks, each block includes at least two consecutive frames of the multiple frames, and there is at least one overlapping frame between two adjacent blocks, and when performing coding processing on a first block, the encoder multiplexes the processing result of at least one second block having overlapping frames with the first block;
[0023] A decoding processing module, used for decoding the predicted recognition result of the sample speech data according to the hidden layer feature sequence through the decoder of the real-time speech recognition model;
[0024] The model training module is used to train the real-time speech recognition model based on the predicted recognition results and the actual recognition results of the sample speech data.
[0025] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned real-time speech recognition method, or the above-mentioned real-time speech recognition model training method.
[0026] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned real-time speech recognition method, or the above-mentioned real-time speech recognition model training method.
[0027] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned real-time speech recognition method, or the above-mentioned real-time speech recognition model training method.
[0028] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:
[0029] By dividing the target speech data into multiple blocks to be recognized, when encoding the block to be recognized, the processing results of the previous one or several previous historical blocks of the block to be recognized are reused, thereby reducing the computational complexity of the encoding process and speeding up speech recognition, thereby better meeting the needs of real-time speech recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of an AED (Attention based Encoder-Decoder)-CTC (Connectionist Temporal Classification) / Attention architecture provided by an embodiment of the present application;
[0031] Figure 2 It is a training graph of a real-time speech recognition model based on chunk operation provided by an embodiment of the present application;
[0032] Figure 3 is a schematic diagram of a real-time speech recognition model provided by an embodiment of the present application during the use phase;
[0033] Figure 4 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;
[0034] Figure 5 is a workflow diagram of real-time speech recognition in a target application provided by an embodiment of the present application;
[0035] Figure 6 is a flow chart of a real-time speech recognition method provided by an embodiment of the present application;
[0036] Figure 7 It is a schematic diagram of dividing the target speech data to be recognized blocks provided by an embodiment of the present application;
[0037] Figure 8is a flow chart of a real-time speech recognition method provided by another embodiment of the present application;
[0038] Fig. 9 is a schematic diagram of the structure of a Conformer network provided by an embodiment of the present application;
[0039] Fig.10 It is a schematic diagram of the structure of a convolution module provided by an embodiment of the present application;
[0040] Fig.11 It is a schematic diagram of the structure of a multi-head self-attention module provided by an embodiment of the present application;
[0041] Fig.12 This is a schematic diagram of the structure of a Conformer with a buffer area added provided in one embodiment of the present application;
[0042] Fig.13 is a schematic diagram of a calculation method of a self-attention mechanism provided by an embodiment of the present application;
[0043] Fig.14 It is a schematic diagram of using a buffer area to perform calculations provided by an embodiment of the present application;
[0044] Fig.15 is a flow chart of a method for training a real-time speech recognition model provided by an embodiment of the present application;
[0045] Fig.16 is a schematic diagram of block partitioning based on a mask matrix provided by an embodiment of the present application;
[0046] Fig.17 is a block diagram of a real-time speech recognition device provided by an embodiment of the present application;
[0047] Fig.18 is a block diagram of a real-time speech recognition device provided by another embodiment of the present application;
[0048] Fig.19 is a block diagram of a training device for a real-time speech recognition model provided by an embodiment of the present application;
[0049] Fig. 20 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0051] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0052] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0053] The key technologies of speech technology include automatic speech recognition (ASR), text to speech (TTS) and voiceprint recognition. Enabling computers to listen, see, speak and feel is the future development direction of human-computer interaction, among which speech has become one of the promising human-computer interaction methods.
[0054] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0055] The solution provided in the embodiments of the present application involves artificial intelligence voice technology, machine learning and other technologies, which are specifically explained through the following embodiments.
[0056] Below, the architecture of a speech recognition model provided by the related art is first described. It should be noted that the related art as an optional solution can be arbitrarily combined with the technical solution of the embodiment of the present application, which all belong to the protection scope of the embodiment of the present application. The embodiment of the present application includes at least part of the following contents.
[0057] The speech recognition model provided by the related technology adopts the AED-CTC / Attention architecture. The architecture is exemplified as follows Figure 1 As shown, it includes an encoding network 10, a decoding network 20, a CTC module 30 and a CE (Cross Entropy) module 40. Among them, the encoding network 10 models the acoustic features, the decoding network 20 models the language features and the acoustic features together, the CTC loss can automatically learn the word boundary alignment, the automatic alignment capability of CTC can make the text and the acoustic features have a stronger monotonic alignment relationship, and the decoding network 20 can avoid problems such as truncation of long sentences; and the joint modeling capability of the decoding network 20 can also make CTC have richer text context capabilities and stronger recognition capabilities. In the end-to-end real-time recognition system based on AED-CTC / Attention, the encoding network 10 can only encode some audio features up to the current moment or including a limited future moment, and then use these encoding information and historical predictions for decoding. The usual practice is to divide the audio into chunks and perform attention calculations within the chunks.
[0058] In the model training stage, the training loss is calculated by the CTC module 30 and the CE module 40 respectively, and the parameters of the speech recognition model are adjusted based on the calculated training loss. In some embodiments, the encoding network 10 uses a Conformer structure and the decoding network 20 uses a Transformer structure. A CTC module 30 is added at the end of the encoding network 10 to calculate the CTC loss, and a CE module 40 is added at the output end of the decoding network 20 to calculate the CE loss. The entire model combines two training criteria (i.e., the above two losses) to update parameters.
[0059] During the model usage phase, the decoding network 20 and the CE module 40 are removed, and only the encoding network 10 and the CTC module are used to generate the acoustic posterior probability. Then, the n-gram speech model is introduced, and the recognition result is obtained by decoding the constructed weighted finite state transducer (WFST) graph through searching.
[0060] Transformer network is a deep self-attention transformer network, and is also often used to refer to all similar deep self-attention transformer network structures. Transformer network breaks through the limitation that recurrent neural networks cannot be calculated in parallel. Compared with convolutional neural networks, the number of operations required to calculate the association between two positions does not increase with distance, and self-attention can produce a more interpretable model.
[0061] The Conformer network is a convolution-enhanced Transformer network. Conformer uses convolution to enhance the effect of Transformer in speech recognition. At the encoding end, the Transformer is good at capturing global features and the convolutional neural network can effectively represent local features. The two are combined to better extract the global and local dependencies of audio features, thereby enhancing the effect of speech recognition.
[0062] In some embodiments, Figure 2 As shown, Figure 2 The following is an example of a training diagram of a real-time speech recognition model based on a block operation. Figure 2 Too Figure 1The expansion diagram of the given architecture diagram. In the training phase of the real-time speech recognition model, the input speech data 21 is first divided into multiple blocks based on audio frames, and each block contains multiple audio frames. Optionally, the number of audio frames contained in each block is the same. Of course, in some other embodiments, the number of audio frames contained in each block may also be different, and this application does not limit this. The audio frames contained in each block are divided into historical frames, valid frames and future frames. The input speech data is divided into blocks based on the set number of valid frames. In this application example, the number of audio frames set in each block is the same. At the same time, since the division of the blocks is based on the valid frames, the historical frames of the latter block must overlap with the valid frames of the previous block, so there are overlapping parts between blocks. Among them, the valid frame is the part of the block that needs to be recognized by speech, and the historical frame and the future frame are used to help the valid frame part in the speech recognition block. The historical frame is the pre-frame of the valid frame, and the future frame is the post-frame of the valid frame. The pre-historical frame and the post-future frame of the valid frame help the valid frame part in the block to perform speech recognition. As shown in area 22 in the figure, area 22 shows the speech data divided into multiple blocks, Nc represents the valid frame of the block, Nl represents the historical frame of the block, and Nr represents the future frame of the block. Optionally, the future frame part of block 1 can overlap with the valid frame part of block 2, and the historical frame part of block 2 can overlap with the valid frame part of block 1. Each block is then encoded by the encoder to obtain the hidden layer feature sequence of each block respectively, and the hidden layer feature sequence of each block is spliced and combined to obtain the complete hidden layer feature sequence corresponding to the speech data. At the same time, in order to achieve controllable decoding delay, a dynamic block division method is adopted on the encoder side, and a set of block parameters are randomly selected to perform block division when training each recognition result.
[0063] Finally, the complete hidden feature sequence is decoded by the decoder to obtain the predicted recognition result (such as predicted text information). The training loss of the complete hidden feature sequence is calculated based on the CTC module, and the parameters of the encoder are adjusted; the training loss of the predicted recognition result is calculated based on the CE module, and the parameters of the encoder and decoder are adjusted. In order to maintain consistency with the training strategy, when the subject starts to input speech, the acoustic posterior probability calculation of a block is started when the Nl+Nc+Nr frame speech features are accumulated. Finally, only the posterior probability of the valid frame Nc frame is taken out and then the recognition result is obtained by decoding the CTC graph.
[0064] In some embodiments, Figure 3 As shown, Figure 3The schematic diagram of the speech recognition model in the actual use stage is shown as an example. In order to speed up the speech recognition, in the use stage of the speech recognition model, the audio frame is extracted through the real-time input speech data. When the number of audio frames meets the number of audio frames of a block, the block obtained above is input into the encoder for encoding to obtain the hidden layer feature sequence of the block. The hidden layer feature sequence of the block is combined to obtain the complete hidden layer feature sequence corresponding to the speech data. Finally, the complete hidden layer feature sequence is decoded to obtain the predicted text information.
[0065] Please refer to Figure 4 , which shows a schematic diagram of the solution implementation environment provided by an embodiment of the present application. The solution implementation environment can be implemented as a real-time speech recognition system for recognizing speech data input by an object, such as realizing the function of real-time speech recognition. The solution implementation environment may include: a model training device 410 and a model use device 420. Among them, the model training device 410 can be a terminal device or a server. Similarly, the model use device 420 can be a terminal device or a server.
[0066] The model training device 410 may be an electronic device such as a computer, a server, an intelligent robot, or other electronic devices with strong computing capabilities. The model training device 410 is used to train the real-time speech recognition model 430. In the embodiment of the present application, the real-time speech recognition model 430 is a model for recognizing speech data, and the real-time speech recognition model 430 may include an encoder 431 and a decoder 432. The model training device 410 may train the speech recognition model 430 in a machine learning manner so that it has better performance.
[0067] The above-mentioned trained real-time speech recognition model 430 can be deployed in the model using device 420 for use to recognize the speech data and obtain the corresponding recognition result (i.e., predicted text data). The model using device 420 can be a terminal device such as a mobile phone, a computer, a smart TV, a multimedia playback device, a wearable device, a medical device, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal device, or a server, which is not limited in this application. The embodiments of the present application can be applied to various scenarios, including but not limited to artificial intelligence, smart transportation, assisted driving, etc.
[0068] The terminal device may be an electronic device such as a mobile phone, a tablet computer, a PC (Personal Computer), a wearable device, a vehicle-mounted terminal device, a VR (Virtual Reality) device, an AR (Augmented Reality) device, etc., and this application does not limit this. The terminal device may be installed with a client running a target application.
[0069] In the embodiment of the present application, the target application is an application that can recognize the voice data input by the object. For example, the application can be an input method application, a social application, an interactive entertainment application, a map navigation application, etc., an application in which the object can input voice data.
[0070] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The server can be the background server of the above-mentioned target application, which is used to provide background services for the client of the target application, such as recognizing the voice data input by the object and sending it to the client, and displaying the text information corresponding to the voice data in the client. Optionally, voice recognition can also be completed locally by the client, which is not limited in this application.
[0071] Optionally, the target application may be a separately developed independent APP (Application), or a mini-program, or other forms of application such as a web application, which is not limited in the present application.
[0072] Terminal devices and servers can communicate with each other through the network.
[0073] In some embodiments, the subject inputs voice data in the client corresponding to the target application, and the voice data may be input by the subject in real time. After the client of the target application obtains the voice data input by the subject, the voice data is sent to the server, and the server recognizes the voice data to obtain corresponding predicted text data. The predicted text data obtained by recognition is then sent to the client and displayed in the client.
[0074] In some embodiments, the real-time speech recognition model of the present application can be used for online real-time speech recognition products with different latency requirements, such as speech input method, voice note, in-vehicle intelligent speech recognition, simultaneous interpretation and online live speech recognition. Figure 5 As shown, Figure 5The workflow diagram of real-time speech recognition in the target application is shown as an example. The object clicks a button to start inputting speech, the client starts the recording function, and the effective speech segment is detected through the client VAD (Voice Activity Detection), which is uploaded to the background server after audio compression encoding. The server first completes the audio decompression, and then further detects the effective speech segment through the server VAD, and sends it to the server speech recognition decoder for recognition and decoding. The recognition result is then transmitted back to the client through the network after post-processing operations and presented to the object. This application is for Figure 5 The server-side ASR decoding part is optimized, and the use and training methods of the real-time speech recognition model introduced in the following embodiments are proposed.
[0075] Please refer to Figure 6 , which shows a flow chart of a real-time speech recognition method provided by an embodiment of the present application. The execution subject of the method may be Figure 1 The model in the implementation environment of the solution shown uses a device 20. The method may include at least one of the following steps (610-630):
[0076] Step 610, in the process of collecting target speech data, obtain the audio feature sequence of the block to be identified of the target speech data, the block to be identified includes at least two consecutive frames in the target speech data, and the audio feature sequence of the block to be identified includes the audio features of each frame contained in the block to be identified.
[0077] Optionally, the process of collecting the target voice data and the process of identifying the target voice data can be performed in the same device, for example, both are performed in the terminal device. Optionally, the process of collecting the target voice data and the process of identifying the target voice data can also be performed in different devices, for example, the process of collecting the target voice data is performed by the terminal device, and then the terminal device sends the collected target voice data to the server, and the server recognizes the target voice data.
[0078] The target voice data is the voice data to be recognized provided by the subject in the client. For example, the target voice data can be voice data input or recorded by the subject in real time in the client, or can be voice data recorded in advance. By recognizing the voice data input by the subject, the corresponding text data can be obtained. For example, if the subject wants to input the text data "good morning" in the client, the subject can input the voice data whose corresponding text data is "good morning" in the corresponding voice input area of the client.
[0079] The target speech data can be framed according to time to obtain multiple audio frames, and the time of each audio frame is the same. The block to be identified is part of the speech data after the target speech data is divided into chunks. The target speech data is divided according to the number of frames to obtain multiple blocks to be identified. Optionally, the number of frames contained in the multiple blocks to be identified is the same, and each block to be identified includes at least two continuous frames. Of course, in some other embodiments, the number of frames contained in the multiple blocks to be identified may also be different, and this application does not limit this. In this application, the example that the number of frames contained in the multiple blocks to be identified is the same is mainly used for introduction and explanation.
[0080] In some embodiments, the block to be identified includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame.
[0081] The block to be identified is composed of valid frames, historical frames and future frames. The valid frame is the audio frame to be identified in the block to be identified. The historical frame and the future frame are audio frames used to help improve the accuracy of the recognition result. The relationship between the valid frame and the historical frame, the valid frame and the future frame, and the previous and next audio frames are used to more accurately identify the recognition result of the valid frame part. Optionally, the more valid frames and future frames are selected, the more accurate the recognition result of the valid frame part, but the greater the delay of the speech recognition scene; the fewer valid frames and future frames are selected, the less accurate the recognition result of the valid frame part, and the smaller the delay of the speech recognition scene. Among them, since the selection of the block to be identified is based on the valid frame, there is an overlapping part between each block (the overlapping part is the overlapping part of the audio frame).
[0082] The audio feature sequence is a set of audio features corresponding to each frame of the block to be identified of the target speech data. For each frame of the block to be identified, an audio feature sequence is generated by combining the audio features corresponding to each frame. Audio features are used to represent the semantic features of an audio frame. Audio features can be obtained through the waveform corresponding to the audio frame. The audio features corresponding to the audio frame are obtained by calculating the frequency, phase, amplitude, inverse of the Mel spectrum and other features of the waveform corresponding to the audio frame.
[0083] In some embodiments, Figure 7 As shown, Figure 7The schematic diagram of the division of the blocks to be recognized of the target speech data is shown as an example. Assuming that the number of audio frames of the input target speech data 70 is 20 frames, and the valid frames set in the block to be recognized are 4 frames, the historical frames are 8 frames, and the future frames are 4 frames, then the input target speech data 70 can be divided into 5 blocks, and the number of frames of each block is: 8 frames, 12 frames, 16 frames, 16 frames and 12 frames, as shown in blocks 71, 72, 73, 74 and 75 in the figure. Among them, block 71 has only 4 valid frames and 4 future frames, block 72 has 4 historical frames, 4 valid frames and 4 future frames, blocks 73 and 74 both have 8 historical frames, 4 valid frames and 4 future frames, and block 75 has 8 historical frames and 4 valid frames. Among them, there are overlapping parts between each block, for example, the future frame part of block 71 overlaps with the valid frame part of block 72, and the historical frame part of block 72 overlaps with the valid frame part of block 71.
[0084] In the actual speech recognition process, in order to reduce the delay of the speech recognition process, when acquiring the target speech data, the audio frames of the target speech data are acquired in real time. When the number of audio frames meets the number of audio frames of a block, the block is acquired. Similarly, when the number of audio frames meets the number of audio frames of the next block, the next block is acquired.
[0085] In some embodiments, it is assumed that the valid frames set in the block are 4 frames, the historical frames are 8 frames, and the future frames are 4 frames. When the number of audio frames obtained is 8 frames, the first block is obtained, the first block has 4 valid frames and 4 future frames, and the first block consists of frames 1 to 8; based on the number of audio frames obtained being 8, when the number of audio frames obtained is 4 frames, the second block is obtained, the second block has 4 historical frames, 4 valid frames and 4 future frames, and the second block consists of frames 1 to 12; based on the number of audio frames obtained being 12 frames, when the number of audio frames obtained is 4 frames, the third block is obtained, the third block has 8 historical frames, 4 valid frames and 4 future frames, and the third block consists of frames 1 to 16. By analogy, the fourth block consists of frames 5 to 20. Among them, the number of audio frames that need to be obtained for the first block is the set number of valid frames plus the number of future frames, and the acquisition condition for subsequent blocks is that the number of audio frames obtained again is the set number of valid frames.
[0086] Step 620, reuse the processing results of the historical blocks corresponding to the block to be identified, encode the audio feature sequence of the block to be identified, and obtain the hidden layer feature sequence of the block to be identified, the hidden layer feature sequence includes the hidden layer features of each frame contained in the block to be identified; wherein the historical block refers to a block that has at least one overlapping frame with the block to be identified and has been encoded.
[0087] like Figure 7As shown, taking block 73 as an example of a block to be processed, when processing block 73 to be identified, blocks 71 and 72 have been processed. When encoding the valid frame portion of block 73 to be identified, it is necessary to consider both the historical frame portion and the future frame portion of block 73 to be identified. At this time, the historical frame portion of block 73 to be identified is the valid frame portion of block 71 and the valid frame portion of block 72, and both blocks 71 and 72 are historical blocks of block 73 to be identified. At the same time, the valid frame portions of blocks 71 and 72 have been processed, so the processing results of the valid frame portions of blocks 71 and 72 can be directly used to encode block 73 to be identified.
[0088] The hidden feature sequence is the result of encoding the audio feature sequence corresponding to the target speech data. The encoding process is to encode the valid frame part in each block to be identified divided by the audio feature sequence. The valid frame part is encoded based on the historical frame, valid frame and future frame in the block to be identified to obtain the hidden features corresponding to the valid frame. The hidden features corresponding to the valid frames of each block to be identified are combined to generate the hidden feature sequence.
[0089] The hidden layer features correspond to the audio features. The audio features are the features of the audio frames before encoding, and the hidden layer features are the features of the audio frames after encoding.
[0090] In some embodiments, Figure 7 As shown, the target speech data is encoded, and first the block 71 to be identified is encoded, and based on the 4 valid frames and 4 future frames of the block 71 to be identified, the hidden features corresponding to the 4 valid frames in the block 71 to be identified are obtained. Then the block 72 to be identified is encoded, and based on the 4 historical frames, 4 valid frames and 4 future frames of the block 72 to be identified, the hidden features corresponding to the 4 valid frames in the block 72 to be identified are obtained. Among them, when block 72 is the block to be identified, the 4 historical frames of the block 72 to be identified are also the valid frame parts of block 71, that is, block 71 is the historical block of the block 72 to be identified. When the calculation results of the 4 valid frames of block 71 have been calculated, it is no longer necessary to repeatedly calculate the 4 audio frames when encoding the block 72 to be identified. Similarly, the same is true for blocks 73, 74 and 75, which will not be repeated here.
[0091] In some embodiments, the number of valid frames and future frames is determined based on the latency requirements of the current speech recognition scenario.
[0092] The delay is used to indicate the delay of the speech recognition scenario. The delay includes the first word delay and the last word delay. The first word delay indicates the time required for the user to input the voice data to obtain the first recognized word, and the last word delay indicates the time required for the user to input the voice data to obtain the last recognized word. The real-time rate is the calculation result obtained by dividing the time required to process a segment of voice data by the time of the segment of voice data. The real-time rate indicates the decoding recognition speed. The smaller the real-time rate, the faster the decoding recognition speed, and the smaller the corresponding delay. For example, if it takes 8 hours to process a 2-hour audio segment, the real-time rate is 8 / 2=4. After experimental evaluation, the delay of the real-time speech recognition model in this application can be within 500ms and the decoding real-time rate is about 0.5, achieving a very high recognition accuracy.
[0093] In the above encoding process, by reusing the historical blocks, there is no need to repeatedly calculate the audio frames in the historical blocks, thereby saving the time required to calculate the historical frames in the block to be recognized. Therefore, in the recognition process of the block to be recognized, when the number of audio frames obtained by the object satisfies the historical frames + valid frames + future frames, the first block to be recognized is obtained, and the block to be recognized is recognized to obtain the corresponding recognition result and display it in the client of the object. Among them, by adjusting the number of future frames, the total number of frames of historical frames + valid frames + future frames is adjusted, which is equivalent to adjusting the time required to obtain the first block to be recognized, which is equivalent to adjusting the time required for the object to see some real-time speech recognition results in the client.
[0094] By adjusting the number of valid frames and future frames, the time required to display some real-time speech recognition results in the client can be controlled. The number of valid frames and future frames can be adjusted according to the needs of the object, increasing the diversity and flexibility of the real-time speech recognition function.
[0095] Step 630: Decode the hidden layer feature sequence to obtain a real-time speech recognition result of the block to be recognized.
[0096] In some embodiments, the prediction recognition result is obtained by decoding the hidden layer feature sequence according to the encoded hidden layer feature sequence.
[0097] In an embodiment of the present application, by dividing the target speech data into multiple blocks to be recognized, when encoding the block to be recognized, the processing results of the previous one or several previous historical blocks of the block to be recognized are reused, thereby reducing the computational complexity of the encoding process and speeding up the speech recognition process, thereby better meeting the needs of real-time speech recognition.
[0098] Please refer to Figure 8 , which shows a flow chart of a real-time speech recognition method provided by another embodiment of the present application. The execution subject of the method may be Figure 1The model in the implementation environment of the scheme shown uses a device 20. The method may include at least one of the following steps (810-840):
[0099] Step 810, in the process of collecting target speech data, obtain the audio feature sequence of the block to be identified of the target speech data, the block to be identified includes at least two consecutive frames in the target speech data, and the audio feature sequence of the block to be identified includes the audio features of each frame contained in the block to be identified.
[0100] Step 820, obtaining the processing result of the historical block from the data stored in the buffer area.
[0101] The buffer is an area for storing the processing results of the historical blocks, and the buffer stores the valid frame calculation results corresponding to the historical blocks to be identified. Optionally, the number of valid frame calculation results stored in the buffer is the same as the set number of historical frames.
[0102] Step 830: The encoder of the real-time speech recognition model encodes the audio feature sequence of the block to be recognized according to the processing result of the historical block to obtain the hidden layer feature sequence of the block to be recognized.
[0103] The real-time speech recognition model is a model for real-time speech recognition of speech data. The structure of the real-time speech recognition model is introduced in the following embodiments. For example, the real-time speech recognition model can be a model built based on a neural network. Optionally, the real-time speech recognition model includes an encoder (or encoding network) and a decoder (or decoding network). Among them, the encoder is used to encode the input audio features to obtain hidden features; the decoder is used to decode the hidden features to obtain speech recognition results.
[0104] It should be noted that the above Figure 5 The server-side ASR decoding part shown refers to the complete process of the server-side executing the real-time speech recognition method provided by the embodiment of the present application, such as obtaining the audio feature sequence of the block to be recognized of the target speech data, and then encoding the audio feature sequence of the block to be recognized through the encoder of the real-time speech recognition model according to the processing result of the historical block corresponding to the block to be recognized, so as to obtain the hidden layer feature sequence of the block to be recognized, and then decoding the hidden layer feature sequence through the decoder of the server-side CTC-WFST decoder to obtain the real-time speech recognition result of the block to be recognized.
[0105] When the real-time speech recognition model encodes the block to be recognized, it can use the processing results of the historical blocks in the buffer to help encode the subsequent blocks to be recognized. Furthermore, when the calculation result of the latest calculated valid frame is obtained, the calculation result of the earliest valid frame stored in the buffer is overwritten.
[0106] In some embodiments, in conjunction with reference Figure 7 , the target speech data is encoded, firstly, block 71 is encoded, at this time, block 71 is the block to be identified, based on the 4 valid frames and 4 future frames of block 71 to be identified, the hidden layer features corresponding to the 4 valid frames in block 71 to be identified are obtained, and the hidden layer features corresponding to the 4 valid frames are stored in the buffer. Then, block 72 is encoded, based on the 4 historical frames, 4 valid frames and 4 future frames of block 72 to be identified, the hidden layer features corresponding to the 4 valid frames in block 72 to be identified are obtained. Among them, when block 72 is the block to be identified, the 4 historical frames of block 72 to be identified are also the valid frame parts of block 71, that is, block 71 is the historical block of block 72 to be identified. At this time, the hidden layer features corresponding to the 4 valid frames can be obtained from the buffer, and there is no need to calculate the 4 audio frames.
[0107] Step 840: Decode the hidden layer feature sequence to obtain a real-time speech recognition result of the block to be recognized.
[0108] Step 810 and step 840 have been introduced in the above embodiments and will not be described again here.
[0109] In some embodiments, the encoder includes n serially connected encoding layers, where n is an integer greater than 1. The encoding layer includes a multi-head self-attention module and a convolution module, the multi-head self-attention module is used to process the input feature sequence using a multi-head self-attention mechanism, and the convolution module is used to perform convolution processing on the input feature sequence. Accordingly, the cache area includes a first cache area and a second cache area, the first cache area is used to store the processing results of the multi-head self-attention module for the historical block, and the second cache area is used to store the processing results of the convolution module for the historical block.
[0110] The first buffer area and the second buffer area have the same function, both of which store the output results of the module. The difference is that the first buffer area stores the processing results in the multi-head self-attention module, and the second buffer area stores the processing results in the convolution module.
[0111] In some embodiments, the encoding layer also includes a first feedforward module, a second feedforward module and a layer normalization module. The first feedforward module is also a feedforward module (Feed Forward Module, referred to as FFM), which is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence. The multi-head self-attention module (Multi-Head Self Attention Module, referred to as MHSA) is used to process the first intermediate feature sequence using a multi-head self-attention mechanism to obtain a second intermediate feature sequence. The convolution module (Convolution Module) is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence. The second feedforward module is the same as the previous feedforward module, and is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence. The layer normalization module (Layernorm) is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
[0112] In some embodiments, Fig. 9 As shown, Fig. 9 The structure diagram of the Conformer network is shown as an example. Conformer first preprocesses the input feature sequence, including a data enhancement module (SqecAug) 910, a convolution subsampling module (Convolution Subsampling) 920, an arrangement module (Linear) 930, and a removal module (Dropout) 940, to obtain a preprocessed feature sequence. The feature sequence is then input into an encoding module 950 for encoding. The encoding module 950 has multiple encoding layers, each of which has the same structure. Optionally, the structure of each encoding layer may also be different. In this embodiment, the structure of each encoding layer is the same, and they are all Figure 2 The structural diagram shown in area 960. As shown in area 960, the coding layer is composed of multiple layers: a first feedforward module 961, a multi-head self-attention module 962, a convolution module 963, a second feedforward module 964 and a layer normalization module 965. The introduction of each module is in the following embodiments. The number of coding layers owned by the coding module 950 can be 4 layers or 6 layers, which is not limited in this application. Among them, the output result of the first feedforward module 961 is the first intermediate feature sequence, the first intermediate feature sequence is input into the multi-head self-attention module 962 to obtain the second intermediate feature sequence, the second intermediate feature sequence is input into the convolution module 963 to obtain the third intermediate feature sequence, the third intermediate feature sequence is input into the second feedforward module 964 to obtain the fourth intermediate feature sequence, and the fourth intermediate feature sequence is input into the layer normalization module 965 to obtain the output feature sequence. Its calculation formula is as follows:
[0113]
[0114]
[0115] x″ i = x′ i +Conv(x′ i )
[0116]
[0117] Among them, FFN is a feedforward module, MHSA is a multi-head self-attention mechanism module, Conv is a convolution module, and Layernorm is a layer normalization module.
[0118] In some embodiments, Fig.10 As shown, Fig.10 The structural diagram of the convolution module is shown as an example. The convolution module is composed of a multi-layer structure, a layer normalization module, three convolution modules, two activation function modules, and a mixed temporary removal module for accelerating neural network training. Among them, the first convolution module and the third convolution module are the same convolution modules, both of which are Pointwise convolution modules, which only change the number of feature maps without changing the size of the feature maps. The second convolution module is a Depthwise convolution module, which means changing the size of the feature map without changing the number of channels.
[0119] In some embodiments, Fig.11 As shown, Fig.11 The structural diagram of the multi-head self-attention module is shown as an example. Fig.11 Part (a) is a schematic diagram of the structure of the multi-head self-attention module. Fig.11 Part (b) is the expanded structure diagram of the scaled attention mechanism in part (a). The calculation method of the self-attention mechanism is introduced below.
[0120] In some embodiments, Fig.12 As shown, Fig.12 The schematic diagram of the structure of the Conformer with a buffer area added is exemplarily shown. Fig.12 In the figure, buffer areas are added before the multi-head self-attention module 962 and the convolution module 963. A first buffer area 121 is added before the multi-head self-attention module 962, and a second buffer area 122 is added before the convolution module 963.
[0121] In some embodiments, Fig.13 As shown, Fig.13 The following is a schematic diagram of the calculation method of the self-attention mechanism. The attention mechanism is different from the encoding process. It is a process of finding the correlation between each input. Therefore, in this application, the recognition result of the valid frame is predicted by using the self-attention mechanism to obtain the correlation between the historical frame or the future frame and the valid frame.
[0122] First, if Fig.13 As shown, the first intermediate feature sequence of the historical frame or future frame and the valid frame from the above-mentioned first feedforward module is used as the input of the attention mechanism, wherein the feedforward result of the historical frame is set to a1, the feedforward result of the valid frame is set to a2, and the feedforward result of the future frame is set to a3.
[0123] Next, vectors a1, a2, and a3 are multiplied by three different embedding transformation matrices W. q , W k , W v , we get different vectors q, k, v respectively. Taking a1 as an example, we can get three vectors q1, k1, v1. Among them, q represents the query vector, k represents the key vector, and v represents the information extraction vector.
[0124] Then, taking a1 as an example, multiplying vector q1 by vector k1 is a process of attention matching. In order to prevent the value from being too large, a normalization process is required. After multiplying vector q1 by vector k1, it is divided by Get α 1.1 , and so on, we can get α 1.2 , α 1.3 . Where d is the dimension of q and k. The dimension is usually understood as: "a point is 0-dimensional, a line is 1-dimensional, a plane is 2-dimensional, and a volume is 3-dimensional." Through this process, we can get the inner product vector α 1.i .
[0125] Next, we obtain the inner product vector α 1.i The softmax function operation is performed, and the softmax function value of the element is the ratio of the exponent of the element to the sum of the exponents of all elements. 1.1 For example, its softmax function operation is to convert α 1.1 The exponential of divided by α 1.1 The exponent, α 1.2 The exponent, α 1.3 The sum of the exponents of . is α 1.i The value after the softmax function operation.
[0126] Afterwards, you will get With v i Multiply, specifically, Multiply v1, and Multiply v2, and Multiply by v3, add the result to get b1, where b1 is the final output result, and so on, we can get b2 and b3. Among them, b1 is the second intermediate feature sequence between the historical frame and the valid frame, and b3 is the second intermediate feature sequence between the future frame and the valid frame.
[0127] In some embodiments, the convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain a third intermediate feature of the current frame.
[0128] In order to reduce the style in the speech recognition process, the convolution module in Conformer uses causal convolution. If the number of convolution kernels is 15, it is necessary to use the historical 14 frames and the current frame to predict the convolution output of the current frame.
[0129] The cache mechanism is designed as follows: before calculating the convolution module of each block, the last 14 frames of the valid frame Nc part of the current block are cached, and this part of the cache is used as a historical frame before calculating the convolution module of the next block.
[0130] In some embodiments, Fig.14 As shown, Fig.14 The L part is the self-attention calculation result cached in the previous block. Obviously, when each block calculates the second intermediate feature sequence, the Query dimension is C and the Key dimension is L+C. In the multi-head self-attention mechanism, the C of the Key dimension and the C of the Query dimension are homologous and are calculated in the current block, but L is not calculated in the current block. Instead, it reuses the intermediate result cached in the first cache area when calculating the previous block. Generally, L is n times C.
[0131] In the embodiment of the present application, by setting the first cache area and the second cache area, the calculation results of the blocks that have been calculated are stored and used in subsequent calculations. By reusing the calculation results, the amount of calculation is reduced and the calculation time is saved.
[0132] In addition, by not convolving future frames in the convolution module, the amount of calculation is reduced, the calculation time is saved, and the delay of the speech recognition process is reduced.
[0133] Please refer to Fig.15 , which shows a flow chart of a method for training a real-time speech recognition model provided by an embodiment of the present application. The execution subject of the method may be Figure 1 The model training device 10 in the implementation environment of the solution shown. The method may include at least one of the following steps (1510-1540):
[0134] Step 1510: Acquire an audio feature sequence of sample speech data, where the audio feature sequence includes audio features of multiple frames of sample speech data.
[0135] The sample speech data is speech data used to train the real-time speech recognition model. The sample speech data corresponds to a real recognition result, which is the accurate recognition result that the sample speech data wants to express.
[0136] Sample speech data is obtained, and the sample speech data is divided into frames according to time to obtain multiple audio frames. Audio features of each frame are obtained, and audio feature sequences of the sample speech data are obtained by integration.
[0137] Step 1520, input the audio feature sequence to the encoder of the real-time speech recognition model, and encode the audio feature sequence through the encoder to obtain a hidden feature sequence of the sample speech data, where the hidden feature sequence includes hidden features of multiple frames; wherein the encoder performs encoding processing in blocks, each block includes at least two consecutive frames among the multiple frames, and there is at least one overlapping frame between two adjacent blocks, and when the encoder performs encoding processing on the first block, it multiplexes the processing result of at least one second block having overlapping frames with the first block.
[0138] The first block is the block to be identified that is being encoded, and the second block is the block to be identified that has been encoded. When there is an overlap between the second block and the first block (the overlap is an overlapped portion of the audio frames), the processing result of the second block can be reused to help the first block to be encoded.
[0139] Different from the model use process, in the model training process, the blocks to be identified are no longer obtained in real time, but the entire audio feature sequence is input into the encoder. For example, when the sample voice data is 10 frames of data, all 10 frames are input into the encoder; and when the sample voice data is 20 frames of data, all 20 frames are input into the encoder. In the encoder, the audio feature sequence is divided into blocks to generate multiple blocks. Each block is encoded to obtain the hidden layer features corresponding to the valid frame part of each block. Similarly, since the blocks overlap, the calculation results of the valid frame part in the historical block can be reused when encoding the subsequent blocks to be identified, as in the above embodiment, to save calculation time.
[0140] Optionally, the encoder determines the frames included in each block according to a mask matrix; wherein the mask matrix includes multiple groups of elements, each group of elements is used to indicate the frames included in a block, and each group of elements uses two different values to distinguish between frames included in and not included in a block.
[0141] When the encoder uses a Transformer or Conformer structure, the Transformer or Conformer structure has a multi-head self-attention module. In the multi-head self-attention module, the speech data is divided into blocks by means of a mask matrix. Fig.16 As shown, Fig.16 The schematic diagram of dividing the blocks by the mask matrix is exemplified. Fig.13 Only the valid frame and historical frame parts of the block are shown in FIG. 1 , where the valid frame of the set block is 2 frames and the historical frame is 4 frames, such as Fig.16 As shown in part (a), 1 represents the audio frame that the mask matrix pays attention to, and 0 represents the audio frame that the mask matrix does not pay attention to. Each solid line box represents each block, where the 4 1s on the right side of each block are valid frame parts, and the rest are historical frame parts. Fig.16 As shown in part (b), the vertical axis of the Mask matrix represents the Query (Q) direction, and the horizontal axis represents the Key (K) direction. The specific calculation formula of the multi-head self-attention module is as follows:
[0142]
[0143] MultiHead(Q,K,V)=Concat(head i ,…,head h )W o
[0144] head i =Attention(QW i Q ,KW i K ,VW i V )
[0145] in, Fig.16 It describes the QK^T matrix calculation. Q is an m×n dimensional matrix, K is a k×n dimensional matrix, and T represents the transpose of the matrix. The result of the QK^T matrix calculation is an m×k dimensional matrix, which describes the correlation coefficient (degree) between each frame of the Query and each frame of the Key.
[0146] In some embodiments, the encoder includes n serially connected encoding layers, where n is an integer greater than 1, step 1520 includes:
[0147] Inputting the audio feature sequence into the first encoding layer of the encoder, encoding the audio feature sequence through the first encoding layer, and obtaining an output feature sequence of the first encoding layer;
[0148] For the i-th encoding layer of the encoder, the output feature sequence of the i-1-th encoding layer is input to the i-th encoding layer, and the output feature sequence of the i-1-th encoding layer is encoded by the i-th encoding layer to obtain the output feature sequence of the i-th encoding layer; wherein, when the i-th encoding layer encodes the first block, the output feature of at least one second block in the i-1-th encoding layer is reused, and i is an integer greater than 1 and less than or equal to n;
[0149] Among them, the output feature sequence of the nth encoding layer of the encoder is used as the hidden layer feature sequence.
[0150] Optionally, the block determined by the first coding layer includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame; the block determined by the i-th coding layer includes: at least one valid frame, and at least one historical frame before the valid frame.
[0151] For the model training phase, during the encoding process, only future frames are considered when encoding valid frames in the blocks of the first coding layer. In the subsequent i-th coding layer, only historical frames and valid frames of the blocks are encoded. Because if the future frames of blocks in all coding layers are encoded during the encoding process, a large amount of delay will be generated, and the delay will be much greater than Nc+n*Nr. If only the future frames of blocks in the first coding layer are encoded, the delay generated is only Nc+Nr, which is much smaller than the delay generated by the above encoding method, reducing the delay of the real-time speech recognition system. At the same time, only the first layer of the conformer focuses on future frames, and other layers only focus on limited historical frames and current valid frames. In this way, the delay of the speech recognition system can be controlled intuitively and flexibly.
[0152] Optionally, the encoding layer includes: a first feedforward module, a multi-head self-attention module, a convolution module, a second feedforward module and a layer normalization module;
[0153] The first feedforward module is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence;
[0154] The multi-head self-attention module is used to process the first intermediate feature sequence using the multi-head self-attention mechanism to obtain a second intermediate feature sequence;
[0155] The convolution module is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence;
[0156] The second feedforward module is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence;
[0157] The layer normalization module is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
[0158] The introduction to the Conformer coding layer has been introduced in the above embodiment and will not be repeated here.
[0159] Optionally, the convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain a third intermediate feature of the current frame.
[0160] In order to reduce the style in the speech recognition process, the convolution module in Conformer uses causal convolution. If the number of system kernels for convolution is 15, the convolution output of the current frame is predicted using the historical 14 frames and the current frame.
[0161] Step 1530, decoding the sample speech data according to the hidden feature sequence through the decoder of the real-time speech recognition model to obtain the predicted recognition result.
[0162] According to the obtained hidden layer feature sequence, the hidden layer feature sequence is decoded by a decoder to obtain a predicted recognition result of the sample speech data. Optionally, the encoder may be a Transformer encoder.
[0163] Step 1540: training a real-time speech recognition model based on the predicted recognition results and the actual recognition results of the sample speech data.
[0164] The training loss of the real-time speech recognition model is determined based on the real text data and the predicted text data, and the network parameters of the real-time speech recognition model are adjusted based on the training loss. The training loss of the real-time speech recognition model is used to measure the gap between the predicted recognition result and the real recognition result. Optionally, the model parameters are adjusted based on the training loss using the gradient descent method, and finally a real-time speech recognition model that has completed training is obtained.
[0165] In the embodiment of the present application, by training the whole sentence of the speech data instead of training the speech data in blocks, and performing block processing through a mask matrix, the model training speed is accelerated and the training efficiency of the speech recognition model is improved. In addition, when encoding the first block, the encoding processing of the first block is performed by reusing the processing result of at least one second block with overlapping frames of the first block, which reduces the amount of calculation and the calculation time, further accelerates the model training speed, and improves the training efficiency of the speech recognition model.
[0166] In addition, by not encoding future frames in the second coding layer and its subsequent coding layers, the delay of real-time speech recognition model training is reduced.
[0167] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0168] Please refer to Fig.17 , which shows a block diagram of a real-time speech recognition device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned real-time speech recognition method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the model using device introduced above, or it can be set in the model using device. The device 1700 may include: a sequence acquisition module 1710, an encoding processing module 1720 and a decoding processing module 1730.
[0169] The sequence acquisition module 1710 is used to obtain the audio feature sequence of the block to be identified of the target speech data during the process of collecting the target speech data, wherein the block to be identified includes at least two consecutive frames in the target speech data, and the audio feature sequence of the block to be identified includes the audio features of each frame contained in the block to be identified.
[0170] The encoding processing module 1720 is used to reuse the processing results of the historical block corresponding to the block to be identified, encode the audio feature sequence of the block to be identified, and obtain the hidden layer feature sequence of the block to be identified, wherein the hidden layer feature sequence includes the hidden layer features of each frame contained in the block to be identified; wherein the historical block refers to a block that has at least one overlapping frame with the block to be identified and has been encoded.
[0171] The decoding processing module 1730 is used to decode and obtain the real-time speech recognition result of the block to be recognized according to the hidden layer feature sequence.
[0172] In some embodiments, Fig.18 As shown, the encoding processing module 1720 includes: a cache result acquisition unit 1721 and an encoding processing unit 1722.
[0173] The cache result acquisition unit 1721 is used to acquire the processing result of the historical block from the data stored in the cache area.
[0174] The encoding processing unit 1722 is used to encode the audio feature sequence of the block to be identified according to the processing result of the historical block through the encoder of the real-time speech recognition model to obtain the hidden layer feature sequence of the block to be identified.
[0175] In some embodiments, the encoder comprises n serially connected encoding layers, where n is an integer greater than 1;
[0176] The encoding layer includes a multi-head self-attention module and a convolution module, wherein the multi-head self-attention module is used to process the input feature sequence using the multi-head self-attention mechanism, and the convolution module is used to perform convolution processing on the input feature sequence;
[0177] The cache area includes a first cache area and a second cache area, the first cache area is used to store the processing results of the multi-head self-attention module for the historical block, and the second cache area is used to store the processing results of the convolution module for the historical block.
[0178] In some embodiments, the encoding layer further comprises a first feedforward module, a second feedforward module and a layer normalization module;
[0179] The first feedforward module is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence;
[0180] The multi-head self-attention module is used to process the first intermediate feature sequence using a multi-head self-attention mechanism to obtain a second intermediate feature sequence;
[0181] The convolution module is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence;
[0182] The second feedforward module is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence;
[0183] The layer normalization module is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
[0184] In some embodiments, the convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain the third intermediate feature of the current frame.
[0185] In some embodiments, the block to be identified includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame.
[0186] In some embodiments, Fig.18 As shown, the device also includes: a future frame determination module 1740.
[0187] The future frame determination module 1740 is used to determine the number of future frames based on the delay requirement of the current speech recognition scenario.
[0188] In an embodiment of the present application, by dividing the target speech data into multiple blocks to be recognized, when encoding the block to be recognized, the processing results of the previous one or several previous historical blocks of the block to be recognized are reused, thereby reducing the computational complexity of the encoding process and speeding up the speech recognition process, thereby better meeting the needs of real-time speech recognition.
[0189] Please refer to Fig.19, which shows a block diagram of a training device for a real-time speech recognition model provided by an embodiment of the present application. The device has the function of implementing the training method of the above-mentioned real-time speech recognition model, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the model training device introduced above, and can also be set in the model training device. The device 1900 may include: a sample acquisition module 1910, an encoding processing module 1920, a decoding processing module 1930 and a model training module 1940.
[0190] The sample acquisition module 1910 is used to acquire an audio feature sequence of sample speech data, where the audio feature sequence includes audio features of multiple frames of the sample speech data.
[0191] The encoding processing module 1920 is used to input the audio feature sequence into the encoder of the real-time speech recognition model, and the encoder encodes the audio feature sequence to obtain a hidden feature sequence of the sample speech data, wherein the hidden feature sequence includes the hidden features of the multiple frames; wherein the encoder performs encoding processing in blocks, each block includes at least two consecutive frames of the multiple frames, and there is at least one overlapping frame between two adjacent blocks, and when the encoder performs encoding processing on the first block, it multiplexes the processing result of at least one second block having overlapping frames with the first block.
[0192] The decoding processing module 1930 is used to decode the sample speech data according to the hidden layer feature sequence through the decoder of the real-time speech recognition model to obtain the predicted recognition result.
[0193] The model training module 1940 is used to train the real-time speech recognition model based on the predicted recognition results and the actual recognition results of the sample speech data.
[0194] In some embodiments, the encoder includes n serially connected encoding layers, where n is an integer greater than 1, and the encoding processing module 1920 is used to:
[0195] Inputting the audio feature sequence into the first encoding layer of the encoder, encoding the audio feature sequence through the first encoding layer, and obtaining an output feature sequence of the first encoding layer;
[0196] For the i-th encoding layer of the encoder, the output feature sequence of the i-1-th encoding layer is input to the i-th encoding layer, and the output feature sequence of the i-1-th encoding layer is encoded by the i-th encoding layer to obtain the output feature sequence of the i-th encoding layer; wherein, when the i-th encoding layer encodes the first block, the output feature of the at least one second block at the i-1-th encoding layer is reused, and i is an integer greater than 1 and less than or equal to n;
[0197] Among them, the output feature sequence of the nth encoding layer of the encoder is used as the hidden layer feature sequence.
[0198] In some embodiments, the block determined by the first coding layer includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame; the block determined by the i-th coding layer includes: at least one valid frame, and at least one historical frame before the valid frame.
[0199] In some embodiments, the encoding layer includes: a first feedforward module, a multi-head self-attention module, a convolution module, a second feedforward module, and a layer normalization module;
[0200] The first feedforward module is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence;
[0201] The multi-head self-attention module is used to process the first intermediate feature sequence using a multi-head self-attention mechanism to obtain a second intermediate feature sequence;
[0202] The convolution module is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence;
[0203] The second feedforward module is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence;
[0204] The layer normalization module is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
[0205] In some embodiments, the convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain the third intermediate feature of the current frame.
[0206] In some embodiments, the encoder determines the frames included in each of the blocks based on a mask matrix; wherein the mask matrix includes multiple groups of elements, each group of elements is used to indicate the frames included in a block, and each group of elements uses two different values to distinguish between frames included and not included in a block.
[0207] In an embodiment of the present application, when encoding the first block, the encoding of the first block is performed by reusing the processing results of at least one second block having overlapping frames of the first block, which reduces the amount of calculation and calculation time, thereby speeding up the model training speed and improving the training efficiency of the speech recognition model.
[0208] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0209] Please refer to Fig. 20 , which shows a schematic diagram of the structure of a computer device provided in one embodiment of the present application. The computer device can be any electronic device with data calculation, processing and storage functions, such as a mobile phone, a tablet computer, a PC (Personal Computer) or a server. The computer device can be implemented as a model use device for implementing the real-time speech recognition method provided in the above embodiment; or, the computer device can be implemented as a model training device for implementing the training method of the real-time speech recognition model provided in the above embodiment. Specifically:
[0210] The computer device 2000 includes a central processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and an FPGA (Field Programmable Gate Array)) 2001, a system memory 2004 including a RAM (Random-Access Memory) 2002 and a ROM (Read-Only Memory) 2003, and a system bus 2005 connecting the system memory 2004 and the central processing unit 2001. The computer device 2000 also includes a basic input / output system (Input Output System, I / O system) 2006 for helping various devices in the server to transmit information, and a large-capacity storage device 2007 for storing an operating system 2013, application programs 2014 and other program modules 2015.
[0211] The basic input / output system 2006 includes a display 2008 for displaying information and an input device 2009 such as a mouse and a keyboard for inputting information of an object. The display 2008 and the input device 2009 are connected to the central processing unit 2001 via an input / output controller 2010 connected to the system bus 2005. The basic input / output system 2006 may also include an input / output controller 2010 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 2010 also provides output to a display screen, a printer, or other types of output devices.
[0212] The mass storage device 2007 is connected to the central processing unit 2001 via a mass storage controller (not shown) connected to the system bus 2005. The mass storage device 2007 and its associated computer readable medium provide non-volatile storage for the computer device 2000. That is, the mass storage device 2007 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0213] Without loss of generality, the computer readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 2004 and mass storage device 2007 can be collectively referred to as memory.
[0214] According to the embodiment of the present application, the computer device 2000 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 2000 can be connected to the network 2012 through the network interface unit 2011 connected to the system bus 2005, or the network interface unit 2011 can be used to connect to other types of networks or remote computer systems (not shown).
[0215] The memory also includes at least one instruction, at least one program, code set or instruction set, which is stored in the memory and configured to be executed by one or more processors to implement the above-mentioned real-time speech recognition method or real-time speech recognition model training method.
[0216] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, code set or instruction set is stored. When the at least one instruction, at least one program, code set or instruction set is executed by a processor of a computer device, the real-time speech recognition method or the real-time speech recognition model training method provided in the above embodiment is implemented.
[0217] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0218] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned real-time speech recognition method or the real-time speech recognition model training method.
[0219] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0220] The above are merely exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A real-time speech recognition method, characterized in that: The method comprises: In the process of collecting target speech data, an audio feature sequence of a block to be recognized of the target speech data is obtained, wherein the block to be recognized includes at least two consecutive frames in the target speech data, the block to be recognized includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame, and the audio feature sequence of the block to be recognized includes audio features of each frame included in the block to be recognized; Acquire, from the data stored in the buffer area, a processing result of the historical block corresponding to the block to be identified; wherein the valid frame of the historical block has at least one overlapping frame with the historical frame of the block to be identified, and the historical block is a block that has been coded, and the processing result of the historical block refers to the processing result of the valid frame of the historical block; The encoder of the real-time speech recognition model encodes the audio feature sequence of the block to be identified according to the processing result of the valid frame of the historical block to obtain a hidden layer feature sequence of the block to be identified, wherein the hidden layer feature sequence of the block to be identified includes the hidden layer features of each frame contained in the block to be identified, and the processing result of the valid frame of the historical block is directly used as the processing result of the historical frame contained in the block to be identified, so that the processing result of the historical frame contained in the block to be identified does not need to be calculated; According to the hidden layer feature sequence, the real-time speech recognition result of the block to be recognized is obtained by decoding.
2. The method according to claim 1, characterized in that The encoder comprises n serially connected encoding layers, where n is an integer greater than 1; The encoding layer includes a multi-head self-attention module and a convolution module, wherein the multi-head self-attention module is used to process the input feature sequence using the multi-head self-attention mechanism, and the convolution module is used to perform convolution processing on the input feature sequence; The cache area includes a first cache area and a second cache area, the first cache area is used to store the processing results of the multi-head self-attention module for the historical block, and the second cache area is used to store the processing results of the convolution module for the historical block.
3. The method according to claim 2, characterized in that The encoding layer further includes a first feedforward module, a second feedforward module and a layer normalization module; The first feedforward module is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence; The multi-head self-attention module is used to process the first intermediate feature sequence using a multi-head self-attention mechanism to obtain a second intermediate feature sequence; The convolution module is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence; The second feedforward module is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence; The layer normalization module is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
4. The method according to claim 3, characterized in that The convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain the third intermediate feature of the current frame.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The number of future frames is determined based on the latency requirement of the current speech recognition scenario.
6. A method for training a real-time speech recognition model, characterized in that: The method comprises: Acquire an audio feature sequence of sample speech data, wherein the audio feature sequence includes audio features of multiple frames of the sample speech data; The audio feature sequence is input into the encoder of the real-time speech recognition model, and the audio feature sequence is encoded by the encoder to obtain a hidden feature sequence of the sample speech data, wherein the hidden feature sequence includes hidden features of the multiple frames; wherein the encoder performs encoding processing in blocks, each block includes at least two consecutive frames of the multiple frames, each block includes at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame, and there is at least one overlapping frame between two adjacent blocks, and when the encoder performs encoding processing on the first block, the processing result of at least one second block is reused, and the processing result of the second block refers to the processing result of the valid frame of the second block, the valid frame of the second block has at least one overlapping frame with the historical frame of the first block, and the second block is a block that has been encoded; the processing result of the valid frame of the second block is directly used as the processing result of the historical frame contained in the first block, so that the processing result of the historical frame contained in the first block does not need to be calculated; Decoding the sample speech data using a decoder of the real-time speech recognition model according to the hidden layer feature sequence to obtain a predicted recognition result of the sample speech data; The real-time speech recognition model is trained based on the predicted recognition results and the actual recognition results of the sample speech data.
7. The method according to claim 6, characterized in that The encoder comprises n serially connected encoding layers, where n is an integer greater than 1; The step of inputting the audio feature sequence into the encoder of the real-time speech recognition model and encoding the audio feature sequence by the encoder to obtain the hidden feature sequence of the sample speech data comprises: Inputting the audio feature sequence into the first encoding layer of the encoder, encoding the audio feature sequence through the first encoding layer, and obtaining an output feature sequence of the first encoding layer; For the i-th encoding layer of the encoder, the output feature sequence of the i-1-th encoding layer is input to the i-th encoding layer, and the output feature sequence of the i-1-th encoding layer is encoded by the i-th encoding layer to obtain the output feature sequence of the i-th encoding layer; wherein, when the i-th encoding layer encodes the first block, the output feature of the at least one second block at the i-1-th encoding layer is reused, and i is an integer greater than 1 and less than or equal to n; Among them, the output feature sequence of the nth encoding layer of the encoder is used as the hidden layer feature sequence.
8. The method according to claim 7, characterized in that The block determined by the first coding layer includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame; The block determined by the i-th coding layer includes: at least one valid frame, and at least one historical frame before the valid frame.
9. The method according to claim 7, characterized in that: The encoding layer includes: a first feedforward module, a multi-head self-attention module, a convolution module, a second feedforward module and a layer normalization module; The first feedforward module is used to perform feedforward processing on the input feature sequence to obtain a first intermediate feature sequence; The multi-head self-attention module is used to process the first intermediate feature sequence using a multi-head self-attention mechanism to obtain a second intermediate feature sequence; The convolution module is used to perform convolution processing on the second intermediate feature sequence to obtain a third intermediate feature sequence; The second feedforward module is used to perform feedforward processing on the third intermediate feature sequence to obtain a fourth intermediate feature sequence; The layer normalization module is used to normalize the fourth intermediate feature sequence to obtain an output feature sequence.
10. The method according to claim 9, characterized in that The convolution module is used to perform convolution processing on the second intermediate feature of the current frame and the second intermediate feature of at least one historical frame of the current frame to obtain the third intermediate feature of the current frame.
11. The method according to any one of claims 6 to 10, characterized in that: The encoder determines the frames included in each of the blocks according to a mask matrix; wherein the mask matrix includes multiple groups of elements, each group of elements is used to indicate the frames included in a block, and each group of elements uses two different values to distinguish the frames included and not included in a block.
12. A real-time speech recognition device, characterized in that: The device comprises: A sequence acquisition module, used for acquiring an audio feature sequence of a block to be recognized of the target speech data during the process of collecting the target speech data, wherein the block to be recognized includes at least two consecutive frames in the target speech data, the block to be recognized includes: at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame, and the audio feature sequence of the block to be recognized includes audio features of each frame included in the block to be recognized; A coding processing module, used for obtaining the processing result of the historical block corresponding to the block to be identified from the data stored in the buffer area; wherein the valid frame of the historical block has at least one overlapping frame with the historical frame of the block to be identified, and the historical block is a block that has been coded, and the processing result of the historical block refers to the processing result of the valid frame of the historical block; the encoder of the real-time speech recognition model encodes the audio feature sequence of the block to be identified according to the processing result of the valid frame of the historical block to obtain the hidden layer feature sequence of the block to be identified, the hidden layer feature sequence of the block to be identified includes the hidden layer features of each frame contained in the block to be identified, and the processing result of the valid frame of the historical block is directly used as the processing result of the historical frame contained in the block to be identified, so that the processing result of the historical frame contained in the block to be identified does not need to be calculated; The decoding processing module is used to decode and obtain the real-time speech recognition result of the block to be recognized according to the hidden layer feature sequence.
13. A training device for a real-time speech recognition model, characterized in that: The device comprises: A sample acquisition module, used to acquire an audio feature sequence of sample speech data, wherein the audio feature sequence includes audio features of multiple frames of the sample speech data; A coding processing module, used for inputting the audio feature sequence into the encoder of the real-time speech recognition model, and encoding the audio feature sequence through the encoder to obtain a hidden feature sequence of the sample speech data, wherein the hidden feature sequence includes hidden features of the multiple frames; wherein the encoder performs coding processing in units of blocks, each block includes at least two consecutive frames among the multiple frames, each block includes at least one valid frame, at least one historical frame before the valid frame, and at least one future frame after the valid frame, and there is at least one overlapping frame between two adjacent blocks, and when the encoder performs coding processing on the first block, it reuses the processing result of at least one second block, the processing result of the second block refers to the processing result of the valid frame of the second block, the valid frame of the second block has at least one overlapping frame with the historical frame of the first block, and the second block is a block that has been coded; the processing result of the valid frame of the second block is directly used as the processing result of the historical frame contained in the first block, so that the processing result of the historical frame contained in the first block does not need to be calculated; A decoding processing module, used for decoding the predicted recognition result of the sample speech data according to the hidden layer feature sequence through the decoder of the real-time speech recognition model; The model training module is used to train the real-time speech recognition model based on the predicted recognition results and the actual recognition results of the sample speech data.
14. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 11.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 11.
16. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor reads and executes the computer instructions from the computer-readable storage medium to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 11.
Citation Information
Patent Citations
Voice wake-up detection method, device and equipment and storage medium
CN110619871A
Speech recognition method and device and electronic equipment
CN113362812A
Voice recognition and encoding and decoding method and device, electronic equipment and storage medium
CN113889076A
Method and Apparatus for Multi-Lingual End-to-End Speech Recognition
US20190189111A1
