Patent ID: 12249322

DETAILED DESCRIPTION OF THE EMBODIMENTS

The present disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments of the present disclosure and features in the embodiments may be combined with each other without conflict.

Currently, the speaking content of a client is generally recognized first. Secondly, the speaking content is transcribed into a corresponding text, and then the intent of a speaker is recognized in the transcribed text. If the accuracy of text conversion is low due to background noise or speaker's accent, the accuracy of intent recognition will also be lowered. At the same time, text conversion takes some time and may lead to less efficient intent recognition.

To solve the above problem, an intent recognition method is provided according to an embodiment of the present disclosure. As shown inFIG.1, the method includes steps101to104.

In101, the user's audio to be recognized is acquired.

The audio to be recognized may be an audio for communicating with the AI customer service. According to the embodiment of the present disclosure, the audio of the user can be acquired in real time in the process of the communication between the user and the AI customer service. An intent analysis is carried out on the audio of the user to obtain the intent of the user. A satisfactory answer is replied to the user according to the intent of the user, so that the answering efficiency and the answering accuracy for the user can be improved, and the user experience is improved.

In102, multi-frame audio feature vectors corresponding to the audio to be recognized are determined.

Specifically, to improve the accuracy of intent recognition, it is further required to determine the audio feature vectors corresponding to the audio to be recognized after the audio to be recognized of the user is acquired. The audio feature vectors are features of all frames of the audio. For example, for a 2 s audio with a frame shift of 10 ms, there are 20 frames, i.e., there are 20 frames of audio feature vectors in total. The multi-frame audio feature vectors are then input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors. So that by directly determining the feature of the voice of the user and analyzing the voice feature by using the model, the efficiency and the accuracy of the intent recognition can be improved.

In103, the multi-frame audio feature vectors are input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters.

The preset intent recognition model may be a pre-trained neural network model. In the embodiment of the present disclosure, after the multi-frame audio feature vectors of the audio to be recognized are acquired, the multi-frame audio feature vectors are directly input into the preset intent recognition model. The multi-frame audio feature vectors are sequentially input into the preset intent recognition model. Each frame of audio is input into the preset intent recognition model and has a plurality of corresponding output results. Take the three-frame audio feature vectors as an example, the first frame audio feature vector is input into the preset intent recognition model. With the preset intent recognition model, a plurality of output results corresponding to the first frame audio feature vector can be output. The second frame audio feature vector is input into the preset intent recognition model. With the preset intent recognition model, a plurality of output results (e.g., two results) corresponding to the second frame audio feature vector can be output. The third frame audio feature vector is input into a preset intent recognition model. With the preset intent recognition model, a plurality of output results corresponding to the third frame audio feature vector can be output. The output result corresponding to each frame audio feature vector may include a blank result. At this time, a blank character “-” may be used for substitution. And then any one of the output results corresponding to the three-frame audio feature vectors is sequentially combined to obtain multiple output sequences. For example, if a certain output result corresponding to the first frame audio feature vector is “-”, a certain output result corresponding to the second frame audio feature vector is “school”, and a certain output result corresponding to the third frame audio feature vector is “student”, the output sequence after final combining is: the “- school student”. Because each frame of audio feature vector corresponds to a plurality of output results, multiple output sequences will be obtained. Finally, the target intent corresponding to the audio to be recognized is determined based on the multiple output sequences, which can improve the efficiency and the accuracy of the intent recognition.

In104, a target intent corresponding to the audio to be recognized based on the multiple output sequences is determined.

In the embodiment of the present disclosure, after the multiple output sequences are output from the preset intent recognition model, the optimal output sequence is determined among the multiple output sequences. The target intent corresponding to the audio to be recognized is determined according to the optimal output sequence. Therefore, the final intent recognition result is obtained by directly extracting the audio features of the audio to be recognized and directly inputting the audio features into the model. By directly utilizing the model to recognize the audio features, conversion errors and time wasted in conversion caused by converting audio to text can be avoided, so that the present disclosure is able to improve the accuracy and the efficiency of the intent recognition.

