Speech recognition method, device, electronic device and storage medium

By dynamically expanding the preset state transfer path in the decoding network and using users' regional information and historical input information, the problem of recognition accuracy and practicality of existing speech recognition methods under the differences in pronunciation habits among users is solved, and a better solution is achieved. Efficient personalized speech recognition effect.

CN113113024BActive Publication Date: 2024-08-23UNIV OF SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110474762.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-29
Publication Date
2024-08-23
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

When existing speech recognition methods deal with differences in pronunciation habits among users, the personalized optimization effect is limited and deployment and maintenance are difficult, resulting in insufficient recognition accuracy and practicality.

Method used

By dynamically expanding the preset state transfer path in the decoding network based on the user's regional information and/or historical input information, and using the user's personalized information for speech recognition decoding, the accuracy and practicality of speech recognition are improved.

Benefits of technology

It improves the accuracy of personalized speech recognition, reduces the reliance on user historical data, simplifies the deployment and maintenance of the speech recognition system, and enhances the practicality of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113113024B
    Figure CN113113024B
Patent Text Reader

Abstract

The present invention provides a speech recognition method, device, electronic device and storage medium, wherein the method comprises: determining a user's speech to be recognized; based on a preset state transition path, performing speech recognition decoding on the speech to be recognized to obtain a speech recognition result; the preset state transition path is obtained by expanding based on the user's geographical information and / or historical input information. The speech recognition method, device, electronic device and storage medium provided by the present invention dynamically expand the preset state transition path in the decoding network based on the current user's geographical information and / or historical input information, thereby performing speech recognition decoding on the user's speech to be recognized based on the expanded preset state transition path, utilizing the user's personalized information to improve the accuracy of personalized speech recognition, and the way of dynamically expanding the preset state transition path enhances practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech processing technology, and in particular to a speech recognition method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid development of artificial intelligence technology, speech recognition technology has been widely used in interactive fields such as smart homes and smart robots. As the number of users of speech recognition continues to increase, the differences in pronunciation habits between users are becoming more and more obvious, resulting in the inability of general speech recognition methods to achieve good recognition results for all users.

[0003] In order to achieve personalized speech recognition for each user and improve speech recognition accuracy, existing speech recognition methods usually build a personalized speech recognition system for a user based on a large amount of historical speech data of a certain user. However, this method has limited optimization effect, is difficult to deploy and maintain, and has poor practicality. Summary of the invention

[0004] The present invention provides a speech recognition method, device, electronic device and storage medium, which are used to solve the defects of poor speech recognition optimization effect and insufficient practicality in the prior art.

[0005] The present invention provides a speech recognition method, comprising:

[0006] Determine the user's speech to be recognized;

[0007] Based on a preset state transition path, the speech to be recognized is subjected to speech recognition decoding to obtain a speech recognition result; the preset state transition path is expanded based on the user's regional information and / or historical input information.

[0008] According to a speech recognition method provided by the present invention, the speech recognition decoding of the speech to be recognized based on a preset state transition path includes:

[0009] Determine the phoneme sequence corresponding to the speech to be recognized;

[0010] Based on the preset state transition path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded to obtain a decoding result at the current decoding position.

[0011] According to a speech recognition method provided by the present invention, the preset state transition path is expanded based on the following steps:

[0012] Determining a regional term associated with the regional information of the user;

[0013] Based on the domain name vocabulary of each place, the preset state transition path corresponding to the place name in the decoding network is expanded.

[0014] According to a speech recognition method provided by the present invention, the preset state transition path is expanded based on the following steps:

[0015] Based on the historical input information of the user, determine a similar hot word corresponding to the phoneme sequence at the current decoding position;

[0016] Based on the similar hot words, the preset state transition path corresponding to the previous decoding position is expanded.

[0017] According to a speech recognition method provided by the present invention, determining the similar hot words corresponding to the phoneme sequence at the current decoding position based on the historical input information of the user includes:

[0018] Determine a similar phoneme sequence corresponding to the phoneme sequence at the current decoding position based on the phoneme sequence at the current decoding position and a pre-constructed pronunciation similarity matrix;

