Speech recognition method, device, electronic device and storage medium

The speech data is processed through semantic parsing and point-of-interest error correction models, which solves the problems of difficult corpus acquisition and high recognition error rate in the existing technology, and improves the accuracy and efficiency of POI speech recognition.

CN114639378BActive Publication Date: 2024-10-18CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210186258.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-10-18
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Existing POI speech recognition solutions rely on massive human-computer dialogue corpus. The workload of obtaining the corpus is large and recognition errors affect the accuracy, making it difficult to meet the recognition needs of multiple statements.

Method used

Through semantic analysis of the speech data to be recognized, the original interest points are obtained, the candidate interest point set is determined based on the location information, and the interest point error correction model is used to correct the original interest points, and the target interest point is determined from the candidate set.

Benefits of technology

It improves the accuracy of speech recognition, reduces training costs, and achieves a more convenient and faster recognition method without the need to obtain a large amount of corpus, and is suitable for the recognition of multiple sayings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114639378B_ABST
    Figure CN114639378B_ABST
Patent Text Reader

Abstract

The present invention discloses a speech recognition method, device, electronic device and storage medium. The method comprises: obtaining original points of interest by semantically parsing speech data to be recognized; determining a set of candidate points of interest based on the location information of the original points of interest; correcting the original points of interest using an error correction model of the points of interest, and determining the target points of interest corresponding to the original points of interest from the set of candidate points of interest; and identifying the original points of interest as target points of interest. The speech recognition scheme provided by the embodiment of the present invention can improve the accuracy of speech recognition by correcting the original points of interest through the recognition error correction model and extracting the corresponding target points of interest. Compared with the existing scheme, there is no need to obtain a large amount of corpus, and it does not rely on the speech recognition model. The speech recognition method is more convenient and quick, and has the beneficial effects of reducing training costs and improving the accuracy of speech recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a speech recognition method, device, electronic device, and storage medium. Background Art

[0002] As speech recognition technology becomes more popular, people are increasingly accustomed to using point of interest (POI) speech recognition to find places they want to go. POI recognition is mostly integrated into some embedded speech recognition devices (such as mobile phones and car computers). Due to the diverse speaking habits and ways of users, in order to meet people's needs, it is necessary to support the recognition of multiple statements.

[0003] Existing POI speech recognition solutions mainly target speech recognition models, and improve POI recognition effects by specifically optimizing the language recognition model used by the speech recognition engine decoder. However, language recognition models are often built on massive human-computer dialogue corpora, which require a lot of work to obtain. In addition, this type of corpus has natural recognition errors, which will affect the accuracy of the language model for POI recognition. Summary of the invention

[0004] The embodiments of the present invention provide a speech recognition method, device, electronic device and storage medium, which can improve the accuracy of speech recognition.

[0005] According to one aspect of an embodiment of the present invention, there is provided a speech recognition method, comprising:

[0006] Perform semantic analysis on the speech data to be recognized to obtain the original points of interest;

[0007] Determine a set of candidate interest points based on the location information of the original interest points;

[0008] Correcting the original interest points using an interest point correction model, thereby determining a target interest point corresponding to the original interest point from the candidate interest point set;

[0009] The original point of interest is identified as the target point of interest.

[0010] According to another aspect of an embodiment of the present invention, there is provided a speech recognition device, comprising:

[0011] A semantic analysis module, used to perform semantic analysis on the speech data to be recognized to obtain the original points of interest;

[0012] A determination module, configured to determine a set of candidate interest points based on the location information of the original interest points;

[0013] An error correction module, used to correct the original interest point using an interest point error correction model, so as to determine a target interest point corresponding to the original interest point from the candidate interest point set;

[0014] The recognition module is used to recognize the original interest point as the target interest point.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the speech recognition method described in any embodiment of the present invention.

[0019] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the speech recognition method described in any embodiment of the present invention when executed.