An intent recognition is provided according to the present disclosure. In the present disclosure, the user's audio to be recognized is acquired, in comparison with the present mode that the speaking content of a client is generally recognized, the speaking content is transcribed into a corresponding text, and then the intent of a speaker is recognized in the transcribed text. The multi-frame audio feature vectors corresponding to the audio to be recognized are determined. The multi-frame audio feature vectors are input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters. The target intent corresponding to the audio to be recognized is determined based on the multiple output sequences. Therefore, the final intent recognition result is obtained by directly extracting the audio features of the audio to be recognized and directly inputting the audio features into the model. By directly utilizing the model to recognize the audio features, conversion errors and time wasted in conversion caused by converting audio to text can be avoided, so that the present disclosure is able to improve the accuracy and the efficiency of the intent recognition.

Further, to better explain the above intent recognition process, as a refinement and extension of the above embodiment, an intent recognition method is provided according to another embodiment of the present disclosure. As shown inFIG.2, the method includes steps201to205.

In201, user's audio to be recognized is acquired.

Specifically, in the process of a user communicating with an AI customer service, the audio of the user, namely the audio to be recognized, is obtained in real time. The audio feature vectors corresponding to the audio to be recognized are determined. The audio feature vectors are analyzed by using a preset intent recognition model to determine the intent. On the basis, to improve the recognition accuracy of the preset intent recognition model, the preset intent recognition model needs to be trained and formulated firstly. In view of this, the method includes: formulating a preset initial intent recognition model and acquiring a sample audio and an actual output sequence corresponding to the sample audio; determining multi-frame sample audio feature vectors corresponding to the sample audio; inputting the multi-frame sample audio feature vectors into the preset initial intent recognition model to obtain a predicted output sequence corresponding to the multi-frame sample audio feature vectors; formulating a loss function corresponding to the preset initial intent recognition model based on the predicted output sequence and the actual output sequence; and formulating the preset intent recognition model based on the loss function.

Specifically, a plurality of preset initial intent recognition models is formulated, the model structures of the preset initial intent recognition models may be the same or different. Then the sample audio (which may be obtained in the conversation process of a historical user with an AI customer service) is obtained. An actual output sequence corresponding to the sample audio is determined. Multi-frame sample audio feature vectors corresponding to the sample audio are determined. A mapping relationship is established between the sample audio and the actual output sequence to obtain a sample set. The sample set is divided into a training set and a testing set. The training set is divided into a plurality of sub-training sets, wherein different sub-training sets correspond to different preset initial intent recognition models. Specifically, in the training process, the multi-frame sample audio feature vectors corresponding to the sample audio in the sub-training sets are input into the corresponding preset initial intent recognition model to obtain a predicted output sequence. The predicted output sequence is compared with the actual output sequence. The loss function corresponding to the preset initial intent recognition model is formulated according to the comparison result. The preset initial intent recognition model is trained according to the loss function, so that each preset initial intent recognition model can be trained. After the training is finished, each trained preset initial intent recognition model is tested by using the testing set to determine the prediction accuracy corresponding to each preset initial intent recognition model. Finally, the preset initial intent recognition model with the highest prediction accuracy is selected as the preset intent recognition model in the embodiment of the present disclosure. Therefore, the accuracy of intent recognition can be improved by training and formulating the preset intent recognition model.

In202, multi-frame audio feature vectors corresponding to the audio to be recognized are determined.

In the embodiment of the present disclosure, to further improve the recognition accuracy of the preset intent recognition model, firstly, the multi-frame audio feature vectors corresponding to the audio to be recognized needs to be determined. In view of this, step202specifically includes: cutting the audio to be recognized in a preset length threshold unit to obtain a plurality of short-time frame audios; windowing the short-time frame audios by using a preset Hamming Window function to obtain a plurality of windowed audios corresponding to the short-time frame audios respectively; performing first-order high-pass filtering on the plurality of windowed audios to obtain a plurality of high-frequency short-time frame audios; performing transformation on the plurality of high-frequency short-time frame audios by utilizing a preset Fourier transform function respectively to obtain a plurality of processed high-frequency short-time frame audios; determining power spectrums corresponding to the processed high-frequency short-time frame audios respectively; performing convolution operation between the power spectrums and a preset triangular filtering function group to obtain a result filtered by triangular filtering functions in the preset triangular filtering function group; performing logarithmic operation on the result filtered by the triangular filtering functions to obtain high-dimensional audio features corresponding to the plurality of short-time frame audios respectively; and performing discrete cosine transform on the high-dimensional audio features corresponding to the plurality of short-time frame audios respectively to obtain the multi-frame audio feature vectors corresponding to the audio to be recognized.

