Method and device for speech recognition
By adding preset special sequences to the speech recognition system and using an end-to-end artificial neural network with an encoder-decoder architecture, the accuracy problem of speech recognition under noise interference is solved and effective recognition of the main speaker's speech is achieved.
Patent Information
- Application Number
- CN202010186974.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-07
- Filing Date
- 2020-03-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-03-17
AI Technical Summary
Existing end-to-end speech recognition systems based on artificial neural networks have difficulty in effectively distinguishing speakers from noise in the presence of noise, resulting in undesirable text output.
By adding a preset special sequence at the front end of the input sequence, the end-to-end artificial neural network of the encoder-decoder architecture is used for speech recognition, generating encoding features and determining the output lexical units, excluding the noise part, and focusing on the main speaker's utterances .
Effectively prevents noise output, improves the accuracy of speech recognition, and focuses on the speech recognition results of the main speaker.
Smart Images

Figure CN111816164B_ABST
Abstract
Description
[0001] This application claims the benefit of Korean Patent Application No. 10-2019-0040120 filed on April 5, 2019, in the Korean Intellectual Property Office, and Korean Patent Application No. 10-2019-0141750 filed on November 7, 2019, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein in their entirety by reference for all purposes. Technical Field
[0002] The following description relates to a method and apparatus for speech recognition, and more particularly, to a speech recognition method for preventing the output of noise and focusing on the utterance of a main speaker in an end-to-end artificial neural network-based speech recognition system. Background Art
[0003] Speech recognition refers to a technology for recognizing or understanding acoustic speech signals by analyzing them through a computing device, such as a sound expression uttered by a human user. In the prior art, a method of recognizing speech using frequency characteristics or features extracted from audio data has been mainly used, and a hidden Markov model (HMM) has been mainly applied to this method. This HMM-based speech recognition method can recognize speech by analyzing pronunciation from audio data and combining words or sentences based on the analyzed pronunciation.
[0004] As machine learning based on deep learning has been further developed, end-to-end speech recognition technology has been actively studied. End-to-end speech recognition technology can directly recognize text including words or sentences from audio data using an acoustic model including an artificial neural network without analyzing pronunciation from the audio data.
[0005] However, an end-to-end artificial neural network-based speech recognition system using this technology may perform decoding in real time on a phoneme-by-phoneme basis and output unexpected text even in a white noise interval where no user's utterance exists due to forced speech recognition. Summary of the invention
[0006] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0007] In one general aspect, a speech recognition method includes: adding a preset special sequence to the front end of an input sequence corresponding to an input utterance of a speaker; using an artificial neural network to recognize the preset special sequence and the input sequence; and recognizing the input sequence based on the preset special sequence and a speech recognition result obtained by recognizing the preset special sequence and the input sequence.
[0008] The input sequence may include input utterances or vectors extracted from input utterances.
[0009] The preset special sequence may include a preset utterance of a speaker, or at least one vector extracted from the preset utterance.
[0010] The preset special sequence may be a preset utterance of a speaker.
[0011] The preset special sequence may be "hi".
[0012] The step of identifying a preset special sequence and an input sequence may include: generating a coding feature by encoding the preset special sequence and the input sequence; outputting at least one special lexical unit corresponding to the preset special sequence based on the coding feature; and determining at least one output lexical unit corresponding to the input sequence based on the coding feature and the special lexical unit.
[0013] A special lexical unit may include text corresponding to a preset utterance of a speaker.
[0014] The step of identifying a preset special sequence and an input sequence may include: generating a coding feature by encoding the preset special sequence and the input sequence; and determining at least one output lexical unit corresponding to the input sequence based on the coding feature and the special lexical unit corresponding to the preset special sequence.
[0015] The step of identifying the preset special sequence and the input sequence may include: inputting the preset special sequence and the input sequence into an end-to-end artificial neural network of an encoder-decoder architecture, and outputting a speech recognition result corresponding to the preset special sequence and the input sequence.
[0016] The decoder of the end-to-end artificial neural network may output the speech recognition result in each step based on the information calculated from the encoder of the end-to-end artificial neural network, depending on the speech recognition result from the previous step.
[0017] The artificial neural network may include one or more of a recurrent neural network (RNN), a convolutional neural network (CNN), and a self-attention neural network (SANN).
[0018] The step of recognizing the input sequence may include excluding a speech recognition result corresponding to the preset special sequence from speech recognition results corresponding to the preset special sequence and the input sequence.
[0019] The preset special sequence may include at least one feature vector extracted from a portion of a preset utterance of a speaker. The step of identifying the preset special sequence and the input sequence may include: generating an encoding feature by inputting the preset special sequence and the input sequence into an end-to-end artificial neural network having an encoder-decoder architecture; and outputting a special lexical unit corresponding to the feature vector based on the encoding feature. The artificial neural network may be trained to output the special lexical unit in response to the feature vector being input.
[0020] In the case where the input sequence includes only noise, the speech recognition method may further include: recognizing the input sequence after the preset special sequence as an end-of-state (EOS) lexical unit.
[0021] In another general aspect, a speech recognition device may include: a processor configured to: add a preset special sequence to the front end of an input sequence corresponding to an input utterance of a speaker; use an artificial neural network to recognize the preset special sequence and the input sequence; and recognize the input sequence based on the preset special sequence and a speech recognition result obtained by recognizing the preset special sequence and the input sequence.
[0022] The input sequence may include input utterances or vectors extracted from input utterances.
[0023] The preset special sequence may include a preset utterance of a speaker, or at least one vector extracted from the preset utterance.
[0024] The processor can generate a coding feature by encoding a preset special sequence and an input sequence; output a special lexical unit corresponding to the preset special sequence based on the generated coding feature; and determine at least one output lexical unit corresponding to the input sequence based on the coding feature and the special lexical unit.
[0025] A special lexical unit may include text corresponding to a preset utterance of a speaker.
[0026] The processor may generate a coding feature by encoding a preset special sequence and an input sequence; and determine at least one output lexical unit corresponding to the input sequence based on the generated coding feature and a special lexical unit corresponding to the preset special sequence.
[0027] The processor may input a preset special sequence and an input sequence into an end-to-end artificial neural network having an encoder-decoder architecture, and output a speech recognition result corresponding to the preset special sequence and the input sequence.
[0028] The decoder of the end-to-end artificial neural network may output the speech recognition result in each step based on the information calculated from the encoder of the end-to-end artificial neural network, depending on the speech recognition result from the previous step.
[0029] The artificial neural network may include one or more of RNN, CNN and SANN.
[0030] The processor may exclude the voice recognition result corresponding to the preset special sequence from the voice recognition results corresponding to the preset special sequence and the input sequence.
[0031] The preset special sequence may include at least one feature vector extracted from a portion of a preset utterance of a speaker, and the processor may generate an encoding feature by inputting the preset special sequence and the input sequence into an encoder of an end-to-end artificial neural network having an encoder-decoder architecture; and outputting a special lexical unit corresponding to the feature vector based on the encoding feature. The artificial neural network may be trained to output the special lexical unit in response to receiving the feature vector.
[0032] In the case where the input sequence includes only noise, the processor may recognize the input sequence after a preset special sequence as an EOS token.
[0033] In another general aspect, a processor-implemented speech recognition method includes: extracting a feature vector from an utterance including an input utterance and a special utterance added before the input utterance; encoding the feature vector to generate an encoded feature; and determining an output lexical unit based on the encoded feature and a previously determined recognition result.
[0034] The speech recognition method implemented by the processor may include: outputting a special lexical unit corresponding to a special utterance as an output lexical unit.
[0035] The processor-implemented speech recognition method may include decoding input lexical units and encoded features to output special lexical units.
[0036] The speech recognition method implemented by the processor may include: removing a special lexical unit from a recognition result including the special utterance; and outputting a current recognition result corresponding to only the input utterance.
[0037] The speech recognition method implemented by the processor may include: predicting the probability of a candidate of a subsequent output lexical unit based on a special lexical unit; determining the subsequent output lexical unit based on the probability; and determining the subsequent output lexical unit as a subsequent input lexical unit.
[0038] The step of encoding the feature vector may include transforming the dimension of the feature vector to generate the encoded feature.
[0039] Other features and aspects will be apparent from the following detailed description and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1An example of a speech recognition system is shown.
[0041] Figure 2A and Figure 2B An example of preventing noise from being output in an interval where no speech exists is shown.
[0042] Figure 3A An example of a speech recognition device is shown.
[0043] Figure 3B An example of a speech recognition device is shown.
[0044] Figure 3C An example of a speech recognition device is shown.
[0045] Figure 4A and Figure 4B An example of the operation of a speech recognition device including an end-to-end artificial neural network of an encoder-decoder architecture is shown.
[0046] Figure 5A and Figure 5B An example of focusing on the utterance of a primary speaker by a speech recognition device is shown.
[0047] Figure 6 An example of removing noise by a speech recognition device is shown.
[0048] Figure 7 A flow chart illustrating an example of a speech recognition method.
[0049] Figure 8 An example of the hardware configuration of a speech recognition device is shown.
[0050] Throughout the drawings and detailed description, unless otherwise described or provided, the same figure reference numerals will be understood to refer to the same elements, features, and structures. The drawings may not be to scale, and the relative sizes, proportions, and depictions of the elements in the drawings may be exaggerated for clarity, illustration, and convenience. DETAILED DESCRIPTION
[0051] The following specific embodiments are provided to help the reader gain a comprehensive understanding of the methods, devices and / or systems described herein. However, various changes, modifications and equivalents of the methods, devices and / or systems described herein will be clear after understanding the disclosure of the present application. For example, the order of operations described herein is only an example and is not limited to those orders set forth herein, but can be changed as will be clear after understanding the disclosure of the present application, except for operations that must occur in a specific order.
[0052] The features described herein may be implemented in different forms and are not to be construed as being limited to the examples described herein. Rather, the examples described herein have been provided only to illustrate some of the many possible ways in which the methods, devices and / or systems described herein will be clearly implemented after understanding the disclosure of the present application.
[0053] Although terms such as "first," "second," and "third" may be used herein to describe various members, components, regions, layers, or portions, these members, components, regions, layers, or portions are not limited by these terms. Instead, these terms are only used to distinguish one member, component, region, layer, or portion from another member, component, region, layer, or portion. Therefore, without departing from the teachings of the examples described herein, the first member, first component, first region, first layer, or first portion referred to in the examples may also be referred to as the second member, second component, second region, second layer, or second portion.
[0054] Throughout the specification, when a component is described as being "connected to" or "coupled to" another component, the component may be directly "connected to" or "coupled to" the other component, or there may be one or more other components intervening therebetween. Conversely, when an element is described as being "directly connected to" or "directly coupled to" another element, there may be no other elements intervening therebetween. Similarly, similar expressions (e.g., "between" versus "immediately between" and "adjacent to" versus "immediately adjacent to") should also be interpreted in the same manner. As used herein, the term "and / or" includes any one of the associated listed items and any combination of any two or more.
[0055] The terms used herein are only used to describe various examples and are not intended to limit the disclosure. Unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. The terms "comprise", "include" and "have" indicate the presence of the described features, quantities, operations, components, elements and / or combinations thereof, but do not exclude the presence or addition of one or more other features, quantities, operations, components, elements and / or combinations thereof.
[0056] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs and based on the understanding of the disclosure of the present application. Unless explicitly defined as such herein, terms (such as those defined in general dictionaries) will be interpreted as having a meaning consistent with their meaning in the context of the disclosure of the relevant field and the present application, and should not be interpreted in an idealized or overly formal manner.
[0057] Furthermore, in the description of the exemplary embodiments, when it is considered that a detailed description of a structure or function known therefrom after understanding the disclosure of the present application will lead to an obscure interpretation of the exemplary embodiments, such description will be omitted.
[0058] Hereinafter, examples will be described in detail with reference to the accompanying drawings, and like reference numerals denote like elements throughout.
[0059] Figure 1 An example of a speech recognition system is shown.
[0060] Reference Figure 1 , the speech recognition system includes a user terminal 110 and a speech recognition device 120. However, Figure 1 The components of the speech recognition system shown in FIG. 1 may be functional elements classified according to their functions, and one or more of the components may be implemented in an integral form in an actual physical environment. Figure 1 The voice recognition device 120 is illustrated as a type of server in FIG. 1 , but according to an example, each function of the voice recognition device 120 may be embedded in the user terminal 110 .
[0061] The user terminal 110 of the speech recognition system is a terminal configured to receive a speech or speech sequence (input sequence) 130 from a user or speaker and transmit the received speech sequence 130 to the speech recognition device 120, and provide the user with a recognition result 140 obtained by the speech recognition device 120. Figure 1 The user terminal 110 is shown as a smart phone in FIG. 1 , but the user terminal 110 may be implemented as other devices.
[0062] The speech recognition device 120 of the speech recognition system is a computing device configured to receive an input sequence 130 of a speaker and provide a recognition result 140. The input sequence 130 includes an input speech and an input speech feature vector extracted from the input speech. The input speech can be a comprehensive speech or sound expression uttered by a user or speaker, which includes a waveform file in which the speaker's input speech signal is represented by a waveform, a spectrogram in which the waveform file is represented by a frequency from a Mel-frequency cepstral coefficient (MFCC), etc. The computing device may include, for example, a laptop computer, a desktop computer, a smart phone, etc. However, the examples of the computing device are not limited to the examples described in the foregoing, and the computing device may include all types of devices including operating or computing devices.
[0063] Speech recognition device 120 is configured to provide end-to-end speech recognition. In the prior art, for speech recognition, Hidden Markov Model (HMM) is mainly used. This speech recognition method based on HMM can analyze the pronunciation from audio data, and assemble words or sentences based on the pronunciation analyzed. However, pronunciation can change for each speaker and the type of language, and therefore this method of analyzing pronunciation and identifying speech may need to include the corrections carried out by many trials and errors. In addition, because speech recognition method based on HMM identifies speech based on pronunciation, it can be susceptible to the influence of environmental noise.
[0064] In contrast, because the neural network learns the parts necessary for modeling, an end-to-end artificial neural network-based speech recognition system can have a high level of performance while minimizing the intervention of expertise in signal processing, pronunciation conversion, language modeling, and decoding required by existing speech recognition.
[0065] In order to provide end-to-end speech recognition, the speech recognition device 120 is configured to construct an acoustic model including an artificial neural network, and use the constructed acoustic model to provide a recognition result 140 in response to the input sequence 130. The artificial neural network can be, for example, a recurrent neural network (RNN), a convolutional neural network (CNN), a self-attention neural network (SANN), a bidirectional RNN (BRNN), a long short-term memory (LSTM) network, a bidirectional LSTM (BLSTM) network, a gated recurrent unit (GRU), a bidirectional GRU (BGRU), etc. However, examples of artificial neural networks are not limited to the examples described in the foregoing.
[0066] In addition, the speech recognition device 120 is configured to perform speech recognition by adding a preset special sequence corresponding to the speaker to the front end of the input sequence 130 corresponding to the input utterance of the speaker. In addition, the speech recognition device 120 is configured to perform autoregressive decoding, by which, in order to calculate an output of an undefined length by an artificial neural network, a previous output of the artificial neural network is used as an input to calculate a subsequent output for each lexical unit (token) as a unit of constructing a sequence. Therefore, the speech recognition device 120 can prevent the output of noise and focus on the utterance of the main speaker. Figure 2A and Figure 2B An example of input and output data of the voice recognition apparatus 120 is briefly described.
[0067] Figure 2A and Figure 2B An example of preventing noise from being output in an interval where no speech exists is shown.
[0068] Before describing the speech recognition method according to the example, reference will be made to Figure 2AA general end-to-end artificial neural network-based speech recognition method is briefly described as shown in the reference numeral 210 in . The input sequence of the speaker includes the speaker's utterance, for example, "where are you" from a point in the interval from 0.3 seconds (s) to 0.4s. The interval from 0s to 0.3s is an interval in which there is no speaker's utterance, and therefore the speech recognition device can be assumed to output a result indicating that there is no utterance in the interval. However, a general end-to-end artificial neural network-based speech recognition system can perform decoding on each phoneme in real time, and in the absence of the user's utterance, perform forced speech recognition in the noise interval, and output undesired text accordingly.
[0069] When there is only noise but no actual speech, a general end-to-end artificial neural network may not output a result indicating that there is no speech, but may output a result that is most similar to the characteristics of the noise. For example, a general end-to-end artificial neural network may output "hi bixby" in the interval from 0s to 0.1s, "hi galaxy" in the interval from 0s to 0.2s, and "turn on" in the interval from 0s to 0.3s.
[0070] To solve this problem, a method of learning noise data may be needed. However, this method may additionally require noise data and has the limitation that it may not be able to learn all types of noise.
[0071] Reference Figure 2B As shown in the reference numeral 220 in , the speech recognition device can perform speech recognition by adding a preset special sequence to the front end of the speaker's input sequence, and thus prevent the output of noise and focus on the speech of the main speaker based on the characteristics of autoregressive decoding, in which the previous output lexical unit affects the determination of the subsequent output lexical unit. The speech recognition device adds the speaker's speech (e.g., "hi") corresponding to the preset special sequence corresponding to the speaker to the front end of the speech (e.g., "where are you") corresponding to the speaker's input sequence. The special sequence is a sequence that is forcibly added to the front end of the input speech for speech recognition, which is different from the input speech actually uttered by the speaker, and includes a pre-acquired special speech of the speaker that can be clearly recognized by the speech recognition device, or a special feature vector extracted from the special speech of the speaker. For example, speech recognition can be divided into a registration process and a test process, and the special sequence can be pre-acquired in the registration process and automatically added to the front end of the speaker's input speech in the test process.
[0072] In the test process, the speech recognition device may receive a special sequence and output a recognition result (e.g., "hi"). The speech recognition device may be affected by autoregressive decoding, and thus the recognition result "hi" in response to the special sequence may affect the subsequent output and the subsequent output may focus on the utterance of the speaker who uttered "hi". Therefore, only lexical units having the characteristics of the speaker's utterance may be output. In the following, reference will be made to Figure 4A and Figure 4B as well as Figure 5A and Figure 5B The decoding method is described in detail.
[0073] As described above, a general end-to-end speech recognition system may not be able to output a result indicating that there is no speech in the interval from 0s to 0.3s, and outputs a result that is most similar to the characteristics of noise. On the contrary, as shown in reference numeral 220, because the recognition result "hi" affects the subsequent output, the speech recognition device may not additionally recognize the output in the noise interval in the input sequence after "hi" as the recognition result in response to the special sequence. Subsequently, the speech recognition device may remove the recognition result "hi" from "hiwhere are you", and finally output only "where are you". Therefore, the speech recognition device can simply use the special sequence to prevent the output of noise, and focus on the speech of the main speaker.
[0074] Although the special sequence has been described above as corresponding to a speaker, the special sequence may not necessarily be a special utterance of the speaker. For example, the utterance of the speaker corresponding to the special sequence "hi" may be replaced with an average utterance "hi" or an arbitrary utterance "hi". Although such an effect of focusing on the main speaker may be slightly reduced, even by using a special sequence that does not correspond to a speaker, the effect of not additionally recognizing the output of the noise part can still be obtained.
[0075] Figure 3A An example of a speech recognition device is shown.
[0076] Reference Figure 3A , the speech recognition device includes an artificial neural network 310, a feature vector extractor 320, and a special lexical unit remover 330. Figure 3A Only relevant components are shown in the example, but Figure 3A In addition to the components shown in, other commonly used components can also be further included. In addition, the components of the voice recognition equipment shown can be divided functionally and logically, and therefore they need not be separate physical components or separate codes. Therefore, at least one of the components shown can be realized in an overall form in an actual physical environment. Hereinafter, each component in the component of the voice recognition equipment shown will be described in detail.
[0077] When the speech recognition device receives the speaker's input speech, the speech recognition device adds a preset special speech to the front end of the speaker's input speech. The special speech means a speech that is forcibly added to the front end of the input speech for speech recognition, and can be clearly recognized and obtained in advance by the speech recognition device (for example, in the registration process). Here, the preset special speech may not necessarily be the speaker's special speech.
[0078] The feature vector extractor 320 extracts an input feature vector from an input speech received from a speaker and extracts a special feature vector from a special speech. A speech or voice may refer to a speech signal including information of each frame, and a feature vector may be a sequence of information extracted from each of at least one frame and represented by a multidimensional vector.
[0079] The artificial neural network 310 receives the input feature vector and the special feature vector from the feature vector extractor 320, and outputs the corresponding recognition result. The artificial neural network 310 can be an end-to-end artificial neural network of an encoder-decoder architecture including an encoder 311 and a decoder 312. The artificial neural network 310 can be implemented by, for example, RNN, CNN, SANN, BRNN, LSTM network, BLSTM network, GRU, BGRU, etc. However, the examples of the artificial neural network 310 are not limited to the examples described in the foregoing. The nodes of the layers in the artificial neural network 310 can affect each other nonlinearly, and the parameters of the artificial neural network 310 (such as, the values output from the nodes, the relationship between the nodes, etc.) can be optimized by learning or training.
[0080] This end-to-end encoder-decoder has a network architecture in which an encoder 311 and a decoder 312 are integrated together. The end-to-end encoder-decoder can receive an input feature vector and a special feature vector, and generate a sequence of recognition results. For example, the encoder 311 and the decoder 312 implemented in this end-to-end architecture can directly generate a recognition result corresponding to the input utterance from the input utterance. The encoder 311 and the decoder 312 can be pre-trained to generate a sequence of recognition results from the received feature vector. For example, the encoder 311 and the decoder 312 can be pre-trained to generate a sequence of recognition results from a sequence of pairs of input utterances and correct texts corresponding to the input utterances.
[0081] like Figure 3A As shown in , the encoder 311 generates encoding features by encoding received feature vectors (e.g., input feature vectors and special feature vectors). The encoder 311 generates encoding information by extracting features from the feature vectors. For example, the encoder 311 generates encoding information by transforming the dimension of the feature vector.
[0082] The coding feature is applied to the decoder 312. The decoder 312 generates a recognition result based on the coding feature. The decoder 312 receiving the coding feature outputs the recognition result per lexical unit, and the lexical unit may be a word, a subword, a character, or a unit included in a character (e.g., a consonant and a vowel in a Korean spelling syllable).
[0083] The decoder 312 obtains a plurality of lexical units (or recognition results) corresponding to the encoding features through a plurality of recognition steps (or a plurality of decoding steps), and in each recognition step, obtains (or selects or outputs)) an output lexical unit (or at least a portion of a plurality of lexical units or at least a portion of the recognition results) based on the information calculated from the encoder 311. The output lexical unit is obtained according to the input lexical unit selected until the previous recognition step. In an end-to-end artificial neural network model that performs autoregressive decoding, the lexical unit selected as the output lexical unit may be determined (or selected) as the subsequent input lexical unit (i.e., the lexical unit to be used in the subsequent recognition step). When the decoder 312 outputs the subsequent lexical unit in each recognition step, the decoder 312 uses the output lexical unit previously output. For example, in order to recognize "a human" in the sentence "I am a human", the decoder 312 uses the output "I am". In this example, such a characteristic may be autoregressive.
[0084] The decoder 312 outputs at least one special lexical unit corresponding to the special utterance based on the starting lexical unit as the input lexical unit and the encoding feature. The special lexical unit may be a text corresponding to the special utterance.
[0085] The decoder 312 that outputs a particular token predicts the probability of a candidate for a subsequent output token based on the particular token. i The conditional probability of can be expressed by Equation 1.
[0086] [Equation 1]
[0087] p(t i |t 1 , t 2 ,...,t i-1 ,H e )
[0088] In Equation 1, He represents the feature encoded by hidden representation, t 1 to i-1 represents the input lexical unit selected up to the current time point, and t 1Represents a special lexical unit. As shown in equation 1, the decoder 312 determines the subsequent output lexical unit based on the special lexical unit, and thus the subsequent output lexical unit can be biased by the speaker's speech. Therefore, the speech recognition device can focus on the speech of the main speaker. Here, the prevention of the output of noise can also be affected by the special lexical unit, and even if the special lexical unit does not correspond to the speaker's speech, such a result can be obtained.
[0089] The special lexical unit remover 330 removes special lexical units from the recognition result including the special utterance, and finally outputs the recognition result corresponding to only the input utterance.
[0090] Figure 3B Another example of a speech recognition device is shown.
[0091] Reference Figure 3B The speech recognition device includes an artificial neural network 310, a feature vector extractor 321 and a special lexical unit remover 330. Figure 3A What has been described is applicable herein, and thus repeated descriptions are omitted here for increased brevity and clarity.
[0092] The speech recognition device adds a preset special feature vector to the input feature vector instead of adding a special utterance to the input utterance of the speaker. The feature vector extractor 321 extracts an input feature vector from the input utterance received from the speaker. The speech recognition device adds the preset special feature vector to the extracted input feature vector. The special feature vector can be obtained in advance in the registration process and includes the voice or utterance characteristics or features of the speaker.
[0093] The artificial neural network 310 receives the input feature vector and the special feature vector from the feature vector extractor 321 and outputs the corresponding recognition result.
[0094] Figure 3C Another example of a speech recognition device is shown.
[0095] Reference Figure 3C The speech recognition device includes an artificial neural network 315, an input feature vector extractor 322, a special feature vector extractor 323, a special lexical unit remover 330 and an output controller 340.
[0096] The speech recognition device may use different feature vector extractors for the input utterance and the special utterance. For example, the input feature vector extractor 322 extracts an input feature vector from the input utterance, and the special feature vector extractor 323 extracts a special feature vector from the special utterance. In addition, in order to increase the efficiency of calculation or for other such purposes, the special feature extractor 323 may be used together with the special feature vector extractor 323 applied to the speech recognition device. Figure 3AThe feature vector extractor 320 shown in FIG. 3 may extract feature vectors in different ways. For example, the special feature vector extractor 323 extracts special feature vectors from a special part of the utterance.
[0097] The artificial neural network 315 is an end-to-end artificial neural network of an encoder-decoder architecture including an encoder 316 and a decoder 317. The encoder 316 generates encoding features by encoding received feature vectors (e.g., input feature vectors and special feature vectors), and applies the generated encoding features to the decoder 317. The decoder 317 generates a recognition result based on the encoding features.
[0098] The artificial neural network 315 is trained to output a specific lexical unit when receiving a specific feature vector. Figure 3A and 3B The special lexical unit described may be a text corresponding to a special utterance. However, except that the special lexical unit includes only speaker information, the special lexical unit output by the decoder 317 may not be a text corresponding to a special utterance. For example, since the artificial neural network 310 is pre-trained to generate a sequence of recognition results from a sequence of pairs of an input utterance and a correct text corresponding to the input utterance, the artificial neural network 310 may not need to additionally learn the special lexical unit corresponding to the special utterance. However, since the artificial neural network 315 receives a special feature vector that the artificial neural network 315 may not have learned, the artificial neural network 315 may need to be trained to output a special lexical unit corresponding to the special feature vector when the artificial neural network 315 receives the special feature vector. In the following, reference is made to Figure 3C The special feature vector described and the special lexical unit corresponding to the special feature vector will be referred to as the voice identity (ID) feature vector and the voice ID lexical unit, respectively, to distinguish them from the reference lexical unit. Figure 3A and 3B The special feature vectors described are distinguished from special tokens.
[0099] The artificial neural network 315 receiving the voice ID feature vector outputs the voice ID lexical unit. When the voice ID lexical unit is output, the output controller 340 applies a bias to the speaker information in the voice ID lexical unit. The decoder 317 predicts the probability of the candidate of the subsequent output lexical unit based on the voice ID lexical unit in which the speaker information is biased. The decoder 317 predicts the probability of the candidate of the subsequent output lexical unit based on the voice ID lexical unit, and therefore the subsequent output lexical unit can be biased by the speaker's speech. Therefore, the speech recognition device can prevent the output of noise and focus on the speech of the main speaker.
[0100] The special lexical unit remover 330 removes the special lexical unit from the recognition result including the special utterance, and outputs the recognition result corresponding to only the input utterance.
[0101] Figure 4A and Figure 4B An example of the operation of a speech recognition device including an end-to-end artificial neural network of an encoder-decoder architecture is shown.
[0102] Reference Figure 4A , the artificial neural network 400 includes an encoder 410 and a decoder 420.
[0103] The artificial neural network 400 is an end-to-end artificial neural network of an encoder-decoder architecture, which enables a path to train all parameters simultaneously for a single loss function, and thus the encoder 410 and the decoder 420 can be trained simultaneously. The artificial neural network 400 receives input at one end and generates output at the other end, and optimizes the network weights directly based on the input and output.
[0104] The speech recognition device extracts a feature vector 412 from an utterance 411. The utterance 411 includes an input utterance and a special utterance. The feature vector 412 includes an input feature vector and a special feature vector. Hereinafter, for the convenience of description, the special utterance is described as "hi".
[0105] The encoder 410 generates an encoding feature 413 by encoding the feature vector 412. The encoder 410 generates encoding information by transforming the dimension of the encoding feature 413. The encoding feature 413 is applied to the decoder 420 of the artificial neural network 400. The decoder 420 determines an output lexical unit based on the encoding feature 413 and a previously determined recognition result.
[0106] The decoder 420 of the artificial neural network 400 decodes the starting lexical unit and the encoding feature 413 as the input lexical unit, and outputs at least one special lexical unit "hi" corresponding to the special utterance. The decoder 420 that outputs "hi" predicts the probability of the candidates of the subsequent output lexical unit based on the special lexical unit "hi", and determines the candidate with the maximum probability among the candidates as the subsequent output lexical unit. For example, when the decoder 420 determines that "hi" is the output lexical unit, the decoder 420 determines that "hi" is the subsequent input lexical unit.
[0107] Reference Figure 4B, in contrast to the decoder 420, the decoder 421 of the artificial neural network 450 skips the recognition step of decoding the starting lexical unit and the encoding feature 413 and outputting at least one special lexical unit "hi" corresponding to the special utterance. The decoder 421 may not output the special lexical unit separately through decoding, but may have the special lexical unit in advance and input the special lexical unit as the subsequent input lexical unit. The speech recognition device may use the special lexical unit as the subsequent input lexical unit, and use the decoder 421 that directly inputs such a pre-provided special lexical unit as the subsequent input lexical unit, so as to output the same result as the result obtained by the decoder 420. Therefore, the speech recognition device can improve the efficiency of calculation. In addition to the artificial neural network 400, Figure 3A Artificial Neural Networks 310 and Figure 3C The artificial neural network 315 may include an artificial neural network 450 .
[0108] Figure 5A and Figure 5B An example of focusing on the utterance of a primary speaker by a speech recognition device is shown.
[0109] In addition to the input utterance of the main speaker, the speech recognition device may receive the input utterance of another speaker. In order to distinguish the other speaker from the main speaker, the other speaker will be referred to as a sub-speaker, and there may be one or more sub-speakers. For example, when speech recognition is performed in an environment where the sound comes from a television (TV), such TV sound may be input to the speech recognition device. In this example, the TV sound may be the sound of the sub-speaker. Hereinafter, for ease of description, an example will be described in which the input utterance of the main speaker is "where are you" and the input utterance of the sub-speaker is "breaking news today prime mini..."
[0110] Reference Figure 5A , a recognition result from a general speech recognition device is shown by reference numeral 510. When an input utterance of a sub-speaker is input before an input utterance of a main speaker is input, the input utterance of the sub-speaker may be biased, and text corresponding to the input utterance of the sub-speaker (e.g., "breaking news today primemini ...") may be output.
[0111] Reference Figure 5B, the recognition result from the speech recognition device described herein is shown by reference numeral 520. Although the input utterance of the sub-speaker is input before the input utterance of the main speaker is input, the speech recognition device can output text corresponding to the input utterance of the main speaker by adding a special utterance corresponding to the main speaker before the input utterance of the sub-speaker is input. In one example, the speech recognition device adds the special utterance corresponding to the main speaker to the front end of the input utterance of the sub-speaker, and outputs a recognition result "hi" corresponding to the special utterance. Subsequently, the speech recognition device predicts the probability of the candidate of the subsequent output lexical unit based on the recognition result "hi". Therefore, the subsequent output lexical unit is biased by the input utterance of the main speaker. The speech recognition device can focus on the utterance of the main speaker, and thus output the text "where are you" corresponding to the input utterance of the main speaker.
[0112] Figure 6 An example of removing noise by a speech recognition device is shown.
[0113] Reference Figure 6 , a speech recognition device receives an input utterance 610 including noise 611. The speech recognition device adds a special feature vector 620 to the front end of an input feature vector 630. The input feature vector 630 includes a partial feature vector 631 corresponding to the noise.
[0114] The speech recognition device outputs a special lexical unit corresponding to the special feature vector 620, and focuses on the speaker's speech based on the autoregressive characteristic. Therefore, as shown in the self-attention weight 640, the noise can be ignored, and the text corresponding to the noise may not be output. In the entire self-attention weight 640, the specific self-attention weight 641 corresponding to the noise is 0.
[0115] Figure 7 A flow chart illustrating an example of a speech recognition method.
[0116] Reference Figure 7 Operations 710 to 730 can be referred to above. Figures 1 to 6 The speech recognition device described in the present invention is executed. The speech recognition device can be implemented by at least one hardware module, at least one software module or various combinations thereof.
[0117] Reference Figure 7 In operation 710, the speech recognition apparatus adds a preset special sequence to the front end of an input sequence corresponding to an input utterance of a speaker. The input sequence may include an input utterance, or may include a vector extracted from the input utterance. The special sequence may include a preset utterance of the speaker, or at least one vector extracted from the preset utterance.
[0118] In operation 720, the speech recognition device recognizes the special sequence and the input sequence. The speech recognition device generates a coding feature by encoding the special sequence and the input sequence, outputs at least one special lexical unit corresponding to the special sequence based on the generated coding feature, and determines at least one output lexical unit corresponding to the input sequence based on the coding feature and the special lexical unit. The special lexical unit may include text corresponding to a preset utterance of the speaker.
[0119] The speech recognition device generates a coding feature by encoding the special sequence and the input sequence, and determines at least one output lexical unit corresponding to the input sequence based on the generated coding feature and the special lexical unit corresponding to the special sequence.
[0120] The speech recognition device inputs the special sequence and the input sequence into an end-to-end artificial neural network of an encoder-decoder architecture, and outputs a speech recognition result corresponding to the special sequence and the input sequence. The artificial neural network can output a speech recognition result in each recognition step based on information calculated by the encoder of the artificial neural network, depending on the speech recognition result from the previous recognition step.
[0121] In operation 730, the speech recognition apparatus recognizes the input sequence based on the special sequence and the speech recognition result. The speech recognition apparatus outputs a speech recognition result recognizing the input sequence by excluding the speech recognition result corresponding to the special sequence from the speech recognition results corresponding to the special sequence and the input sequence.
[0122] Figure 8 An example of the hardware configuration of a speech recognition device is shown.
[0123] Reference Figure 8 The speech recognition device includes: at least one processor 810, a bus 840, a network interface 850, a memory 820 configured to load a computer program to be executed by the processor 810, and a storage device 860 configured to store speech recognition software (SW) 830.
[0124] The processor 810 can control the overall operation of each component in the components of the speech recognition device. The processor 810 can be implemented by including a central processing unit (CPU), a microprocessor unit (MPU), a microcontroller unit (MCU), a graphics processing unit (GPU) and other known types of processors in the relevant technical field. In addition, the processor 810 can perform the operation of at least one application or program to perform the method described above according to various examples. The speech recognition device may include one or more processors.
[0125] The memory 820 may store a collection of various data, instructions and / or information. The memory 820 may load the speech recognition SW 830 from the storage device 860 to perform the speech recognition method described herein according to various examples. As an example, the memory 820 may be provided as a random access memory (RAM).
[0126] The bus 840 may provide a communication function for communication between components of the speech recognition device. The bus 840 may be implemented in various types, for example, an address bus, a data bus, a control bus, and the like.
[0127] The network interface 850 can support wired and wireless Internet communications of the voice recognition device. In addition, the network interface 850 can support various communication methods other than Internet communications. To this end, the network interface 850 can be implemented by including a well-known communication module in the relevant technical field.
[0128] The storage device 860 may store the voice recognition SW 830 non-temporarily.
[0129] The storage device 860 may be implemented by including a nonvolatile memory such as a read-only memory (ROM), an erasable programmable ROM (EPROM), an electrically EPROM (EEPROM), and a flash memory, or a hard disk, a removable disk, or other well-known computer-readable recording media.
[0130] The speech recognition SW 830 may construct an artificial neural network-based acoustic model by performing the speech recognition method described herein according to various examples, and output a final text in response to target speech or audio data to be recognized using the constructed acoustic model.
[0131] For example, the speech recognition SW 830 may be loaded into the memory 820. Through the speech recognition SW 830, the processor 810 may add a preset special sequence to the front end of the input sequence corresponding to the input utterance of the speaker, identify the special sequence and the input sequence, and identify the input sequence based on the special sequence and the speech recognition result obtained by identifying the special sequence and the input sequence. In addition, the processor 810 may generate a coding feature by encoding the special sequence and the input sequence, output a special lexical unit corresponding to the special sequence based on the generated coding feature, and determine at least one output lexical unit corresponding to the input sequence based on the coding feature and the special lexical unit. Alternatively, the processor 810 may generate a coding feature by encoding the special sequence and the input sequence, and determine at least one output lexical unit corresponding to the input sequence based on the generated coding feature and the special lexical unit corresponding to the special sequence. In addition, the processor 810 may input the special sequence and the input sequence into the end-to-end artificial neural network of the encoder-decoder architecture, and output the speech recognition result corresponding to the special sequence and the input sequence. In addition, the processor 810 may exclude the speech recognition result corresponding to the special sequence from the speech recognition result corresponding to the special sequence and the input sequence. In addition, the processor 810 may identify the interval of the input sequence after the special sequence as an end-of-state (EOS) lexical unit. Figure 2A and Figure 2B As shown in the example of , in the case where only noise exists in the input sequence, the processor 810 may identify the interval after the special sequence (eg, the interval from 0s to 0.3s including only noise) as an EOS token.
[0132] In this regard Figure 1 , FIG. 3A to FIG. 3C and Figure 8The described speech recognition equipment and other equipment, units, modules, devices and other components are realized by hardware components. Examples of hardware components that can be used to perform the operation described in the present application include, in appropriate cases, controllers, sensors, generators, drivers, memories, comparators, arithmetic logic units, adders, subtractors, multipliers, dividers, integrators and any other electronic components configured to perform the operation described in the present application. In other examples, one or more of the hardware components that perform the operation described in the present application are realized by computing hardware (e.g., by one or more processors or computers). Processors or computers can be realized by one or more processing elements (such as, logic gate arrays, controllers and arithmetic logic units, digital signal processors, microcomputers, programmable logic controllers, field programmable gate arrays, programmable logic arrays, microprocessors or combinations of any other devices or devices that are configured to respond and execute instructions in a limited manner to achieve the desired result). In one example, a processor or computer includes or is connected to one or more memories storing instructions or software executed by a processor or computer. The hardware components implemented by a processor or a computer can execute instructions or software (such as an operating system (OS) and one or more software applications running on the OS) for performing the operations described in this application. The hardware components can also access, manipulate, process, create and store data in response to the execution of instructions or software. For simplicity, the singular term "processor" or "computer" can be used in the description of the examples described in this application, but in other examples, multiple processors or computers can be used, or the processor or computer can include multiple processing elements or multiple types of processing elements or both. For example, a single hardware component or two or more hardware components can be implemented by a single processor, or two or more processors, or a processor and a controller. One or more hardware components can be implemented by one or more processors, or a processor and a controller, and one or more other hardware components can be implemented by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller can implement a single hardware component or two or more hardware components. The hardware components may have any one or more of different processing configurations, examples of which include: a single processor, independent processors, parallel processors, single instruction single data (SISD) multiprocessing, single instruction multiple data (SIMD) multiprocessing, multiple instruction single data (MISD) multiprocessing, and multiple instruction multiple data (MIMD) multiprocessing.
[0133] FIG. 2A to FIG. 2B , FIG. 4A to FIG. 4B , FIG. 5A to FIG. 5B , Figure 6 and Figure 7The method for performing the operations described herein shown in the embodiment is performed by computing hardware (e.g., by one or more processors or computers), which is implemented as executing instructions or software as described above to perform the operations performed by the method described in this application. For example, a single operation or two or more operations may be performed by a single processor or two or more processors, or a processor and a controller. One or more operations may be performed by one or more processors, or a processor and a controller, and one or more other operations may be performed by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller may perform a single operation or two or more operations.
[0134] The instructions or software for controlling a processor or computer to implement a hardware component and perform the method as described above are written as a computer program, a code segment, an instruction, or any combination thereof, to individually or collectively instruct or configure a processor or computer to operate as a machine or a special-purpose computer to perform operations performed by the hardware components and methods as described above. In one example, the instructions or software include machine code (such as machine code generated by a compiler) directly executed by a processor or computer. In another example, the instructions or software include high-level code executed by a processor or computer using an interpreter. Ordinary programmers in the art can easily write instructions or software based on the block diagrams and flow charts shown in the accompanying drawings and the corresponding descriptions in the specification, and the block diagrams and flow charts shown in the accompanying drawings and the corresponding descriptions in the specification disclose algorithms for performing operations performed by the hardware components and methods as described above.
[0135] The instructions or software for controlling a processor or computer to implement the hardware components and perform the methods described above, as well as any associated data, data files, and data structures, are recorded, stored, or fixed in or on one or more non-transitory computer-readable storage media. Examples of non-transitory computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card or micro card (for example, Secure Digital (SD) or Extreme Digital (XD))), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, and any other device, wherein any other device is configured to store instructions or software and any associated data, data files and data structures in a non-temporary manner and provide the instructions or software and any associated data, data files and data structures to a processor or computer so that the processor and computer can execute the instructions.
[0136] Although the present disclosure includes specific examples, it will be clear to those of ordinary skill in the art that various changes in form and detail may be made in these examples without departing from the spirit and scope of the claims and their equivalents. The examples described herein are to be considered to be merely descriptive and not for limiting purposes. The description of features or aspects in each example should be considered to be applicable to similar features or aspects in other examples. If the described techniques are performed in a different order, and / or if the components in the described systems, architectures, devices, or circuits are combined in different ways, and / or replaced or supplemented by other components or their equivalents, suitable results may be achieved. Therefore, the scope of the disclosure is not limited by a specific embodiment, but by the claims and their equivalents, and all changes within the scope of the claims and their equivalents should be interpreted as included in the disclosure.
Claims
1. A speech recognition method, include: Get special words in advance; When receiving an input sequence corresponding to an input utterance of a speaker, adding a preset special sequence to the front end of the input sequence corresponding to the input utterance of the speaker, wherein the preset special sequence includes the special utterance or a special feature vector extracted from the special utterance or a part of the special utterance; Using artificial neural networks to recognize preset special sequences and input sequences; and The input sequence is recognized based on a preset special sequence and a recognition result obtained by recognizing the preset special sequence and the input sequence using an artificial neural network.
2. The speech recognition method according to claim 1, in, The input sequence includes an input utterance or an input utterance feature vector extracted from the input utterance.
3. The speech recognition method according to claim 1, in, A particular utterance is a particular utterance of a speaker.
4. The speech recognition method according to claim 1, in, The preset special sequence is an utterance corresponding to "hi", or at least one vector extracted from an utterance corresponding to "hi".
5. The speech recognition method according to claim 1, in, The steps of identifying the preset special sequence and the input sequence include: Generate encoding features by encoding a preset special sequence and an input sequence; outputting at least one special lexical unit corresponding to a preset special sequence based on the encoding feature; and At least one output token corresponding to the input sequence is determined based on the encoding feature and the at least one special token.
6. The speech recognition method according to claim 5, in, A particular lexical unit includes text corresponding to a particular utterance of a speaker.
7. The speech recognition method according to claim 1, in, The steps of identifying the preset special sequence and the input sequence include: Generate a coding feature by encoding a preset special sequence and an input sequence; and At least one output lexical unit corresponding to the input sequence is determined based on the encoding feature and the special lexical unit corresponding to the preset special sequence.
8. The speech recognition method according to claim 1, in, The steps of identifying the preset special sequence and the input sequence include: By inputting a preset special sequence and an input sequence into an end-to-end artificial neural network with an encoder-decoder architecture, a recognition result corresponding to the preset special sequence and the input sequence from the end-to-end artificial neural network is output.
9. The speech recognition method according to claim 8, in, The decoder of the end-to-end artificial neural network is configured to output the recognition result through multiple recognition steps, and in each recognition step, output at least a part of the recognition result depending on the recognition result from the previous recognition step based on the information calculated from the encoder of the end-to-end artificial neural network.
10. The speech recognition method according to claim 8, in, The artificial neural network includes one or more of a recurrent neural network (RNN), a convolutional neural network (CNN), and a self-attention neural network (SANN).
11. The speech recognition method according to claim 1, in, The steps to identify the input sequence include: From the recognition results corresponding to the preset special sequence and the input sequence, the recognition result corresponding to the preset special sequence is excluded.
12. The speech recognition method according to claim 1, in, A special feature vector extracted from a portion of a special utterance includes at least one feature vector, and The steps of identifying the preset special sequence and the input sequence include: Generate encoding features by inputting a preset special sequence and an input sequence into an end-to-end artificial neural network having an encoder-decoder architecture; and outputting a special lexical unit corresponding to the at least one feature vector based on the encoding feature, The artificial neural network is configured to be trained to output a special lexical unit in response to the at least one feature vector being input.
13. The speech recognition method according to claim 1, in, In the case where the input sequence only includes noise, the speech recognition method further includes: An input sequence following a preset special sequence is recognized as a state-ending token.
14. A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, causes the processor to perform the speech recognition method of claim 1.
15. A speech recognition device, include: The processor is configured as: Get special words in advance; When receiving an input sequence corresponding to an input utterance of a speaker, adding a preset special sequence to the front end of the input sequence corresponding to the input utterance of the speaker, wherein the preset special sequence includes the special utterance or a special feature vector extracted from the special utterance or a part of the special utterance; Using artificial neural networks to recognize preset special sequences and input sequences; and The input sequence is recognized based on a preset special sequence and a recognition result obtained by recognizing the preset special sequence and the input sequence using an artificial neural network.
16. The speech recognition device according to claim 15, in, The input sequence includes an input utterance or an input utterance feature vector extracted from the input utterance.
17. The speech recognition device according to claim 15, in, A particular utterance is a particular utterance of a speaker.
18. The speech recognition device according to claim 15, in, The steps of identifying the preset special sequence and the input sequence include: Generate encoding features by encoding a preset special sequence and an input sequence; Outputting a special lexical unit corresponding to a preset special sequence based on the encoding feature; and At least one output token corresponding to the input sequence is determined based on the encoding feature and the special token.
19. The speech recognition device according to claim 18, in, A special lexical unit includes text corresponding to a predetermined utterance of a speaker.
20. The speech recognition device according to claim 15, in, The steps of identifying the preset special sequence and the input sequence include: Generate a coding feature by encoding a preset special sequence and an input sequence; and At least one output lexical unit corresponding to the input sequence is determined based on the generated encoding features and the special lexical unit corresponding to the preset special sequence.
21. The speech recognition device according to claim 15, in, The step of identifying a preset special sequence and an input sequence includes: inputting the preset special sequence and the input sequence into an end-to-end artificial neural network having an encoder-decoder architecture, and outputting a recognition result corresponding to the preset special sequence and the input sequence from the end-to-end artificial neural network.
22. The speech recognition device according to claim 21, in, The decoder of the end-to-end artificial neural network is configured to output the recognition result through multiple recognition steps, and in each recognition step, output at least a part of the recognition result depending on the recognition result from the previous recognition step based on the information calculated from the encoder of the end-to-end artificial neural network.
23. The speech recognition device according to claim 21, in, The artificial neural network includes one or more of a recurrent neural network (RNN), a convolutional neural network (CNN), and a self-attention neural network (SANN).
24. The speech recognition device according to claim 15, in, The step of identifying the input sequence includes: excluding the recognition result corresponding to the preset special sequence from the recognition results corresponding to the preset special sequence and the input sequence.
25. The speech recognition device according to claim 15, in, A special feature vector extracted from a portion of a special utterance includes at least one feature vector, The step of identifying the preset special sequence and the input sequence comprises: generating a coding feature by inputting the preset special sequence and the input sequence into an end-to-end artificial neural network with an encoder-decoder architecture; and outputting a special lexical unit corresponding to the at least one feature vector based on the coding feature, and The artificial neural network is configured to be trained to output a specific lexical unit in response to receiving the at least one feature vector.
26. The speech recognition device according to claim 21, in, In the case that the input sequence includes only noise, the processor is further configured to: identify the input sequence after the preset special sequence as a state-ending lexical unit.
27. A speech recognition method, include: Get special words in advance; When receiving an input utterance, adding the special utterance to the front of the input utterance to obtain an utterance including the input utterance and the pre-acquired special utterance added before the input utterance; extracting a feature vector from an utterance including an input utterance and a pre-acquired special utterance added before the input utterance; encoding the feature vector to generate encoded features; The output token is determined based on the encoding features and the previously determined recognition results.
28. The speech recognition method according to claim 27, further comprising: include: A special lexical unit corresponding to the special utterance is output as an output lexical unit.
29. The speech recognition method according to claim 28, further comprising: include: Decodes the input token and the encoded features to output a special token.
30. The speech recognition method according to claim 28, further comprising: include: removing a special lexical unit from a recognition result including the special utterance; and Outputs the current recognition result corresponding only to the input utterance.
31. The speech recognition method according to claim 28, further comprising: include: Predicting the probability of subsequent output token candidates based on a particular token; determining a subsequent output lexical unit based on the probability; and The subsequent output token is determined to be the subsequent input token.
32. The speech recognition method according to claim 27, in, The step of encoding the feature vector includes transforming the dimension of the feature vector to generate encoded features.