[0020] The speech recognition method provided by the embodiment of the present invention first obtains the original interest points by semantically parsing the speech data to be recognized; then determines the set of candidate interest points based on the location information of the original interest points; then uses the interest point error correction model to correct the original interest points, and determines the target interest points corresponding to the original interest points from the set of candidate interest points; finally, identifies the original interest points as target interest points. The speech recognition scheme provided by the embodiment of the present invention can improve the accuracy of speech recognition by correcting the original interest points through the recognition error correction model and extracting the corresponding target interest points. Compared with the existing scheme, there is no need to obtain a large amount of corpus, and it does not rely on the speech recognition model. The speech recognition method is more convenient and quick, and has the beneficial effects of reducing training costs and improving the accuracy of speech recognition.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the embodiments of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 is a flow chart of a speech recognition method provided according to an embodiment of the present invention;

[0024] Figure 2 is a flow chart of a speech recognition method provided according to an embodiment of the present invention;

[0025] Figure 3 is a structural schematic diagram of a speech recognition device provided according to an embodiment of the present invention;

[0026] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the speech recognition method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Figure 1 A flow chart of a speech recognition method is provided for an embodiment of the present invention. This embodiment is applicable to situations where speech recognition is performed. The method can be performed by a speech recognition device. The speech recognition device can be implemented in the form of hardware and / or software. The speech recognition device can be configured in a server such as a computer. Figure 1 As shown, the method includes:

[0030] S110 , semantically analyze the speech data to be recognized to obtain original interest points.

[0031] The voice data to be recognized can be a control instruction input by the user to the voice recognition device in the form of voice control, and the control instruction is the relevant voice content input by the user to the voice recognition device. The voice recognition device performs semantic analysis on the voice content to make a corresponding response or (answer) operation. Generally, the voice recognition device can be a car voice assistant, a mobile phone voice assistant or a smart home, etc.

[0032] The original interest point can be understood as valid information about the user's instruction obtained by preliminary parsing of the language content, and the voice recognition device can be instructed to make a corresponding response or (answer) operation based on the valid information.

[0033] The above-mentioned valid information may include intention information and slot information. The intention information may be understood as the action to be performed in the speech data to be recognized, and the slot information may be understood as the purpose of the user to be analyzed.

[0034] An optional method is to perform semantic analysis on the voice data to be recognized to obtain the original interest points, which can be achieved by: converting the voice data to be recognized into text data to be recognized; performing semantic analysis on the text data to be recognized to obtain intent information and slot information; and determining the original interest points based on the intent information and slot information.

[0035] The voice data to be recognized is input into the voice recognition device, and the voice recognition device needs to convert the voice data to be recognized into text data to be recognized. This can be understood as the process of extracting the text language of the voice data to be recognized after the voice signal corresponding to the voice data to be recognized is subjected to feature extraction, acoustic model, language model, dictionary and decoding processes. By performing semantic analysis on the converted text data to be recognized, the intent information and slot information related to the current text data to be recognized are obtained, and the original interest points are further obtained.

[0036] For example, take the voice data to be recognized in the in-vehicle voice assistant as "I want to go to the four big rooms". After converting the voice data to be recognized into text data to be recognized, when the text data to be recognized is "I want to go to the four big rooms", the current text data can be parsed into "want to go" and "four big rooms"; "want to go" can be parsed into intent information, i.e. navigation, and "four big rooms" can be parsed into slot information, i.e. the destination is: four big rooms. By integrating the intent information and slot information obtained by parsing the text data to be recognized, the corresponding original points of interest in the current text information can be obtained.

[0037] S120: Determine a set of candidate interest points based on the location information of the original interest points.