Wherein, the preset length threshold is set according to actual requirements. Specifically, before performing audio feature extraction, preprocessing needs to be performed on the audio to be recognized. The purpose of the preprocessing is to remove noise, normalize signal strength, and the like. Common preprocessing methods include speech signal framing, windowing, pre-emphasis, and the like. The speech signal of the audio to be recognized is usually continuous. For the convenience of subsequent processing, the audio to be recognized needs to be framed. The purpose of framing is to cut the continuous speech signal into a plurality of short-time frames to obtain a plurality of short-time frame audios. For example, each frame may have a length of 20 ms-40 ms. The frames may be slid by using a window with a fixed size. There is usually an overlap between adjacent frames. Furthermore, to avoid abrupt change at the frame boundary, a Hamming Window function needs to be preset to perform windowing on the short-time frame audios to obtain a plurality of windowed audios corresponding to the short-time frame audios respectively. After windowing, each frame of audio is smooth in time. Further, because the high-frequency components tend to be seriously attenuated in the transmission process of the audio, on the basis, to compensate for the influence caused by the high-frequency attenuation, pre-emphasis processing needs to be performed on the plurality of windowed audios. The pre-emphasis processing aims to enhance the high-frequency components by performing first-order high-pass filtering on the plurality of windowed audios to obtain high-frequency short-time frame audios. Further, after framing, windowing and pre-emphasis, the short-time frame audios are converted into discrete signals in a time domain. The discrete signals need to be converted into signals in a frequency domain, on the basis, a preset Fourier transform function needs to be used for respectively performing transform processing on the high-frequency short-time frame audios to obtain a plurality of processed high-frequency short-time frame audios. The time domain signals are converted into frequency domain signals through the preset Fourier transform function. Further, power spectrums corresponding to the processed high-frequency short-time frame audios respectively are calculated. The calculated power spectrums may reflect the intensity of each frequency component. Further, convolution operation is performed between the power spectrums and a preset triangular filtering function group to obtain a result filtered by triangular filtering functions in the preset triangular filtering function group. Logarithmic operation is performed on the result filtered by the triangular filtering functions to obtain high-dimensional audio features corresponding to the plurality of short-time frame audios respectively. Discrete cosine transform is performed on the high-dimensional audio features corresponding to the plurality of short-time frame audios respectively to obtain the multi-frame audio feature vectors corresponding to the audio to be recognized.

In203, the multi-frame audio feature vectors are input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters.

In the embodiment of the present disclosure, after the multi-frame audio feature vectors corresponding to the audio to be recognized are determined, the multi-frame audio feature vectors need to be input into a preset intent recognition model, to determine the intent corresponding to the audio to be recognized. In view of this, step203specifically includes: inputting the multi-frame audio feature vectors into the preset intent recognition model to obtain multiple output characters corresponding to the multi-frame audio feature vectors respectively; and splicing an arbitrary output character corresponding to the multi-frame audio feature vectors sequentially to obtain one of the output sequences corresponding to the multi-frame audio feature vectors.

Specifically, each frame audio feature vector is input into a preset intent recognition model and has multiple output results. If the audio feature vector is not output, a preset character “-” is used for representing the output result. Take the four-frame audio feature vectors as an example, the first frame audio feature vector is input into the preset intent recognition model. One of the output results corresponding to the first frame audio feature vector may be output as “-” through the preset intent recognition model. The second frame audio feature vector is input into the preset intent recognition model. One of the output results corresponding to the second frame audio feature vector may be output as “school” through the preset intent recognition model. The third frame audio feature vector is input into the preset intent recognition model. One of the output results corresponding to the third frame audio feature vector may be output as “school” through the preset intent recognition model. The fourth frame audio feature vector is input into the preset intent recognition model. One of the output results corresponding to the fourth frame audio feature vector may be output as “student” through the preset intent recognition model. The output results of the four frames audio feature vectors are combined sequentially to obtain a combined output sequence as “- school school student”. Wherein, “-” represents a blank character, and “school” and “student” represent non-blank characters. Since each frame audio feature vector has multiple output results, multiple output sequences may be obtained finally. For example, if there are 20-frame audio feature vectors, the final output sequence may be: “- - - - I I I - am am - a - middle - school - student -” and “- - - I I I - am - a - middle - - school - - student - -”.

In204, probability values corresponding to the multiple output sequences respectively are calculated.