[0019] Based on each hot word of the user, similar hot words corresponding to the phoneme sequence at the current decoding position and / or the similar phoneme sequence are determined; the hot words are determined based on the historical input information.

[0020] According to a speech recognition method provided by the present invention, the speech recognition decoding of the speech to be recognized based on a preset state transition path includes:

[0021] Based on the language model and in combination with the preset state transition path, performing speech recognition decoding on the speech to be recognized;

[0022] The language model corresponds to the type of device currently used by the user; the language model corresponding to any device type is trained based on the application scenario text of any device type.

[0023] According to a speech recognition method provided by the present invention, the speech recognition decoding of the speech to be recognized based on a preset state transition path includes:

[0024] Determining a voiceprint feature of the user;

[0025] Based on the preset state transition path, combined with the audio features of the speech to be recognized and the voiceprint features of the user, speech recognition decoding is performed on the speech to be recognized.

[0026] The present invention also provides a speech recognition device, comprising:

[0027] A voice data determination unit, used to determine the user's voice to be recognized;

[0028] The speech recognition decoding unit is used to perform speech recognition decoding on the speech to be recognized based on a preset state transition path to obtain a speech recognition result; the preset state transition path is expanded based on the user's regional information and / or historical input information.

[0029] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned speech recognition methods are implemented.

[0030] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned speech recognition methods are implemented.

[0031] The speech recognition method, device, electronic device and storage medium provided by the present invention dynamically expand the preset state transition path in the decoding network based on the current user's regional information and / or historical input information, thereby performing speech recognition decoding on the user's to-be-recognized speech based on the expanded preset state transition path, utilizing the user's personalized information to improve the accuracy of personalized speech recognition, and the way of dynamically expanding the preset state transition path enhances practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A flow chart of the speech recognition method provided by the present invention;

[0034] Figure 2 One of the flow charts of the path expansion method provided by the present invention;

[0035] Figure 3 A schematic diagram of the regional information expansion path provided by the present invention;

[0036] Figure 4 The second flowchart of the path expansion method provided by the present invention;

[0037] Figure 5 A schematic diagram of a similar hot word expansion path provided by the present invention;

[0038] Figure 6 A schematic diagram of a process for determining similar hot words provided by the present invention;

[0039] Figure 7 A schematic diagram of the language model selection provided by the present invention;

[0040] Figure 8 A schematic diagram of the structure of the speech recognition system provided by the present invention;

[0041] Fig. 9 A schematic diagram of the structure of the speech recognition device provided by the present invention;

[0042] Fig.10 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] With the rapid development of the artificial intelligence industry, speech recognition technology has been widely used in interactive fields such as smart homes and smart robots. In recent years, many speech recognition technologies have been continuously innovated. As one of the most convenient and quickest ways of interaction, speech recognition has become an important part of human-computer interaction. With the increasing number of voice users, the differences in pronunciation habits between users have become more and more obvious. In this case, the traditional method of using a unified general speech recognition system for speech recognition cannot achieve a good recognition accuracy for all users because the general speech recognition system needs to cover more users and more scenarios.

[0045] Therefore, how to use the personalized information of each user to enhance the pertinence of the speech recognition system, thereby improving the accuracy of each user's speech recognition, has become an important research direction in the current speech recognition field. Existing personalized speech recognition methods are usually based on a large amount of user historical speech data to build a personalized speech recognition system for each user. However, for new users, this method is difficult to build a reliable speech recognition system due to the lack of historical data of the user, resulting in limited personalized enhancement effect of this method; and for old users, due to the large difference in the number of historical voices of each user and the need for each user to customize and store a set of recognition models (such as the acoustic model in the traditional hidden Markov model recognition system, or the Encode-Decode model), it is difficult to deploy and maintain, so it is less practical.

[0046] In this regard, an embodiment of the present invention provides a speech recognition method, which can effectively perform personalized enhancement of speech recognition and improve the accuracy of speech recognition. Figure 1 A flow chart of a speech recognition method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0047] Step 110, determining the user's speech to be recognized;