[0038] Since each user speaks in a different way and with different dialects, there is a situation where the target command (i.e., the user's target location, which can be understood as the target point of interest in the following text) cannot be found when executing the corresponding command operation on the original point of interest obtained by semantic analysis of the recognized voice data. For example, the original points of interest obtained by analysis are "want to go" and "Four Big Houses", the user's intention is navigation, and the destination is "Four Big Houses". When navigation to the destination is started, the location name of the "Four Big Houses" that is parsed cannot be matched in the location database of the map navigation. At this time, the voice recognition device may feedback "no address related to Four Big Houses found".

[0039] The candidate interest point set can be understood as a point set that is similar to the original interest point voice. The candidate interest point set can be obtained by obtaining a screening range of the candidate interest point set based on the location information of the original interest point, and screening out the candidate interest point set that is similar to the original interest point voice in the location database of the current range based on voice similarity. The number of the current candidate interest point set is not less than one.

[0040] For example, when it is parsed that the destination in the user's original interest point is "Four Big Houses", based on the user's current location information, candidate interest points similar to the pronunciation of "Four Big Houses" are obtained, for example, "Shida Affiliated Hospital", "Sida Huafu", "Shidai Fangqun", etc. are screened out, and the interest points with similar pronunciations currently screened out are called candidate interest point set, so as to obtain the target interest point by further analyzing each candidate interest point in the candidate interest point set.

[0041] S130: Correct the original interest points using the interest point correction model, so as to determine the target interest points corresponding to the original interest points from the candidate interest point set.

[0042] When the candidate interest point set is obtained based on the original interest point, the original interest point is further corrected, so as to determine the target interest point corresponding to the original interest point in the candidate interest point set, and the current target interest point can be determined as the interest point that the user wants to input by voice.

[0043] When determining the target interest point corresponding to the original interest point from the set of candidate interest points, it can be obtained in the following way: the original interest point and each candidate interest point can be used as an interest point correction pair that needs to be corrected, and a similarity score is given to each interest point correction pair based on semantic recognition through an interest point correction model. When the similarity score exceeds a preset value, the candidate interest point in the interest point correction pair that exceeds the preset value is determined as the target interest point corresponding to the original interest point.

[0044] It should be noted that the above preset values ​​are set by the developer. Accordingly, when determining the target interest points corresponding to the original interest points from the candidate interest points set according to the preset values, the number of target interest points may be multiple or may be empty, depending on the preset values ​​set by the developer.

[0045] It is easy to imagine that when the preset value is set higher, the number of target interest points obtained is smaller, and the accuracy of voice recognition is higher; the lower the value is set, the more target interest points obtained are, and the higher the error rate of voice recognition is. Accordingly, when there are multiple target interest points output, when the voice recognition device interacts with the user, it can feedback through the integrated speaker "a pieces of information related to xx are screened for you, please select"; when the target interest point is empty, it can feedback "The result you want is not found, please say it again", etc. The specific feedback method of the voice recognition device for the target interest point is not limited here.

[0046] Optionally, in order to avoid the need for users to manually select multiple target interest points after filtering out, or to avoid the situation where the target interest points are empty, the preset threshold may not be set, and the original interest point with the highest matching score with the candidate interest point may be directly output as the target interest point. The specific method of filtering the target interest points is not restricted here.

[0047] S140: Identify the original interest point as a target interest point.

[0048] After the original point of interest is identified as the target point of interest, the corresponding instruction can be executed according to the content indicated by the target point of interest, so as to better serve the user after the voice recognition device interacts with the user.

[0049] Exemplarily, when the original point of interest is "Sidafang", and the set of candidate points of interest includes "Shida Affiliated Hospital", "Sida Huafu", and "Shidai Fangqun", the scores of each candidate point of interest and the original point of interest are obtained through step S130 as "Sida Huafu" > "Shida Affiliated Hospital" > "Shidai Fangqun", then the target point of interest is determined to be "Sida Huafu", and "Sidafang" can be replaced by "Sida Huafu". Then, when the user inputs voice data as "I want to go to Sidafang", the error correction text display content is "I want to go to Sida Huafu", the intention is "navigation", and the destination is "Sida Huafu".

[0050] The speech recognition method provided by the embodiment of the present invention first obtains the original interest points by semantically parsing the speech data to be recognized; then determines the set of candidate interest points based on the location information of the original interest points; then uses the interest point error correction model to correct the original interest points, and determines the target interest points corresponding to the original interest points from the set of candidate interest points; finally, identifies the original interest points as target interest points. The speech recognition scheme provided by the embodiment of the present invention can improve the accuracy of speech recognition by correcting the original interest points through the recognition error correction model and extracting the corresponding target interest points. Compared with the existing scheme, there is no need to obtain a large amount of corpus, and it does not rely on the speech recognition model. The speech recognition method is more convenient and quick, and has the beneficial effects of reducing training costs and improving the accuracy of speech recognition.

[0051] Figure 2 This is a flow chart of a speech recognition method provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is a further refinement of the corresponding features of the above embodiment. Figure 2 As shown, the method includes:

[0052] S210 , semantically analyze the speech data to be recognized to obtain original interest points.

[0053] S220: Acquire location information of original points of interest from a points of interest database.

[0054] The points of interest database is a database related to the purpose of expressing the user's voice data. When the purpose of the user's voice data is navigation, the database stores the navigation addresses as points of interest; when the purpose of the user's voice data is to play songs, the database stores the song names or singers as points of interest; when the purpose of the user's voice data is to execute the corresponding functions of the device, for example, "turn on the air conditioner", "lower the volume" or "adjust the seat", etc., the database stores the vehicle functions as points of interest. The specific type of the points of interest database is not limited here.

[0055] When the voice data to be recognized is used for navigation, when obtaining the location information of the original point of interest in the point of interest database, it may be possible that the target point of interest cannot be found. In this case, the location information of the original point of interest can be obtained in combination with the current location information of the voice recognition device (for example, a vehicle or a mobile phone).

[0056] S221. Determine a screening area based on the location information.

[0057] Since there is a situation where the target interest point cannot be found based on the original interest point, it is necessary to determine a set of candidate interest points by analyzing the location information of the original interest point. The filtering area is determined based on the location information of the original interest point, and the set of candidate interest points is obtained in the current filtering area. The advantage of this is that the candidate interest point set is more likely to contain the target interest point, the accuracy is higher, and it has the advantage of a small amount of filtering data.

[0058] Among them, the screening area can be delineated based on the county, urban area, or province, etc., and the specific division of the screening area is not restricted here.

[0059] S222: Determine a set of candidate interest points from the various interest points according to the pronunciation information of the various interest points in the screening area and the pronunciation information of the original interest points.

[0060] In step S220, the current position information of the current voice recognition device is determined, and in step S221, the filtering area is determined. The current filtering area is used to filter the candidate interest point set. Then, the pronunciation information of the original interest point can be combined to filter the candidate interest point set that has similar pronunciation to the original interest point in the filtering area.

[0061] Optionally, determining a set of candidate interest points from each interest point in the screening area based on the pronunciation information of each interest point and the pronunciation information of the original interest point can be achieved in the following manner: calculating the pronunciation similarity between each interest point and the original interest point based on the pronunciation information of each interest point and the pronunciation information of the original interest point; selecting from each interest point the interest point whose pronunciation similarity with the original interest point exceeds a preset similarity threshold to obtain a set of candidate interest points.

[0062] The pronunciation similarity between each interest point and the original interest point can be calculated by voice similarity distribution, wherein the voice similarity algorithm can be a simhash algorithm or a Soundex voice matching algorithm, etc., and the selection of a specific voice similarity algorithm is not limited here.

[0063] For example, taking the original point of interest as the purpose of navigation and the destination as "Xinghua Village" as an example, after the voice similarity algorithm, the current urban area is filtered, and the similarity between the current filtered area and "Xinghua Village" is judged from the point of interest database, and the points of interest that exceed the preset similarity threshold are determined as the candidate point of interest set.

[0064] Taking "Xinghua Village" as an example, if the preset similarity threshold is 50%, the available candidate interest point set may include: "Xinghua Village", "Xinhua Village", "Xinghua Village" and "Xinghua Village", etc. The specific value of the preset similarity threshold is not limited here.

[0065] It is easy to imagine that when the preset similarity threshold value is higher, the number of obtained candidate interest point sets is smaller, and when the preset similarity threshold value is lower, the number of obtained candidate interest point sets is larger.

[0066] S230: construct multiple interest point correction pairs according to the original interest point and the candidate interest point set, each of the multiple interest point correction pairs including the original interest point and one candidate interest point in the candidate interest point set.

[0067] The interest point error correction pair may be constructed in such a way that the original interest point and each candidate interest point form an interest point error correction pair. Accordingly, if the candidate interest point set contains several candidate interest points, several interest point error correction pairs may be formed.

[0068] Exemplarily, the POI correction pairs may be "Xinghua Village"-"Xinghua Village", "Xinghua Village"-"Xinhua Village", "Xinghua Village"-"Xinghua Village" and "Xinghua Village"-"Xinghua Village", etc.

[0069] S231. Scoring multiple interest point error correction pairs using an interest point error correction model to obtain an error correction score for each interest point error correction pair.

[0070] The interest point error correction model is used to score the multiple interest point error correction pairs obtained in S230 one by one, so as to determine the target interest point in the subsequent step according to the obtained error correction scores.

[0071] Optionally, the point of interest error correction model is trained in the following manner: aggregating historical voice data of each user according to user identification; filtering out point of interest training pairs from the historical voice data of each user according to the time when the data was generated; adding training labels to the point of interest training pairs according to user operations; performing model training based on the point of interest training pairs and the training labels of the point of interest training pairs to obtain the point of interest error correction model.

[0072] The above-mentioned user identifier can be a corresponding identifier corresponding to the user's voice recognition device, such as ID information or user account, etc., as long as it can uniquely indicate the user corresponding to the current voice recognition device, so as to obtain an interest point correction model about each user's characteristics through targeted training based on the historical voice data of different users.

[0073] The purpose of selecting interest point training pairs from the historical voice data of each user according to the data generation time is that it is not necessary to correct the original interest points every time. The way to determine whether the original interest points need to be corrected can be whether the same sentence pattern or similar sentences are repeatedly input within a preset time period. If they are repeatedly input, it indicates that the pre-output result is not the user's target result, and the original interest points need to be corrected. In this case, the sentences that the user repeatedly inputs the same sentence pattern or similar sentences within the preset time period are extracted as interest point training pairs.

[0074] The preset time period may be 30 seconds or 1 minute, etc., and the specific range of the preset time period is not limited here.

[0075] According to user operations, training labels are added to the interest point training pairs, wherein the current training label may be a label for whether the current interest point training pair needs error correction. If it is marked as "yes", it indicates that the current interest point training pair needs model training. If it is marked as "no", it indicates that the output result of the current interest point training pair is correct and no training is required. Thus, model training is performed according to the interest point training pairs and the training labels of the interest point training pairs to obtain an interest point error correction model.

[0076] S232: Determine a target point of interest according to the error correction score of each point of interest error correction pair.

[0077] When determining the target point of interest, the candidate point of interest whose error correction score exceeds a preset value can be determined as the target point of interest, or the candidate point of interest with the highest error correction score can be determined as the target point of interest. The specific method of determining the target point of interest is not limited here.

[0078] An optional method for determining the target interest point based on the error correction score of each interest point error correction pair can be achieved as follows: determining whether the target error correction pair can be determined from multiple interest point error correction pairs based on the error correction score of each interest point error correction pair; when the target error correction pair can be determined, determining the candidate interest point in the target error correction pair as the target interest point; when the target error correction pair cannot be determined, determining the original interest point as the target interest point.

[0079] When determining whether a target interest point can be determined from multiple interest point correction pairs based on the correction score of each interest point correction pair, it is indicated that the target interest point is not necessarily included in the candidate interest point set. If it is included, the candidate interest point in the target interest point correction pair is determined as the target interest point. If it is not included, the original interest point is determined as the target interest point.

[0080] At this time, when determining the original point of interest as the target point of interest, there are the following two situations: the original point of interest may be input correctly and no error correction is required, so the original point of interest is determined as the target point of interest and the corresponding instruction is executed; it is also possible that a set of candidate points of interest cannot be obtained based on the original point of interest, and thus the target error correction pair cannot be determined. At this time, the original point of interest is determined as the target point of interest, and the user can be prompted to re-enter the voice data to be recognized.

[0081] Optionally, the above-mentioned determination of whether a target error correction pair can be determined from multiple interest point error correction pairs according to the error correction score of each interest point error correction pair can be implemented in the following manner:

[0082] An interest point correction pair with the highest error correction score is selected from multiple interest point correction pairs to obtain a candidate error correction pair; it is determined whether the error correction score of the candidate error correction pair exceeds a preset score; if the error correction score of the candidate error correction pair exceeds the preset score, the candidate error correction pair is determined as a target error correction pair.

[0083] The higher the preset score, the fewer candidate error correction pairs are the target error correction pairs, and the higher the accuracy of becoming the target error correction pair. For example, taking "I want to go to the Big Four Rooms" as an example, the following results can be obtained by scoring each error correction pair through the point of interest error correction model: "Big Four Rooms -> Normal University Affiliated" 0.42, "Big Four Rooms -> Sida Huafu" 0.78, "Big Four Rooms -> Shidai Fangqun" 0.11. If the preset score is set to 0.7, "Big Four Rooms -> Sida Huafu" is determined as the target error correction pair.

[0084] Thereby, the candidate points of interest in the target error correction pair are determined as the target points of interest, that is, the destination "Sidafang" is determined as the destination "Sida Huafu".

[0085] Optionally, if the error correction score of the candidate error correction pair does not exceed a preset score, it is confirmed that the target error correction pair cannot be determined.

[0086] When the target error correction pair cannot be determined, the speech recognition device may provide feedback to the user through the speaker, "The result you want is not found, please speak again", so as to re-execute step S210.

[0087] S240: Identify the original interest point as a target interest point.

[0088] S250: determining a target task according to the speech data to be recognized and the target point of interest, and executing the target task.

[0089] After the voice data to be recognized has passed through the above steps S210-S250, the slot value of the original point of interest can be replaced with the target point of interest after error correction, so that the corresponding target task can be performed according to the target point of interest to navigate to the target task indicated by the target point of interest.

[0090] The speech recognition method provided by the embodiment of the present invention can reduce the amount of data for calculating the error correction pairs of interest points in the subsequent steps and improve the recognition accuracy of the target interest points by obtaining the location information of the original interest points from the interest database and determining the screening range of the candidate interest point set based on the location information; and then score multiple interest point error correction pairs through the interest point error correction model to obtain the error correction score of each interest point error correction pair to finally determine the target interest point. The calculation method is simple and fast, and the processing speed is improved. It is suitable for error correction recognition through POI dictionaries and recognition error correction discrimination models in vehicle-mounted voice interaction scenarios.

[0091] Figure 3 A schematic diagram of the structure of a speech recognition device provided by an embodiment of the present invention. Figure 3 As shown, the device includes: a semantic parsing module 31, a determination module 32, an error correction module 33 and an identification module 34, wherein:

[0092] A semantic analysis module 31, used for performing semantic analysis on the speech data to be recognized to obtain original interest points;

[0093] A determination module 32, configured to determine a set of candidate interest points based on the location information of the original interest points;

[0094] An error correction module 33, configured to correct the original interest point using an interest point error correction model, thereby determining a target interest point corresponding to the original interest point from the candidate interest point set;

[0095] The identification module 34 is configured to identify the original interest point as the target interest point.

[0096] The speech recognition device provided by the embodiment of the present invention first obtains the original interest points by semantically parsing the speech data to be recognized; then determines the set of candidate interest points based on the location information of the original interest points; then uses the interest point error correction model to correct the original interest points, and determines the target interest points corresponding to the original interest points from the set of candidate interest points; finally, identifies the original interest points as target interest points. The speech recognition scheme provided by the embodiment of the present invention can improve the accuracy of speech recognition by correcting the original interest points through the recognition error correction model and extracting the corresponding target interest points. Compared with the existing scheme, there is no need to obtain a large amount of corpus, and it does not rely on the speech recognition model. The speech recognition method is more convenient and quick, and has the beneficial effects of reducing training costs and improving the accuracy of speech recognition.

[0097] Optionally, the determination module 32 includes: an acquisition unit, a first determination unit, and a second determination unit, wherein:

[0098] An acquisition unit, configured to acquire the location information of the original point of interest from a point of interest database;

[0099] A first determining unit, configured to determine a screening area based on the location information;

[0100] The second determining unit is configured to determine the candidate interest point set from the various interest points according to the pronunciation information of the various interest points in the screening area and the pronunciation information of the original interest points.

[0101] Optionally, the second determining unit includes: a calculating subunit and a selecting subunit, wherein:

[0102] A calculation subunit, configured to calculate pronunciation similarity between each point of interest and the original point of interest based on pronunciation information of each point of interest and pronunciation information of the original point of interest;

[0103] A field element is selected to select, from the various interest points, interest points whose pronunciation similarity with the original interest points exceeds a preset similarity threshold, to obtain the candidate interest point set.

[0104] Optionally, the error correction module 33 includes: a construction unit, a scoring unit and a third determination unit, wherein:

[0105] a constructing unit, configured to construct a plurality of interest point correction pairs according to the original interest point and the candidate interest point set, wherein each of the plurality of interest point correction pairs includes the original interest point and a candidate interest point in the candidate interest point set;

[0106] A scoring unit, configured to score the plurality of interest point error correction pairs using the interest point error correction model to obtain an error correction score for each interest point error correction pair;

[0107] The third determining unit is used to determine the target interest point according to the error correction score of each interest point error correction pair.

[0108] Optionally, the third determination unit is specifically used to determine whether a target error correction pair can be determined from the multiple interest point error correction pairs according to the error correction score of each interest point error correction pair; when the target error correction pair can be determined, the candidate interest point in the target error correction pair is determined as the target interest point; when the target error correction pair cannot be determined, the original interest point is determined as the target interest point.

[0109] Optionally, the third determination unit is specifically used to select an interest point correction pair with the highest error correction score from the multiple interest point correction pairs to obtain a candidate error correction pair; determine whether the error correction score of the candidate error correction pair exceeds a preset score; if the error correction score of the candidate error correction pair exceeds the preset score, determine the candidate error correction pair as the target error correction pair; if the error correction score of the candidate error correction pair does not exceed the preset score, confirm that the target error correction pair cannot be determined.

[0110] Optionally, the interest point error correction model is trained in the following manner: aggregating historical voice data of each user according to user identification; filtering out interest point training pairs from the historical voice data of each user according to data generation time; adding training labels to the interest point training pairs according to user operations; performing model training based on the interest point training pairs and the training labels of the interest point training pairs to obtain the interest point error correction model.

[0111] Optionally, the determination module 32 is specifically configured to determine a target task according to the speech data to be recognized and the target point of interest, and execute the target task.

[0112] Optionally, the semantic parsing module 31 includes: a conversion unit, a semantic parsing unit and a fourth determination unit, wherein:

[0113] A conversion unit, used for converting the speech data to be recognized into text data to be recognized;

[0114] A semantic parsing unit, used to perform semantic parsing on the text data to be recognized to obtain intent information and slot information;

[0115] A fourth determining unit is used to determine the original point of interest according to the intention information and the slot information.

[0116] The speech recognition device provided in the embodiment of the present invention can execute the speech recognition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0117] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the speech recognition method provided in any of the above embodiments when executing the program.

