A language recognition method and device

By obtaining the phoneme features of audio data and performing embedded vector representation, it solves the problems of slow recognition speed and low accuracy in the existing technology, achieves fast and accurate language recognition, and is suitable for multi-lingual voice services.

CN113744717BActive Publication Date: 2024-10-22ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010413448.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-15
Publication Date
2024-10-22
Estimated Expiration
2040-05-15

AI Technical Summary

Technical Problem

The existing technology has problems of slow recognition speed and low accuracy when identifying language categories of audio data, especially in short-term audio data processing, especially in voice interaction scenarios that require real-time response.

Method used

By obtaining the phoneme feature information of the audio data and representing it as an embedded vector, the target embedded vector representation model is used to quickly and accurately identify the language category of the audio data.

Benefits of technology

It improves the speed and accuracy of audio data recognition, reduces computing resource usage, and is suitable for multi-lingual voice service scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113744717B_ABST
    Figure CN113744717B_ABST
Patent Text Reader

Abstract

The present application discloses a language recognition method, including: obtaining audio data to be recognized; obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; obtaining a target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized. The method can more accurately and quickly identify the language category corresponding to the audio data to be recognized by obtaining phoneme feature information corresponding to the audio data to be recognized and used to characterize the pronunciation distribution of the audio data to be recognized, and by performing embedded vector representation on the extracted phoneme feature information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and specifically to a language recognition method, device, electronic device and storage device. The present application also relates to a method, device, electronic device and storage device for obtaining a phoneme feature extraction model. The present application also relates to a method, device, electronic device and storage device for obtaining an embedded vector representation model. The present application also relates to a method, device, electronic device and storage device for providing voice services. The present application also relates to a method, device, electronic device and storage device for voice recognition. Background Art

[0002] With the continuous development of computer technology, in daily life, users can perform voice interaction with computing devices that provide various voice services, and thus conveniently obtain corresponding services provided by the computing devices.

[0003] At present, after obtaining the audio data sent by the user or other computing devices, the computing device generally uses multiple audio recognition services corresponding to different language categories in parallel to identify the content of the audio data, and selects the most appropriate text content to provide the user or other computing devices with the service corresponding to the audio data according to the recognition result. For example, in systems that can interact through voice, such as intelligent customer service systems, smart home systems, self-service voice ticketing services, automatic voice translation systems, and voice navigation systems, the computing devices corresponding to these systems generally use the above-mentioned method to identify the content of the obtained audio data and provide the corresponding service to the user. However, this method has the problem of occupying too many computing resources because multiple audio recognition services are run in parallel at the same time, and is not suitable for voice services containing more languages; it can be seen that if the language category corresponding to the audio data can be quickly and accurately identified when providing voice services, and then the content of the audio data is identified by the audio recognition service corresponding to the identified language category, then the recognition speed and recognition accuracy of the audio data will be greatly increased.

[0004] However, current methods for identifying the language category of audio data are generally either based only on acoustic features, for example, based on Mel-scale Frequency Cepstral Coefficients (MFCC) features, Mel-Frequency Filter Bank (Fbank) features and their shifted differential spectra to identify the language category corresponding to the audio data; or based only on phoneme features, for example, using a phoneme recognizer combined with a language model (PRLM) method, or a parallel phoneme recognizer combined with a language model (PPRLM) method to identify the language category corresponding to the audio data; or directly using a deep neural network model to extract feature information of the audio data, and identifying the language category corresponding to the audio data based on the feature information. Such methods have the problems of slow recognition speed and low recognition accuracy when identifying long-term audio data, and in short-term voice interaction scenarios that require real-time response, they have the problems of slow recognition speed and low recognition accuracy when identifying short-term audio data. Summary of the invention

[0005] The embodiment of the present application provides a language recognition method to solve the problem in the prior art that the language category corresponding to audio data cannot be quickly and accurately recognized.

[0006] An embodiment of the present application provides a language recognition method, including: obtaining audio data to be recognized; obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining a target language based on the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0007] Optionally, the obtaining of phoneme feature information corresponding to the audio data to be identified includes: obtaining acoustic feature information corresponding to the audio data to be identified; inputting the acoustic feature information into a target phoneme feature extraction model to obtain the phoneme feature information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to audio data.

[0008] Optionally, the target phoneme feature extraction model is obtained by the following method: obtaining sample audio data corresponding to at least one language, and obtaining text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; obtaining sample acoustic feature information corresponding to the sample audio data; and obtaining the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information.

[0009] Optionally, the obtaining of embedded vector information corresponding to the phoneme feature information includes: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is a model for performing embedded vector representation of the phoneme feature information corresponding to the audio data.

[0010] Optionally, the target embedded vector representation model is obtained by the following method: obtaining sample audio data corresponding to at least one language, and obtaining language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; obtaining sample phoneme feature information corresponding to the sample audio data; and obtaining the target embedded vector representation model based on the sample phoneme feature information and the language annotation information.

[0011] Optionally, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: obtaining a model to be trained corresponding to the target embedded vector representation model, wherein the model to be trained is a model used to obtain sample embedded vector representation information according to the sample phoneme feature information, and obtain a predicted number of languages ​​corresponding to the sample audio data according to the obtained sample embedded vector representation information, the predicted number of languages ​​corresponding to the language annotation information, and used to represent the number of language categories corresponding to the sample data; adjusting parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimized model that meets preset convergence conditions; deleting the network structure layer in the optimized model used to predict the predicted number of languages ​​according to the sample embedded vector representation information, to obtain the target embedded vector representation model.

[0012] Optionally, obtaining the target language according to the target embedded vector representation information includes: inputting the target embedded vector representation information into a target prediction model, obtaining language information to be determined and a prediction score corresponding to the language information to be determined, the prediction score being used to indicate the correctness of the language information to be determined, the target prediction model being a model for predicting the language information to be determined and the prediction score corresponding to the audio data according to the embedded vector representation information corresponding to the audio data; obtaining the target language information according to the language information to be determined and the prediction score.

[0013] Optionally, obtaining the target language information according to the language information to be determined and the predicted scores includes: obtaining a maximum value among the predicted scores; and obtaining the target language information according to the language information to be determined corresponding to the predicted score of the maximum value.

[0014] Optionally, it also includes: optimizing the target embedded vector representation information to obtain the optimized target embedded vector representation information; obtaining the target language according to the target embedded vector representation information includes: obtaining the target language according to the optimized target embedded vector representation information.

[0015] Optionally, the optimization processing of the target embedded vector representation information includes at least one of the following processing: vector length regularization processing of the target embedded vector representation information; mean subtraction processing of the target embedded vector representation information; linear discriminant analysis processing of the target embedded vector representation information; principal component analysis processing of the target embedded vector representation information; intra-class variance regularization processing of the target embedded vector representation information.

[0016] Optionally, the phoneme feature information includes at least one of the following feature information: phoneme log-likelihood feature information corresponding to at least one phoneme state of the audio data to be identified, and posterior probability feature information corresponding to at least one phoneme state of the audio data to be identified.

[0017] Optionally, the audio data to be identified is audio data that meets a preset time length condition.

[0018] Optionally, the audio data to be recognized includes audio data of at least one language category.

[0019] Optionally, the method further includes: displaying the target language information.

[0020] Optionally, the method further includes: obtaining confirmation information for the target language information; and determining the language category to which the audio data to be recognized belongs based on the confirmation information.

[0021] Optionally, the method further includes: acquiring historical language information, wherein the historical language information is used to characterize the language category to which the historical audio data to be identified belongs; and determining the language category to which the audio data to be identified belongs based on the historical language information and the target language information.