[0048] Step 120, based on a preset state transition path, perform speech recognition decoding on the speech to be recognized to obtain a speech recognition result; the preset state transition path is obtained by expanding based on the user's regional information and / or historical input information.

[0049] Specifically, the user's voice to be recognized is obtained. The voice to be recognized may be voice data recorded in real time by the user through an electronic device, or may be stored or received voice data, which is not specifically limited in the embodiment of the present invention.

[0050] Subsequently, the speech to be recognized is decoded for speech recognition using a preset state transition path to obtain a speech recognition result. The preset state transition path may be a path between any two adjacent nodes in the decoding network. Here, the decoding network may be used as a search space to find an optimal path from the initial node to the terminal node to achieve decoding of the speech to be recognized. Specifically, the acoustic model may be used to convert each speech frame in the speech to be recognized into a state sequence or a phoneme sequence, and then the state sequence or the phoneme sequence may be mapped to a word sequence based on the decoding network; or an end-to-end language recognition model may be combined, such as an Encode-Decode model, to convert the speech to be recognized into a word sequence, and then the word sequence may be mapped to a word sequence based on the decoding network. In addition, the decoding network may be constructed based on knowledge sources such as an acoustic model, a pronunciation dictionary, and a language model, for example, it may be constructed based on the establishment method of a weighted finite-state transducer (WFST), which is not specifically limited in the embodiment of the present invention.

[0051] When performing speech recognition decoding on the speech to be recognized, the preset state transition path in the decoding network will be searched step by step from the initial node according to the state sequence, phoneme sequence or word sequence of the speech to be recognized, and the score will be calculated to find the optimal path. Therefore, the construction of the preset state transition path is an important part of the personalized speech recognition process. The closer the preset state transition path fits the current user, the higher the accuracy of the speech recognition result obtained by decoding.

[0052] In this regard, when constructing a decoding network, in addition to using knowledge sources such as acoustic models, pronunciation dictionaries, and language models, the embodiments of the present invention will also expand the preset state transition paths in the decoding network based on the user's geographical information and / or historical input information. Among them, the path expansion for the current user can be performed on the basis of the existing decoding network, so that the method provided by the embodiment of the present invention only needs to store less personalized information for the current user and make a small change to the existing decoding network to achieve personalized speech recognition, thereby enhancing the practicality of the speech recognition method. For example, several new paths can be added between corresponding nodes in the decoding network based on the user's geographical information and / or historical input information, and the scores of the above-mentioned newly added paths can be calculated based on the language model.

[0053] Among them, the user's regional information can provide the user's current location information. Based on the user's regional information, the destination that the user may go to next can be inferred and expanded into the decoding network. When the user uses voice for navigation, the expanded preset state transfer path can be searched during voice recognition decoding. Even if the user's pronunciation is not standard or the name of the navigation destination is difficult to recognize, the user's input voice content can be accurately recognized. In addition, the user's historical input information can also provide additional expression habits of the user, thereby helping to deduce the words that the user may currently express. Therefore, the user's historical input information can also be refined and expanded into the decoding network to improve the accuracy of voice recognition.

[0054] The method provided by the embodiment of the present invention dynamically expands the preset state transition path in the decoding network based on the current user's regional information and / or historical input information, thereby performing speech recognition decoding on the user's to-be-recognized speech based on the expanded preset state transition path, and utilizes the user's personalized information to improve the accuracy of personalized speech recognition. The way of dynamically expanding the preset state transition path enhances the practicality of the method.

[0055] Based on the above embodiment, step 120 includes:

[0056] Determine the phoneme sequence corresponding to the speech to be recognized;

[0057] Based on the preset state transition path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded to obtain a decoding result at the current decoding position.

[0058] Specifically, each speech frame of the speech to be recognized is recognized to obtain a phoneme sequence corresponding to the speech to be recognized. Here, acoustic features can be extracted from each speech frame of the speech to be recognized to obtain the acoustic features of each speech frame, and then the acoustic features of each speech frame are recognized based on the acoustic model to determine the state to which each speech frame belongs, and then the states are combined into phonemes to obtain the phoneme sequence of the speech to be recognized.