[0118] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the speech recognition method provided by any of the above embodiments is implemented.

[0119] Reference below Figure 4 , which shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present invention. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0120] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0121] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0122] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0123] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the method of speech recognition.

[0124] In some embodiments, the method speech recognition may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method speech recognition described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method speech recognition in any other suitable manner (e.g., by means of firmware).

[0125] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0126] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0127] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0129] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0130] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0131] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0132] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A speech recognition method, characterized in that: include: Perform semantic analysis on the speech data to be recognized to obtain the original points of interest; Determine a set of candidate interest points based on the location information of the original interest points; Correcting the original interest points using an interest point correction model, thereby determining a target interest point corresponding to the original interest point from the candidate interest point set; Identifying the original point of interest as the target point of interest; The interest point error correction model is trained in the following way: Aggregate historical voice data of each user according to the user ID; Filtering out interest point training pairs from the historical voice data of each user according to the data generation time; Adding training labels to the interest point training pairs according to user operations; Performing model training according to the interest point training pairs and the training labels of the interest point training pairs to obtain the interest point error correction model; The step of selecting interest point training pairs from the historical voice data of each user according to the data generation time includes: Determine whether the user repeatedly inputs the same sentence or similar sentences within a preset time period; If the input is repeated, it means that the pre-output result is not the user's target result, and the original point of interest needs to be corrected; The interest point training pairs are extracted from the sentences that the user repeatedly inputs the same sentence pattern or similar sentences within a preset time period.