In the embodiment of the present disclosure, after the multiple output sequences are determined, it is necessary to calculate probability values corresponding to the multiple output sequences, to determine the optimal output sequence among the multiple output sequences. In view of this, step204specifically includes: removing the blank characters of an arbitrary output sequence in the multiple output sequences to obtain a processed output sequence; merging the duplicate non-blank characters in the processed output sequence to obtain a simplified output sequence; tokenizing the simplified output sequence to obtain multiple tokens corresponding to the arbitrary output sequence; determining token frequencies of the tokens in the arbitrary output sequence; and multiplying the token frequencies corresponding to the tokens to obtain a probability value corresponding to the arbitrary output sequence, wherein the determining token frequencies of the tokens in the arbitrary output sequence includes: determining total character count of the characters corresponding to the arbitrary output sequence, wherein the characters include blank characters and non-blank characters; determining quantity of the blank characters that are adjacent in forward order to an arbitrary token in the tokens, and determining quantity of the duplicate characters that are the same as the arbitrary token; dividing the quantity of the blank characters by the total quantity of the characters to obtain a blank token frequency corresponding to the arbitrary token; dividing a sum of the quantity of the duplicate character and 1 by the total quantity of the characters to obtain a duplicate token frequency corresponding to the arbitrary token; and multiplying the blank token frequency by the duplicate token frequency to obtain the token frequency of the arbitrary token in the arbitrary output sequence.

Specifically, for example, if the arbitrary output sequence is “- - - - I I I - am am - a - middle - school - student -”, the simplified output sequence of “I a middle school student” is obtained by a strategy of merging consecutive identical characters and removing blank characters. The simplified output sequence is then tokenized, and the tokens of this arbitrary output sequence are: “I am a middle school student”. The final formula for calculating the probability values of this arbitrary output sequence is: P (i)=P (I)×P (am)×P (a)×P (middle)×P (school)×P (student), where P (i) represents a probability value of an arbitrary output sequence, P (I) represents a token frequency of the token “I” in the arbitrary output sequence, P (am) represents a token frequency of the token “am” in the arbitrary output sequence, P (a) represents a token frequency of the token “a” in the arbitrary output sequence, and so on. Wherein i ranges from 1 to a maximum value N of all sequences, N represents a total number of output sequences. For example, the P (I) is calculated as follows. Firstly, a partial sequence corresponding to the token “I” is found in the output sequence as follows: “- - - - III”; the number of blank characters “-” 4 is divide by the total number of characters in the output sequence20to get 0.2, which represents the blank token frequency corresponding to the token “I”. Meanwhile, the number of the duplicate character which is the same as the token “I” in the partial sequence is 2, the result 3 of adding 2 and 1 is obtained. The result 3 is divided by the total quantity of the characters20to get 0.15, which represents the duplicate token frequency of the token “I”. The blank token frequency is multiplied by the duplicate token frequency to obtain the token frequency of the token “I” in the arbitrary output sequence. Similarly, the P (am) represents the product of the probability of “- am am”. Therefore, the token frequency corresponding to each token can be calculated. The token frequencies corresponding to the tokens are multiplied to obtain the probability value corresponding to the arbitrary output sequence.

In205, a maximum probability value in the probability values is determined, and then the target intent corresponding to the audio to be recognized is determined based on the output sequence corresponding to the maximum probability value.

In the embodiment of the present disclosure, after the probability values corresponding to the multiple output sequences are determined, a maximum probability value in the probability values is determined, and then the target intent corresponding to the audio to be recognized needs to be determined based on the output sequence corresponding to the maximum probability value. In view of this, step205specifically includes: combining the tokens of the output sequence corresponding to the maximum probability value in sequence to obtain the target intent corresponding to the audio to be recognized.

Specifically, as known from above step204, if the output sequence corresponding to the maximum probability value is “I I I - am - a - middle - - school - - student - - - -”, the tokens corresponding to this arbitrary output sequence are “I am a middle school student”. The above tokens are combined in sequence to obtain a final target intent corresponding to the audio to be recognized: “I am a middle school student”.

