Speech recognition optimization method, electronic device and storage medium
By using the first word decoder in the speech recognition system combined with the inaccurate posterior results of the deep neural network model for decoding, the problem of difficulty in optimizing the structure of the speech recognition optimization engine and high first word delay is solved, and the first word delay is achieved. The reduction and recognition accuracy are improved, improving the user experience.
Patent Information
- Application Number
- CN202210357253.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-02
AI Technical Summary
It is difficult to optimize the structure of existing speech recognition optimization engines. Adjusting model parameters requires a long period of training and iteration, which makes it difficult to optimize the first word delay and accuracy. Especially in deep neural network models, a single calculation of the number of frames and data transmission is Frequency adjustment will affect system performance and recognition rate.
When the first word is not recognized, the first word decoder is used to decode the first word to be recognized, and the inaccurate posterior results of the deep neural network model are combined for decoding to reduce the first word delay and use the language model of the training corpus Improve the accuracy of first word recognition.
The delay in recognizing the first word is greatly reduced and the accuracy of first word recognition is improved. The optimized system can improve the update frequency of real-time recognition results and user experience without affecting the recognition rate.
Smart Images

Figure CN114678008B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of speech data processing, and in particular relates to a speech recognition optimization method, an electronic device and a storage medium. Background Art
[0002] With the widespread application of voice recognition optimization technology, voice interaction has begun to extend to visualization, and voice devices with screens have appeared on the market. Application scenarios include speakers with screens, real-time transcription, voice input methods, etc. Most of these screen-based application scenarios use real-time on-screen display, that is, the real-time recognition results are displayed on the screen while the user inputs voice commands. The on-screen effect will affect the user experience. The on-screen effect includes recognition accuracy, recognition result update interval, first word delay, last frame delay, etc. The first word delay is defined as: the time from when a person starts speaking to when the first word appears on the screen; the first word accuracy is defined as: the ratio of the first word on the screen to the first word of the final recognition result to the total number of test audio items.
[0003] Factors affecting the on-screen effect include network delay, voice endpoint detection delay, recognition engine delay, etc. Among them: network delay is uncontrollable; the delay of voice endpoint detection is relatively small, generally 100ms-200ms; there is a lot of room for delay optimization of the recognition engine.
[0004] Among them, the first word delay and the first word accuracy have a direct impact on the user experience. To this end, optimization can be achieved by optimizing the recognition engine structure, adjusting model parameters, reducing the recognition engine calculation interval, and adjusting the packet sending frequency.
[0005] For the currently popular recognition engines based on deep neural networks, the optimization methods that can be selected are: optimizing the speech recognition optimization engine structure and adjusting the recognition engine structure parameters. In the deep neural network model, in order to improve performance, past and future information needs to be considered when calculating the results of the current frame. Therefore, reducing the number of frames of future information required can reduce model latency.
[0006] Reduce the number of frames calculated at a time for the deep neural network model of the speech recognition optimization engine. When inferring a deep neural network model, cache_size frames are usually calculated at a time to increase processing speed and concurrency. Reducing cache_size increases the calculation frequency of the recognition engine, thereby increasing the update frequency of real-time recognition results.
[0007] Reduce the granularity of the dictionary used by the recognition engine, breaking long words into shorter ones based on semantic or statistical meaning, so that the first word can appear sooner with less speech received.
[0008] Adjust the sending frequency of audio data. Generally, audio data is sent every 20ms-100ms, and a result is obtained each time the data is sent. Therefore, reducing the time slice can improve the recognition response speed.
[0009] The disadvantage is that it is difficult to optimize the structure of the speech recognition optimization engine. To adjust the recognition engine structure parameters, it is necessary to retrain the recognition model and perform recognition rate tests for multiple parameter optional values. If the recognition rate is not up to standard, the model needs to be retrained. Only when the recognition rate meets the requirements can the most appropriate parameters be selected based on the optimal first word delay. The entire training cycle is long and requires repeated iterations.
[0010] Regarding the method of adjusting the cache_size of the single calculation frame number of the deep neural network model, reducing the cache_size will cause frequent model calculations, resulting in a decrease in the overall system performance, an increase in real-time rate, and a decrease in concurrency; the cache_size of some models is determined during training, and the same cache_size needs to be used for inference, that is, the cache_size cannot be adjusted, otherwise it will affect the model output and cause a decrease in the recognition rate.
[0011] The data transmission frequency can reduce the first word delay, but the data transmission frequency is controlled by the recognition requester (the voice recognition optimization terminal, usually the mobile terminal, such as a mobile phone, speaker, etc.), and the recognition engine passively accepts it. Generally, it is 100ms. If the transmission frequency is reduced, the recognition mobile terminal and the recognition server will frequently fall into the network transmission and reception logic, affecting the overall performance. Summary of the invention
[0012] The embodiments of the present invention provide a speech recognition optimization method and device, which are used to solve at least one of the above-mentioned technical problems.
[0013] In a first aspect, an embodiment of the present invention provides a speech recognition optimization method, comprising: determining whether a first word has been recognized; if the first word has not been recognized, using a first word decoder to decode the first word to be recognized to obtain a first decoding result, wherein the first word decoder uses an inaccurate a posteriori result output by a deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and an accurate a posteriori result.
[0014] In a second aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the speech recognition optimization method of any embodiment of the present invention.
[0015] In a third aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to perform the steps of the speech recognition optimization method of any embodiment of the present invention.
[0016] The method, electronic device and storage medium of the present application can significantly reduce the delay in recognizing the first word by judging whether the first word has been recognized and, if the first word has not been recognized, decoding the first word to be recognized using a first word decoder to obtain a first decoding result. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flowchart of a speech recognition optimization method provided by one embodiment of the present invention;
[0019] Figure 2 A flowchart of another speech recognition optimization method provided by an embodiment of the present invention;
[0020] Figure 3 A flowchart of another speech recognition optimization method provided by an embodiment of the present invention;
[0021] Figure 4 The present invention provides a flowchart of a specific example of a speech recognition optimization method according to an embodiment of the present invention.
[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Please refer to Figure 1 , which shows a flow chart of an embodiment of a speech recognition optimization method of the present application.
[0025] like Figure 1 As shown, in step 101, it is determined whether the first word has been recognized;
[0026] In step 102, if the first word to be recognized is not output, a first word decoder is used to decode the first word to be recognized to obtain a first decoding result, wherein the first word decoder uses an inaccurate a posteriori result output by a deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and an accurate a posteriori result.
[0027] In this embodiment, for step 101, the speech recognition optimization device determines whether the first word has been recognized. For example, when the user inputs a voice command, the real-time recognition result will be displayed on the screen. After the user inputs the voice command, it is determined whether the first word has been recognized.
[0028] For step 102, if the first word is not recognized, the first word to be recognized is decoded by a first word decoder to obtain a first decoding result. For example, when calculating the result of the current word, the historical frame and the future frame are combined for calculation, and the inaccurate a posteriori result output by the deep neural network model is used for recognition and decoding, wherein the first word decoder uses the inaccurate a posteriori result output by the deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and the accurate a posteriori result. For example, in general, the inaccurate a posteriori result output by the deep neural network model will come out first. The first word decoder can reduce the first word delay by using the inaccurate a posteriori result. For example, the general first word delay is 750ms~1200ms, which can be optimized to 500~700ms by using the first word decoder.
[0029] The method of this embodiment determines whether the first word has been recognized. If the first word has not been recognized, the first word decoder is used to decode the first word to be recognized to obtain a first decoding result, thereby significantly reducing the delay in recognizing the first word.
[0030] In the method described in the above embodiment, after determining whether the first character has been recognized, the method further includes:
[0031] At the same time, the accurate a posteriori result output by the deep neural network model is decoded to obtain a second decoding result. For example, after the recognition engine receives the audio data, it extracts audio features from the audio data. When the cache reaches a sufficient number of frames or a specified number of frames, the cached audio data is sent to the neural network model for calculation, and accurate a posteriori results and inaccurate a posteriori results can be obtained. The accurate a posteriori result can be decoded to obtain the second decoding result.
[0032] The method of this embodiment obtains a second decoding result by decoding using the accurate a posteriori result output by the deep neural network model, thereby using two decoding methods to reduce the delay in recognizing the first word.
[0033] In some optional embodiments, after simultaneously using the accurate a posteriori result output by the deep neural network model to perform decoding to obtain a second decoding result, the method further includes:
[0034] The result given first between the first decoding result and the second decoding result is used as the decoding result of the first word. For example, for the first word, any decoder that preferentially solves the recognition result is returned as the first word result. In general, the inaccurate posterior result output by the deep neural network model will be output first, and the first decoding result is obtained through the inaccurate result.
[0035] The method of this embodiment uses the result given first between the first decoding result and the second decoding result as the decoding result of the first word, thereby reducing the delay in recognizing the first word.
[0036] In some optional embodiments, before determining whether the recognized current word is the first word of the recognition result, the method further includes:
[0037] The language model used by the first word decoder is trained with the first word of the training corpus to improve the recognition accuracy of the first word. For example, after the language model is trained, the first word with higher accuracy will be output first. For example, for the same pronunciation, the word that is often used as the first word, that is, the word with a higher probability of being the first word, will be output first.
[0038] The method of this embodiment can greatly improve the recognition accuracy of the first word by using the first word of the training corpus to train the language model used by the first word decoder.
[0039] Further references Figure 2 , which shows a flowchart of another speech recognition optimization method provided by an embodiment of the present application. Figure 1 A flowchart of the steps further limited by the process before "determining whether the first word has been recognized".
[0040] like Figure 2 As shown, in step 201, audio data is received and audio features in the audio data are extracted;
[0041] In step 202, if the number of frames of the audio feature reaches the single calculation frame number of the deep neural network model, the corresponding audio feature is sent to the deep neural network model for calculation to obtain the accurate a posteriori results and inaccurate a posteriori results output by the deep neural network model.
[0042] In this embodiment, for step 201, the speech recognition optimization device receives audio data and extracts audio features from the audio data, wherein feature extraction and feature selection are both to find the most effective features from the original features, such as invariance of samples of the same type, discriminability of different samples, robustness to noise, etc.
[0043] For step 202, if the number of cached frames of the audio feature reaches the number of single calculation frames of the deep neural network model, the corresponding audio feature is sent to the deep neural network model for calculation, and the accurate a posteriori results and inaccurate a posteriori results output by the deep neural network model are obtained. For example, when the number of frames reaches cache_size frames, they are sent to the deep neural network model for calculation to obtain the a posteriori output, wherein, in some optional embodiments, the inaccurate a posteriori results include future frames, and the accurate a posteriori results include historical frames, that is, the model output result corresponding to the current frame includes historical frame information and future frame information. For example, when calculating the current frame, historical frames and future frames are used for calculation, thereby reducing the delay in recognizing the first word and improving the accuracy.
[0044] The method of this embodiment sends the audio features to the deep neural network model for calculation when the number of cached frames reaches the single calculation frame number of the deep neural network model, thereby obtaining accurate and inaccurate a posteriori results output by the deep neural network model, reducing the delay in recognizing the first word and improving the accuracy.
[0045] In some optional embodiments, after determining whether the recognized current word is the first word of the recognition result, the method further includes:
[0046] If the first word to be recognized is given, only the accurate a posteriori result output by the deep neural network model is used for decoding to obtain the recognition result of the current audio.
[0047] Further references Figure 3 , which shows a flowchart of another speech recognition optimization method provided by an embodiment of the present application. This flowchart is mainly a flowchart of the steps that further limit the process after "only using the accurate a posteriori results output by the deep neural network model to decode the recognition result of the current audio" in the above embodiment.
[0048] like Figure 3 As shown, in step 301, if the audio stream has not ended, the real-time decoding result is returned;
[0049] In step 302, if the audio stream has ended, the decoding is terminated and the final recognition result is output, and the final recognition result is post-processed.
[0050] In this embodiment, for step 301, if the audio stream has not ended, the real-time decoding result is returned; for step 302, if the audio stream has ended, the decoding is terminated and the final recognition result is output, and the final recognition result is post-processed.
[0051] The method of this embodiment returns the real-time decoding result when the audio stream has not yet ended, terminates the decoding and outputs the final recognition result when the audio stream has ended, and post-processes the final recognition result, so as to realize accurate recognition and display of the user's voice.
[0052] In the method of any of the above embodiments, the inaccurate posterior result includes the future frame, the accurate posterior result includes the historical frame, and the model output result corresponding to the current frame includes the historical frame and future frame information. For example, when calculating the current frame, the historical frame and the future frame are obtained for calculation, thereby reducing the delay in recognizing the first word and improving the accuracy.
[0053] It should be noted that the above method steps are not used to limit the execution order of each step. In fact, some steps may be executed simultaneously or in the opposite order to the specified step order, and this application has no limitation on this.
[0054] The following describes some problems encountered by the inventor in the process of implementing the present invention and a specific embodiment of the solution finally determined, so that those skilled in the art can better understand the solution of the present application.
[0055] The inventors found in the process of implementing this application that the defects in the prior art are mainly caused by the following reasons:
[0056] The adjustment of the recognition engine structure and parameters is labor-intensive and requires repeated iterations. The size of the single calculation frame number of the deep neural network model affects the GPU computing performance, system concurrency and latency. The request end's packet sending frequency is determined by the caller and will also be affected by network fluctuations.
[0057] The inventors also found that the common methods used by those skilled in the art to solve the above problems are: optimizing the recognition structure and parameters, improving the recognition performance, reducing the amount of calculation and delay; adjusting the number of speech frames calculated for a single recognition; adjusting the refresh frequency of the recognition results, adjusting the packet sending frequency of the request end, etc.
[0058] The solution of this application is designed and optimized mainly from the following aspects:
[0059] This application optimizes the delay and accuracy of the first word on the screen. The speech recognition optimization model requires future information for calculation in order to give a definite acoustic result. Under the condition that the existing recognition engine model structure and model parameters do not change, this application makes full use of all current information, that is, uses the results of the current uncertain number of frames for recognition and decoding, to achieve the optimization purpose of giving the first word in advance.
[0060] In the deep neural network model, in order to improve performance, when calculating the result of the current frame, it is necessary to consider past and future information. That is, when calculating the current frame, the historical left frame and the future right frame are needed to calculate, and the definite result of the current frame and the uncertain result of the right frame on the right are given at the same time.
[0061] The embodiment of the present application adds a decoder dedicated to first word recognition on the basis of the original recognition engine. The original recognition engine uses the information of the determined frame, and there is a right frame delay; the first word recognition decoder acts on the original recognition engine before the first word comes out, and uses the uncertain right frame result to perform recognition and decoding, thereby avoiding the right frame delay. The first word recognition decoder gives a temporary result with a certain accuracy in advance, which will be refreshed by a more accurate recognition result later, and will not affect the final recognition rate. At the same time, a small language model is trained according to the first word of the corpus to improve the accuracy of the first word.
[0062] Please refer to Figure 4 , which shows a flowchart of a specific example of a speech recognition optimization method provided by an embodiment of the present invention.
[0063] like Figure 4 As shown, the steps include: the recognition engine receives audio data and extracts audio features.
[0064] When the number of frames reaches cache_size frames, they are sent to the deep neural network model for calculation to obtain the posterior output, which includes the accurate results of the current cache_size and the inaccurate results of the right frame.
[0065] If the first word result has not been obtained, accurate a posteriori recognition and decoding and inaccurate a posteriori recognition and decoding are performed simultaneously; if the first word result has been obtained, only accurate a posteriori recognition and decoding are performed.
[0066] Combining the results of the above two decoding methods. For the first word, any decoder that gives priority to the recognition result will be returned as the first word result. Generally, inaccurate a posteriori decoding will give priority to the result.
[0067] If the audio stream has not ended, the real-time feedback result is returned. If the audio stream has ended, the decoding is terminated, the final recognition result is output, and post-processing is performed.
[0068] In terms of speech recognition optimization resources in different scenarios, the first word delay was 750ms to 1200ms before optimization and 500 to 700ms after optimization; the first word accuracy can reach 70%-90%. The above indicators can meet the user experience; the newly added decoding calculation amount is negligible compared to the entire recognition engine, and does not affect the real-time rate and concurrency.
[0069] In some other embodiments, the present invention also provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the speech recognition optimization method in any of the above method embodiments;
[0070] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:
[0071] Determine whether the first word has been recognized;
[0072] If the first word to be recognized is not output, a first word decoder is used to decode the first word to be recognized to obtain a first decoding result, wherein the first word decoder uses an inaccurate a posteriori result output by a deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and an accurate a posteriori result.
[0073] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the speech recognition optimization device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the speech recognition optimization device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0074] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any of the above-mentioned speech recognition optimization methods.
[0075] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the device includes: one or more processors 510 and a memory 520, Figure 5A processor 510 is used as an example. The device of the speech recognition optimization method may also include: an input device 530 and an output device 550. The processor 510, the memory 520, the input device 530 and the output device 550 may be connected via a bus or other means. Figure 5 The example of connecting via a bus is taken. The memory 520 is the above-mentioned non-volatile computer-readable storage medium. The processor 510 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 520, that is, the speech recognition optimization method of the above-mentioned method embodiment is realized. The input device 530 can receive input digital or character information, and generate key signal input related to user settings and function control of the communication compensation device. The output device 550 may include display devices such as display screens.
[0076] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0077] As an implementation mode, the electronic device is applied to a speech recognition optimization device, used for a client, and includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:
[0078] Determine whether the first word has been recognized;
[0079] If the first word to be recognized is not output, a first word decoder is used to decode the first word to be recognized to obtain a first decoding result, wherein the first word decoder uses an inaccurate a posteriori result output by a deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and an accurate a posteriori result.
[0080] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
[0081] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0082] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0083] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0084] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0085] (5) Other electronic devices with data interaction functions.
[0086] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A speech recognition optimization method, comprising: Determine whether the first word has been recognized; If the first word to be recognized is not output, a first word decoder is used to decode the first word to be recognized to obtain a first decoding result, wherein the first word decoder uses an inaccurate a posteriori result output by a deep neural network model for decoding, and the output of the deep neural network model includes the inaccurate a posteriori result and an accurate a posteriori result; Before determining whether the first word has been recognized, the method further includes: Receiving audio data, and extracting audio features from the audio data; If the number of frames of the audio feature reaches the number of frames calculated in a single time by the deep neural network model, the audio feature is sent to the deep neural network model for calculation, and an accurate a posteriori result and an inaccurate a posteriori result output by the deep neural network model are obtained; the inaccurate a posteriori result includes future frames, and the accurate a posteriori result includes historical frames; The model output result for the current frame includes historical frame information and future frame information, so that when calculating the current frame, the historical frame and the future frame are used for calculation to reduce the delay in recognizing the first word.
2. The method according to claim 1, wherein: After determining whether the first word has been recognized, the method further includes: At the same time, the accurate a posteriori result output by the deep neural network model is decoded to obtain a second decoding result.
3. The method according to claim 2, wherein: After simultaneously using the accurate a posteriori result output by the deep neural network model to perform decoding to obtain a second decoding result, the method further includes: The result given first between the first decoding result and the second decoding result is used as the decoding result of the first word.
4. The method according to claim 1, wherein: Before determining whether the first word has been recognized, the method further includes: The language model used by the first word decoder is trained using the first word of the training corpus to improve the recognition accuracy of the first word.
5. The method according to claim 1, wherein: After determining whether the first word has been recognized, the method further includes: If the first word of recognition is given, only the accurate a posteriori result output by the deep neural network model is used for decoding to obtain the recognition result of the current audio.
6. The method according to claim 5, wherein: After the recognition result of the current audio is obtained by decoding using only the accurate a posteriori result output by the deep neural network model if the recognition first word is given, the method further includes: If the audio stream has not ended, the real-time decoding result is returned; If the audio stream has ended, the decoding is terminated and the final recognition result is output, and the final recognition result is post-processed.
7. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 6.
8. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