2. The speech recognition method according to claim 1, characterized in that: The determining a set of candidate interest points based on the location information of the original interest points includes: Acquire the location information of the original point of interest from a point of interest database; determining a screening area based on the location information; The candidate interest point set is determined from the various interest points according to the pronunciation information of the various interest points in the screening area and the pronunciation information of the original interest points.

3. The speech recognition method according to claim 2, characterized in that: The step of determining the candidate interest point set from the various interest points according to the pronunciation information of the various interest points in the screening area and the pronunciation information of the original interest points includes: Calculating pronunciation similarity between each point of interest and the original point of interest based on the pronunciation information of each point of interest and the pronunciation information of the original point of interest; The interest points whose pronunciation similarity with the original interest points exceeds a preset similarity threshold are selected from the various interest points to obtain the candidate interest point set.

4. The speech recognition method according to claim 1, characterized in that: The using the interest point error correction model to correct the original interest point, thereby determining the target interest point corresponding to the original interest point from the candidate interest point set, includes: Constructing a plurality of interest point correction pairs according to the original interest point and the candidate interest point set, each of the plurality of interest point correction pairs including the original interest point and a candidate interest point in the candidate interest point set; Scoring the plurality of interest point error correction pairs using the interest point error correction model to obtain an error correction score for each interest point error correction pair; The target interest point is determined according to the error correction score of each interest point error correction pair.