[0022] Optionally, determining the language category to which the audio data to be identified belongs based on the historical language information and the target language information includes: determining high-frequency language information in the historical language information; and determining the language category to which the audio data to be identified belongs based on the high-frequency language information and the target language information.

[0023] An embodiment of the present application also provides a method for obtaining a phoneme feature extraction model, comprising: obtaining sample audio data corresponding to at least one language, and obtaining text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; obtaining sample acoustic feature information corresponding to the sample audio data; and obtaining the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0024] An embodiment of the present application also provides a method for obtaining an embedded vector representation model, comprising: obtaining sample audio data corresponding to at least one language, and obtaining language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; obtaining sample phoneme feature information corresponding to the sample audio data; obtaining the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0025] An embodiment of the present application also provides a method for providing a voice service, including: obtaining audio data to be processed; obtaining target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be processed; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining the target language information based on the target embedded vector representation information; and providing a voice service corresponding to the audio data to be recognized based on the target language information.

[0026] Optionally, the voice service includes any one of the following services: voice recognition service, voice conversion service, and voice answering service.

[0027] An embodiment of the present application also provides a speech recognition method, including: obtaining audio data to be recognized; obtaining target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining the target language information based on the target embedded vector representation information; and obtaining text information corresponding to the audio data to be recognized based on the target language information.

[0028] An embodiment of the present application also provides a language recognition device, including: an audio data acquisition unit, used to acquire audio data to be recognized; a phoneme feature information acquisition unit, used to acquire phoneme feature information corresponding to the audio data to be recognized; an embedded vector representation information acquisition unit, used to acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; a language information acquisition unit, used to obtain a target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0029] The present application also provides an electronic device, including:

[0030] processor;

[0031] The memory is used to store a program of the language recognition method. After the device is powered on and the program of the language recognition method is run by the processor, the following steps are performed:

[0032] Acquire audio data to be recognized; acquire phoneme feature information corresponding to the audio data to be recognized;

[0033] Obtain target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtain a target language based on the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0034] The embodiment of the present application further provides a storage device storing a program of a language recognition method, wherein the program is executed by a processor to perform the following steps:

[0035] Acquire audio data to be recognized; acquire phoneme feature information corresponding to the audio data to be recognized;

[0036] Obtain target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtain a target language based on the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0037] An embodiment of the present application also provides a device for obtaining a phoneme feature extraction model, comprising: a sample audio data acquisition unit, used to obtain sample audio data corresponding to at least one language, and to obtain text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; a sample acoustic feature information acquisition unit, used to obtain sample acoustic feature information corresponding to the sample audio data; a model acquisition unit, used to obtain the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0038] The present application also provides an electronic device, including:

[0039] processor;

[0040] A memory is used to store a program of a method for obtaining a phoneme feature extraction model. After the device is powered on and the program of the method for obtaining a phoneme feature extraction model is run by the processor, the following steps are performed:

[0041] Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; acquire sample acoustic feature information corresponding to the sample audio data; and acquire the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for acquiring phoneme feature information corresponding to audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0042] The embodiment of the present application further provides a storage device storing a program of a method for obtaining a phoneme feature extraction model, wherein the program is executed by a processor to perform the following steps:

[0043] Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; acquire sample acoustic feature information corresponding to the sample audio data; and acquire the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for acquiring phoneme feature information corresponding to audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0044] An embodiment of the present application also provides a device for obtaining an embedded vector representation model, comprising: a sample audio data acquisition unit, used to obtain sample audio data corresponding to at least one language, and to obtain language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; a sample phoneme feature information acquisition unit, used to obtain sample phoneme feature information corresponding to the sample audio data; a model acquisition unit, used to obtain the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0045] The present application also provides an electronic device, including:

[0046] processor;

[0047] A memory is used to store a program of a method for obtaining an embedded vector representation model. After the device is powered on and the program of the method for obtaining an embedded vector representation model is run by the processor, the following steps are performed:

[0048] Acquire sample audio data corresponding to at least one language, and acquire language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; acquire sample phoneme feature information corresponding to the sample audio data; obtain the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0049] The embodiment of the present application further provides a storage device storing a program of a method for obtaining an embedded vector representation model, wherein the program is executed by a processor to perform the following steps:

[0050] Acquire sample audio data corresponding to at least one language, and acquire language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; acquire sample phoneme feature information corresponding to the sample audio data; obtain the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0051] An embodiment of the present application also provides a voice service providing device, including: an audio data acquisition unit, used to acquire audio data to be processed; a language information acquisition unit, used to acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquiring phoneme feature information corresponding to the audio data to be processed; acquiring target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining the target language information according to the target embedded vector representation information; a voice service providing unit, used to provide a voice service corresponding to the audio data to be recognized according to the target language information.

[0052] The present application also provides an electronic device, including:

[0053] processor;

[0054] The memory is used to store a program of the method for providing voice services. After the device is powered on and the program of the method for providing voice services is run by the processor, the following steps are performed:

[0055] Acquire audio data to be processed; acquire target language information corresponding to the audio data to be processed, wherein the target language information is acquired in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; and provide a voice service corresponding to the audio data to be recognized according to the target language information.

[0056] The embodiment of the present application further provides a storage device storing a program of a method for providing a voice service, wherein the program is executed by a processor to perform the following steps:

[0057] Acquire audio data to be processed; acquire target language information corresponding to the audio data to be processed, wherein the target language information is acquired in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; and provide a voice service corresponding to the audio data to be recognized according to the target language information.

[0058] The present application also provides a speech recognition device, including: an audio data acquisition unit to be recognized, used to acquire the audio data to be recognized; a language information acquisition unit, used to acquire target language information corresponding to the audio data to be recognized, wherein the target language information is acquired in the following manner: acquiring phoneme feature information corresponding to the audio data to be recognized; acquiring target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; acquiring the target language information according to the target embedded vector representation information; a text information acquisition unit, used to acquire text information corresponding to the audio data to be recognized according to the target language information.

[0059] The present application also provides an electronic device, including:

[0060] processor;

[0061] The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed:

[0062] Acquire audio data to be recognized; acquire target language information corresponding to the audio data to be recognized, wherein the target language information is acquired in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; acquire the target language information according to the target embedded vector representation information; acquire text information corresponding to the audio data to be recognized according to the target language information.

[0063] The embodiment of the present application further provides a storage device storing a program of a speech recognition method, wherein the program is executed by a processor to perform the following steps:

[0064] Acquire audio data to be recognized; acquire target language information corresponding to the audio data to be recognized, wherein the target language information is acquired in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; acquire the target language information according to the target embedded vector representation information; acquire text information corresponding to the audio data to be recognized according to the target language information.

[0065] Compared with the prior art, this application has the following advantages:

[0066] The embodiment of the present application provides a language recognition method, including: obtaining audio data to be recognized; obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; obtaining a target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized. The method can more accurately and quickly identify the language category corresponding to the audio data to be recognized by obtaining phoneme feature information corresponding to the audio data to be recognized and used to characterize the pronunciation distribution of the audio data to be recognized, and by performing embedded vector representation on the extracted phoneme feature information. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1It is a schematic diagram of an application scenario of a language recognition method provided in the first embodiment of the present application.

[0068] Figure 2 This is a flow chart of a language recognition method provided in the first embodiment of the present application.

[0069] Figure 3 This is a flowchart of a method for obtaining a phoneme feature extraction model provided in the second embodiment of the present application.

[0070] Figure 4 This is a flowchart of a method for obtaining an embedded vector representation model provided in the third embodiment of the present application.