[0059] Subsequently, the phoneme sequence of the speech to be recognized is decoded. During the decoding process, starting from the initial node of the decoding network, according to the phoneme sequence of the speech to be recognized, a suitable preset state transfer path is found to reach the next node, and the above steps are repeated until the termination node is reached. Assuming that the current decoding position of the speech to be recognized is currently decoded, the phoneme sequence at the current decoding position needs to be decoded. Correspondingly, in the decoding network, the current search is to node t, and a suitable path needs to be found to move to the next node. At this time, the phoneme sequence at the current decoding position can be decoded based on the preset state transfer path corresponding to the previous decoding position to obtain the decoding result at the current decoding position. Among them, the preset state transfer path corresponding to the previous decoding position is the preset state transfer path between the current node and the next node in the decoding network, that is, the preset state transfer path starting from node t. Based on the score of the preset state transfer path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded, and one of the preset state transfer paths is selected to determine the decoding result at the current decoding position.

[0060] Based on any of the above embodiments, Figure 2 One of the flow charts of the path expansion method provided by the embodiment of the present invention is as follows: Figure 2 As shown, the method includes:

[0061] Step 210, determining a regional term associated with the user's regional information;

[0062] Step 220, based on the geographical words of each place, a preset state transition path corresponding to the geographical name in the decoding network is expanded.

[0063] Specifically, based on the user's regional information, the regional terms associated with the regional information are determined. The regional information can be used as the center to obtain the regional terms of other places within the surrounding activity range. For example, the names of popular places within the surrounding activity range can be obtained, or the names of places that the user has visited within the surrounding activity range can be obtained based on the user's historical positioning information and / or historical navigation data as the associated regional terms.

[0064] Based on various geographical terms, the preset state transition paths corresponding to the geographical names in the decoding network can be expanded. Figure 3A schematic diagram of a regional information expansion path provided by an embodiment of the present invention, such as Figure 3 As shown in the above part, a basic decoding network with a common place name ($place) path can be pre-built. In addition to the common place name path, several popular place name paths can also be expanded. After obtaining the regional terms associated with the user's regional information (such as Meiya Optoelectronics, Xianyan Institute), as shown in the following example: Figure 3 As shown in the middle part, the preset state transition paths corresponding to the domain names of each region can be constructed first, wherein the nodes connected by the preset state transition paths corresponding to the domain names of each region are the same. Figure 3 As shown in the lower part, the preset state transition paths corresponding to the domain names of various places are expanded to the preset state transition paths corresponding to the common place names in the basic decoding network.

[0065] The method provided by the embodiment of the present invention expands the preset state transition path corresponding to the place name in the decoding network through the geographical terms associated with the user's geographical information, and personalizes the expansion of the preset state transition path, which helps to improve the accuracy of speech recognition.

[0066] Based on any of the above embodiments, Figure 4 The second flow chart of the path expansion method provided by the embodiment of the present invention is as follows: Figure 4 As shown, the method includes:

[0067] Step 410, based on the historical input information of the user, determine the similar hot words corresponding to the phoneme sequence at the current decoding position;

[0068] Step 420: Based on similar hot words, expand the preset state transition path corresponding to the previous decoding position.

[0069] Specifically, the user's historical input information can provide the user's language expression habits, such as the words or phrases that the user often says. When the phoneme sequence at the current decoding position is the same or similar to the pronunciation of some words or phrases in the historical input information, it indicates that the user may be expressing the word or phrase, so it can be expanded into the decoding network. Therefore, in the decoding process, the similar hot words corresponding to the phoneme sequence at the current decoding position can be determined based on the user's historical input information. Among them, the similar hot words are the hot words in the user's historical input information that are pronounced the same or similar to the phoneme sequence at the current decoding position.