5. The speech recognition method according to claim 4, characterized in that: The determining the target interest point according to the error correction score of each interest point error correction pair includes: Determining whether a target error correction pair can be determined from the multiple error correction pairs of interest points according to the error correction score of each error correction pair of interest points; When the target error correction pair can be determined, determining the candidate point of interest in the target error correction pair as the target point of interest; When the target error correction pair cannot be determined, the original point of interest is determined as the target point of interest.

6. The speech recognition method according to claim 5, characterized in that: The determining whether a target error correction pair can be determined from the plurality of interest point error correction pairs according to the error correction score of each interest point error correction pair includes: Selecting an interest point error correction pair with the highest error correction score from the multiple interest point error correction pairs to obtain a candidate error correction pair; Determining whether the error correction score of the candidate error correction pair exceeds a preset score; If the error correction score of the candidate error correction pair exceeds the preset score, determining the candidate error correction pair as the target error correction pair; If the error correction score of the candidate error correction pair does not exceed the preset score, it is confirmed that the target error correction pair cannot be determined.

7. The speech recognition method according to claim 1, characterized in that: The method further comprises: A target task is determined according to the speech data to be recognized and the target point of interest, and the target task is executed.

8. The speech recognition method according to claim 1, characterized in that: The semantic analysis of the speech data to be recognized to obtain the original interest points includes: Converting the speech data to be recognized into text data to be recognized; Performing semantic analysis on the text data to be recognized to obtain intent information and slot information; The original point of interest is determined according to the intention information and the slot information.