[0071] Figure 5 This is a flowchart of a voice service providing method provided in the fourth embodiment of the present application.

[0072] Figure 6 This is a flow chart of a speech recognition method provided in the fifth embodiment of the present application.

[0073] Figure 7 It is a schematic diagram of a language recognition device provided in the sixth embodiment of the present application.

[0074] Figure 8 is a schematic diagram of an electronic device provided in the seventh embodiment of the present application.

[0075] Fig. 9 It is a schematic diagram of a device for obtaining a phoneme feature extraction model provided in the ninth embodiment of the present application.

[0076] Fig.10 It is a schematic diagram of a device for obtaining an embedded vector representation model provided in the twelfth embodiment of the present application.

[0077] Fig.11 It is a schematic diagram of a voice service providing device provided in the fifteenth embodiment of the present application.

[0078] Fig.12 It is a schematic diagram of a speech recognition device provided in the eighteenth embodiment of the present application. DETAILED DESCRIPTION

[0079] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0080] In order to enable those skilled in the art to better understand the present application, the following describes in detail the specific application scenarios of the embodiments based on the language recognition method provided by the present application. Figure 1 As shown, it is a schematic diagram of an application scenario of a language recognition method provided in the first embodiment of the present application.

[0081] In specific implementation, the method can be applied to different computing devices that can provide voice services. For example, the method can be applied to computing devices that provide voice recognition services, such as intelligent voice interaction services. After the computing device obtains the audio data to be recognized sent by the user or other device, the computing device obtains the phoneme feature information corresponding to the audio data to be recognized; and obtains the target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is the information obtained after the phoneme feature information is represented by the embedded vector; thereafter, the computing device can obtain the target language information used to represent the language category corresponding to the audio data to be recognized based on the target embedded vector representation information; after the computing device obtains the target language information corresponding to the audio data to be recognized, it can perform content recognition based on the target language information to obtain text information corresponding to the audio data to be recognized.

[0082] The method can be applied to a client or server computing device alone, or to an interactive scenario between a client computing device and a server computing device. For example, after obtaining the audio data to be recognized, the client computing device sends the audio data to be recognized to the server computing device, and the server computing device obtains the target language information corresponding to the audio data to be recognized, and then automatically translates according to the target language information, and obtains text information corresponding to the audio data to be recognized; after the server computing device obtains the text information, it provides the text information to the client computing device; thereafter, the client computing device obtains the text information and displays the text information.

[0083] The language category may be the language category used in different countries or regions. For example, in a broad sense, the language category may be divided into Chinese, English, Arabic and the like. In a narrow sense, the language category may be the language or dialect used in different regions, for example, Cantonese, Minnan dialect and Tibetan, and dialects such as Mandarin Chinese and Shanghainese.

[0084] The client computing device may be a mobile terminal device, such as a mobile phone, a tablet computer, etc., or a commonly used computer device, or a terminal device, such as a smart speaker, a smart ticketing terminal, etc. The server computing device generally refers to a server, which may be a physical server or a cloud server, and is not specifically limited here.

[0085] It should be noted that the above application scenarios are merely specific embodiments of the language recognition method provided in the first embodiment of the present application. The purpose of providing the above application scenarios is to facilitate understanding of the method, but not to limit the method.

[0086] Before introducing in detail the language recognition method provided in the first embodiment of the present application, a brief introduction to the language recognition method in the prior art is first given.

[0087] The language recognition methods in the prior art generally include the following methods: 1. Methods based on acoustic features, for example, based on Mel-scale Frequency Cepstral Coefficients (MFCC) features, Mel-Frequency Filter Bank (Fbank) features and their shifted differential spectra to identify the language category corresponding to the audio data; 2. Methods based on phoneme features, for example, using a phoneme recognizer in combination with a language model (PRLM), or a parallel phoneme recognizer in combination with a language model (PPRLM) to identify the language category corresponding to the audio data; 3. Language recognition methods using deep neural network models, that is, extracting feature information of audio data through a deep neural network model, and identifying the language category corresponding to the audio data based on the feature information.

[0088] The language recognition methods in the prior art have the following problems: 1. The methods based on acoustic features in the prior art do not consider the phoneme feature information, that is, they do not consider the changes in the pronunciation distribution of audio data of different language categories. Therefore, their recognition accuracy is relatively low, especially for short-term audio data, the recognition accuracy is even lower, and it is difficult to be applied to commercial products; 2. The methods based on phoneme features in the prior art generally use the phoneme recognition model corresponding to the language category to which the audio data belongs to obtain its phoneme feature information, and then train the N-gram model (n-gram) for identifying the audio data of the language category according to the factor feature information. However, it usually requires a language category to correspond to a specific N-gram model, that is, when identifying audio data of an unknown language category, it is usually necessary to identify multiple N-gram models in parallel. Therefore, it has the problems of slow recognition speed and low recognition accuracy, and there is also the problem of occupying too many computing resources; 3. The language recognition methods using deep neural network models in the prior art generally use convolutional neural networks (CNN), recurrent neural networks (RNN) and other neural networks based on the convolutional neural network (CNN). The end-to-end method of using a neural network (CNN) and a long short-term memory network (LSTM) generally uses a neural network model to extract Mel filter bank features, Mel frequency cepstral coefficient features or other features of audio data, and directly obtains the language category corresponding to the audio data based on the above features. However, this method directly classifies the language and does not use information related to pronunciation. It generally relies on massive sample audio data to train the neural network. This method also has the problems of slow recognition speed and low recognition accuracy.

[0089] In order to solve the problem of slow recognition speed and low recognition accuracy in the prior art language recognition methods when recognizing audio data, especially short-term audio data, the first embodiment of the present application provides a language recognition method, such as Figure 2 As shown, it is a flow chart of a language recognition method provided by the first embodiment of the present application. Figure 2 The method provided in the first embodiment of the present application is introduced.

[0090] Step S201, obtaining audio data to be recognized.

[0091] The audio data to be identified refers to digitized sound data to be identified, wherein, unless otherwise specified, the identification process described in the first embodiment of the present application refers to identifying the language category to which the audio data to be identified belongs.

[0092] It should be noted that the audio data to be recognized may be audio data of at least one language category, that is, the audio recognition method provided in the first embodiment of the present application may perform recognition processing on mixed audio data containing multiple language categories. For example, the audio data to be recognized may be “I have an idea here…”.

[0093] The acquisition of the audio data to be recognized may be that a computing device for providing language recognition services acquires audio data sent by a user or sent by other computing devices providing voice playback services. For example, in a smart home scenario, a smart speaker may receive audio data sent by a user, identify the content of the audio data by identifying the language category corresponding to the audio data, and provide corresponding services to the user based on the content.

[0094] It should be noted that, unless otherwise specified, in the first embodiment of the present application, the audio data to be identified is taken as audio data that meets the preset time length condition. For example, the audio data to be identified is taken as short-term audio data of no more than 5 seconds. That is, the method described in the present application can be used to solve the technical problem in the prior art that the language category corresponding to the short-term audio data cannot be quickly and accurately identified. Of course, in the specific implementation, the preset time length condition can also be set to other conditions as needed, or the method can also be applied to other time lengths, such as the recognition processing of the language category of long-term audio data.

[0095] Step S202: Acquire phoneme feature information corresponding to the audio data to be recognized.

[0096] Different from the method of performing recognition processing based on acoustic features in the prior art, after obtaining the audio data to be recognized, in order to improve the recognition speed and accuracy of the recognition processing, in the first embodiment of the present application, the audio data to be recognized is recognized by adopting the method of using phoneme feature information that can reflect the pronunciation distribution characteristics of the audio data.