[0070] Based on the obtained similar hot words, a new preset state transition path can be generated and expanded to the corresponding position of the preset state transition path corresponding to the previous decoding position. Figure 5 A schematic diagram of a similar hot word expansion path provided by an embodiment of the present invention, such as Figure 5As shown, the similar hot word corresponding to the phoneme sequence at the current decoding position is "Ten-mile Peach Blossom". Generate a new path corresponding to this similar hot word, and insert this new path at the preset state transition path corresponding to the previous decoding position to achieve dynamic expansion of the path.

[0071] The method provided by the embodiment of the present invention expands the preset state transition path corresponding to the previous decoding position by using the similar hot word corresponding to the phoneme sequence at the current decoding position during the decoding process, and performs personalized dynamic expansion on the preset state transition path, which helps to improve the accuracy of speech recognition.

[0072] Based on any of the above embodiments, Figure 6 is a schematic flowchart of the method for determining similar hot words provided by the embodiment of the present invention. As Figure 6 shown, step 410 includes:

[0073] Step 411, based on the phoneme sequence at the current decoding position and the pre-constructed pronunciation similarity matrix, determine the similar phoneme sequence corresponding to the phoneme sequence at the current decoding position;

[0074] Step 412, based on each hot word of the user, determine the similar hot word corresponding to the phoneme sequence and / or similar phoneme sequence at the current decoding position; the hot words are determined based on historical input information.

[0075] Specifically, a pronunciation similarity matrix can be pre-constructed according to a pronunciation dictionary. As Figure 5 shown, the pronunciation similarity matrix can store phoneme sequences with similar pronunciations. According to the phoneme sequence at the current decoding position, search in the pronunciation similarity matrix to find the similar phoneme sequence with a pronunciation similar to that of the phoneme sequence at the current decoding position.

[0076] Based on each hot word of this user, determine the hot word whose pronunciation corresponds to the phoneme sequence and / or similar phoneme sequence at the current decoding position therefrom as the similar hot word. Among them, each hot word is determined according to the historical input information of this user. For example, the text information manually input by this user in history can be obtained, and according to the input frequency of the user, the words with higher frequencies are selected therefrom as hot words to construct the hot word list of this user.

[0077] Based on any of the above embodiments, step 120 includes:

[0078] Based on the language model, combined with the preset state transition path, perform speech recognition decoding on the speech to be recognized;

[0079] Among them, the language model corresponds to the type of device currently used by the user; the language model corresponding to any type of device is trained based on the application scenario text of that type of device.

[0080] Specifically, with the popularity of various electronic devices, users usually use different electronic devices in different application scenarios. For example, for large-screen electronic devices such as TVs, users usually use voice interaction to control TV stations and play online videos on demand, etc. For smart speaker devices, users are more likely to use voice interaction for weather inquiries and song requests, etc., and for in-vehicle computer devices, users are more likely to use voice interaction for address navigation, etc.

[0081] Therefore, the application scenarios of different types of devices can be determined in advance, and the application scenario texts under each application scenario can be collected. Then, based on the application scenario texts of each type of device, the language model corresponding to the device type can be trained to prepare for use by different types of devices when performing speech recognition. Among them, when the speech recognition system used by the electronic device is a recognition system based on the Hidden Markov Model (HMM), the above-mentioned language model refers to a traditional language model, such as a language model based on n-gram, which can directly replace the language model in the original speech recognition system; when the speech recognition system used by the electronic device is a recognition system based on Encode-Decode, the above-mentioned language model can be a neural network language model, and its recognition results can be fused with the recognition results of the original speech recognition system through various fusion methods.

[0082] Determine the device information that generates the speech to be recognized, such as a mobile phone, a car computer, a TV, or a smart speaker, so as to determine the language model corresponding to the device. Based on the language model and the preset state transition path, the speech to be recognized can be decoded for speech recognition. Figure 7 A schematic diagram of language model selection provided by an embodiment of the present invention, such as Figure 7 As shown, according to the device ID of the input voice, the language model corresponding to the current device is dynamically selected from the language models corresponding to multiple device types. The obtained language model can be combined with the acoustic model or the Encode-Decode model to realize voice recognition and obtain the recognition result of the input voice.

