Voice command recognition method, device, computer equipment and computer readable medium
Through the combination of non-standard speech recognition models and quantum deep learning models, keywords and word meanings in voice commands are extracted, auxiliary words are filled in, and control instructions are generated, which solves the recognition problem of various types of voice commands and achieves high accuracy and rapid response. Voice command recognition.
Patent Information
- Application Number
- CN202210505217.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-05-10
AI Technical Summary
When there are many kinds of voice commands, it is difficult for the existing technology to realize timely and accurate voice command recognition.
Use a preset non-standard speech recognition model to recognize real voice commands, extract keywords, and fill in particles based on word meaning and sequence relationships. Control instructions are generated through a quantum deep learning model to improve recognition accuracy and timeliness.
In a complex voice command environment, through standard judgment and predictive recognition of voice commands, the accuracy and timeliness of command recognition are improved, ensuring accurate conversion of voice commands and rapid generation of control instructions.
Smart Images

Figure CN114708860B_ABST
Abstract
Description
Technical Field
[0001] The present application is applicable to the field of artificial intelligence technology, and in particular, relates to a voice command recognition method, apparatus, computer equipment, and computer-readable medium. Background Art
[0002] At present, with the rapid growth of the use of robots in life, the quality of human life can be improved. Humans can guide robots to complete corresponding tasks through corresponding voice commands. This process needs to be based on human-computer interaction technology. In the process of human-computer interaction, humans communicate with machines through voice, and the machine needs to understand the true intention of human voice. The current voice recognition technology is to allow the machine to convert voice signals into corresponding text or commands through the recognition and understanding process. For example, by applying voice recognition technology to the Internet of Vehicles, the driver can set the destination and enter the navigation by speaking to the robot customer service. However, with the improvement of living standards, the timeliness and accuracy of voice command recognition are increasingly required, and the types of voice commands are also increasing. Therefore, how to recognize commands in a timely and accurate manner under the complex types of voice commands is an urgent problem to be solved. Summary of the invention
[0003] In view of this, embodiments of the present application provide a voice command recognition method, apparatus, computer device, and computer-readable medium to solve the problem of timely and accurate recognition of commands when there are many types of voice commands.
[0004] In a first aspect, an embodiment of the present application provides a voice command recognition method, the voice command recognition method comprising:
[0005] Collect real voice commands;
[0006] When it is detected that the real voice command does not meet the pronunciation standard, the real voice command is recognized using a preset non-standard voice recognition model to obtain M keywords, where M is an integer greater than zero;
[0007] When M is greater than 1, the meanings of all keywords are extracted, and combined with the order of all keywords in the real voice command, auxiliary words are filled between any two adjacent keywords to obtain a predicted text;
[0008] Performing speech synthesis on the predicted text using a first pronunciation mode to obtain a first predicted speech command;
[0009] The first predicted voice command is input into the trained quantum deep learning model to generate corresponding control instructions.
[0010] In one embodiment, after collecting the real voice command, the method further includes:
[0011] When it is detected that the real voice command meets the standard, the real voice command is input into the trained quantum deep learning model to generate a corresponding control instruction.
[0012] In one embodiment, before performing speech synthesis on the predicted text using the first pronunciation mode to obtain the first predicted speech command, the method further includes:
[0013] Performing sound feature recognition on the real voice command to obtain target sound features;
[0014] According to the target voice feature, matching the corresponding target user in a preset voice feature library, wherein the voice feature library stores a mapping relationship between the user and his / her voice feature;
[0015] A pronunciation pattern matching the target user in a preset standard voice library is determined as a target pronunciation pattern, wherein the standard voice library stores a mapping relationship between the user and the pronunciation pattern thereof.
[0016] In one implementation, after obtaining M keywords, the method further includes:
[0017] When M is 1, the second pronunciation mode is used to perform speech synthesis on the keyword to obtain a second predicted speech command;
[0018] The second predicted voice command is input into the trained quantum deep learning model to generate corresponding control instructions.
[0019] In one embodiment, the trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and a fully connected layer, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layer is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero;
[0020] Inputting the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions includes:
[0021] Inputting the first predicted voice command into the first one-dimensional convolutional pooling layer, and outputting the pooling result to the next one-dimensional convolutional pooling layer, until reaching the last one-dimensional convolutional pooling layer;
[0022] The pooling result output by the last one-dimensional convolutional pooling layer is input into the fully connected layer for connection to obtain the corresponding control instructions.
[0023] In one embodiment, the one-dimensional convolution layer is a quantum convolution layer, and the quantum convolution layer includes a quantum encoder, a quantum variational circuit, and a measurer;
[0024] Inputting the first predicted voice command into the first one-dimensional convolutional pooling layer includes:
[0025] Inputting the first predicted voice command into the quantum encoder for quantum encoding to obtain a quantum encoding feature;
[0026] Classifying the quantum coding features through the quantum variational circuit, and sending the classification results to the measuring device to measure the authenticity of the classification results to obtain measurement results;
[0027] The measurement results are input into the one-dimensional pooling layer and the pooling results are output.
[0028] In one embodiment, the meanings of all keywords are extracted, and combined with the order of all keywords in the real voice command, a particle is filled between any two adjacent keywords to obtain a predicted text including:
[0029] For any keyword, similarity analysis is performed on the keyword and the parts of speech of the previous keyword and / or the next keyword of the corresponding keyword, and the meaning of the corresponding keyword is determined according to the similarity analysis result;
[0030] All keywords are arranged in sequence according to the front-to-back order in the real voice command, auxiliary words are selected according to the meanings of any two adjacent keywords, and the selected auxiliary words are filled between the corresponding two adjacent keywords to obtain a predicted text.
[0031] In a second aspect, an embodiment of the present application provides a voice command recognition device, the voice command recognition device comprising:
[0032] A command collection module, used to collect real voice commands;
[0033] A first recognition module is used to use a preset non-standard speech recognition model to recognize the real voice command when it is detected that the real voice command does not meet the pronunciation standard, up to M keywords, where M is an integer greater than zero;
[0034] A text prediction module, for extracting the meanings of all keywords when M is greater than 1, and filling in auxiliary words between any two adjacent keywords in combination with the order of all keywords in the real voice command to obtain a predicted text;
[0035] A first speech synthesis module, configured to perform speech synthesis on the predicted text using a first pronunciation mode to obtain a first predicted speech command;
[0036] The first instruction generation module is used to input the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0037] In one embodiment, the voice command recognition device further includes:
[0038] The second recognition module is used to input the real voice command into the trained quantum deep learning model after collecting the real voice command, and generate a corresponding control instruction when it is detected that the real voice command meets the standard.
[0039] In one embodiment, the voice command recognition device further includes:
[0040] A sound feature recognition module is used to perform sound feature recognition on the real voice command to obtain a target sound feature before performing speech synthesis on the predicted text using the first pronunciation mode to obtain a first predicted voice command;
[0041] A target user determination module, used to match the corresponding target user in a preset voice feature library according to the target voice feature, wherein the voice feature library stores a mapping relationship between the user and his voice feature;
[0042] The target speech determination module is used to determine the pronunciation pattern matching the target user in a preset standard speech library as the target pronunciation pattern, wherein the standard speech library stores a mapping relationship between the user and the pronunciation pattern thereof.
[0043] In one embodiment, the voice command recognition device further includes:
[0044] A second speech synthesis module is used for, after obtaining M keywords, when M is 1, performing speech synthesis on the keywords using a second pronunciation mode to obtain a second predicted speech command;
[0045] The second instruction generation module is used to input the second predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0046] In one embodiment, the trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and a fully connected layer, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layer is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero;
[0047] The first instruction generation module includes:
[0048] A convolutional pooling unit, used for inputting the first predicted voice command into a first one-dimensional convolutional pooling layer, and outputting a pooling result to a next one-dimensional convolutional pooling layer, until reaching a last one-dimensional convolutional pooling layer;
[0049] The instruction generation unit is used to input the pooling result output by the last one-dimensional convolutional pooling layer into the fully connected layer for connection to obtain the corresponding control instruction.
[0050] In one embodiment, the one-dimensional convolution layer is a quantum convolution layer, and the quantum convolution layer includes a quantum encoder, a quantum variational circuit, and a measurer;
[0051] The convolution pooling unit comprises:
[0052] A quantum encoding subunit, configured to input the first predicted voice command into the quantum encoder for quantum encoding to obtain a quantum encoding feature;
[0053] A variational measurement subunit, used to classify the quantum coding features through the quantum variational circuit, and send the classification results to the measuring device to measure the authenticity of the classification results to obtain measurement results;
[0054] The pooling subunit is used to input the measurement results into the one-dimensional pooling layer and output the pooling results.
[0055] In one embodiment, the text prediction module includes:
[0056] A word meaning analysis unit is used to perform similarity analysis on the word and the word parts of the previous keyword and / or the next keyword of any keyword, and determine the word meaning of the corresponding keyword according to the similarity analysis result;
[0057] The text prediction unit is used to arrange all keywords in sequence according to the front-to-back order in the real voice command, select auxiliary words according to the meanings of any two adjacent keywords, and fill the selected auxiliary words between the corresponding two adjacent keywords, traverse all keywords, and obtain predicted text.
[0058] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the voice command recognition method as described in the first aspect when executing the computer program.
[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the voice command recognition method as described in the first aspect is implemented.
[0060] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application collects real voice commands, and when it is detected that the real voice commands do not meet the standards, a preset non-standard voice recognition model is used to recognize the real voice commands, and at least one keyword with a front-to-back order relationship is obtained, the meanings of all the keywords are extracted, and in combination with the front-to-back order relationship of all the keywords, auxiliary words are filled between any two adjacent keywords to obtain a predicted text, and a text-to-speech tool is used to convert the predicted text into a first predicted voice command in combination with any existing standard voice, and the first predicted voice command is input into a trained quantum deep learning model to generate corresponding control instructions to realize the recognition of voice commands, and by judging the standardization of voice commands and predicting and recognizing the commands when the voice commands do not meet the standards, the accuracy of command recognition can be improved, and control instructions can be quickly obtained through quantum deep learning recognition, thereby ensuring the accuracy and timeliness of recognition in a complex type of voice command environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0062] Figure 1 This is a schematic diagram of an application environment of a voice command recognition method provided in Embodiment 1 of the present application;
[0063] Figure 2 It is a flow chart of a voice command recognition method provided in Embodiment 2 of the present application;
[0064] Figure 3 It is a flowchart of a voice command recognition method provided in Embodiment 3 of the present application;
[0065] Figure 4 It is a structural diagram of a voice command recognition device provided in Embodiment 4 of the present application;
[0066] Figure 5 It is a structural diagram of a computer device provided in Example 5 of the present application. DETAILED DESCRIPTION
[0067] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0068] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0069] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0070] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0071] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0072] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0073] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, 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.
[0074] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0075] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0076] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0077] A voice command recognition method provided in the first embodiment of the present application can be applied in the following aspects: Figure 1 In an application environment, a client communicates with a server. The client includes but is not limited to a PDA, a desktop computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a cloud computer device, a personal digital assistant (PDA), and other computer devices. The server can be implemented by an independent server or a server cluster consisting of multiple servers.
[0078] See also Figure 2 , is a flow chart of a voice command recognition method provided in Embodiment 2 of the present application, wherein the voice command recognition method is applied to Figure 1 The server in the server, the computer device corresponding to the server connects to the corresponding database to obtain the corresponding data in the database. The above computer device can also connect to the corresponding client, and the client sends the voice command to the server, realizing the function of the server collecting voice commands. Figure 2 As shown, the voice command recognition method may include the following steps:
[0079] Step S201, collect real voice commands, and when it is detected that the real voice commands do not meet the pronunciation standard, use a preset non-standard voice recognition model to recognize the real voice commands to obtain M keywords.
[0080] In this application, the server is connected to the corresponding client, and the client is used to collect real voice commands and send the real voice commands to the server, thereby implementing the step of collecting real voice commands by the server. Among them, the client can refer to a device with a voice collection device, such as a voice robot, a car terminal, etc.
[0081] Before collecting real voice commands, the client needs to obtain the collection permission for the surrounding environment sound. Only when the collection permission is obtained can the subsequent real voice commands be collected and uploaded to the server. If the client does not have the collection permission, it can collect or not collect the surrounding environment sound, but it cannot send the surrounding environment sound as a real voice command to the server. For example, the user wakes up the client's collection function through a local wake-up command and uploads the collected real voice command to the server, or the user collects the real voice command through the client and then uses the send function to send the real voice command.
[0082] The real voice command may refer to all sound data in the environment. Furthermore, before the real voice command is sent to the server, the real voice command is also subjected to noise reduction and enhancement processing, thereby achieving initial screening of the real voice command and ensuring the accuracy of subsequent recognition of the real voice command.
[0083] The pronunciation standard may refer to the standard pronunciation prescribed for a language, for example, for the Chinese language, Mandarin pronunciation is used as the standard pronunciation of the Chinese language. Due to different users, the above-mentioned real voice commands may be voices formed in dialects or other languages. Therefore, in order to ensure accuracy, it is necessary to identify whether the real voice commands meet the pronunciation standard, and then perform different processing for voices with standard pronunciation and voices with non-standard pronunciation to improve processing efficiency.
[0084] If the real voice command is a voice with non-standard pronunciation, it is necessary to correct or standardize the real voice command to ensure the subsequent requirements for voice recognition. If the real voice command is a voice with standard pronunciation, it is no longer necessary to correct the real voice command.
[0085] Furthermore, the pronunciation standard can be set with reference to different languages. For example, for the Chinese language, Mandarin pronunciation is the standard, and the phonemes in Mandarin pronunciation are composed of three syllables, which can be analyzed into eight phonemes, namely "p, u, t, o, ng, h, u, a". Detecting whether the real voice command meets the pronunciation standard may include the following steps:
[0086] The hidden Markov model is used to extract the sound features of the real voice command and obtain all the phonemes from the sound features;
[0087] The proportion of the eight phonemes in Mandarin pronunciation in all phonemes is calculated. When the proportion is greater than a threshold, it is determined that the real voice command meets the pronunciation standard. When the proportion is not greater than the threshold, it is determined that the real voice command does not meet the pronunciation standard.
[0088] The preset non-standard speech recognition model may refer to a dialect recognizer for extracting keywords in a dialect, etc., through which the real voice command can be recognized to extract the keyword features in the real voice command. The recognition process may include recognition of timbre, pitch, sentence segmentation, etc., and through the above recognition process, more important words are extracted as keywords, thereby excluding corresponding modal particles, conjunctions, and other auxiliary words.
[0089] By using a preset non-standard speech recognition model to recognize real voice commands, corresponding M keywords can be obtained, where M is an integer greater than zero. When M is 1, it means that only one available keyword can be recognized in the real voice command. When M is greater than 1, it means that multiple available keywords can be recognized in the real voice command. If multiple keywords are recognized, the multiple keywords have a front-to-back order relationship in the real voice command.
[0090] The second pronunciation mode is used to perform speech synthesis on the keyword to obtain the second predicted voice command, which is then input into the trained quantum deep learning model to generate the corresponding control instruction.
[0091] A keyword may be composed of one word or more words, and the order of the keywords is the order in which the keywords appear in the most realistic voice command, that is, the time order of the keywords.
[0092] The keyword recognition results are independent for each keyword, but each keyword has the original order relationship, thus retaining the key features that can analyze semantics.
[0093] Optionally, after collecting the real voice command, the following is also included:
[0094] When it is detected that the real voice command meets the pronunciation standard, the real voice command is input into the trained quantum deep learning model to generate the corresponding control instructions.
[0095] Among them, when the real voice command meets the standards, there is no need to process the real voice command. It can be directly sent to the trained quantum deep learning module to obtain control instructions, thereby improving the processing efficiency of the real voice command through pre-processing.
[0096] Step S202, when M is greater than 1, extract the meanings of all keywords, and fill in auxiliary words between any two adjacent keywords in combination with the order of all keywords in the real voice command to obtain a predicted text.
[0097] In this application, the word meaning may refer to the part of speech, meaning, etc. of the keyword, and may essentially refer to the feature vector of the part of speech, the feature vector of the meaning, etc. All keywords are arranged in a sequential order, and the auxiliary words that need to be filled between two adjacent keywords are determined. The auxiliary words to be filled are related to the meanings of the two adjacent keywords. After the auxiliary words are determined, the auxiliary words are filled between the corresponding two adjacent keywords, and finally a predicted text with keywords and auxiliary words is formed.
[0098] Predictive text may refer to a text format for the above-mentioned real voice command, but instead of directly using voice-to-text technology, a part of the voice is converted into text, and the remaining voice is used to fill in the auxiliary words through prediction, thereby finally forming a predicted text.
[0099] Compared with the text converted from real voice commands, the above-mentioned predicted text has a standard voice expression method and can be better applied to subsequent voice command recognition, thereby obtaining accurate control instructions.
[0100] Step S203: Perform speech synthesis on the predicted text using the first pronunciation mode to obtain a first predicted speech command.
[0101] In the present application, the pronunciation mode may refer to a language with a preset mode, which may be a dialect pronunciation, a standard pronunciation, etc. Whether it is a dialect or a standard pronunciation, machine fitting pronunciation or manually recorded pronunciation may be used, wherein the machine fitting pronunciation is to pronounce the phonemes using the set timbre, volume, audio, etc., and the manually recorded pronunciation is to manually record the pronunciation of each word.
[0102] For example, for the pronunciation pattern of Mandarin in the Chinese language, machine fitting pronunciation is to use the set conditions to pronounce the eight phonemes "p, u, t, o, ng, h, u, a". For the pronunciation pattern of dialects in the Chinese language, manual recording pronunciation is to manually pronounce and record each word using the dialect.
[0103] The speech synthesis may be to pronounce each word according to the first pronunciation mode, and connect all the pronunciations together according to the order of the words to obtain the predicted speech, thereby realizing the conversion of the predicted text into the first predicted speech command.
[0104] Compared with the real voice command, the first predicted voice command has standard expression specifications and standard timbre, volume, etc., and can be better applied to subsequent voice command recognition, thereby obtaining accurate control instructions.
[0105] Optionally, before performing speech synthesis on the predicted text using the first pronunciation mode to obtain the first predicted speech command, the method further includes:
[0106] Performing sound feature recognition on the real voice command to obtain target sound features;
[0107] According to the target voice feature, matching the corresponding target user in a preset voice feature library, wherein the voice feature library stores a mapping relationship between the user and his / her voice feature;
[0108] A pronunciation pattern matching the target user in a preset standard voice library is determined as a target pronunciation pattern, wherein the standard voice library stores a mapping relationship between the user and the pronunciation pattern thereof.
[0109] The user may record a corresponding pronunciation to form a pronunciation pattern, and the first pronunciation pattern may be a pronunciation pattern recorded by the user. In order to better fit the voice of the target user who initiated the real voice command, when the first predicted voice command is generated, if the pronunciation pattern of the target user is stored, the pronunciation pattern may be used to form the first predicted voice command.
[0110] Specifically, the sound feature recognition of the real voice command must be performed first, so as to match the target user from the sound feature library. Prior to this, the mapping relationship between the target user and its sound feature must be stored in the sound feature library, where the sound feature library may store the user identity identification number (Identity Document, ID) of the target user.
[0111] Secondly, the pronunciation pattern corresponding to the target user is searched in the standard voice library. Prior to this, the target user and his pronunciation pattern must be stored in the standard voice library. Similarly, for the same user, the user ID of the target user is stored in the standard voice library, which is consistent with the user ID in the above-mentioned sound feature library.
[0112] Step S204: input the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0113] In this application, the trained quantum deep learning model can recognize voice commands as control instructions, thereby controlling the corresponding device to produce an action, and the corresponding device is the device that needs to be controlled in the real voice command collected by the client.
[0114] The trained quantum deep learning model is a machine learning model based on quantum superposition state. Due to the characteristics of quantum superposition state, it naturally has parallelism, so the training speed can be effectively improved.
[0115] The trained quantum deep learning model can be a combination of models based on different structures, such as PaddlePaddle, Tensorflow, Caffe, Theano, MXNet, Torch, and PyTorch.
[0116] Optionally, the trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and fully connected layers, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layers is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero;
[0117] The first predicted voice command is input into the trained quantum deep learning model to generate corresponding control instructions including:
[0118] Input the first predicted voice command into the first one-dimensional convolutional pooling layer, and output the pooling result to the next one-dimensional convolutional pooling layer until reaching the last one-dimensional convolutional pooling layer;
[0119] The pooling result output by the last one-dimensional convolutional pooling layer is input into the fully connected layer for connection to obtain the corresponding control instructions.
[0120] Among them, the above-mentioned trained deep learning model is composed of convolution layers, pooling layers and fully connected layers. The number of convolution layers and pooling layers can be set according to needs. For example, the quantum deep learning model can be composed of 4 one-dimensional quantum convolution layers (QConv1d) and 4 one-dimensional pooling layers (MaxPool1d) and one fully connected layer (FC), wherein the one-dimensional quantum convolution layer performs convolution operations through the characteristics of the quantum superposition state.
[0121] During training, the sample set is input into the one-dimensional convolutional pooling layer and the fully connected layer of the quantum deep learning model, and the contrast loss is used as the loss function. The training goal is to make the contrast loss function converge.
[0122] The dataset for training the above model can be the voice command recognition dataset publicly available from Google, which has 35 types of commands, including: "left", "go", "yes", "down", "up", "on", "right", "no", "off", "stop", etc. There are 84,843 training samples and 11,005 test samples in total.
[0123] Optionally, the one-dimensional convolution layer is a quantum convolution layer, which includes a quantum encoder, a quantum variational circuit, and a measurer:
[0124] Inputting the first predicted voice command into the first one-dimensional convolutional pooling layer includes:
[0125] Inputting the first predicted voice command into a quantum encoder for quantum encoding to obtain a quantum encoding feature;
[0126] The quantum coding features are classified by a quantum variational circuit, and the classification results are sent to a measuring device to measure the authenticity of the classification results to obtain a measurement result;
[0127] The measurement results are input into the one-dimensional pooling layer and the pooling results are output.
[0128] Among them, the above-mentioned one-dimensional convolution layer is the same as the general convolution operation, which inputs the data into the variational quantum circuits (VQC) and then outputs the convolution result through the VQC.
[0129] The formula for the above VQC is as follows:
[0130] q1=f e (y1)
[0131] q2=f u (θ1,…,θ m ;c(q1))
[0132] q3=f d (q2)
[0133] Where y1 = {a1, a2, ..., a n} is the input data; f e , f u and f d They are E, V and M in VQC, where E represents the quantum encoder, V represents the quantum variational circuit, and M represents the measurer; q1, q2 and q3 are f e , f u and f d The output of θ1,…,θ m f u Here, m is set to 3, which means there are 3 learnable parameters.
[0134] Under the same optimization algorithm and the same amount of data training, the accuracy of the above quantum deep learning model reaches 78%, while the accuracy of the deep learning model under the same circumstances is 75%, and the accuracy of the quantum deep learning model is higher. In addition, from the training loss curve, it can be seen that the quantum deep learning model converges faster than the deep learning model under the same circumstances, and the more quantum bits used in the model, the faster the corresponding quantum deep learning model converges during training.
[0135] Optionally, after obtaining M keywords, the following is further included:
[0136] When M is 1, the second pronunciation mode is used to perform speech synthesis on the keyword to obtain a second predicted speech command;
[0137] The second predicted voice command is input into the trained quantum deep learning model to generate corresponding control instructions.
[0138] Among them, in the case that only one available keyword can be identified in the real voice command, there is no need to sort the keywords, insert words, etc. Similarly, the pronunciation mode can refer to a language with a preset mode, which can be the pronunciation of the dialect, the standard pronunciation, etc. Whether it is a dialect or a standard pronunciation, machine fitting pronunciation or manual recording pronunciation can be used, wherein the machine fitting pronunciation is to pronounce the phonemes using the set timbre, volume, audio, etc., and the manual recording pronunciation is to manually record the pronunciation of each word. The above-mentioned second pronunciation mode and the above-mentioned first pronunciation mode can be the same pronunciation mode.
[0139] The embodiment of the present application collects real voice commands, and when it is detected that the real voice commands do not meet the standards, a preset non-standard voice recognition model is used to recognize the real voice commands, and at least one keyword with a front-to-back order relationship is obtained, the meanings of all the keywords are extracted, and in combination with the front-to-back order relationship of all the keywords, auxiliary words are filled between any two adjacent keywords to obtain a predicted text, and a text-to-speech tool is used to convert the predicted text into a first predicted voice command in combination with any existing standard voice, and the first predicted voice command is input into a trained quantum deep learning model to generate a corresponding control instruction to realize the recognition of the voice command. By judging the standardization of the voice command and predicting and recognizing the command when the voice command does not meet the standards, the accuracy of command recognition can be improved, and the control instruction can be quickly obtained through quantum deep learning recognition, thereby ensuring the accuracy and timeliness of recognition in a complex type of voice command environment.
[0140] See also Figure 3 , is a flow chart of a voice command recognition method provided in Embodiment 3 of the present application, such as Figure 3 As shown, the voice command recognition method may include the following steps:
[0141] Step S301, collect real voice commands, and when it is detected that the real voice commands do not meet the pronunciation standard, use a preset non-standard voice recognition model to recognize the real voice commands to obtain M keywords.
[0142] Among them, the content of step S301 is the same as that of the above-mentioned step S201, and reference may be made to the description of step S201, which will not be repeated here.
[0143] Step S302, when M is greater than 1, for any keyword, similarity analysis is performed on the keyword and the parts of speech of the previous keyword and / or the next keyword of the corresponding keyword, and the meaning of the corresponding keyword is determined according to the similarity analysis result.
[0144] In the present application, the parts of speech of the preceding and following keywords of a keyword are analyzed, and the part of speech of the keyword itself is also analyzed, so that the meaning of the keyword can be determined by the similarity of the parts of speech.
[0145] Step S303, all keywords are arranged in order, auxiliary words are selected according to the meanings of any two adjacent keywords, and the selected auxiliary words are filled between the corresponding two adjacent keywords, and all keywords are traversed to obtain predicted text.
[0146] In the present application, the meanings of two adjacent keywords can be used to infer what kind of auxiliary words are needed to connect the two keywords. The selection of auxiliary words can be based on the similarity of the two keyword parts of speech and language norms.
[0147] Step S304: perform speech synthesis on the predicted text using the first pronunciation mode to obtain a first predicted speech command.
[0148] Step S305: input the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0149] Among them, the contents of step S304 to step S305 are the same as those of the above-mentioned step S203 to step S204, and the description of step S203 to step S204 may be referred to, and will not be repeated here.
[0150] The embodiment of the present application collects real voice commands, and when it is detected that the real voice command does not meet the standard, the real voice command is recognized by using a preset non-standard voice recognition model to obtain at least one keyword with a front-to-back order relationship, and for any keyword, the keyword and the parts of speech of the previous keyword and / or the next keyword of the corresponding keyword are similarly analyzed, and the meaning of the corresponding keyword is determined according to the similarity analysis result, and all keywords are arranged in sequence according to the front-to-back order relationship, and auxiliary words are selected according to the meaning of any two adjacent keywords, and the selected auxiliary words are filled between the corresponding two adjacent keywords, and all keywords are traversed to obtain predicted text, and a text-to-speech tool is used to convert the predicted text into a first predicted voice command in combination with any existing standard voice, and the first predicted voice command is input into a trained quantum deep learning model to generate a corresponding control instruction to realize the recognition of the voice command. By judging the standardization of the voice command and predicting and recognizing the command when the voice command does not meet the standard, the accuracy of command recognition can be improved, and the control instruction can be quickly obtained through quantum deep learning recognition, so that the accuracy and timeliness of recognition can be guaranteed in a complex type of voice command environment.
[0151] Corresponding to the voice command recognition method of the above embodiment, Figure 4 The structure block diagram of the voice command recognition device provided in the fourth embodiment of the present application is shown. The voice command recognition device is applied to Figure 1 The server in the embodiment of the present invention is connected to a corresponding database by a computer device corresponding to the server, so as to obtain corresponding data in the database. The computer device can also be connected to a corresponding client, and the client sends a voice command to the server, thereby realizing the function of collecting voice commands by the server. For the sake of convenience, only the parts related to the embodiments of the present application are shown.
[0152] See also Figure 4 , the voice command recognition device comprises:
[0153] A command collection module 41, used for collecting real voice commands;
[0154] A first recognition module 42 is used to recognize the real voice command using a preset non-standard voice recognition model when it is detected that the real voice command does not meet the pronunciation standard, up to M keywords, where M is an integer greater than zero;
[0155] The text prediction module 43 is used to extract the meanings of all keywords when M is greater than 1, and fill in the auxiliary words between any two adjacent keywords according to the order of all keywords in the real voice command to obtain the predicted text;
[0156] A first speech synthesis module 44, configured to perform speech synthesis on the predicted text using a first pronunciation mode to obtain a first predicted speech command;
[0157] The first instruction generation module 45 is used to input the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0158] Preset non-standard speech recognition model recognition Optionally, the above-mentioned speech command recognition device further includes:
[0159] The second recognition module is used to input the real voice command into the trained quantum deep learning model after collecting the real voice command and generate the corresponding control instruction when it is detected that the real voice command meets the standard.
[0160] Optionally, the voice command recognition device further includes:
[0161] A sound feature recognition module is used to perform sound feature recognition on the real voice command to obtain a target sound feature before performing speech synthesis on the predicted text using the first pronunciation mode to obtain a first predicted voice command;
[0162] A target user determination module is used to match the corresponding target user in a preset voice feature library according to the target voice feature, and the voice feature library stores the mapping relationship between the user and its voice feature;
[0163] The target speech determination module is used to determine the pronunciation pattern that matches the target user in the preset standard speech library as the target pronunciation pattern, and the standard speech library stores the mapping relationship between the user and his pronunciation pattern.
[0164] Optionally, the voice command recognition device further includes:
[0165] A second speech synthesis module is used for, after obtaining M keywords, when M is 1, performing speech synthesis on the keywords using a second pronunciation mode to obtain a second predicted speech command;
[0166] The second instruction generation module is used to input the second predicted voice command into the trained quantum deep learning model to generate corresponding control instructions.
[0167] Optionally, the trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and fully connected layers, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layers is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero;
[0168] Accordingly, the first instruction generating module 45 includes:
[0169] A convolutional pooling unit, used for inputting the first predicted voice command into a first one-dimensional convolutional pooling layer, and outputting a pooling result to a next one-dimensional convolutional pooling layer, until reaching a last one-dimensional convolutional pooling layer;
[0170] The instruction generation unit is used to input the pooling result output by the last one-dimensional convolutional pooling layer into the fully connected layer for connection to obtain the corresponding control instruction.
[0171] Optionally, the one-dimensional convolution layer is a quantum convolution layer, and the quantum convolution layer includes a quantum encoder, a quantum variational circuit, and a measurer;
[0172] Accordingly, the above convolutional pooling unit includes:
[0173] A quantum encoding subunit, used for inputting the first predicted voice command into a quantum encoder for quantum encoding to obtain a quantum encoding feature;
[0174] The variational measurement subunit is used to classify the quantum coding features through the quantum variational circuit, and send the classification results to the measuring device to measure the authenticity of the classification results to obtain the measurement results;
[0175] The pooling subunit is used to input the measurement results into the one-dimensional pooling layer and output the pooling results.
[0176] Optionally, the text prediction module 43 includes:
[0177] A word meaning analysis unit is used to perform similarity analysis on the word and the word parts of the previous keyword and / or the next keyword of any keyword, and determine the word meaning of the corresponding keyword according to the similarity analysis result;
[0178] The text prediction unit is used to arrange all keywords in order according to the order in the real voice command, select auxiliary words according to the meaning of any two adjacent keywords, and fill the selected auxiliary words between the corresponding two adjacent keywords, traverse all keywords, and obtain the predicted text.
[0179] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0180] Figure 5 This is a schematic diagram of the structure of a computer device provided in Example 5 of this application. Figure 5 As shown, the computer device of this embodiment includes: at least one processor ( Figure 5Only one is shown in the figure), a memory, and a computer program stored in the memory and executable on at least one processor, wherein when the processor executes the computer program, the steps of any of the above-mentioned voice command recognition method embodiments are implemented.
[0181] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 5 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, it may also include a network interface, a display screen, and an input device.
[0182] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0183] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0184] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0185] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing the computer program product.
[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0187] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0188] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] 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, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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. 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 application, and should all be included in the protection scope of the present application.
Claims
1. A voice command recognition method, characterized in that: The method comprises: Collect real voice commands; When it is detected that the real voice command does not meet the pronunciation standard, the real voice command is recognized using a preset non-standard voice recognition model to obtain M keywords, where M is an integer greater than zero; When M is greater than 1, the meanings of all keywords are extracted, and combined with the order of all keywords in the real voice command, auxiliary words are filled between any two adjacent keywords to obtain a predicted text; Performing speech synthesis on the predicted text using a first pronunciation mode to obtain a first predicted speech command; Inputting the first predicted voice command into a trained quantum deep learning model to generate corresponding control instructions; The trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and a fully connected layer, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layer is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero; Inputting the first predicted voice command into the trained quantum deep learning model to generate corresponding control instructions includes: Inputting the first predicted voice command into the first one-dimensional convolutional pooling layer, and outputting the pooling result to the next one-dimensional convolutional pooling layer, until reaching the last one-dimensional convolutional pooling layer; The pooling result output by the last one-dimensional convolutional pooling layer is input into the fully connected layer for connection to obtain the corresponding control instructions; The one-dimensional convolution layer is a quantum convolution layer, and the quantum convolution layer includes a quantum encoder, a quantum variational circuit and a measurer; Inputting the first predicted voice command into the first one-dimensional convolutional pooling layer includes: Inputting the first predicted voice command into the quantum encoder for quantum encoding to obtain a quantum encoding feature; Classifying the quantum coding features through the quantum variational circuit, and sending the classification results to the measuring device to measure the authenticity of the classification results to obtain measurement results; Input the measurement results into the one-dimensional pooling layer and output the pooling results; The extracting of the meanings of all keywords and combining the order of all keywords in the real voice command to fill in auxiliary words between any two adjacent keywords to obtain the predicted text includes: For any keyword, similarity analysis is performed on the keyword and the parts of speech of the previous keyword and / or the next keyword of the corresponding keyword, and the meaning of the corresponding keyword is determined according to the similarity analysis result; All keywords are arranged in sequence according to the front-to-back order in the real voice command, auxiliary words are selected according to the meanings of any two adjacent keywords, and the selected auxiliary words are filled between the corresponding two adjacent keywords to obtain a predicted text.
2. The voice command recognition method according to claim 1, characterized in that: After collecting real voice commands, it also includes: When it is detected that the real voice command meets the standard, the real voice command is input into the trained quantum deep learning model to generate a corresponding control instruction.
3. The voice command recognition method according to claim 1, characterized in that: Before performing speech synthesis on the predicted text using the first pronunciation mode to obtain the first predicted speech command, the method further includes: Performing sound feature recognition on the real voice command to obtain target sound features; According to the target voice feature, matching the corresponding target user in a preset voice feature library, wherein the voice feature library stores a mapping relationship between the user and his / her voice feature; A pronunciation pattern matching the target user in a preset standard voice library is determined as a target pronunciation pattern, wherein the standard voice library stores a mapping relationship between the user and the pronunciation pattern thereof.
4. The voice command recognition method according to claim 1, characterized in that: After getting M keywords, it also includes: When M is 1, the second pronunciation mode is used to perform speech synthesis on the keyword to obtain a second predicted speech command; The second predicted voice command is input into the trained quantum deep learning model to generate corresponding control instructions.
5. A voice command recognition device, characterized in that: The device comprises: A command collection module, used to collect real voice commands; A first recognition module is used to use a preset non-standard speech recognition model to recognize the real voice command when it is detected that the real voice command does not meet the pronunciation standard, up to M keywords, where M is an integer greater than zero; A text prediction module, for extracting the meanings of all keywords when M is greater than 1, and filling in auxiliary words between any two adjacent keywords in combination with the order of all keywords in the real voice command to obtain a predicted text; A first speech synthesis module, configured to perform speech synthesis on the predicted text using a first pronunciation mode to obtain a first predicted speech command; A first instruction generation module, used to input the first predicted voice command into a trained quantum deep learning model to generate a corresponding control instruction; The trained quantum deep learning model includes N layers of one-dimensional convolutional pooling layers and a fully connected layer, the N layers of one-dimensional convolutional pooling layers are connected in sequence, the output of the last layer of one-dimensional convolutional pooling layer is connected to the fully connected layer, the one-dimensional convolutional pooling layer includes a one-dimensional convolutional layer and a one-dimensional pooling layer, the output of the one-dimensional convolutional layer is connected to the one-dimensional pooling layer, the voice command is input into the one-dimensional convolutional layer of the first layer of one-dimensional convolutional pooling layer, and N is an integer greater than zero; The first instruction generation module includes: A convolutional pooling unit, used for inputting the first predicted voice command into a first one-dimensional convolutional pooling layer, and outputting a pooling result to a next one-dimensional convolutional pooling layer, until reaching a last one-dimensional convolutional pooling layer; The instruction generation unit is used to input the pooling result output by the last one-dimensional convolutional pooling layer into the fully connected layer for connection to obtain the corresponding control instruction; The one-dimensional convolution layer is a quantum convolution layer, and the quantum convolution layer includes a quantum encoder, a quantum variational circuit and a measurer; The convolution pooling unit comprises: A quantum encoding subunit, configured to input the first predicted voice command into the quantum encoder for quantum encoding to obtain a quantum encoding feature; A variational measurement subunit, used to classify the quantum coding features through the quantum variational circuit, and send the classification results to the measuring device to measure the authenticity of the classification results to obtain measurement results; The pooling subunit is used to input the measurement results into the one-dimensional pooling layer and output the pooling results; The text prediction module comprises: A word meaning analysis unit is used to perform similarity analysis on the word and the word parts of the previous keyword and / or the next keyword of any keyword, and determine the word meaning of the corresponding keyword according to the similarity analysis result; The text prediction unit is used to arrange all the keywords in sequence according to the front-to-back order in the real voice command, select auxiliary words according to the meanings of any two adjacent keywords, and fill the selected auxiliary words between the corresponding two adjacent keywords to obtain the predicted text.
6. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the voice command recognition method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the voice command recognition method according to any one of claims 1 to 4 is implemented.