[0097] Generally speaking, in linguistics, phonemes are basic pronunciation units divided according to the natural properties of speech or audio; the phoneme state corresponds to the phoneme, and refers to the state of the phoneme in the Hidden Markov Model (HMM), wherein, in the first embodiment of the present application, the phoneme state generally includes the start, middle and end states of the phoneme. For example, for phoneme i, its acoustic feature information may contain 7 frames, then the phoneme state of the first two frames can generally be 1, that is, the beginning of the phoneme; 3-5 frames are the middle state, which can usually be represented by 2; and the last two frames are the end of the phoneme, which can generally be represented by 3. In addition, in the first embodiment of the present application, the acoustic features corresponding to the audio data to be identified can be Mel-frequency cepstral coefficient features, Mel filter bank features and other features.

[0098] The phoneme feature information generally refers to the phoneme state corresponding to the audio data, that is, the phoneme state of the pronunciation of each frame of the acoustic feature corresponding to the audio data. Of course, the phoneme feature information can also include at least one of the following feature information: phoneme log-likelihood feature information (PLLR, Phoneme likelihood Rate) corresponding to at least one phoneme state of the audio data to be identified, or posterior probability feature information corresponding to at least one phoneme state of the audio data to be identified, wherein how to obtain the log-likelihood feature information and posterior probability feature information corresponding to the phoneme state is described in detail in the prior art and will not be repeated here.

[0099] The step of obtaining the phoneme feature information corresponding to the audio data to be recognized includes: obtaining acoustic feature information corresponding to the audio data to be recognized; and inputting the acoustic feature information into a target phoneme feature extraction model to obtain the phoneme feature information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to audio data. That is, the phoneme feature information corresponding to the audio data to be recognized is extracted by using an acoustic model for extracting the phoneme state of audio data.

[0100] In the first embodiment of the present application, the target phoneme feature extraction model can be obtained by the following method: obtaining sample audio data corresponding to at least one language, and obtaining text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; obtaining sample acoustic feature information corresponding to the sample audio data; and obtaining the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information.

[0101] That is, by obtaining sample audio data and corresponding text annotation information as supervision data of the sample audio data, and using the sample acoustic feature information and the text annotation information corresponding to the sample audio data as training sample data, the phoneme feature extraction model to be trained corresponding to the target phoneme feature extraction model is trained, and during the training process, the parameters of the phoneme feature extraction model to be trained are adjusted through the loss function corresponding to the phoneme feature extraction model to be trained to obtain the target phoneme feature extraction model that meets the preset convergence conditions.

[0102] It should be noted that the sample audio data may be audio data corresponding to the audio data to be identified, specifically audio data of a specific language, or audio data of multiple languages. For example, if the language category of the audio data to be identified is Chinese, then the sample audio data needs to contain at least sample audio data of the Chinese category; in addition, the target phoneme feature extraction model is a deep neural network model, specifically a time-delay neural network (TDNN), LSTM, RNN and other models. Of course, with the continuous advancement of technology, the target phoneme feature extraction model may also be other models, which are not specifically limited here.

[0103] After step S202, step S203 is executed to obtain target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information.

[0104] Before introducing this step, another language recognition method in the prior art is briefly introduced. This method is specifically a method for language recognition based on a deep neural network model using phoneme log-likelihood ratio feature information and deep bottleneck feature information (DBN, Deep Belief Network), that is, the extracted PLLR feature information or DBN feature information is represented by a low-dimensional vector using an i-vector model to obtain the language category corresponding to the audio data. Since this method is a regular or abstract representation of the phoneme feature information of the audio data, the features obtained by this method are usually different from the actual pronunciation distribution of the audio data, which leads to the problem of low recognition accuracy in this method, especially for short-term audio data, the recognition accuracy is even lower. Different from the above-mentioned method in the prior art, in the first embodiment of the present application, after obtaining the phoneme feature information corresponding to the audio data to be recognized, the phoneme feature information is processed by an embedded vector representation, and the obtained target embedded vector representation information is used to identify the language category of the audio data to be recognized, which is described in detail below.

[0105] The method of obtaining the embedded vector information corresponding to the phoneme feature information includes: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data.

[0106] The target embedded vector representation model can be obtained by the following method: obtaining sample audio data corresponding to at least one language, and obtaining language annotation information corresponding to the sample audio data, wherein the language annotation information is used to indicate the language category corresponding to the sample audio data; obtaining sample phoneme feature information corresponding to the sample audio data; and obtaining the target embedded vector representation model based on the sample phoneme feature information and the language annotation information.

[0107] Among them, the method of obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: obtaining a model to be trained corresponding to the target embedded vector representation model, wherein the model to be trained is a model used to obtain sample embedded vector representation information according to the sample phoneme feature information, and obtain the predicted number of languages ​​corresponding to the sample audio data according to the obtained sample embedded vector representation information, and the predicted number of languages ​​corresponds to the language annotation information, and is used to represent the number of language categories corresponding to the sample data; adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimized model that meets the preset convergence conditions; deleting the network structure layer in the optimized model used to predict the predicted number of languages ​​according to the sample embedded vector representation information, to obtain the target embedded vector representation model.

[0108] In the first embodiment of the present application, the model to be trained may be an x-vector model, which outputs the number of predicted language categories of the sample audio data. In the process of training to obtain the target embedded vector representation model, the sample phoneme feature information and language labeling information are first used as training data to perform supervised training on the model to be trained, and after convergence, that is, after the optimization model is completed, the last layer or the last and penultimate layer of the optimization model is deleted to obtain the target embedded vector representation model for embedded vectorization of the phoneme feature information. It should be noted that in the specific implementation, the model to be trained may also be other embedded vector representation models, which are not specifically limited here.

[0109] After step S203, step S204 is executed to obtain a target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0110] The method of obtaining the target language according to the target embedded vector representation information comprises: inputting the target embedded vector representation information into a target prediction model, obtaining language information to be determined and a prediction score corresponding to the language information to be determined, wherein the prediction score is used to indicate the degree of correctness of the language information to be determined; the target prediction model is a model for predicting the language information to be determined and the prediction score corresponding to the audio data according to the embedded vector representation information corresponding to the audio data; and obtaining the target language information according to the language information to be determined and the prediction score.

[0111] The target prediction model may be a classifier model, specifically a classification model such as a support vector machine (SVM), a logistic regression (LR), etc.

[0112] The obtaining of the target language information according to the to-be-determined language information and the predicted scores includes: obtaining a maximum value among the predicted scores; and obtaining the target language information according to the to-be-determined language information corresponding to the predicted score of the maximum value.

[0113] In order to further improve the speed and accuracy of language recognition, after obtaining the target embedded vector representation information corresponding to the audio data to be recognized, the information can also be optimized to obtain the optimized target embedded vector representation information; and based on the optimized target embedded vector representation information, the target language information can be obtained.

[0114] In the first embodiment of the present application, at least one of the following processes can be used to optimize the target embedded vector representation information, specifically including: performing vector length regularization on the target embedded vector representation information; performing mean reduction on the target embedded vector representation information; performing linear discriminant analysis (LDA, Latent Dirichlet Allocation) on the target embedded vector representation information; performing principal component analysis (PCA, Principal Component Analysis) on the target embedded vector representation information; performing intra-class variance regularization on the target embedded vector representation information. Of course, with the continuous advancement of technology, in specific implementation, the target embedded vector representation information can also be optimized by other methods.