9. A speech recognition device, characterized in that: include: A semantic analysis module, used to perform semantic analysis on the speech data to be recognized to obtain the original points of interest; A determination module, configured to determine a set of candidate interest points based on the location information of the original interest points; An error correction module, used to correct the original interest point using an interest point error correction model, so as to determine a target interest point corresponding to the original interest point from the candidate interest point set; An identification module, configured to identify the original point of interest as the target point of interest; The error correction module comprises: A point of interest error correction model training unit, used to aggregate historical voice data of each user according to the user identifier; Filtering out interest point training pairs from the historical voice data of each user according to the data generation time; Adding training labels to the interest point training pairs according to user operations; Performing model training according to the interest point training pairs and the training labels of the interest point training pairs to obtain the interest point error correction model; The interest point error correction model training unit is also used to determine whether the user repeatedly inputs the same sentence pattern or similar sentences within a preset time period; If the input is repeated, it means that the pre-output result is not the user's target result, and the original point of interest needs to be corrected; The sentences that the user repeatedly inputs for the same sentence pattern or similar sentences within a preset time period are extracted into interest point training pairs.

10. 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 speech recognition method according to any one of claims 1 to 8 is implemented.

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

Citation Information

Patent Citations

  • Speech error correction method and device, equipment, and storage medium

    CN110415679A

  • Voice navigation error correction method, voice navigation device, vehicle and storage medium

    CN110992944A