[0083] The method provided by the embodiment of the present invention further improves the accuracy of speech recognition by dynamically selecting a language model corresponding to the type of device currently used by the user and combining it with a preset state transition path to perform speech recognition decoding on the speech to be recognized.

[0084] Based on any of the above embodiments, step 120 includes:

[0085] Determine the user's voiceprint characteristics;

[0086] Based on the preset state transfer path, combined with the audio features of the speech to be recognized and the voiceprint features of the user, speech recognition decoding is performed on the speech to be recognized.

[0087] Specifically, due to the different accents and speaking styles of different users, when performing speech recognition, adaptive speech recognition can be performed according to the pronunciation characteristics of the current user to adapt to the speech data of different users, thereby improving the accuracy of speech recognition. Therefore, the voiceprint features of the current user can be obtained. Among them, the voiceprint features can express the pronunciation characteristics and pronunciation habits of the user. Here, the existing i-vector extraction model, such as the universal background model UBM, can be used to extract the identity authentication vector of the current user as its voiceprint feature. The voiceprint features extracted by this method contain speaker information and channel information, etc., and have high stability. In addition, the x-vector extraction model under the deep learning framework can also be used to extract the voiceprint features of the user, which is not specifically limited in the embodiment of the present invention. Subsequently, based on the preset state transition path, combined with the audio features of the speech data to be recognized and the voiceprint features of the user, the speech to be recognized is decoded for speech recognition. Among them, the audio features contain the semantic information of the speech data, and combined with the pronunciation characteristics contained in the voiceprint features of the user, the accuracy of speech recognition for the user can be improved.

[0088] The method provided by the embodiment of the present invention determines the voiceprint features of the user, and then combines the audio features of the speech to be recognized and the voiceprint features of the user to perform speech recognition decoding on the speech to be recognized, thereby further improving the accuracy of speech recognition.

[0089] Based on any of the above embodiments, Figure 8 A schematic diagram of the structure of a speech recognition system provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the system can be established based on the existing speech recognition model and use multi-dimensional personalized recognition enhancement modules to enhance speech recognition. Among them, the personalized recognition enhancement modules include four: dynamic path expansion module, dynamic hot word incentive module, dynamic speech model selection module and dynamic voiceprint enhancement module.

[0090] The dynamic path extension module is used to extend the preset state transfer path corresponding to the place name in the decoding network based on the user's regional information. The specific extension method is the same as that in the above embodiment and will not be repeated here.

[0091] The dynamic hot word excitation module is used to build a hot word library of the user based on the user's historical input information, and to perform hot word excitation based on the hot word library. If the system is established by a recognition model based on HMM, the dynamic hot word excitation module can be used to select similar hot words corresponding to the phoneme sequence at the current decoding position from the hot word library during the actual decoding process, and use the above-mentioned similar hot words to expand the preset state transfer path corresponding to the previous decoding position in the decoding network. The specific expansion method here is the same as in the above-mentioned embodiment and will not be repeated here. If the system is established by a recognition model based on Encode-Decode, the dynamic hot word excitation module can represent each hot word as a fixed-dimensional hot word encoding based on a hot word encoder (Bias Encoder), and then use the state information output by the decoder (Decoder) at the last decoding moment to select the hot word encoding that matches the input speech through the attention mechanism as the output, and send it to the decoder together with the audio features of the input speech for decoding to obtain the recognition result.

[0092] The dynamic speech model selection module is used to dynamically select a language model corresponding to the device type currently used by the user based on the user's device information, so as to perform speech recognition decoding on the speech to be recognized.

[0093] The dynamic voiceprint enhancement module is used to determine the user's voiceprint features, and then combine the audio features of the speech to be recognized and the user's voiceprint features to perform speech recognition decoding on the speech to be recognized.

[0094] It should be noted that each personalized recognition enhancement module in the speech recognition system can be used alone or in combination to improve the accuracy of speech recognition.

[0095] Based on any of the above embodiments, Fig. 9 A schematic diagram of the structure of a speech recognition device provided by an embodiment of the present invention is shown in FIG. Fig. 9 As shown, the device includes: a speech data determination unit 910 and a speech recognition decoding unit 920.