[0115] In addition, when the target language information contains multiple recognition results to be determined, in order to further improve the accuracy of language recognition and improve the user experience, after obtaining the target language information, the target language information can also be displayed for the user to confirm whether the recognition result of the computing device is accurate, or for the user to select the accurate recognition result from the result list displayed by the computing device, that is, the method provided in the first embodiment of the present application also includes: displaying the target language information; and obtaining confirmation information for the target language information, and determining the language category to which the audio data to be recognized belongs based on the confirmation information.

[0116] The confirmation information may be the user's confirmation result for the displayed target language information. For example, when the displayed target language information is {"English", "Chinese", "French"}, the user may select the correct result in the above list according to the language category to which the audio data to be identified actually belongs, and the computing device may generate confirmation information containing the user's selection result according to the user's selection operation. It should be noted that, in specific implementation, the confirmation information may also be obtained in other ways. For example, when the displayed target language information does not contain the language category to which the audio data to be identified actually belongs, the actual language category input by the user may be received through the display interface, and confirmation information may be generated according to the user's input result, which will not be described in detail here.

[0117] In addition, when the target language information contains multiple recognition results to be determined, in order to further improve the accuracy of language recognition, historical language information can also be obtained after obtaining the target recognition result information, wherein the historical language information is used to characterize the language category to which the historical audio data to be recognized belongs; and based on the historical language information and the target language information, the language category to which the audio data to be recognized belongs is determined.

[0118] The historical audio data to be recognized refers to the audio data recognized by the computing device before the audio data to be recognized is recognized.

[0119] In practice, due to the working environment or geographical location, the language category of the audio data that needs to be recognized by the computing device within a period of time, for example, a week, a month or a quarter is usually fixed. Therefore, after obtaining the target language information, the language category of the audio data to be recognized can be determined based on the target language information and the language category of the audio data frequently recognized by the computing device, so as to improve the accuracy of the recognition result.

[0120] Specifically, the high-frequency language information in the historical language information may be determined first; then, the language category to which the audio data to be identified belongs may be determined based on the high-frequency language information and the target language information.

[0121] It should be noted that the high-frequency language information can be information on language categories in historical language information, whose frequency of appearance within a preset time meets a preset frequency threshold. Alternatively, the language categories in the historical language information within a preset time can be arranged in descending order, and the high-frequency language information can be obtained based on the information on language categories that meet a preset number of digits in the arrangement result. Of course, in specific implementation, the preset time, preset frequency threshold and preset number of digits can be set as needed and are not specifically limited here.

[0122] After obtaining the high-frequency language information, the language category to which the audio data to be identified belongs can be determined by obtaining the intersection of the high-frequency language information and the language category in the target language information.

[0123] For example, the target language information corresponding to the audio data to be identified is {"English", "Chinese", "French"}, and the high-frequency language information is {"English"}. By obtaining the intersection of the target language information and the high-frequency language information, it can be determined that the language category of the audio data to be identified is "English".

[0124] Of course, after obtaining the target language information and the historical language information, other methods may also be used to determine the language category to which the audio data to be recognized belongs, which will not be described in detail here.

[0125] In specific implementation, when the target language information contains multiple recognition results to be determined, the above methods can be combined as needed, or further combined with other methods to improve the accuracy of the recognition results, which will not be repeated here.

[0126] It should also be noted that the language recognition method described in the first embodiment of the present application can be applied to various computing devices for providing voice services. For example, it can be applied to voice recognition services, voice conversion services, voice response services and other voice-related multilingual voice services.

[0127] For example, in service scenarios that need to support multiple languages, such as smart customer service, smart home, self-service voice ticketing, automatic voice translation, and voice navigation, after obtaining the audio data to be processed, the target language information corresponding to the audio data to be processed can be obtained first, wherein the target language information can be obtained using the following method: obtaining the phoneme feature information corresponding to the audio data to be processed; obtaining the target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is the information obtained after the embedded vector representation of the phoneme feature information; obtaining the target language information according to the target embedded vector representation information; and then providing the voice service corresponding to the audio data to be recognized according to the target language information. Compared with the method in the prior art that does not recognize the language category of the audio data and directly uses multiple specific language recognizers in parallel to recognize the speech content, the recognition speed and recognition accuracy of the method are higher, and it also has the advantage of low resource occupancy.

[0128] In summary, the language recognition method provided in the first embodiment of the present application includes: obtaining audio data to be recognized; obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; obtaining the target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized. The method can more accurately and quickly identify the language category corresponding to the audio data to be recognized by obtaining phoneme feature information corresponding to the audio data to be recognized and used to characterize the pronunciation distribution of the audio data to be recognized, and by performing embedded vector representation on the extracted phoneme feature information.

[0129] Corresponding to the language recognition method provided in the first embodiment of the present application, the second embodiment of the present application also provides a method for obtaining a phoneme feature extraction model, please refer to Figure 3 As shown, it is a flow chart of a method for obtaining a phoneme feature extraction model provided in the second embodiment of the present application, wherein some steps have been described in detail in the first embodiment of the present application, so the description here is relatively simple. For relevant matters, please refer to some descriptions in a language recognition method provided in the first embodiment of the present application. The processing process described below is only illustrative.

[0130] Step S301: Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data.

[0131] Step S302: Acquire sample acoustic feature information corresponding to the sample audio data.

[0132] Step S303, obtaining the target phoneme feature extraction model according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0133] Corresponding to the language recognition method provided in the first embodiment of the present application, the third embodiment of the present application also provides a method for obtaining an embedded vector representation model, see Figure 4 As shown, it is a flowchart of a method for obtaining an embedded vector representation model provided in the third embodiment of the present application, wherein some steps have been described in detail in the first embodiment of the present application, so the description here is relatively simple. For related matters, please refer to some descriptions in a language recognition method provided in the first embodiment of the present application. The processing process described below is only illustrative.

[0134] Step S401: Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data.

[0135] Step S402: Acquire sample phoneme feature information corresponding to the sample audio data.

[0136] Step S403: Obtain the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0137] Optionally, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: obtaining a model to be trained corresponding to the target embedded vector representation model, wherein the model to be trained is a model used to obtain sample embedded vector representation information according to the sample phoneme feature information, and obtain a predicted number of languages ​​corresponding to the sample audio data according to the obtained sample embedded vector representation information, the predicted number of languages ​​corresponding to the language annotation information, and used to represent the number of language categories corresponding to the sample data; adjusting parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimized model that meets preset convergence conditions; deleting the network structure layer in the optimized model used to predict the predicted number of languages ​​according to the sample embedded vector representation information, to obtain the target embedded vector representation model.

[0138] Corresponding to the language recognition method provided in the first embodiment of the present application, the fourth embodiment of the present application also provides a method for providing a voice service, see Figure 5 As shown, it is a flowchart of a voice service providing method provided in the fourth embodiment of the present application, wherein some steps have been described in detail in the first embodiment of the present application, so the description here is relatively simple. For relevant matters, please refer to some descriptions in a voice service providing method provided in the first embodiment of the present application. The processing process described below is only illustrative.

[0139] Step S501, obtaining audio data to be processed.

[0140] Step S502, obtaining target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be processed; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining the target language information according to the target embedded vector representation information.

[0141] Step S503: providing a voice service corresponding to the audio data to be recognized according to the target language information.

[0142] Optionally, the voice service includes any one of the following services: voice recognition service, voice conversion service, and voice answering service.

[0143] Corresponding to the language recognition method provided in the first embodiment of the present application, the fifth embodiment of the present application also provides a speech recognition method, please refer to Figure 6As shown, it is a flow chart of a speech recognition method provided in the fifth embodiment of the present application, wherein some steps have been described in detail in the first embodiment of the present application, so the description here is relatively simple. For relevant matters, please refer to some descriptions in a speech recognition method provided in the first embodiment of the present application. The processing process described below is only illustrative.