An intent recognition is provided according to another embodiment of the present disclosure. In the present disclosure, the user's audio to be recognized is acquired, in comparison with the present mode that the speaking content of a client is generally recognized, the speaking content is transcribed into a corresponding text, and then the intent of a speaker is recognized in the transcribed text. The multi-frame audio feature vectors corresponding to the audio to be recognized are determined. The multi-frame audio feature vectors are input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters. The target intent corresponding to the audio to be recognized is determined based on the multiple output sequences. Therefore, the final intent recognition result is obtained by directly extracting the audio features of the audio to be recognized and directly inputting the audio features into the model. By directly utilizing the model to recognize the audio features, conversion errors and time wasted in conversion caused by converting audio to text can be avoided, so that the present disclosure is able to improve the accuracy and the efficiency of the intent recognition.

Further, as a specific implementation ofFIG.1, an intent recognition apparatus is provided according to an embodiment of the present disclosure. As shown inFIG.3, the apparatus includes: an acquiring unit31, a first determining unit32, a recognition unit33and a second determining unit34.

The acquiring unit31may be configured to acquire user's audio to be recognized.

The first determining unit32may be configured to determine multi-frame audio feature vectors corresponding to the audio to be recognized.

The recognition unit33may be configured to input the multi-frame audio feature vectors into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters.

The second determining unit34may be configured to determine a target intent corresponding to the audio to be recognized based on the multiple output sequences.

In a specific application scenario, to formulate the preset intent recognition model, as shown inFIG.4, the apparatus further includes a formulating unit35.

The formulating unit35may be configured to formulate a preset initial intent recognition model, and acquire a sample audio and an actual output sequence corresponding to the sample audio.

The first determining unit32may be further configured to determine multi-frame sample audio feature vectors corresponding to the sample audio.

The recognition unit33may be further configured to input the multi-frame sample audio feature vectors into the preset initial intent recognition model to obtain a predicted output sequence corresponding to the multi-frame sample audio feature vectors.

The formulating unit35may be specifically configured to formulate a loss function corresponding to the preset initial intent recognition model based on the predicted output sequence and the actual output sequence.

The formulating unit35may be specifically configured to formulate the preset intent recognition model based on the loss function.

In a specific application scenario, to determine the multi-frame audio feature vectors corresponding to the audio to be recognized, the first determining unit32includes a cutting module321, a windowing module322, a filtering module323, a transforming module324, a first determining module325, a convolution module326, a logarithm processing module327, and a discrete transforming module328.

The cutting module321may be configured to cut the audio to be recognized in a preset length threshold unit to obtain a plurality of short-time frame audios.

The windowing module322may be configured to window the short-time frame audios by using a preset Hamming Window function to obtain a plurality of windowed audios corresponding to the short-time frame audios respectively.

The filtering module323may be configured to perform first-order high-pass filtering on the plurality of windowed audios to obtain a plurality of high-frequency short-time frame audios.

The transforming module324may be configured to perform transformation on the plurality of high-frequency short-time frame audios by utilizing a preset Fourier transform function respectively to obtain a plurality of processed high-frequency short-time frame audios.

The first determining module325may be configured to determine power spectrums corresponding to the processed high-frequency short-time frame audios respectively.

The convolution module326may be configured to convolution operation between the power spectrums and a preset triangular filtering function group to obtain a result filtered by triangular filtering functions in the preset triangular filtering function group.

The logarithm processing module327may be configured to perform logarithmic operation on the result filtered by the triangular filtering functions to obtain high-dimensional audio features corresponding to the plurality of short-time frame audios respectively.

The discrete transforming module328may be configured to perform discrete cosine transform on the high-dimensional audio features corresponding to the plurality of short-time frame audios respectively to obtain the multi-frame audio feature vectors corresponding to the audio to be recognized.

In a specific application scenario, in order to determine the multiple output sequences corresponding to multi-frame audio feature vectors, the recognition unit33includes a recognition module331and a combining module332.

The recognition module331may be configured to input the multi-frame audio feature vectors into the preset intent recognition model to obtain multiple output characters corresponding to the multi-frame audio feature vectors respectively.

The combining module332may be configured to splice an arbitrary output character corresponding to the multi-frame audio feature vectors sequentially to obtain one of the output sequences corresponding to the multi-frame audio feature vectors.

In a specific application scenario, to determine the target intent corresponding to the audio to be recognized, the second determining unit34includes a calculating module341and a second determining module342.

The calculating module341may be configured to calculate probability values corresponding to the multiple output sequences respectively.

The second determining module342may be configured to determine a maximum probability value in the probability values and then determine the target intent corresponding to the audio to be recognized based on the output sequence corresponding to the maximum probability value.