[0096] The voice data determination unit 910 is used to determine the user's voice to be recognized;

[0097] The speech recognition decoding unit 920 is used to perform speech recognition decoding on the speech to be recognized based on a preset state transition path to obtain a speech recognition result; the preset state transition path is expanded based on the user's regional information and / or historical input information.

[0098] The device provided by the embodiment of the present invention dynamically expands the preset state transition path in the decoding network based on the current user's regional information and / or historical input information, thereby performing speech recognition decoding on the user's to-be-recognized speech based on the expanded preset state transition path, and utilizes the user's personalized information to improve the accuracy of personalized speech recognition. The method of dynamically expanding the preset state transition path enhances the practicality of the device.

[0099] Based on any of the above embodiments, the speech recognition decoding unit 920 is used to:

[0100] Determine the phoneme sequence corresponding to the speech to be recognized;

[0101] Based on the preset state transition path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded to obtain a decoding result at the current decoding position.

[0102] Based on any of the above embodiments, the device further includes a first path expansion unit, configured to:

[0103] Determining regional terms associated with the user's regional information;

[0104] Based on the domain name vocabulary of each place, the preset state transition path corresponding to the place name in the decoding network is expanded.

[0105] The device provided by the embodiment of the present invention expands the preset state transition path corresponding to the place name in the decoding network through the geographical term associated with the user's geographical information, and personalizes the preset state transition path, which helps to improve the accuracy of speech recognition.

[0106] Based on any of the above embodiments, the device further includes a second path expansion unit, configured to:

[0107] Based on the user's historical input information, determine the similar hot words corresponding to the phoneme sequence at the current decoding position;

[0108] Based on similar hot words, the preset state transition path corresponding to the previous decoding position is expanded.

[0109] The device provided by the embodiment of the present invention, during the decoding process, uses similar hot words corresponding to the phoneme sequence at the current decoding position to expand the preset state transition path corresponding to the previous decoding position, thereby dynamically expanding the preset state transition path in a personalized manner, which helps to improve the accuracy of speech recognition.

[0110] Based on any of the above embodiments, determining the similar hot words corresponding to the phoneme sequence at the current decoding position based on the historical input information of the user includes:

[0111] Determine a similar phoneme sequence corresponding to the phoneme sequence at the current decoding position based on the phoneme sequence at the current decoding position and a pre-constructed pronunciation similarity matrix;

[0112] Based on each hot word of the user, similar hot words corresponding to the phoneme sequence and / or similar phoneme sequence at the current decoding position are determined; the hot words are determined based on historical input information.

[0113] Based on any of the above embodiments, the speech recognition decoding unit 920 is used to:

[0114] Based on the language model and the preset state transition path, the speech recognition decoding is performed on the speech to be recognized;

[0115] Among them, the language model corresponds to the device type currently used by the user; the language model corresponding to any device type is trained based on the application scenario text of the device type.

[0116] The device provided by the embodiment of the present invention further improves the accuracy of speech recognition by dynamically selecting a language model corresponding to the type of device currently used by the user and combining it with a preset state transition path to perform speech recognition decoding on the speech to be recognized.

[0117] Based on any of the above embodiments, the speech recognition decoding unit 920 is used to:

[0118] Determine the user's voiceprint characteristics;

[0119] Based on the preset state transfer path, combined with the audio features of the speech to be recognized and the voiceprint features of the user, speech recognition decoding is performed on the speech to be recognized.

[0120] The device provided by the embodiment of the present invention determines the voiceprint features of the user, and then combines the audio features of the speech to be recognized and the voiceprint features of the user to perform speech recognition decoding on the speech to be recognized, thereby further improving the accuracy of speech recognition.

[0121] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the speech recognition method, which includes: determining the user's speech to be recognized; based on a preset state transition path, performing speech recognition decoding on the speech to be recognized to obtain a speech recognition result; the preset state transition path is obtained by expanding the user's regional information and / or historical input information.

[0122] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0123] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the speech recognition method provided by the above-mentioned methods, and the method includes: determining the user's speech to be recognized; based on a preset state transition path, performing speech recognition decoding on the speech to be recognized to obtain a speech recognition result; the preset state transition path is obtained by expanding the user's geographical information and / or historical input information.