[0144] Step S601, obtaining audio data to be recognized.

[0145] Step S602, obtaining target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after embedded vector representation of the phoneme feature information; obtaining the target language information according to the target embedded vector representation information.

[0146] Step S603: acquiring text information corresponding to the audio data to be recognized according to the target language information.

[0147] Corresponding to the language recognition method provided in the first embodiment of the present application, the sixth embodiment of the present application further provides a language recognition device, see Figure 7 , which is a schematic diagram of a language recognition device provided in the sixth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. A language recognition device provided in the sixth embodiment of the present application includes the following parts:

[0148] The audio data acquisition unit 701 is used to acquire audio data to be recognized.

[0149] The phoneme feature information acquisition unit 702 is used to acquire the phoneme feature information corresponding to the audio data to be recognized.

[0150] The embedded vector representation information acquisition unit 703 is used to acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information.

[0151] The language information obtaining unit 704 is used to obtain a target language according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0152] Corresponding to the language recognition method provided in the first embodiment of the present application, the seventh embodiment of the present application further provides an electronic device, see Figure 8 , which is a schematic diagram of an electronic device provided in the seventh embodiment of the present application. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The electronic device embodiment described below is only illustrative. The electronic device provided in the seventh embodiment of the present application includes:

[0153] Processor 801;

[0154] The memory 802 is used to store the program of the language recognition method. After the device is powered on and the program of the language recognition method is run by the processor, the following steps are performed:

[0155] Obtain audio data to be recognized;

[0156] Acquire phoneme feature information corresponding to the audio data to be recognized;

[0157] Acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information;

[0158] A target language is obtained according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0159] Corresponding to the language recognition method provided in the first embodiment of the present application, the eighth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The eighth embodiment of the present application provides a storage device, which stores a program of the language recognition method. The program is executed by a processor to perform the following steps:

[0160] Obtain audio data to be recognized;

[0161] Acquire phoneme feature information corresponding to the audio data to be recognized;

[0162] Acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information;

[0163] A target language is obtained according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized.

[0164] Corresponding to the method for obtaining a phoneme feature extraction model provided in the second embodiment of the present application, the ninth embodiment of the present application also provides a device for obtaining a phoneme feature extraction model, see Fig. 9 , which is a schematic diagram of a device for obtaining a phoneme feature extraction model provided in the ninth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For related parts, please refer to the partial description of the method embodiment. The device embodiment described below is only exemplary. A device for obtaining a phoneme feature extraction model provided in the ninth embodiment of the present application includes the following parts:

[0165] The sample audio data acquisition unit 901 is used to acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data.

[0166] The sample acoustic feature information acquisition unit 902 is used to acquire sample acoustic feature information corresponding to the sample audio data.

[0167] The model acquisition unit 903 is used to obtain the target phoneme feature extraction model based on the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0168] Corresponding to the method for obtaining a phoneme feature extraction model provided in the second embodiment of the present application, the tenth embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only exemplary. The tenth embodiment of the present application provides an electronic device including:

[0169] processor;

[0170] A memory is used to store a program of a method for obtaining a phoneme feature extraction model. After the device is powered on and the program of the method for obtaining a phoneme feature extraction model is run by the processor, the following steps are performed:

[0171] Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data;

[0172] Acquiring sample acoustic feature information corresponding to the sample audio data;

[0173] The target phoneme feature extraction model is obtained according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0174] Corresponding to the method for obtaining a phoneme feature extraction model provided in the second embodiment of the present application, the eleventh embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The eleventh embodiment of the present application provides a storage device, which stores a program for obtaining a phoneme feature extraction model. The program is executed by a processor to perform the following steps:

[0175] Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data;

[0176] Acquiring sample acoustic feature information corresponding to the sample audio data;

[0177] The target phoneme feature extraction model is obtained according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data.

[0178] Corresponding to the method for obtaining an embedded vector representation model provided in the third embodiment of the present application, the twelfth embodiment of the present application further provides an apparatus for obtaining an embedded vector representation model, see Fig.10 , which is a schematic diagram of a device for obtaining a phoneme feature extraction model provided in the twelfth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For related parts, please refer to the partial description of the method embodiment. The device embodiment described below is only exemplary. The device for obtaining an embedded vector representation model provided in the twelfth embodiment of the present application includes the following parts:

[0179] The sample audio data acquisition unit 1001 is used to acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data.

[0180] The sample phoneme feature information acquisition unit 1002 is used to acquire the sample phoneme feature information corresponding to the sample audio data.

[0181] The model acquisition unit 1003 is used to obtain the target embedded vector representation model based on the sample phoneme feature information and the language annotation information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0182] Corresponding to the method for obtaining an embedded vector representation model provided in the third embodiment of the present application, the thirteenth embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only exemplary. The electronic device provided in the thirteenth embodiment of the present application includes:

[0183] processor;

[0184] A memory is used to store a program of a method for obtaining an embedded vector representation model. After the device is powered on and the program of the method for obtaining an embedded vector representation model is run by the processor, the following steps are performed:

[0185] Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data;

[0186] Acquire sample phoneme feature information corresponding to the sample audio data;

[0187] According to the sample phoneme feature information and the language annotation information, the target embedded vector representation model is obtained, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0188] Corresponding to the method for obtaining an embedded vector representation model provided in the third embodiment of the present application, the fourteenth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The storage device embodiment described below is only exemplary. The fourteenth embodiment of the present application provides a storage device, which stores a program for obtaining an embedded vector representation model. The program is executed by a processor to perform the following steps:

[0189] Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data;

[0190] Acquire sample phoneme feature information corresponding to the sample audio data;

[0191] According to the sample phoneme feature information and the language annotation information, the target embedded vector representation model is obtained, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data to be identified corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information.

[0192] Corresponding to the voice service providing method provided in the fourth embodiment of the present application, the fifteenth embodiment of the present application also provides a voice service providing device, see Fig.11 , which is a schematic diagram of a voice service providing device provided in the fifteenth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. A voice service providing device provided in the fifteenth embodiment of the present application includes the following parts:

[0193] The audio data acquiring unit 1101 is used to acquire audio data to be processed.

[0194] The language information obtaining unit 1102 is used to obtain the target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: obtaining the phoneme feature information corresponding to the audio data to be processed; obtaining the target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is the information obtained after the phoneme feature information is represented by an embedded vector; and obtaining the target language information according to the target embedded vector representation information.

[0195] The voice service providing unit 1103 is configured to provide a voice service corresponding to the audio data to be recognized according to the target language information.

[0196] Corresponding to the voice service providing method provided in the fourth embodiment of the present application, the sixteenth embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only illustrative. The electronic device provided in the sixteenth embodiment of the present application includes:

[0197] processor;

[0198] The memory is used to store a program of the method for providing voice services. After the device is powered on and the program of the method for providing voice services is run by the processor, the following steps are performed:

[0199] Get the audio data to be processed;

[0200] Acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information;

[0201] According to the target language information, a voice service corresponding to the audio data to be recognized is provided.

[0202] Corresponding to the voice service providing method provided in the fourth embodiment of the present application, the seventeenth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The seventeenth embodiment of the present application provides a storage device, which stores a program of the voice service providing method. The program is executed by the processor to perform the following steps:

[0203] Get the audio data to be processed;

[0204] Acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information;

[0205] According to the target language information, a voice service corresponding to the audio data to be recognized is provided.

[0206] Corresponding to the speech recognition method provided in the fifth embodiment of the present application, the eighteenth embodiment of the present application further provides a speech recognition device, see Fig.12, which is a schematic diagram of a speech recognition device provided in the eighteenth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. A speech recognition device provided in the eighteenth embodiment of the present application includes the following parts:

