Speech recognition method and device, electronic equipment and storage medium
By extracting the speech feature vectors and phoneme sequences to be recognized in smart voice devices, and combining them with standard sequences and feature vectors, the problem of low user-defined wake word recognition accuracy is solved, achieving higher wake word recognition accuracy and lower error rates. Arousal rate.
Patent Information
- Application Number
- CN202310174580.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Existing smart voice devices have low recognition accuracy when awakened by user-defined wake-up words, and often fail to wake up or wake up by mistake.
By extracting the feature vector and phoneme sequence of the speech to be recognized, combined with the standard sequence and feature vector, the phoneme detection model and classifier are used to determine the arousal of the voice, and the multi-dimensional recognition results are used to improve the recognition accuracy of wake-up words.
It improves the recognition accuracy of user-defined wake-up words, reduces the probability of failure to wake up and false wake-up, and enhances the interaction accuracy of smart voice devices.
Smart Images

Figure CN118553232A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal devices, and in particular to a speech recognition method, device, electronic device and storage medium. Background Art
[0002] With the development of intelligent voice technology, various intelligent voice devices have appeared on the market. Voice wake-up is the entrance for intelligent voice devices to interact with users. It means that when the intelligent voice device is in sleep or locked state, it detects a specific voice command, so that the device in sleep state directly enters the waiting state for commands. Voice wake-up can be divided into fixed wake-up word wake-up and user-defined wake-up word wake-up. In the related technology, the accuracy is higher when executing fixed wake-up word wake-up, but the accuracy is lower when executing user-defined wake-up word wake-up, and it often fails to wake up or wakes up by mistake. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a speech recognition method and device, an electronic device and a storage medium to solve the defects in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a speech recognition method, comprising:
[0005] Extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector;
[0006] Determine a first pre-recognition result according to the first phoneme sequence and a standard sequence, and determine a second pre-recognition result according to the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech;
[0007] A target recognition result of the speech to be recognized is determined according to the first pre-recognition result and the second pre-recognition result.
[0008] In one embodiment, extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector, comprises:
[0009] The speech to be recognized is input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
[0010] In one embodiment, the step of inputting the speech to be recognized into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model comprises:
[0011] Performing frame processing on the speech to be recognized to obtain a plurality of phoneme frames;
[0012] The multiple phoneme frames are input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model.
[0013] In one embodiment, the first phoneme sequence includes a plurality of phonemes, and a probability value of each phoneme in the plurality of phonemes;
[0014] The determining a first pre-recognition result according to the first phoneme sequence and a standard sequence includes:
[0015] Determining whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence according to the standard sequence;
[0016] In the case where the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than a corresponding number threshold, determining a sum of probability values of each phoneme in the first phoneme sequence;
[0017] When the sum of the probability values of each phoneme in the first phoneme sequence is greater than a probability threshold, determining that the first pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0018] When the sum of the probability values of each phoneme in the first phoneme sequence is not greater than a probability threshold, it is determined that the first pre-recognition result is the speech to be recognized that is not a wake-up speech.
[0019] In one embodiment, determining the second pre-recognition result according to the first feature vector and the standard vector includes:
[0020] Determining the similarity between the first feature vector and the standard vector;
[0021] When the similarity is greater than the similarity threshold, determining that the second pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0022] When the similarity is not greater than a similarity threshold, it is determined that the second pre-recognition result is the to-be-recognized voice that is not a wake-up voice.
[0023] In one embodiment, determining the similarity between the first feature vector and the standard vector includes:
[0024] At least one of the Euclidean distance, Manhattan distance and cosine distance between the first feature vector and the standard vector is determined respectively, and an average value of at least one of the Euclidean distance, Manhattan distance and cosine distance is determined as the similarity between the first feature vector and the standard vector.
[0025] In one embodiment, determining a first pre-recognition result according to the first phoneme sequence and a standard sequence, and determining a second pre-recognition result according to the first feature vector and a standard vector includes:
[0026] When the first pre-recognition result is that the speech to be recognized is a wake-up speech, a second pre-recognition result is determined according to the first feature vector and the standard vector.
[0027] In one embodiment, determining a target recognition result of the speech to be recognized according to the first pre-recognition result and the second pre-recognition result includes:
[0028] When the first pre-recognition result is that the voice to be recognized is a wake-up voice, and the second pre-recognition result is that the voice to be recognized is a wake-up voice, determining that the target recognition result is that the voice to be recognized is a wake-up voice;
[0029] When the first pre-recognition result is a speech to be recognized that is not a wake-up speech, and / or the second pre-recognition result is a speech to be recognized that is not a wake-up speech, it is determined that the target recognition result is a speech to be recognized that is not a wake-up speech.
[0030] In one embodiment, it further includes:
[0031] In the wake-up voice recording mode, receiving the voice to be recorded input by the user;
[0032] Extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector;
[0033] Determine whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector.
[0034] In one embodiment, the step of receiving the speech to be recorded input by the user includes:
[0035] Receiving multiple voices to be recorded input by the user;
[0036] The extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector, comprises:
[0037] Extracting a second feature vector of each of the plurality of speech to be recorded, and determining a second phoneme sequence of each speech to be recorded according to the second feature vector of each speech to be recorded;
[0038] Determining whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, saving the second phoneme sequence as a standard sequence and saving the second feature vector as a standard vector, including:
[0039] According to the second phoneme sequence of each speech to be recorded, it is determined whether each speech to be recorded meets the wake-up word. If each speech to be recorded meets the wake-up word, the second phoneme sequence of any speech to be recorded is saved as the standard sequence, and the average value of the second feature vector of each speech to be recorded is saved as the standard vector.
[0040] According to a second aspect of an embodiment of the present disclosure, there is provided a speech recognition device, including:
[0041] An extraction module, used for extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector;
[0042] a pre-recognition module, configured to determine a first pre-recognition result according to the first phoneme sequence and a standard sequence, and to determine a second pre-recognition result according to the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech;
[0043] The target recognition module is used to determine a target recognition result of the speech to be recognized based on the first pre-recognition result and the second pre-recognition result.
[0044] In one embodiment, the extraction module is specifically used for:
[0045] The speech to be recognized is input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
[0046] In one embodiment, the extraction module is used to input the speech to be recognized into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, specifically for:
[0047] Performing frame processing on the speech to be recognized to obtain a plurality of phoneme frames;
[0048] The multiple phoneme frames are input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model.
[0049] In one embodiment, the first phoneme sequence includes a plurality of phonemes, and a probability value of each phoneme in the plurality of phonemes;
[0050] When the pre-recognition module is used to determine the first pre-recognition result according to the first phoneme sequence and the standard sequence, it is specifically used to:
[0051] Determining whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence according to the standard sequence;
[0052] In the case where the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than a corresponding number threshold, determining a sum of probability values of each phoneme in the first phoneme sequence;
[0053] When the sum of the probability values of each phoneme in the first phoneme sequence is greater than a probability threshold, determining that the first pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0054] When the sum of the probability values of each phoneme in the first phoneme sequence is not greater than a probability threshold, it is determined that the first pre-recognition result is the speech to be recognized that is not a wake-up speech.
[0055] In one embodiment, when the pre-recognition module is used to determine the second pre-recognition result according to the first feature vector and the standard vector, it is specifically used to:
[0056] Determining the similarity between the first feature vector and the standard vector;
[0057] When the similarity is greater than the similarity threshold, determining that the second pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0058] When the similarity is not greater than a similarity threshold, it is determined that the second pre-recognition result is the to-be-recognized voice that is not a wake-up voice.
[0059] In one embodiment, when the pre-recognition module is used to determine the similarity between the first feature vector and the standard vector, it is specifically used to:
[0060] At least one of the Euclidean distance, Manhattan distance and cosine distance between the first feature vector and the standard vector is determined respectively, and an average value of at least one of the Euclidean distance, Manhattan distance and cosine distance is determined as the similarity between the first feature vector and the standard vector.
[0061] In one embodiment, the pre-identification module is specifically used for:
[0062] When the first pre-recognition result is that the speech to be recognized is a wake-up speech, a second pre-recognition result is determined according to the first feature vector and the standard vector.
[0063] In one embodiment, the target recognition module is specifically used to:
[0064] When the first pre-recognition result is that the voice to be recognized is a wake-up voice, and the second pre-recognition result is that the voice to be recognized is a wake-up voice, determining that the target recognition result is that the voice to be recognized is a wake-up voice;
[0065] When the first pre-recognition result is a speech to be recognized that is not a wake-up speech, and / or the second pre-recognition result is a speech to be recognized that is not a wake-up speech, it is determined that the target recognition result is a speech to be recognized that is not a wake-up speech.
[0066] In one embodiment, it further includes an input module for:
[0067] In the wake-up voice recording mode, receiving the voice to be recorded input by the user;
[0068] Extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector;
[0069] Determine whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector.
[0070] In one embodiment, when the recording module is used to receive the voice to be recorded input by the user, it is specifically used to:
[0071] Receive multiple voices to be recorded input by the user;
[0072] The recording module is used to extract the second feature vector of the speech to be recorded, and determine the second phoneme sequence of the speech to be recognized according to the second feature vector, specifically for:
[0073] Extracting a second feature vector of each of the plurality of speech to be recorded, and determining a second phoneme sequence of each speech to be recorded according to the second feature vector of each speech to be recorded;
[0074] The recording module is used to determine whether the voice to be recorded meets the wake-up word according to the second phoneme sequence, and when the voice to be recorded meets the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector, specifically for:
[0075] According to the second phoneme sequence of each speech to be recorded, it is determined whether each speech to be recorded meets the wake-up word. If each speech to be recorded meets the wake-up word, the second phoneme sequence of any speech to be recorded is saved as the standard sequence, and the average value of the second feature vector of each speech to be recorded is saved as the standard vector.
[0076] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the speech recognition method described in the first aspect when executing the computer instructions.
[0077] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
[0078] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0079] The speech recognition method provided by the embodiment of the present disclosure extracts the first feature vector of the speech to be recognized, and determines the first phoneme sequence of the speech to be recognized based on the first feature vector, so that the first pre-recognition result can be determined based on the first phoneme sequence and the standard sequence, and the second pre-recognition result can be determined based on the first feature vector and the standard vector, and finally the target recognition result of the speech to be recognized can be determined based on the first pre-recognition result and the second pre-recognition result. Since the target recognition result combines the recognition results of the two dimensions of the phoneme sequence and the feature vector, especially the feature vector can more accurately characterize the original characteristics of the speech to be recognized, the recognition accuracy of the wake-up word is improved. For example, in the scenario of user-defined wake-up word awakening, the wake-up word recognition accuracy is high, which reduces the probability of failure to awaken and false awakening. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0081] Figure 1 is a flow chart of a speech recognition method shown in an exemplary embodiment of the present disclosure;
[0082] Figure 2is a structural schematic diagram of a speech recognition device shown in an exemplary embodiment of the present disclosure;
[0083] Figure 3 It is a structural block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0084] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0085] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0086] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0087] With the development of intelligent voice technology, various intelligent voice devices have appeared on the market. Voice wake-up is the entrance for intelligent voice devices to interact with users. It means that when an intelligent voice device (mobile phone, toy, home appliance, car system, etc.) is in sleep or locked state, it detects a specific voice command, so that the device in sleep state directly enters the waiting state for commands. Voice wake-up can be divided into fixed wake-up word wake-up and user-defined wake-up word wake-up. In the related technology, the accuracy is higher when executing fixed wake-up word wake-up, but the accuracy is lower when executing user-defined wake-up word wake-up, and it often fails to wake up or wakes up by mistake.
[0088] Based on this, in the first aspect, at least one embodiment of the present disclosure provides a speech recognition method, please refer to the attached Figure 1 , which shows the process of the method, including steps S101 to S103.
[0089] The method can be applied to intelligent voice devices with voice interaction functions, such as voice assistants of terminal devices, service robots, smart homes, and in-vehicle voice systems. For example, the method can be applied to voice wake-up scenarios of intelligent voice devices, that is, users use specific wake-up voices to make the intelligent voice devices end the sleep state or the lock screen state and enter the waiting state for instructions.
[0090] In step S101, a first feature vector of a speech to be recognized is extracted, and a first phoneme sequence of the speech to be recognized is determined according to the first feature vector.
[0091] The voice to be recognized can be the audio collected by the sound pickup element (such as a microphone) of the intelligent voice device, and the audio includes multiple components such as ambient sound, user voice, noise, etc., wherein the user voice can be a wake-up voice or a non-wake-up voice. Since the sound pickup element continuously collects audio, the audio collected by the sound pickup element can be intercepted at a fixed time length, and each intercepted audio segment is recognized as the voice to be recognized.
[0092] In this step, the speech to be recognized can be input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
[0093] For example, the speech to be recognized can be framed to obtain multiple phoneme frames. For example, the speech to be recognized can be framed according to a preset time length (for example, 0.2s) to obtain multiple phoneme frames with consistent time length; then the multiple phoneme frames (frame by frame) are input into the phoneme detection model to obtain the first feature vector output by the feature unit of the phoneme detection model, and the first phoneme sequence output by the phoneme classifier of the phoneme detection model, wherein the first phoneme sequence includes multiple phonemes and the probability value of each phoneme in the multiple phonemes; it can be understood that the multiple phonemes in the first phoneme sequence correspond one-to-one to the multiple phoneme frames obtained by framing the speech to be recognized.
[0094] In step S102, a first pre-recognition result is determined based on the first phoneme sequence and a standard sequence, and a second pre-recognition result is determined based on the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech.
[0095] Exemplarily, the first pre-recognition result may be determined according to the first phoneme sequence and the standard sequence in the following manner:
[0096] First, according to the standard sequence, it is determined whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence. Wherein, when any phoneme in the first phoneme sequence is not related to adjacent phonemes, the phoneme is an isolated phoneme; when any phoneme in the first phoneme sequence is not related to adjacent phonemes and is not an isolated phoneme, the phoneme is an additional phoneme; when any phoneme in the standard sequence is related to adjacent phonemes and does not exist in the first phoneme sequence, the phoneme is a missing phoneme.
[0097] Next, when the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than the corresponding number threshold, the sum of the probability values of each phoneme in the first phoneme sequence is determined. For example, when the number of isolated phonemes is less than the first number threshold, the number of additional phonemes is less than the second number threshold, and the number of missing phonemes is less than the third number threshold, the sum of the probability values of each phoneme in the first phoneme sequence is determined. In addition, when determining the sum of the probability values of each phoneme in the first phoneme sequence, the phonemes in the first phoneme sequence whose probability values are less than the noise threshold are first deleted, and then the probability values of each remaining phoneme are summed.
[0098] Finally, when the sum of the probability values of each phoneme in the first phoneme sequence is greater than the probability threshold, the first pre-recognition result is determined that the speech to be recognized is a wake-up speech; when the sum of the probability values of each phoneme in the first phoneme sequence is not greater than the probability threshold, the first pre-recognition result is determined that the speech to be recognized is not a wake-up speech.
[0099] As another example, the second pre-recognition result may be determined according to the first feature vector and the standard vector in the following manner:
[0100] First, the similarity between the first feature vector and the standard vector is determined.
[0101] For example, the first eigenvector is Embedding_wakeup[xw1,xw2,…,xwn], and the standard vector is Embedding_average[xa1,xa2,…,xan]. At least one of the Euclidean distance, Manhattan distance, and cosine distance between the first eigenvector and the standard vector can be determined respectively, and the average value of at least one of the Euclidean distance, Manhattan distance, and cosine distance is determined as the similarity between the first eigenvector and the standard vector. Characterizing the similarity between the first eigenvector and the standard vector by multiple distances is more accurate and reliable.
[0102] The Euclidean distance d between the first eigenvector and the standard vector can be calculated according to the following formula:
[0103]
[0104] The Manhattan distance d between the first eigenvector and the standard vector can be calculated according to the following formula:
[0105]
[0106] The Manhattan distance d between the first eigenvector and the standard vector can be calculated according to the following formula:
[0107]
[0108] Next, when the similarity is greater than the similarity threshold, the second pre-recognition result is determined as the speech to be recognized is a wake-up speech; when the similarity is not greater than the similarity threshold, the second pre-recognition result is determined as the speech to be recognized is not a wake-up speech.
[0109] It can be understood that in this step, the pre-recognition results are determined from two dimensions respectively. In order to reduce the computing power and memory waste caused by invalid calculations, the first pre-recognition result can be first determined based on the first phoneme sequence and the standard sequence, and when the first pre-recognition result is that the voice to be recognized is a wake-up voice, the second pre-recognition result can be determined based on the first feature vector and the standard vector; or the second pre-recognition result is first determined based on the first feature vector and the standard vector, and when the second pre-recognition result is that the voice to be recognized is a wake-up voice, the first pre-recognition result is determined based on the first phoneme sequence and the standard sequence.
[0110] In step S103, a target recognition result of the speech to be recognized is determined according to the first pre-recognition result and the second pre-recognition result.
[0111] Exemplarily, when the first pre-recognition result is that the speech to be recognized is a wake-up speech, and the second pre-recognition result is that the speech to be recognized is a wake-up speech, the target recognition result is determined to be that the speech to be recognized is a wake-up speech; when the first pre-recognition result is that the speech to be recognized is not a wake-up speech, and / or the second pre-recognition result is that the speech to be recognized is not a wake-up speech, the target recognition result is determined to be that the speech to be recognized is not a wake-up speech.
[0112] In addition, in the voice wake-up scenario, if the target recognition result is that the voice to be recognized is a wake-up voice, the device can be woken up, the device ends the sleep state or the lock screen state, enters the waiting command state, and a voice interaction interface pops up; or, if the target recognition result is that the voice to be recognized is a wake-up voice, the voice to be recognized can be further subjected to voiceprint recognition. If the voiceprint recognition result is consistent with the voiceprint characteristics of the target user, the device is woken up again, the device ends the sleep state or the lock screen state, enters the waiting command state, and a voice interaction interface pops up.
[0113] The speech recognition method provided by the embodiment of the present disclosure extracts the first feature vector of the speech to be recognized, and determines the first phoneme sequence of the speech to be recognized based on the first feature vector, so that the first pre-recognition result can be determined based on the first phoneme sequence and the standard sequence, and the second pre-recognition result can be determined based on the first feature vector and the standard vector, and finally the target recognition result of the speech to be recognized can be determined based on the first pre-recognition result and the second pre-recognition result. Since the target recognition result combines the recognition results of the two dimensions of the phoneme sequence and the feature vector, especially the feature vector can more accurately characterize the original characteristics of the speech to be recognized, the recognition accuracy of the wake-up word is improved. For example, in the scenario of user-defined wake-up word awakening, the wake-up word recognition accuracy is high, which reduces the probability of failure to awaken and false awakening.
[0114] In some embodiments of the present disclosure, the standard sequence and standard vector in the above embodiments may also be entered in the following manner:
[0115] First, in the wake-up voice recording mode, the voice to be recorded input by the user is received.
[0116] Exemplarily, the user can operate the smart voice device to start the wake-up voice entry mode. For example, an application for controlling the smart voice device is installed on the bound device of the smart voice device. The user can input a custom wake-up word through the application and start the wake-up voice entry mode.
[0117] In order to improve the accuracy of voice recording, when receiving the voice to be recorded recorded by the user, multiple voices to be recorded input by the user can be received.
[0118] Next, a second feature vector of the speech to be recorded is extracted, and a second phoneme sequence of the speech to be recognized is determined according to the second feature vector.
[0119] The second feature vector of the speech to be recorded can be extracted in accordance with the method of extracting the first feature vector of the speech to be recognized and determining the first phoneme sequence based on the first feature vector in the above embodiment, and the second phoneme sequence of the speech to be recognized can be determined based on the second feature vector, that is: the speech to be recorded is input into the phoneme detection model to obtain the second feature vector output by the feature unit of the phoneme detection model, and the second phoneme sequence output by the phoneme classifier of the phoneme detection model, wherein the feature unit inputs the second feature vector into the phoneme classifier, and the classifier determines the second phoneme sequence based on the second feature vector. For example, the speech to be recorded can be framed to obtain multiple phoneme frames. For example, the speech to be recorded can be framed according to a preset time length (for example, 0.2s) to obtain multiple phoneme frames with consistent time length; the multiple phoneme frames are then input (frame by frame) into a phoneme detection model to obtain a second feature vector output by a feature unit of the phoneme detection model, and a second phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the second phoneme sequence includes multiple phonemes and a probability value of each phoneme in the multiple phonemes; it can be understood that the multiple phonemes in the second phoneme sequence correspond one-to-one to the multiple phoneme frames obtained by framing the speech to be recorded.
[0120] It can be understood that when multiple speech to be recorded are received from the user, the second feature vector of each speech to be recorded can be extracted, and the second phoneme sequence of each speech to be recorded can be determined according to the second feature vector of each speech to be recorded.
[0121] Finally, whether the speech to be recorded meets the wake-up word is determined according to the second phoneme sequence, and if the speech to be recorded meets the wake-up word, the second phoneme sequence is saved as a standard sequence, and the second feature vector is saved as a standard vector.
[0122] Exemplarily, the second phoneme sequence of the speech to be recorded can be input into a decoder (e.g., a WFST (Weighted Finite State Transducers) decoder), and the decoder will decode the second phoneme sequence to obtain the text corresponding to the speech to be recorded; if the text is the same as the wake-up word, the speech to be recorded meets the wake-up word.
[0123] It can be understood that when multiple voices to be recorded are received from the user, it is possible to determine whether each voice to be recorded meets the wake-up word based on the second phoneme sequence of each voice to be recorded, and when each voice to be recorded meets the wake-up word, the second phoneme sequence of any voice to be recorded is saved as the standard sequence, and the average value of the second feature vector of each voice to be recorded is saved as the standard vector. For example, a total of 5 voices to be recorded are received, and the second phoneme sequence of each voice to be recorded conforms to the wake-up word, and the second feature vectors of the 5 voices to be recorded are Embedding1[x11,x12,…,x1n], Embedding2[x21,x22,…,x2n], Embedding3[x31,x32,…,x3n], Embedding4[x41,x42,…,x4n], and Embedding5[x51,x52,…,x5n], then the standard vector is Embedding_average[(x11+x21+x31+x41+x51) / 5,(x12+x22+x32+x42+x52) / 5,…,(x1n+x2n+x3n+x4n+x5n) / 5].
[0124] In addition, voiceprint training can be performed based on each speech to be recorded that matches the wake-up word to obtain the voiceprint characteristics of the target user.
[0125] According to a second aspect of the present disclosure, a speech recognition device is provided. Figure 2 , the device comprises:
[0126] An extraction module 201 is used to extract a first feature vector of the speech to be recognized, and determine a first phoneme sequence of the speech to be recognized according to the first feature vector;
[0127] A pre-recognition module 202, configured to determine a first pre-recognition result according to the first phoneme sequence and a standard sequence, and to determine a second pre-recognition result according to the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech;
[0128] The target recognition module 203 is used to determine a target recognition result of the speech to be recognized according to the first pre-recognition result and the second pre-recognition result.
[0129] In one embodiment, the extraction module is specifically used for:
[0130] The speech to be recognized is input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
[0131] In one embodiment, the extraction module is used to input the speech to be recognized into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, specifically for:
[0132] Performing frame processing on the speech to be recognized to obtain a plurality of phoneme frames;
[0133] The multiple phoneme frames are input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model.
[0134] In one embodiment, the first phoneme sequence includes a plurality of phonemes, and a probability value of each phoneme in the plurality of phonemes;
[0135] When the pre-recognition module is used to determine the first pre-recognition result according to the first phoneme sequence and the standard sequence, it is specifically used to:
[0136] Determining whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence according to the standard sequence;
[0137] In the case where the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than a corresponding number threshold, determining a sum of probability values of each phoneme in the first phoneme sequence;
[0138] When the sum of the probability values of each phoneme in the first phoneme sequence is greater than a probability threshold, determining that the first pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0139] When the sum of the probability values of each phoneme in the first phoneme sequence is not greater than a probability threshold, it is determined that the first pre-recognition result is the speech to be recognized that is not a wake-up speech.
[0140] In one embodiment, when the pre-recognition module is used to determine the second pre-recognition result according to the first feature vector and the standard vector, it is specifically used to:
[0141] Determining the similarity between the first feature vector and the standard vector;
[0142] When the similarity is greater than the similarity threshold, determining that the second pre-recognition result is that the to-be-recognized voice is a wake-up voice;
[0143] When the similarity is not greater than a similarity threshold, it is determined that the second pre-recognition result is the to-be-recognized voice that is not a wake-up voice.
[0144] In one embodiment, when the pre-recognition module is used to determine the similarity between the first feature vector and the standard vector, it is specifically used to:
[0145] At least one of the Euclidean distance, Manhattan distance and cosine distance between the first feature vector and the standard vector is determined respectively, and an average value of at least one of the Euclidean distance, Manhattan distance and cosine distance is determined as the similarity between the first feature vector and the standard vector.
[0146] In one embodiment, the pre-identification module is specifically used for:
[0147] When the first pre-recognition result is that the speech to be recognized is a wake-up speech, a second pre-recognition result is determined according to the first feature vector and the standard vector.
[0148] In one embodiment, the target recognition module is specifically used to:
[0149] When the first pre-recognition result is that the voice to be recognized is a wake-up voice, and the second pre-recognition result is that the voice to be recognized is a wake-up voice, determining that the target recognition result is that the voice to be recognized is a wake-up voice;
[0150] When the first pre-recognition result is a speech to be recognized that is not a wake-up speech, and / or the second pre-recognition result is a speech to be recognized that is not a wake-up speech, it is determined that the target recognition result is a speech to be recognized that is not a wake-up speech.
[0151] In one embodiment, it further includes an input module for:
[0152] In the wake-up voice recording mode, receiving the voice to be recorded input by the user;
[0153] Extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector;
[0154] Determine whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector.
[0155] In one embodiment, when the recording module is used to receive the voice to be recorded input by the user, it is specifically used to:
[0156] Receive multiple voices to be recorded input by the user;
[0157] The recording module is used to extract the second feature vector of the speech to be recorded, and determine the second phoneme sequence of the speech to be recognized according to the second feature vector, specifically for:
[0158] Extracting a second feature vector of each of the plurality of speech to be recorded, and determining a second phoneme sequence of each speech to be recorded according to the second feature vector of each speech to be recorded;
[0159] The recording module is used to determine whether the voice to be recorded meets the wake-up word according to the second phoneme sequence, and when the voice to be recorded meets the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector, specifically for:
[0160] According to the second phoneme sequence of each speech to be recorded, it is determined whether each speech to be recorded meets the wake-up word. If each speech to be recorded meets the wake-up word, the second phoneme sequence of any speech to be recorded is saved as the standard sequence, and the average value of the second feature vector of each speech to be recorded is saved as the standard vector.
[0161] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.
[0162] According to the third aspect of the embodiment of the present disclosure, please refer to the attached Figure 3 , which exemplarily shows a block diagram of an electronic device. For example, the device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0163] Reference Figure 3 , the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0164] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0165] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0166] The power component 306 provides power to the various components of the device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0167] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0168] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0169] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0170] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300 and the temperature change of the device 300. The sensor assembly 314 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0171] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0172] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the speech recognition method of the above-mentioned electronic device.
[0173] In a fourth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to complete the speech recognition method of the electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0175] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A speech recognition method, characterized in that: include: Extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector; Determine a first pre-recognition result according to the first phoneme sequence and a standard sequence, and determine a second pre-recognition result according to the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech; A target recognition result of the speech to be recognized is determined according to the first pre-recognition result and the second pre-recognition result.
2. The speech recognition method according to claim 1, characterized in that: The step of extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector, comprises: The speech to be recognized is input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
3. The speech recognition method according to claim 2, characterized in that: The step of inputting the speech to be recognized into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model comprises: Performing frame processing on the speech to be recognized to obtain a plurality of phoneme frames; The multiple phoneme frames are input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model.
4. The speech recognition method according to claim 1, characterized in that: The first phoneme sequence includes a plurality of phonemes and a probability value of each phoneme in the plurality of phonemes; The determining a first pre-recognition result according to the first phoneme sequence and a standard sequence includes: Determining whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence according to the standard sequence; In the case where the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than a corresponding number threshold, determining a sum of probability values of each phoneme in the first phoneme sequence; When the sum of the probability values of each phoneme in the first phoneme sequence is greater than a probability threshold, determining that the first pre-recognition result is that the to-be-recognized voice is a wake-up voice; When the sum of the probability values of each phoneme in the first phoneme sequence is not greater than a probability threshold, it is determined that the first pre-recognition result is the speech to be recognized that is not a wake-up speech.
5. The speech recognition method according to claim 1, characterized in that: The determining a second pre-recognition result according to the first feature vector and the standard vector includes: Determining the similarity between the first feature vector and the standard vector; When the similarity is greater than the similarity threshold, determining that the second pre-recognition result is that the to-be-recognized voice is a wake-up voice; When the similarity is not greater than a similarity threshold, it is determined that the second pre-recognition result is the to-be-recognized voice that is not a wake-up voice.
6. The speech recognition method according to claim 5, characterized in that: The determining the similarity between the first feature vector and the standard vector includes: At least one of the Euclidean distance, Manhattan distance and cosine distance between the first feature vector and the standard vector is determined respectively, and an average value of at least one of the Euclidean distance, Manhattan distance and cosine distance is determined as the similarity between the first feature vector and the standard vector.
7. The speech recognition method according to any one of claims 4 to 6, characterized in that: The determining of a first pre-recognition result according to the first phoneme sequence and a standard sequence, and determining a second pre-recognition result according to the first feature vector and a standard vector, includes: When the first pre-recognition result is that the speech to be recognized is a wake-up speech, a second pre-recognition result is determined according to the first feature vector and the standard vector.
8. The speech recognition method according to claim 1, characterized in that: The step of determining a target recognition result of the speech to be recognized according to the first pre-recognition result and the second pre-recognition result includes: When the first pre-recognition result is that the voice to be recognized is a wake-up voice, and the second pre-recognition result is that the voice to be recognized is a wake-up voice, determining that the target recognition result is that the voice to be recognized is a wake-up voice; When the first pre-recognition result is a speech to be recognized that is not a wake-up speech, and / or the second pre-recognition result is a speech to be recognized that is not a wake-up speech, it is determined that the target recognition result is a speech to be recognized that is not a wake-up speech.
9. The speech recognition method according to claim 1, characterized in that: Also includes: In the wake-up voice recording mode, receiving the voice to be recorded input by the user; Extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector; Determine whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector.
10. The speech recognition method according to claim 9, characterized in that: The receiving the speech to be recorded input by the user includes: Receive multiple voices to be recorded input by the user; The extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector, comprises: Extracting a second feature vector of each of the plurality of speech to be recorded, and determining a second phoneme sequence of each speech to be recorded according to the second feature vector of each speech to be recorded; Determining whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, saving the second phoneme sequence as a standard sequence and saving the second feature vector as a standard vector, including: According to the second phoneme sequence of each speech to be recorded, it is determined whether each speech to be recorded meets the wake-up word. If each speech to be recorded meets the wake-up word, the second phoneme sequence of any speech to be recorded is saved as the standard sequence, and the average value of the second feature vector of each speech to be recorded is saved as the standard vector.
11. A speech recognition device, characterized in that: include: An extraction module, used for extracting a first feature vector of the speech to be recognized, and determining a first phoneme sequence of the speech to be recognized according to the first feature vector; a pre-recognition module, configured to determine a first pre-recognition result according to the first phoneme sequence and a standard sequence, and to determine a second pre-recognition result according to the first feature vector and a standard vector, wherein the standard sequence includes a factor sequence of the wake-up speech, and the standard vector includes a feature vector of the wake-up speech; The target recognition module is used to determine a target recognition result of the speech to be recognized based on the first pre-recognition result and the second pre-recognition result.
12. The speech recognition device according to claim 11, characterized in that: The extraction module is specifically used for: The speech to be recognized is input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model, and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, wherein the feature unit inputs the first feature vector into the phoneme classifier, and the classifier determines the first phoneme sequence based on the first feature vector.
13. The speech recognition device according to claim 12, characterized in that: The extraction module is used to input the speech to be recognized into the phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model, specifically for: Performing frame processing on the speech to be recognized to obtain a plurality of phoneme frames; The multiple phoneme frames are input into a phoneme detection model to obtain a first feature vector output by a feature unit of the phoneme detection model and a first phoneme sequence output by a phoneme classifier of the phoneme detection model.
14. The speech recognition device according to claim 11, characterized in that: The first phoneme sequence includes a plurality of phonemes and a probability value of each phoneme in the plurality of phonemes; When the pre-recognition module is used to determine the first pre-recognition result according to the first phoneme sequence and the standard sequence, it is specifically used to: Determining whether there are isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence according to the standard sequence; In the case where the number of isolated phonemes, additional phonemes and / or missing phonemes in the first phoneme sequence is less than a corresponding number threshold, determining a sum of probability values of each phoneme in the first phoneme sequence; When the sum of the probability values of each phoneme in the first phoneme sequence is greater than a probability threshold, determining that the first pre-recognition result is that the to-be-recognized voice is a wake-up voice; When the sum of the probability values of each phoneme in the first phoneme sequence is not greater than a probability threshold, it is determined that the first pre-recognition result is the speech to be recognized that is not a wake-up speech.
15. The speech recognition device according to claim 11, characterized in that: When the pre-recognition module is used to determine the second pre-recognition result according to the first feature vector and the standard vector, it is specifically used to: Determining the similarity between the first feature vector and the standard vector; When the similarity is greater than the similarity threshold, determining that the second pre-recognition result is that the to-be-recognized voice is a wake-up voice; When the similarity is not greater than a similarity threshold, it is determined that the second pre-recognition result is the to-be-recognized voice that is not a wake-up voice.
16. The speech recognition device according to claim 15, characterized in that: When the pre-recognition module is used to determine the similarity between the first feature vector and the standard vector, it is specifically used to: At least one of the Euclidean distance, Manhattan distance and cosine distance between the first feature vector and the standard vector is determined respectively, and an average value of at least one of the Euclidean distance, Manhattan distance and cosine distance is determined as the similarity between the first feature vector and the standard vector.
17. The speech recognition device according to any one of claims 14 to 16, characterized in that: The pre-identification module is specifically used for: When the first pre-recognition result is that the speech to be recognized is a wake-up speech, a second pre-recognition result is determined according to the first feature vector and the standard vector.
18. The speech recognition device according to claim 11, characterized in that: The target recognition module is specifically used for: When the first pre-recognition result is that the voice to be recognized is a wake-up voice, and the second pre-recognition result is that the voice to be recognized is a wake-up voice, determining that the target recognition result is that the voice to be recognized is a wake-up voice; When the first pre-recognition result is a speech to be recognized that is not a wake-up speech, and / or the second pre-recognition result is a speech to be recognized that is not a wake-up speech, it is determined that the target recognition result is a speech to be recognized that is not a wake-up speech.
19. The speech recognition device according to claim 11, characterized in that: Also includes an entry module for: In the wake-up voice recording mode, receiving the voice to be recorded input by the user; Extracting a second feature vector of the speech to be recorded, and determining a second phoneme sequence of the speech to be recognized according to the second feature vector; Determine whether the voice to be recorded matches the wake-up word according to the second phoneme sequence, and if the voice to be recorded matches the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector.
20. The speech recognition device according to claim 19, characterized in that: When the input module is used to receive the voice to be input by the user, it is specifically used to: Receiving multiple voices to be recorded input by the user; The recording module is used to extract the second feature vector of the speech to be recorded, and determine the second phoneme sequence of the speech to be recognized according to the second feature vector, specifically for: Extracting a second feature vector of each of the plurality of speech to be recorded, and determining a second phoneme sequence of each speech to be recorded according to the second feature vector of each speech to be recorded; The recording module is used to determine whether the voice to be recorded meets the wake-up word according to the second phoneme sequence, and when the voice to be recorded meets the wake-up word, save the second phoneme sequence as a standard sequence and save the second feature vector as a standard vector, specifically for: According to the second phoneme sequence of each speech to be recorded, it is determined whether each speech to be recorded meets the wake-up word. If each speech to be recorded meets the wake-up word, the second phoneme sequence of any speech to be recorded is saved as the standard sequence, and the average value of the second feature vector of each speech to be recorded is saved as the standard vector.
21. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the speech recognition method according to any one of claims 1 to 10 when executing the computer instructions.
22. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