[0124] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the above-mentioned speech recognition methods, the method comprising: determining the user's speech to be recognized; based on a preset state transition path, performing speech recognition decoding on the speech to be recognized to obtain a speech recognition result; the preset state transition path is obtained by expanding the user's geographical information and / or historical input information.

[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A speech recognition method, characterized in that: include: Determine the user's speech to be recognized; Based on a preset state transition path, performing speech recognition decoding on the speech to be recognized to obtain a speech recognition result; The preset state transition path is obtained by expanding the user's regional information and / or historical input information; The performing speech recognition decoding on the speech to be recognized based on the preset state transition path includes: Determine the phoneme sequence corresponding to the speech to be recognized; Based on the preset state transition path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded to obtain a decoding result at the current decoding position; The preset state transition path corresponding to the previous decoding position is the preset state transition path between the current node and the next node in the decoding network; the historical input information is used to characterize the language expression habits of the user; The decoding of the phoneme sequence at the current decoding position based on the preset state transition path corresponding to the previous decoding position includes: Determining a voiceprint feature of the user; Based on the preset state transition path corresponding to the previous decoding position, combined with the audio features of the speech to be recognized and the voiceprint features of the user, decoding the phoneme sequence at the current decoding position; The voiceprint feature is used to characterize the pronunciation characteristics and pronunciation habits of the user.

2. The speech recognition method according to claim 1, wherein the preset state transition path is expanded based on the following steps: Determining a regional term associated with the regional information of the user; Based on the domain name vocabulary of each place, the preset state transition path corresponding to the place name in the decoding network is expanded.

3. The speech recognition method according to claim 1, wherein the preset state transition path is expanded based on the following steps: Based on the historical input information of the user, determine a similar hot word corresponding to the phoneme sequence at the current decoding position; Based on the similar hot words, the preset state transition path corresponding to the previous decoding position is expanded.

4. The speech recognition method according to claim 3, wherein the determining, based on the historical input information of the user, the similar hot words corresponding to the phoneme sequence at the current decoding position comprises: Determine a similar phoneme sequence corresponding to the phoneme sequence at the current decoding position based on the phoneme sequence at the current decoding position and a pre-constructed pronunciation similarity matrix; Based on each hot word of the user, determine a similar hot word corresponding to the phoneme sequence at the current decoding position and / or the similar phoneme sequence; The hot words are determined based on the historical input information.

5. The speech recognition method according to any one of claims 1 to 4, characterized in that: The performing speech recognition decoding on the speech to be recognized based on the preset state transition path includes: Based on the language model and in combination with the preset state transition path, performing speech recognition decoding on the speech to be recognized; The language model corresponds to the type of device currently used by the user; the language model corresponding to any device type is trained based on the application scenario text of any device type.

6. A speech recognition device, characterized in that: include: A voice data determination unit, used to determine the user's voice to be recognized; A speech recognition decoding unit, configured to perform speech recognition decoding on the speech to be recognized based on a preset state transition path to obtain a speech recognition result; the preset state transition path is obtained by expanding the user's regional information and / or historical input information; The speech recognition decoding unit is specifically used for: Determine the phoneme sequence corresponding to the speech to be recognized; Based on the preset state transition path corresponding to the previous decoding position, the phoneme sequence at the current decoding position is decoded to obtain a decoding result at the current decoding position; The preset state transition path corresponding to the previous decoding position is the preset state transition path between the current node and the next node in the decoding network; the historical input information is used to characterize the language expression habits of the user; The speech recognition decoding unit is specifically used for: Determining a voiceprint feature of the user; Based on the preset state transition path corresponding to the previous decoding position, combined with the audio features of the speech to be recognized and the voiceprint features of the user, decoding the phoneme sequence at the current decoding position; The voiceprint feature is used to characterize the pronunciation characteristics and pronunciation habits of the user.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the speech recognition method according to any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the speech recognition method according to any one of claims 1 to 5 are implemented.