[0207] The to-be-recognized audio data acquiring unit 1201 is used to acquire the to-be-recognized audio data.

[0208] The language information obtaining unit 1202 is used to obtain the target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: obtaining the phoneme feature information corresponding to the audio data to be recognized; obtaining the target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is the information obtained after the phoneme feature information is represented by an embedded vector; and obtaining the target language information according to the target embedded vector representation information.

[0209] The text information acquisition unit 1203 is used to acquire text information corresponding to the audio data to be recognized according to the target language information.

[0210] Corresponding to the speech recognition method provided in the fifth embodiment of the present application, the nineteenth embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only illustrative. The electronic device provided in the nineteenth embodiment of the present application includes:

[0211] processor;

[0212] The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed:

[0213] Obtain audio data to be recognized;

[0214] Acquire target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained by performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information;

[0215] According to the target language information, text information corresponding to the audio data to be recognized is obtained.

[0216] Corresponding to the speech recognition method provided in the fifth embodiment of the present application, the twentieth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The twentieth embodiment of the present application provides a storage device, which stores a program of the speech recognition method. The program is executed by the processor to perform the following steps:

[0217] Obtain audio data to be recognized;

[0218] Acquire target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained by performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information;

[0219] According to the target language information, text information corresponding to the audio data to be recognized is obtained.

[0220] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

[0221] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0222] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0223] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0224] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

Claims

1. A language recognition method, characterized in that: include: Obtain audio data to be recognized; Acquire phoneme feature information corresponding to the audio data to be recognized; Acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Obtaining target language information according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

2. The method according to claim 1, characterized in that: The obtaining of phoneme feature information corresponding to the audio data to be recognized includes: Acquiring acoustic feature information corresponding to the audio data to be recognized; The acoustic feature information is input into a target phoneme feature extraction model to obtain the phoneme feature information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to audio data.

3. The method according to claim 2, characterized in that The target phoneme feature extraction model is obtained by the following method: Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; Acquiring sample acoustic feature information corresponding to the sample audio data; The target phoneme feature extraction model is obtained according to the sample acoustic feature information and the text annotation information.

4. The method according to claim 1, characterized in that: The target embedded vector representation model is a model used to perform embedded vector representation on phoneme feature information corresponding to audio data.

5. The method according to claim 1, characterized in that The method further comprises: Acquire the sample audio data corresponding to at least one language, and acquire the language tag information corresponding to the sample audio data, wherein the language tag information is used to indicate the language category corresponding to the sample audio data; The sample phoneme feature information corresponding to the sample audio data is obtained.

6. The method according to claim 1, characterized in that The model to be trained corresponds to the target embedded vector representation model, wherein the model to be trained is a model used to obtain sample embedded vector representation information based on the sample phoneme feature information, and to obtain the predicted number of languages ​​corresponding to the sample audio data based on the obtained sample embedded vector representation information, wherein the predicted number of languages ​​corresponds to the language annotation information, and is used to represent the number of language categories corresponding to the sample data.

7. The method according to claim 1, characterized in that The step of obtaining target language information according to the target embedded vector representation information includes: Inputting the target embedded vector representation information into a target prediction model, obtaining the language information to be determined and the prediction score corresponding to the language information to be determined, wherein the prediction score is used to indicate the correctness of the language information to be determined, and the target prediction model is a model for predicting the language information to be determined and the prediction score corresponding to the audio data based on the embedded vector representation information corresponding to the audio data; The target language information is obtained according to the to-be-determined language information and the predicted score.

8. The method according to claim 7, characterized in that The step of obtaining the target language information according to the to-be-determined language information and the predicted score includes: Obtaining the maximum value of the predicted scores; The target language information is obtained according to the to-be-determined language information corresponding to the predicted score of the maximum value.

9. The method according to claim 1, characterized in that: Also includes: Optimizing the target embedded vector representation information to obtain optimized target embedded vector representation information; The step of obtaining the target language according to the target embedded vector representation information includes: The target language is obtained according to the optimized target embedded vector representation information.

10. The method according to claim 9, characterized in that The optimizing process of the target embedded vector representation information includes at least one of the following processes: Performing vector length regularization processing on the target embedded vector representation information; Performing mean subtraction processing on the target embedded vector representation information; Performing linear discriminant analysis on the target embedded vector representation information; Performing principal component analysis on the target embedded vector representation information; The target embedded vector representation information is represented by performing intra-class variance regularization.

11. The method according to claim 1, characterized in that: The phoneme feature information includes at least one of the following feature information: phoneme log-likelihood feature information corresponding to at least one phoneme state of the audio data to be recognized, and posterior probability feature information corresponding to at least one phoneme state of the audio data to be recognized.

12. The method according to claim 1, characterized in that The audio data to be identified is audio data that meets a preset time length condition.

13. The method according to claim 1, characterized in that The audio data to be recognized includes audio data of at least one language category.

14. The method according to claim 1, characterized in that The method further comprises: The target language information is displayed.

15. The method according to claim 14, characterized in that The method further comprises: Obtaining confirmation information for the target language information; The language category to which the audio data to be recognized belongs is determined according to the confirmation information.

16. The method according to claim 1, characterized in that The method further comprises: Acquiring historical language information, wherein the historical language information is used to characterize the language category to which the historical audio data to be identified belongs; The language category to which the audio data to be recognized belongs is determined according to the historical language information and the target language information.

17. The method according to claim 16, characterized in that The step of determining the language category to which the audio data to be recognized belongs according to the historical language information and the target language information includes: Determining high-frequency language information in the historical language information; The language category to which the audio data to be recognized belongs is determined according to the high-frequency language information and the target language information.

18. A method for obtaining a phoneme feature extraction model, characterized in that: include: Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; Acquiring sample acoustic feature information corresponding to the sample audio data; Obtaining a target phoneme feature extraction model according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data; The phoneme feature information corresponds to target embedded vector representation information, and the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into a target embedded vector representation model to acquire the target embedded vector representation information, wherein the target embedded vector representation model is obtained according to the sample phoneme feature information corresponding to the sample audio data and the language tagging information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

19. A method for obtaining an embedded vector representation model, characterized in that: include: Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data; Acquire sample phoneme feature information corresponding to the sample audio data; Obtaining a target embedded vector representation model according to the sample phoneme feature information and the language tag information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information; The phoneme feature information corresponds to target embedded vector representation information, and the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into the target embedded vector representation model to acquire the target embedded vector representation information; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

20. A method for providing voice service, characterized in that: include: Get the audio data to be processed; Acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; Providing a voice service corresponding to the audio data to be processed according to the target language information; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

21. The method according to claim 20, characterized in that The voice service includes any one of the following services: voice recognition service, voice conversion service, and voice answering service.

22. A speech recognition method, characterized in that: include: Obtain audio data to be recognized; Acquire target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained by performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; According to the target language information, acquiring text information corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

23. A language recognition device, characterized in that: include: An audio data acquisition unit, used to acquire audio data to be recognized; A phoneme feature information acquisition unit, used to acquire phoneme feature information corresponding to the audio data to be recognized; An embedded vector representation information acquisition unit, used to acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; A language information obtaining unit, configured to obtain target language information according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized; The embedded vector representation information acquisition unit is further used to acquire target embedded vector representation information corresponding to the phoneme feature information by the following steps: inputting the phoneme feature information into a target embedded vector representation model to acquire the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