In a specific application scenario, in order to calculate probability values corresponding to multiple output sequences, the calculating module341may be specifically configured to: remove the blank characters of an arbitrary output sequence in the multiple output sequences to obtain a processed output sequence; merge the duplicate non-blank characters in the processed output sequence to obtain a simplified output sequence; tokenize the simplified output sequence to obtain multiple tokens corresponding to the arbitrary output sequence; determine token frequencies of the tokens in the arbitrary output sequence; and multiply the token frequencies corresponding to the tokens to obtain a probability value corresponding to the arbitrary output sequence.

In a specific application scenario, to determine the target intent corresponding to the audio to be recognized, the second determining module342may be specifically configured to combine the tokens of the output sequence corresponding to the maximum probability value in sequence to obtain the target intent corresponding to the audio to be recognized.

In a specific application scenario, in order to determine token frequencies of the tokens in the arbitrary output sequence, the calculating module341may be specifically configured to: determine total character count of the characters corresponding to the arbitrary output sequence, wherein the characters include blank characters and non-blank characters; determine quantity of the blank characters that are adjacent in forward order to an arbitrary token in the tokens, and determine quantity of the duplicate characters that are the same as the arbitrary token; divide the quantity of the blank characters by the total quantity of the characters to obtain a blank token frequency corresponding to the arbitrary token; divide a sum of the quantity of the duplicate character and 1 by the total quantity of the characters to obtain a duplicate token frequency corresponding to the arbitrary token; and multiply the blank token frequency by the duplicate token frequency to obtain the token frequency of the arbitrary token in the arbitrary output sequence.

It should be noted that other corresponding descriptions of the functional modules related to the intent recognition apparatus provided in the embodiment of the present disclosure may refer to the corresponding description of the method shown inFIG.1, and are not described herein again.

Based on the method shown inFIG.1, correspondingly, a computer readable storage medium is provided according to an embodiment of the present disclosure. The computer readable storage medium stores a computer program. The computer program, when executed by a processor, implements the following steps: acquiring user's audio to be recognized; determining multi-frame audio feature vectors corresponding to the audio to be recognized; inputting the multi-frame audio feature vectors into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters; and determining a target intent corresponding to the audio to be recognized based on the multiple output sequences.

Based on the above embodiments of the method shown inFIG.1and the apparatus shown inFIG.3, a computer device is further provided according to an embodiment of the present disclosure. As shown inFIG.5, the computer device includes: a processor41, a memory42, and a computer program that is stored in the memory42and executable by the processor, wherein the memory42and the processor41are each arranged on a bus43. The computer program, when executed by the processor41, implements the following steps: acquiring user's audio to be recognized; determining multi-frame audio feature vectors corresponding to the audio to be recognized; inputting the multi-frame audio feature vectors into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters; and determining a target intent corresponding to the audio to be recognized based on the multiple output sequences.

According to the technical solutions of the present disclosure, the user's audio to be recognized is acquired. The multi-frame audio feature vectors corresponding to the audio to be recognized are determined. The multi-frame audio feature vectors are input into a preset intent recognition model to obtain multiple output sequences corresponding to the multi-frame audio feature vectors, wherein the output sequences include blank characters and non-blank characters. The target intent corresponding to the audio to be recognized is determined based on the multiple output sequences. Therefore, the final intent recognition result is obtained by directly extracting the audio features of the audio to be recognized and directly inputting the audio features into the model. By directly utilizing the model to recognize the audio features, conversion errors and time wasted in conversion caused by converting audio to text can be avoided, so that the present disclosure is able to improve the accuracy and the efficiency of the intent recognition.

Apparently, those skilled in the art should understand that the modules or steps in the present disclosure described above may be implemented by a general-purpose computing apparatus, which may be integrated on a single computing apparatus or distributed over a network including multiple computing apparatus. Alternatively, the modules or steps in the present disclosure may be implemented with program codes executable by a computing apparatus, such that the modules or steps in the present disclosure may be stored in a storage apparatus for execution by a computing apparatus. In some cases, the steps may be performed in a different order than that shown or described herein. Or the modules or steps in the present disclosure may be separately implemented by various integrated circuit modules, or multiple of the modules or steps are implemented in a single integrated circuit module. Thus, the present disclosure is not limited to any specific combination of hardware and software.

The above descriptions are only preferred examples of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent substitution and improvement made within the spirit and principle of the present application are deemed to fall into the protection scope of claims of the present disclosure.