24. An electronic device, characterized in that: include: processor; The memory is used to store a program of the language recognition method. After the device is powered on and the program of the language recognition method is run by the processor, the following steps are performed: Obtain audio data to be recognized; Acquire phoneme feature information corresponding to the audio data to be recognized; Acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Obtaining target language information according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

25. A storage device, characterized in that: A program storing a language recognition method is executed by a processor to perform the following steps: Obtain audio data to be recognized; Acquire phoneme feature information corresponding to the audio data to be recognized; Acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Obtaining target language information according to the target embedded vector representation information, wherein the target language information is used to represent the language category corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information includes: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

26. A device for obtaining a phoneme feature extraction model, characterized in that: include: A sample audio data acquisition unit, used to acquire sample audio data corresponding to at least one language, and to acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; A sample acoustic feature information acquisition unit, used to acquire sample acoustic feature information corresponding to the sample audio data; A model obtaining unit, used to obtain a target phoneme feature extraction model according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data; The phoneme feature information corresponds to target embedded vector representation information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into a target embedded vector representation model to acquire the target embedded vector representation information, wherein the target embedded vector representation model is obtained according to the sample phoneme feature information corresponding to the sample audio data and the language tagging information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

27. An electronic device, characterized in that: include: processor; A memory is used to store a program of a method for obtaining a phoneme feature extraction model. After the device is powered on and the program of the method for obtaining a phoneme feature extraction model is run by the processor, the following steps are performed: Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; Acquiring sample acoustic feature information corresponding to the sample audio data; Obtaining a target phoneme feature extraction model according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data; The phoneme feature information corresponds to target embedded vector representation information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into a target embedded vector representation model to acquire the target embedded vector representation information, wherein the target embedded vector representation model is obtained according to the sample phoneme feature information corresponding to the sample audio data and the language tagging information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

28. A storage device, characterized in that: A program storing a method for obtaining a phoneme feature extraction model is executed by a processor to perform the following steps: Acquire sample audio data corresponding to at least one language, and acquire text annotation information corresponding to the sample audio data, wherein the text annotation information is text information corresponding to the sample audio data; Acquiring sample acoustic feature information corresponding to the sample audio data; Obtaining a target phoneme feature extraction model according to the sample acoustic feature information and the text annotation information, wherein the target phoneme feature extraction model is a model for obtaining phoneme feature information corresponding to the audio data to be recognized, and the audio data to be recognized corresponds to the sample audio data; The phoneme feature information corresponds to target embedded vector representation information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into a target embedded vector representation model to acquire the target embedded vector representation information, wherein the target embedded vector representation model is obtained according to the sample phoneme feature information corresponding to the sample audio data and the language tagging information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

29. A device for obtaining an embedded vector representation model, characterized in that: include: A sample audio data acquisition unit, configured to acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate a language category corresponding to the sample audio data; A sample phoneme feature information acquisition unit, used to acquire sample phoneme feature information corresponding to the sample audio data; A model obtaining unit, configured to obtain a target embedded vector representation model according to the sample phoneme feature information and the language tag information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information; The phoneme feature information corresponds to target embedded vector representation information, and the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; The device is also used to obtain the target embedded vector representation information corresponding to the phoneme feature information by the following steps: inputting the phoneme feature information into the target embedded vector representation model to obtain the target embedded vector representation information; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

30. An electronic device, characterized in that: include: processor; A memory is used to store a program of a method for obtaining an embedded vector representation model. After the device is powered on and the program of the method for obtaining an embedded vector representation model is run by the processor, the following steps are performed: Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data; Acquire sample phoneme feature information corresponding to the sample audio data; Obtaining a target embedded vector representation model according to the sample phoneme feature information and the language tag information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information; The phoneme feature information corresponds to target embedded vector representation information, and the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into the target embedded vector representation model to acquire the target embedded vector representation information; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

31. A storage device, characterized in that: A program storing a method for obtaining an embedded vector representation model is executed by a processor to perform the following steps: Acquire sample audio data corresponding to at least one language, and acquire language tagging information corresponding to the sample audio data, wherein the language tagging information is used to indicate the language category corresponding to the sample audio data; Acquire sample phoneme feature information corresponding to the sample audio data; Obtaining a target embedded vector representation model according to the sample phoneme feature information and the language tag information, wherein the target embedded vector representation model is a model for performing embedded vector representation on the phoneme feature information corresponding to the audio data, the audio data corresponds to the sample audio data, and the phoneme feature information corresponds to the sample phoneme feature information; The phoneme feature information corresponds to target embedded vector representation information, and the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; Acquiring the target embedded vector representation information corresponding to the phoneme feature information, comprising: inputting the phoneme feature information into the target embedded vector representation model to acquire the target embedded vector representation information; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

32. A voice service providing device, characterized in that: include: An audio data acquisition unit, used to acquire audio data to be processed; A language information obtaining unit is used to obtain target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be processed; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; obtaining the target language information according to the target embedded vector representation information; A voice service providing unit, configured to provide a voice service corresponding to the audio data to be processed according to the target language information; The language information obtaining unit is further used to obtain target embedded vector representation information corresponding to the phoneme feature information by the following steps: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

33. An electronic device, characterized in that: include: processor; The memory is used to store a program of the method for providing voice services. After the device is powered on and the program of the method for providing voice services is run by the processor, the following steps are performed: Get the audio data to be processed; Acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; Providing a voice service corresponding to the audio data to be processed according to the target language information; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

34. A storage device, characterized in that: A program storing a method for providing a voice service is executed by a processor to perform the following steps: Get the audio data to be processed; Acquire target language information corresponding to the audio data to be processed, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be processed; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; Providing a voice service corresponding to the audio data to be processed according to the target language information; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

35. A speech recognition device, characterized in that: include: An audio data acquisition unit to be recognized, used to acquire audio data to be recognized; A language information obtaining unit is used to obtain target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: obtaining phoneme feature information corresponding to the audio data to be recognized; obtaining target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained after performing embedded vector representation on the phoneme feature information; obtaining the target language information according to the target embedded vector representation information; A text information acquisition unit, configured to acquire text information corresponding to the audio data to be recognized according to the target language information; The language information obtaining unit is further used to obtain target embedded vector representation information corresponding to the phoneme feature information by the following steps: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

36. An electronic device, characterized in that: include: processor; The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed: Obtain audio data to be recognized; Acquire target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained by performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; According to the target language information, acquiring text information corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.

37. A storage device, characterized in that: A program for storing a speech recognition method is executed by a processor to perform the following steps: Obtain audio data to be recognized; Acquire target language information corresponding to the audio data to be recognized, wherein the target language information is obtained in the following manner: acquire phoneme feature information corresponding to the audio data to be recognized; acquire target embedded vector representation information corresponding to the phoneme feature information, wherein the target embedded vector representation information is information obtained by performing embedded vector representation on the phoneme feature information; acquire the target language information according to the target embedded vector representation information; According to the target language information, acquiring text information corresponding to the audio data to be recognized; The step of obtaining target embedded vector representation information corresponding to the phoneme feature information comprises: inputting the phoneme feature information into a target embedded vector representation model to obtain the target embedded vector representation information, wherein the target embedded vector representation model is obtained based on sample phoneme feature information corresponding to sample audio data corresponding to at least one language and language annotation information corresponding to the sample audio data; Among them, obtaining the target embedded vector representation model according to the sample phoneme feature information and the language annotation information includes: adjusting the parameters of the model to be trained according to the sample phoneme feature information and the language annotation information to obtain an optimization model that meets preset convergence conditions; deleting the network structure layer in the optimization model that is used to predict the number of languages ​​according to the sample embedded vector representation information to obtain the target embedded vector representation model.