Speech recognition model selection method and apparatus, electronic device, and storage medium

By constructing decision tree models and evaluation metrics, the most suitable speech recognition model is selected for different application scenarios, which solves the problem of poor adaptability of general models and improves the accuracy of speech recognition.

CN115762477BActive Publication Date: 2026-11-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211449826.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2026-11-20
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

Existing general-purpose speech recognition models have poor adaptability to different application scenarios, resulting in low speech recognition accuracy.

Method used

By constructing a decision tree model and evaluation indicators, the pre-recorded initial audio data is preprocessed to generate test audio data, and the test text data is determined based on the initial text data. The test text data is then input into the speech recognition model to obtain the recognized text data, the evaluation data of the evaluation indicators is calculated, and the model with the highest total score is selected as the target model.

Benefits of technology

It improves the adaptability of the speech recognition model to current application scenarios and enhances the accuracy of speech recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115762477B_ABST
    Figure CN115762477B_ABST
Patent Text Reader

Abstract

The application provides a speech recognition model selection method and device, electronic equipment and a storage medium. The method comprises: constructing an evaluation index according to a decision tree model; performing a preprocessing operation on pre-recorded initial audio data to determine test audio data, and determining test text data corresponding to the test audio data according to initial text data corresponding to the initial audio data; for each speech recognition model obtained in advance, inputting the test audio data into the speech recognition model to determine recognized text data, and determining evaluation data of the speech recognition model in the evaluation index according to the test text data and the recognized text data; ranking each speech recognition model in the evaluation index according to a plurality of evaluation data to determine a total score corresponding to each speech recognition model; and selecting a speech recognition model with the highest total score as a target speech recognition model. The adaptability of the speech recognition model to the current application scenario is improved, which helps to improve the accuracy of speech recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a speech recognition model selection method, apparatus, electronic device and storage medium. Background Technology

[0002] In related technologies, a general speech recognition technology model is usually used for different speech recognition application scenarios. However, since different models have corresponding constraints, the general speech recognition model cannot be applied to all application scenarios. Therefore, the related technologies suffer from poor adaptability between the speech recognition model and the application scenario, resulting in low speech recognition accuracy. Summary of the Invention

[0003] In view of this, the purpose of this application is to provide a speech recognition model selection method, apparatus, electronic device and storage medium.

[0004] To achieve the above objectives, in a first aspect, this application provides a speech recognition model selection method, comprising:

[0005] Evaluation indicators were constructed based on the decision tree model;

[0006] Preprocessing is performed on the pre-recorded initial audio data to determine the test audio data, and test text data corresponding to the test audio data is determined based on the initial text data corresponding to the initial audio data.

[0007] For each pre-acquired speech recognition model

[0008] The test audio data is input into the speech recognition model to determine the text data to be recognized.

[0009] The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data;

[0010] Each speech recognition model is ranked according to the evaluation metrics based on multiple evaluation data to determine the total score corresponding to each speech recognition model;

[0011] The speech recognition model with the highest total score is selected as the target speech recognition model.

[0012] In a second aspect, this application provides a speech recognition model selection device, comprising:

[0013] The module is configured to build evaluation metrics based on the decision tree model;

[0014] The determination module is configured to perform preprocessing operations on pre-recorded initial audio data to determine test audio data, and to determine test text data corresponding to the test audio data based on initial text data corresponding to the initial audio data;

[0015] The testing module is configured to test each pre-acquired speech recognition model.

[0016] The test audio data is input into the speech recognition model to determine the text data to be recognized.

[0017] The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data;

[0018] The evaluation module is configured to sort each speech recognition model on evaluation metrics based on multiple evaluation data to determine the total score corresponding to each speech recognition model;

[0019] The selection module is configured to select the speech recognition model with the highest total score as the target speech recognition model.

[0020] In a third aspect, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the speech recognition model selection method as described in the first aspect.

[0021] In a fourth aspect, this application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the speech recognition model selection method as described in the first aspect.

[0022] As described above, the speech recognition model selection method, apparatus, electronic device, and storage medium provided in this application can construct evaluation indicators based on a decision tree model, perform preprocessing operations on pre-recorded initial audio data to obtain test audio data, and determine the test text data corresponding to the test audio data based on the initial text data corresponding to the initial audio data. Furthermore, for each pre-acquired speech recognition model, the test audio data can be input into the speech recognition model to obtain recognized text data, and the evaluation data of the speech recognition model on each evaluation indicator can be determined based on the test text data and the obtained recognized text data. Further, based on the evaluation data corresponding to each speech recognition model, each speech recognition model can be ranked under each evaluation indicator to determine the total score corresponding to each speech recognition model. To meet the comprehensive needs of the current application scenario, the speech recognition model with the highest total score can be selected as the target speech recognition model to perform speech recognition work in the current application scenario. Through the method provided in this application, multiple speech recognition models can be rated for different application scenarios, and the most suitable speech recognition model for the current application scenario can be selected, improving the adaptability of the speech recognition model to the current application scenario and helping to improve the accuracy of speech recognition. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This illustration shows an exemplary flowchart of a speech recognition model selection method provided in an embodiment of this application.

[0025] Figure 2 A schematic diagram of an exemplary structure of a speech recognition model selection device provided in an embodiment of this application is shown.

[0026] Figure 3 This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0028] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0029] As described in the background section, in related technologies, a common speech recognition technology model is usually adopted for different speech recognition application scenarios.

[0030] However, the applicant's research revealed that, due to the constraints of different models, a general speech recognition model cannot be applied to all application scenarios. Therefore, the related technologies suffer from poor adaptability between the speech recognition model and the application scenario, resulting in low speech recognition accuracy.

[0031] Therefore, the speech recognition model selection method, apparatus, electronic device, and storage medium provided in this application can construct evaluation indicators based on a decision tree model, perform preprocessing operations on pre-recorded initial audio data to obtain test audio data, and determine the test text data corresponding to the test audio data based on the initial text data corresponding to the initial audio data. Furthermore, for each pre-acquired speech recognition model, the test audio data can be input into the speech recognition model to obtain recognized text data, and the evaluation data of the speech recognition model on each evaluation indicator can be determined based on the test text data and the obtained recognized text data. Further still, based on the evaluation data corresponding to each speech recognition model, each speech recognition model can be ranked under each evaluation indicator to determine the total score corresponding to each speech recognition model. To meet the comprehensive needs of the current application scenario, the speech recognition model with the highest total score can be selected as the target speech recognition model to perform speech recognition work in the current application scenario. Through the method provided in this application, multiple speech recognition models can be rated for different application scenarios, and the most suitable speech recognition model for the current application scenario can be selected, improving the adaptability of the speech recognition model to the current application scenario and helping to improve the accuracy of speech recognition.

[0032] The following specific embodiments will be used to illustrate the speech recognition model selection method provided in this application.

[0033] Figure 1 This illustration shows an exemplary flowchart of a speech recognition model selection method provided in an embodiment of this application.

[0034] refer to Figure 1 The speech recognition model selection method provided in this application specifically includes the following steps:

[0035] S102: Construct evaluation indicators based on the decision tree model.

[0036] S104: Perform preprocessing operations on the pre-recorded initial audio data to determine test audio data, and determine test text data corresponding to the test audio data based on the initial text data corresponding to the initial audio data.

[0037] S106: For each pre-acquired speech recognition model

[0038] The test audio data is input into the speech recognition model to determine the text data to be recognized.

[0039] The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data.

[0040] S108: Based on the multiple evaluation data, each speech recognition model is ranked according to the evaluation indicators to determine the total score corresponding to each speech recognition model.

[0041] S110: Select the speech recognition model with the highest total score as the target speech recognition model.

[0042] In some embodiments, the evaluation objects are speech recognition models from different manufacturers. Evaluation indicators can be constructed based on a decision tree model. For example, basic evaluation indicators are related to speech and can include volume, accent, speech rate, timbre, dialect, dialogue scenario, language, sound source, speaking style, text content, and pickup device. The decision tree model can select the basic evaluation indicator with higher weight as the final evaluation indicator based on the weight of each basic evaluation indicator. The weight of each basic evaluation indicator can be determined based on expert experience. Taking volume U1 as an example, volume U1 can be subdivided into: normal volume U11, lower volume U12, and higher volume U13. The actual application scenario is basically normal volume, so the weight of normal volume U11 can be set to 0.9, the weight of lower volume U12 to 0.05, and the weight of higher volume U13 to 0.05.

[0043] In some embodiments, to evaluate the capabilities of different speech recognition models, initial audio data can be recorded and used to test different speech recognition models. However, since speech recognition needs to consider a wide variety of scenarios, it is possible to select corresponding evaluation metrics for testing based on the applicable scenarios. However, obtaining test audio data is very difficult; manually collecting and annotating speech data would consume a lot of time and effort. Therefore, an automated method can be used to process the normally pre-recorded initial audio data, further performing preprocessing operations on the initial audio data to obtain different test audio data.

[0044] Specifically, the initial audio data may include one or more of the following: audio data with different accents, audio data from multi-person dialogue scenarios, or audio data in different languages, thereby meeting the testing needs of different application scenarios.

[0045] To further meet the testing needs of different application scenarios and reduce the workload in the pre-recording stage, various test audio data can be determined by preprocessing the initial audio data. For example, test audio data may include variable-speed test audio data. First, initial audio data at normal speech speed can be recorded. Then, the initial audio data can be further adjusted according to variable-speed parameters to determine the variable-speed test audio data. Specifically, the speech speed of the variable-speed test audio data can be expressed as...

[0046] V 测试 =V 初始 ×A

[0047] Among them, V 初始 This represents the normal speech speed, and A represents the speed adjustment parameter, which can be any multiple. To obtain test audio data with a slower speech speed, the speed adjustment parameter can be set to less than 1; to obtain test audio data with a faster speech speed, the speed adjustment parameter can be set to greater than 1.

[0048] In some embodiments, the test audio data may include variable volume test audio data. First, the current volume of a pre-recorded initial audio data can be determined and taken as the normal volume. Further, the initial audio data can be adjusted according to volume adjustment parameters to determine the variable volume test audio data. Specifically, the volume of the variable volume test audio data can be expressed as...

[0049] bel 测试 =bel 初始 +db

[0050] Among them, bel 初始The value represents the current volume of the initial audio data, and db represents the volume adjustment parameter. To obtain test audio data with a lower volume, the volume adjustment parameter can be set to a negative number; to obtain test audio data with a higher volume, the volume adjustment parameter can be set to a positive number.

[0051] In some embodiments, the test audio data may include mixed test audio data. First, noise audio data and pre-recorded initial audio data can be determined. Then, the initial audio data and noise audio data are mixed and superimposed to determine the mixed test audio data.

[0052] In some embodiments, the most important evaluation factor for a speech recognition model should be the accuracy of the speech recognition model under different influencing factors. Therefore, in addition to the basic evaluation indicators, the evaluation indicators may also include the first word accuracy. Specifically, after inputting the test audio data into different speech recognition models, for any given speech recognition model, it can determine whether there are replaced characters in the test text data based on the corresponding text positions in the test text data and the recognized text data. If there are replaced characters, it proves that there is a replacement error in the recognition result of the current speech recognition model, and the number of replaced characters, i.e., the number of replacement error characters, can be further determined. It can also determine whether there are removed characters in the test text data based on the corresponding text positions in the test text data and the recognized text data. If there are removed characters, it proves that there is a removal error in the recognition result of the current speech recognition model, and the number of removed characters, i.e., the number of removal error characters, can be further determined. Finally, it can determine whether there are inserted characters in the test text data based on the corresponding text positions in the test text data and the recognized text data. If there are inserted characters, it proves that there is an insertion error in the recognition result of the current speech recognition model, and the number of inserted characters, i.e., the number of insertion error characters, can be further determined.

[0053] Furthermore, the total number of characters in the test text data can be determined. Further, the accuracy of the first character can be determined based on the total number of characters, the number of characters replaced, the number of characters removed, and the number of characters inserted. The quantized value corresponding to the accuracy of the first character is used as the evaluation data of the speech recognition model.

[0054] For example, the test text is: "When will the Cloud Manufacturing Town be completed?", and the current speech recognition model obtains the recognized text as: "When will the Cloud Intelligent Manufacturing Town be completed!". The two text data are then compared:

[0055] When will the cloud manufacturing town be completed?

[0056] When will the Cloud Intelligent Manufacturing Town be completed!

[0057] Herein, the character "zhi" in the recognized text data replaces the character "zhi" in the test text data, which belongs to a substitution error, and the number of substituted characters is 1; compared with the test text data, the recognized text data deletes the character "xiao", which belongs to a deletion error, and the number of deleted characters is 1; compared with the test text data, the recognized text data inserts the character "a", which belongs to an insertion error, and the number of inserted characters is 1. Moreover, the total number of characters in the test text data is 12. The first character error rate of the current speech recognition model can be expressed as

[0058]

[0059] Herein, S represents the number of substituted characters, D represents the number of deleted characters, I represents the number of inserted characters, and N represents the total number of characters.

[0060] Further, determining the first character accuracy rate according to the first character error rate can be expressed as

[0061] WCR=1-WER

[0062] The first character accuracy rate of the speech recognition model is Herein, 75% is the quantized value of the first character accuracy rate, that is, the evaluation data.

[0063] In some embodiments, the recognition results may contain punctuation marks in addition to text. Therefore, to further evaluate the recognition accuracy of a speech recognition model, the recognition results of punctuation marks can be included as a reference factor. Thus, the evaluation metric can also include the second character accuracy. Specifically, after inputting test audio data into different speech recognition models, for any given speech recognition model, it can be determined whether there are replaced punctuation marks in the test text data based on the positions of the corresponding punctuation marks in the test text data and the recognized text data. If there are replaced punctuation marks, it proves that there is a replacement error in the recognition result of the current speech recognition model. Furthermore, the number of replaced punctuation marks, i.e., the number of punctuation marks with replacement errors, can be determined. It can also be determined based on the positions of the corresponding punctuation marks in the test text data and the recognized text data. If there are any removed punctuation marks, it proves that there is a removal error in the recognition result of the current speech recognition model. Furthermore, the number of removed punctuation marks can be determined, that is, the number of erroneous punctuation marks. Alternatively, based on the positions of each corresponding punctuation mark in the test text data and the recognition text data, it can be determined whether there are any inserted punctuation marks in the test text data. If there are inserted punctuation marks, it proves that there is an insertion error in the recognition result of the current speech recognition model. Furthermore, the number of inserted punctuation marks can be determined, that is, the number of erroneous punctuation marks.

[0064] Furthermore, the total number of characters in the test text data can be determined. Further, the accuracy of the second character can be determined based on the total number of characters, the number of characters replaced, the number of characters removed, the number of characters inserted, the number of punctuation marks replaced, the number of punctuation marks removed, and the number of punctuation marks inserted. The quantized value corresponding to the accuracy of the second character is used as the evaluation data of the speech recognition model.

[0065] For example, the test text is: "When will the Cloud Manufacturing Town be completed?", and the current speech recognition model obtains the recognized text as: "When will the Cloud Intelligent Manufacturing Town be completed!". The two text data are then compared:

[0066] When will the cloud manufacturing town be completed?

[0067] When will the Cloud Manufacturing Town be completed?

[0068] Herein, the character "zhi" in the recognized text data replaces the character "zhi" in the test text data, which belongs to a substitution error, and the number of substituted characters is 1; the "?" in the recognized text data replaces the "!" in the test text data, which belongs to a substitution error, and the number of substituted punctuation marks is 1; compared with the test text data, the recognized text data deletes the character "xiao", which belongs to an omission error, and the number of omitted characters is 1; compared with the test text data, the recognized text data inserts the character "a", which belongs to an insertion error, and the number of inserted characters is 1, in addition, the total number of characters in the test text data is 12.

[0069] The second-character accuracy rate of the speech recognition model is Herein, 66.7% is the quantized value of the second-character accuracy rate, that is, the evaluation data.

[0070] In some embodiments, in order to more comprehensively reflect the recognition accuracy of the speech recognition model, the evaluation indicator may further include a first-sentence accuracy rate. Specifically, after inputting the test audio data into different speech recognition models, for any speech recognition model, it may be determined whether at least one first target sentence exists in the test text data, where the first target sentence is a sentence having any one of errors among a substituted character, an omitted character, or an inserted character, and any sentence may be represented as a set of characters between two adjacent punctuation marks. If at least one first target sentence exists in the test text data, the number of the first target sentences may be determined. Further, the total number of sentences in the test text data may be determined according to the manner of determining one sentence for every two adjacent punctuation marks in the test text data, the first-sentence accuracy rate may be determined according to the number of the first target sentences and the total number of sentences, and the quantized value corresponding to the first-sentence accuracy rate is used as the evaluation data. That is to say, the first-sentence accuracy rate does not consider whether there is a recognition error in the punctuation marks.

[0071] Herein, the first-sentence error rate may be expressed as

[0072]

[0073] Herein, SE represents the number of first target sentences, and N' represents the total number of sentences.

[0074] In some embodiments, the recognition results may contain punctuation marks in addition to text. To more comprehensively reflect the recognition accuracy of the speech recognition model, the evaluation metric may also include the second sentence accuracy. Specifically, after inputting test audio data into different speech recognition models, for any given speech recognition model, it can be determined whether at least one second target sentence exists in the test text data. The first target sentence is a sentence containing any one of the following errors: replaced text, removed text, inserted text, replaced punctuation marks, removed punctuation marks, or inserted punctuation marks. Any sentence can be represented as a set of text between two adjacent punctuation marks. If at least one second target sentence exists in the test text data, the number of second target sentences can be determined. Further, the total number of sentences in the test text data can be determined by identifying a sentence for every two adjacent punctuation marks. The second sentence accuracy is determined based on the number of second target sentences and the total number of sentences, and the quantified value corresponding to the second sentence accuracy is used as the evaluation data. In other words, the second sentence accuracy considers whether there are recognition errors in punctuation marks.

[0075] In some embodiments, when there is only one evaluation metric, after obtaining the evaluation data for each speech recognition model, the speech recognition models can be sorted from highest to lowest based on the evaluation data, and the ranking of each speech recognition model can be determined. For example, if the evaluation metric is the first word accuracy, and speech recognition model A has an evaluation data of 100%, speech recognition model B has an evaluation data of 75%, and speech recognition model C has an evaluation data of 80%, then the rankings are A, C, and B, respectively. Further, based on the ranking of each speech recognition model, scores can be assigned to each speech recognition model in descending order to determine the total score for each speech recognition model. For example, speech recognition model A has a score of 3 points, speech recognition model C has a score of 2 points, and speech recognition model B has a score of 1 point. Based on the principle of prioritizing the highest score, speech recognition model A can be selected as the target speech recognition model for the current application scenario.

[0076] In some embodiments, there are at least two evaluation metrics, that is, the evaluation metrics include at least any two of the following metrics: first character accuracy, second character accuracy, first sentence accuracy, and second sentence accuracy. After obtaining the evaluation data for each speech recognition model, the speech recognition models can be ranked from high to low according to one of the evaluation metrics, and the first ranking corresponding to each speech recognition model can be determined. For example, if the evaluation metric is the first character accuracy, and the evaluation data for speech recognition model A is 100%, the evaluation data for speech recognition model B is 75%, and the evaluation data for speech recognition model C is 80%, then the rankings are A, C, and B, respectively. Further, each speech recognition model can be scored in descending order according to its first ranking, thereby determining the first score corresponding to each speech recognition model. For example, the first score for speech recognition model A is 3 points, the first score for speech recognition model C is 2 points, and the first score for speech recognition model B is 1 point. Further still, the speech recognition models can be ranked from high to low according to another evaluation metric, and the second ranking corresponding to each speech recognition model can be determined. For example, if the evaluation metric is the accuracy of the second sentence, and speech recognition model A has an evaluation score of 85%, speech recognition model B has an evaluation score of 90%, and speech recognition model C has an evaluation score of 80%, then the rankings are B, A, and C, respectively. Further, based on the second ranking of each speech recognition model, scores can be assigned to each model in descending order to determine the second score for each model. For example, speech recognition model B might have a first score of 3 points, speech recognition model A might have a first score of 2 points, and speech recognition model C might have a first score of 1 point. Finally, the total score for each speech recognition model is determined by the sum of its first and second scores. For example, speech recognition model A might have a total score of 5 points, speech recognition model B might have a total score of 4 points, and speech recognition model C might have a total score of 3 points. Following the principle of prioritizing the highest score, speech recognition model A can be selected as the target speech recognition model for the current application scenario.

[0077] Specifically, the score of the speech recognition model under each evaluation metric can be expressed as:

[0078] M i = x + 1 - Rank(x)

[0079] Where x represents the manufacturer identifier of the speech recognition model, for example, the speech recognition model of the xth manufacturer, and Rank(x) represents the ranking of the speech recognition model of the xth manufacturer.

[0080] The total score of the speech recognition model can be expressed as

[0081]

[0082] Where i represents the index number of the evaluation indicator, m i This represents the weight value corresponding to each evaluation indicator.

[0083] In some embodiments, the testing of speech recognition models can be conducted under different dimensions, thus allowing for optimization of the total score of the speech model based on these dimensions. Since the pre-recorded initial audio data may contain multiple different dimensions, the current dimension of the test audio data can be determined based on the initial audio data. This current dimension may include at least one of the following: accent, volume, speech rate, dialect type, single / multi-person dialogue scenario, and / or language. Further, a first weighted score can be applied to each speech recognition model based on pre-set weight values ​​corresponding to the current dimension, thereby determining the first weighted score for each speech recognition model under the current dimension. Similarly, a second weighted score can be applied to each speech recognition model based on pre-set weight values ​​corresponding to the current dimension, thereby determining the second weighted score for each speech recognition model under the current dimension. Further still, the total score for each speech recognition model is determined based on the sum of all first weighted scores and all second weighted scores. Referring to Table 1, the amount of test text data under different dimensions can be set to different quantities.

[0084] Table 1 Test text data under different dimensions

[0085]

[0086]

[0087] In some embodiments, experiments were conducted for different volume levels. The evaluation metrics selected were the accuracy rate of the first character, the accuracy rate of the second character, the accuracy rate of the first sentence, and the accuracy rate of the second sentence. Tests were conducted on speech recognition models from four different manufacturers, and the test results are shown in Table 2.

[0088] Table 2 Test results for different volume levels

[0089]

[0090] It can be seen that the speech recognition model of manufacturer D is highly dependent on volume, and the recognition effect is significantly worse at low volumes. Considering the weight values ​​under different dimensions, the scores of each manufacturer under different evaluation indicators after weighting are shown in Table 3.

[0091] Table 3 Final Scores

[0092]

[0093]

[0094] In some embodiments, according to the above experimental results, it can be found that a speech recognition model may perform well in most scenarios but extremely poorly in a few individual scenarios. To clearly present major defects, a defect level is introduced. The function of this parameter is to amplify the defects in such scenarios, making comparative evaluation more fair. For example, four speech recognition models respectively get scores of [4, 2, 3, 1] in different speech speed dimensions, and the speech recognition model that gets 1 point ranks last, then the corresponding defect level is assigned to this speech recognition model, so the final scores of the four speech recognition models in the speech speed dimension are [4, 2, 3, -2].

[0095] In some embodiments, inconsistency in text will affect the calculation of accuracy, but the recognition result cannot actually be considered wrong, for example, "WIFI" is recognized as "WiFi", and "6" is recognized as "six". Therefore, a normalization operation can be performed on the initial audio data to normalize Chinese and English characters, Arabic numerals, punctuation marks, special characters and the like in the statistical process.

[0096] It can be seen from the above that the speech recognition model selection method, apparatus, electronic device and storage medium provided by the present application can construct evaluation indicators according to a decision tree model, perform a preprocessing operation on pre-recorded initial audio data to obtain test audio data, and can determine test text data corresponding to the test audio data according to the initial text data corresponding to the initial audio data; further, for each pre-acquired speech recognition model, the test audio data can be input into the speech recognition model to obtain recognized text data, and evaluation data of the speech recognition model under each evaluation indicator is determined according to the test text data and the recognized text data obtained by testing; still further, each speech recognition model can be ranked under each evaluation indicator according to the corresponding evaluation data of each speech recognition model, so as to determine the total score corresponding to each speech recognition model. To meet the comprehensive requirements of the current application scenario, the speech recognition model with the highest total score can be selected as the target speech recognition model to perform the speech recognition work in the current application scenario. With the method provided by the present application, multiple speech recognition models can be rated for different application scenarios, and then the speech recognition model most suitable for the current application scenario is selected, which improves the adaptability between the speech recognition model and the current application scenario, and helps to improve the accuracy of speech recognition.

[0097] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0098] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0099] Figure 2 A schematic diagram of an exemplary structure of a speech recognition model selection device provided in an embodiment of this application is shown.

[0100] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a speech recognition model selection device.

[0101] refer to Figure 2 The speech recognition model selection device includes: a construction module, a determination module, a testing module, an evaluation module, and a selection module; wherein,

[0102] The module is configured to build evaluation metrics based on the decision tree model;

[0103] The determination module is configured to perform preprocessing operations on pre-recorded initial audio data to determine test audio data, and to determine test text data corresponding to the test audio data based on initial text data corresponding to the initial audio data;

[0104] The testing module is configured to test each pre-acquired speech recognition model.

[0105] The test audio data is input into the speech recognition model to determine the text data to be recognized.

[0106] The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data;

[0107] The evaluation module is configured to sort each speech recognition model on evaluation metrics based on multiple evaluation data to determine the total score corresponding to each speech recognition model;

[0108] The selection module is configured to select the speech recognition model with the highest total score as the target speech recognition model.

[0109] In one possible implementation, the test audio data includes: speed change test audio data;

[0110] The determining module is further configured to:

[0111] The initial audio data was recorded at a normal speech rate;

[0112] The initial audio data is adjusted according to the speed change parameters to determine the speed change test audio data; wherein, the speech rate of the speed change test audio data is expressed as...

[0113] V 测试 =V 初始 ×A

[0114] Among them, V 初始 This indicates the normal speech rate, and A represents the variable speed parameter.

[0115] In one possible implementation, the test audio data includes: variable volume test audio data;

[0116] The determining module is further configured to:

[0117] Determine the current volume of the initial audio data obtained from the recording;

[0118] The initial audio data is adjusted according to the volume adjustment parameters to determine the variable volume test audio data; wherein, the volume of the variable volume test audio data is represented as...

[0119] bel 测试 =bel 初始 +db

[0120] Among them, bel 初始 The current volume of the initial audio data is represented by db, and the volume adjustment parameter is represented by db.

[0121] In one possible implementation, the test audio data includes: mixed test audio data;

[0122] The determining module is further configured to:

[0123] Determine the noise audio data and the recorded initial audio data;

[0124] The noise audio data and the initial audio data are mixed and superimposed to determine the mixed test audio data.

[0125] In one possible implementation, the initial audio data includes one or more of the following audio data: audio data with different accents, audio data of multi-person dialogue scenarios, or audio data in different languages.

[0126] In one possible implementation, the evaluation metrics include: first character accuracy;

[0127] The test module is further configured as follows:

[0128] Based on the corresponding text positions of the test text data and the recognized text data, determine whether there are replaced characters in the test text data;

[0129] In response to the presence of replaced text in the test text data, the number of replaced texts is determined;

[0130] Based on the corresponding text positions of the test text data and the recognized text data, determine whether there are any removed text characters in the test text data;

[0131] In response to the presence of removed text in the test text data, the number of removed text is determined;

[0132] Based on the corresponding text positions of the test text data and the recognized text data, determine whether there is inserted text in the test text data;

[0133] In response to the presence of inserted text in the test text data, the number of inserted text is determined;

[0134] The total number of characters in the test text data is determined. The first character accuracy rate is determined based on the total number of characters, the number of replaced characters, the number of removed characters, and the number of inserted characters. The quantized value corresponding to the first character accuracy rate is used as the evaluation data.

[0135] In one possible implementation, the evaluation metrics include: second character accuracy;

[0136] The test module is further configured as follows:

[0137] Determine whether there are replaced punctuation marks in the test text data based on the positions of the corresponding punctuation marks in the test text data and the recognized text data;

[0138] In response to the presence of replaced punctuation marks in the test text data, the number of replaced punctuation marks is determined;

[0139] Based on the positions of the corresponding punctuation marks in the test text data and the recognized text data, determine whether there are any removed punctuation marks in the test text data;

[0140] In response to the presence of removed punctuation marks in the test text data, the number of removed punctuation marks is determined;

[0141] Determine whether there are inserted punctuation marks in the test text data based on the positions of the corresponding punctuation marks in the test text data and the recognized text data;

[0142] In response to the presence of inserted punctuation marks in the test text data, the number of inserted punctuation marks is determined;

[0143] The accuracy rate of the second character is determined based on the total number of characters, the number of characters replaced, the number of characters removed, the number of characters inserted, the number of punctuation marks replaced, the number of punctuation marks removed, and the number of punctuation marks inserted, and the quantitative value corresponding to the accuracy rate of the second character is used as the evaluation data.

[0144] In one possible implementation, the evaluation metrics include: the accuracy rate of the first sentence;

[0145] The test module is further configured as follows:

[0146] Determine whether at least one first target statement exists in the test text data; wherein, the first target statement is a set of texts in which there are replaced, removed, or inserted texts between two adjacent punctuation marks;

[0147] In response to the presence of at least one first target statement in the test text data, the number of the first target statements is determined;

[0148] The total number of sentences in the test text data is determined based on the set of characters between two adjacent punctuation marks in the test text data.

[0149] The accuracy rate of the first sentence is determined based on the number of the first target sentences and the total number of sentences, and the quantitative value corresponding to the accuracy rate of the first sentence is used as the evaluation data.

[0150] In one possible implementation, the evaluation metrics include: the accuracy rate of the second sentence;

[0151] The test module is further configured as follows:

[0152] Determine whether there is at least one second target statement in the test text data; wherein, the second target statement is a set of text and punctuation marks in which there are replaced text, removed text, inserted text, replaced punctuation marks, removed punctuation marks, or inserted punctuation marks between two adjacent punctuation marks.

[0153] In response to the presence of at least one second target statement in the test text data, the number of the second target statements is determined;

[0154] The accuracy rate of the second sentence is determined based on the number of the second target sentences and the total number of sentences, and the quantitative value corresponding to the accuracy rate of the second sentence is used as the evaluation data.

[0155] In one possible implementation, the evaluation module is further configured as follows:

[0156] All the speech recognition models are sorted according to the evaluation data from high to low based on the evaluation index, and the ranking of each speech recognition model is determined.

[0157] The total score for each speech recognition model is determined by assigning scores to each speech recognition model in descending order of its ranking.

[0158] In one possible implementation, the evaluation metrics include at least any two of the following metrics: first character accuracy, second character accuracy, first sentence accuracy, and second sentence accuracy.

[0159] The evaluation module is further configured as follows:

[0160] All the speech recognition models are sorted in descending order of the evaluation data according to one of the evaluation indicators, and the first ranking corresponding to each speech recognition model is determined.

[0161] All the speech recognition models are sorted in descending order of the evaluation data according to the other evaluation index, and a second ranking is determined for each speech recognition model.

[0162] Based on the first ranking corresponding to each speech recognition model, scores are assigned to each speech recognition model in descending order to determine the first score corresponding to each speech recognition model;

[0163] Based on the second ranking corresponding to each speech recognition model, scores are assigned to each speech recognition model in descending order to determine the second score corresponding to each speech recognition model;

[0164] The total score for each speech recognition model is determined by summing the first score and the second score for each speech recognition model.

[0165] In one possible implementation, the evaluation module is further configured as follows:

[0166] The current dimension of the test audio data is determined based on the initial audio data; wherein, the current dimension includes at least one of the following: accent, volume, speech rate, dialect type, single / multi-person dialogue scenario and / or language.

[0167] The first weighted score of the speech recognition model under each current dimension is determined by performing a weighting operation based on the pre-set weight value corresponding to the current dimension and the first score corresponding to each speech recognition model.

[0168] The second weighted score of the speech recognition model under each current dimension is determined by performing a weighting operation based on the pre-set weight value corresponding to the current dimension and the second score corresponding to each speech recognition model.

[0169] The total score for each speech recognition model is determined based on the sum of all first-weighted scores and all second-weighted scores for each speech recognition model.

[0170] In one possible implementation, the evaluation module is further configured as follows:

[0171] The current dimension of the test audio data is determined based on the initial audio data; wherein, the current dimension includes at least one of the following: accent, volume, speech rate, dialect type, single / multi-person dialogue scenario and / or language.

[0172] In response to the fact that the ranking of the speech recognition model in the current dimension is the lowest, based on the pre-set defect level corresponding to the current dimension, the defect level is assigned to the first score corresponding to the speech recognition model in the current dimension to determine the first defect score; wherein, the first defect score is less than the first score.

[0173] In one possible implementation, the determining module is further configured as follows:

[0174] Normalization is performed on the initial audio data.

[0175] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0176] The apparatus described above is used to implement the corresponding speech recognition model selection method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0177] Figure 3 This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application.

[0178] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the speech recognition model selection method described in any of the above embodiments. Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 310, a memory 320, an input / output interface 330, a communication interface 340, and a bus 350. The processor 310, memory 320, input / output interface 330, and communication interface 340 are interconnected internally via the bus 350.

[0179] The processor 310 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0180] The memory 320 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 320 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 320 and is called and executed by the processor 310.

[0181] Input / output interface 330 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0182] The communication interface 340 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0183] Bus 350 includes a pathway for transmitting information between various components of the device (e.g., processor 310, memory 320, input / output interface 330, and communication interface 340).

[0184] It should be noted that although the above-described device only shows the processor 310, memory 320, input / output interface 330, communication interface 340, and bus 350, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0185] The electronic devices described above are used to implement the corresponding speech recognition model selection method in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0186] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the speech recognition model selection method as described in any of the above embodiments.

[0187] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0188] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the speech recognition model selection method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0189] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0190] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0191] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0192] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for selecting a speech recognition model, characterized in that, include: Evaluation indicators were constructed based on the decision tree model; Preprocessing is performed on the pre-recorded initial audio data to determine the test audio data, and test text data corresponding to the test audio data is determined based on the initial text data corresponding to the initial audio data. For each pre-acquired speech recognition model The test audio data is input into the speech recognition model to determine the text data to be recognized. The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data; Each speech recognition model is ranked according to the evaluation metrics based on multiple evaluation data to determine the total score corresponding to each speech recognition model; The speech recognition model with the highest total score for each speech recognition model is selected as the target speech recognition model.

2. The method according to claim 1, characterized in that, The test audio data includes: speed change test audio data; The preprocessing operation on the pre-recorded initial audio data to determine the test audio data includes: The initial audio data was recorded at a normal speech rate; The initial audio data is adjusted according to the speed change parameters to determine the speed change test audio data; wherein, the speech rate of the speed change test audio data is expressed as... in, Indicates normal speech speed. This indicates the speed change parameters.

3. The method according to claim 1, characterized in that, The test audio data includes: variable volume test audio data; The preprocessing operation on the pre-recorded initial audio data to determine the test audio data includes: Determine the current volume of the initial audio data obtained from the recording; The initial audio data is adjusted according to the volume adjustment parameters to determine the variable volume test audio data; wherein, the volume of the variable volume test audio data is represented as... in, This indicates the current volume of the initial audio data. This refers to the volume adjustment parameters.

4. The method according to claim 1, characterized in that, The test audio data includes: mixed test audio data; The preprocessing operation on the pre-recorded initial audio data to determine the test audio data includes: Determine the noise audio data and the recorded initial audio data; The noise audio data and the initial audio data are mixed and superimposed to determine the mixed test audio data.

5. The method according to claim 1, characterized in that, The initial audio data includes one or more of the following: audio data with different accents, audio data of multi-person dialogue scenarios, or audio data in different languages.

6. The method according to claim 1, characterized in that, The evaluation metrics include: the accuracy rate of the first character; For each pre-acquired speech recognition model, determining the evaluation data of the speech recognition model on the evaluation metrics based on the test text data and the recognized text data includes: Based on the corresponding text positions of the test text data and the recognized text data, determine whether there are replaced characters in the test text data; In response to the presence of replaced text in the test text data, the number of replaced texts is determined; Based on the corresponding text positions of the test text data and the recognized text data, determine whether there are any removed text characters in the test text data; In response to the presence of removed text in the test text data, the number of removed text is determined; Based on the corresponding text positions of the test text data and the recognized text data, determine whether there is inserted text in the test text data; In response to the presence of inserted text in the test text data, the number of inserted text is determined; The total number of characters in the test text data is determined. The first character accuracy rate is determined based on the total number of characters, the number of replaced characters, the number of removed characters, and the number of inserted characters. The quantized value corresponding to the first character accuracy rate is used as the evaluation data.

7. The method according to claim 6, characterized in that, The evaluation metrics include: accuracy rate of the second character; For each pre-acquired speech recognition model, determining the evaluation data of the speech recognition model on the evaluation metrics based on the test text data and the recognized text data includes: Determine whether there are replaced punctuation marks in the test text data based on the positions of the corresponding punctuation marks in the test text data and the recognized text data; In response to the presence of replaced punctuation marks in the test text data, the number of replaced punctuation marks is determined; Based on the positions of the corresponding punctuation marks in the test text data and the recognized text data, determine whether there are any removed punctuation marks in the test text data; In response to the presence of removed punctuation marks in the test text data, the number of removed punctuation marks is determined; Determine whether there are inserted punctuation marks in the test text data based on the positions of the corresponding punctuation marks in the test text data and the recognized text data; In response to the presence of inserted punctuation marks in the test text data, the number of inserted punctuation marks is determined; The accuracy rate of the second character is determined based on the total number of characters, the number of characters replaced, the number of characters removed, the number of characters inserted, the number of punctuation marks replaced, the number of punctuation marks removed, and the number of punctuation marks inserted, and the quantitative value corresponding to the accuracy rate of the second character is used as the evaluation data.

8. The method according to claim 6, characterized in that, The evaluation metrics include: the accuracy rate of the first sentence; For each pre-acquired speech recognition model, determining the evaluation data of the speech recognition model on the evaluation metrics based on the test text data and the recognized text data includes: Determine whether at least one first target statement exists in the test text data; wherein, the first target statement is a set of texts in which there are replaced, removed, or inserted texts between two adjacent punctuation marks; In response to the presence of at least one first target statement in the test text data, the number of the first target statements is determined; The total number of sentences in the test text data is determined based on the set of characters between two adjacent punctuation marks in the test text data. The accuracy rate of the first sentence is determined based on the number of the first target sentences and the total number of sentences, and the quantitative value corresponding to the accuracy rate of the first sentence is used as the evaluation data.

9. The method according to claim 7, characterized in that, The evaluation metrics include: the accuracy rate of the second sentence; For each pre-acquired speech recognition model, determining the evaluation data of the speech recognition model on the evaluation metrics based on the test text data and the recognized text data includes: Determine whether there is at least one second target statement in the test text data; wherein, the second target statement is a set of text and punctuation marks in which there are replaced text, removed text, inserted text, replaced punctuation marks, removed punctuation marks, or inserted punctuation marks between two adjacent punctuation marks. In response to the presence of at least one second target statement in the test text data, the number of the second target statements is determined; The accuracy rate of the second sentence is determined based on the number of the second target sentences and the total number of sentences, and the quantitative value corresponding to the accuracy rate of the second sentence is used as the evaluation data.

10. The method according to claim 1, characterized in that, The step of ranking each speech recognition model according to multiple evaluation data points on evaluation metrics to determine the total score corresponding to each speech recognition model includes: All the speech recognition models are sorted according to the evaluation data from high to low based on the evaluation index, and the ranking of each speech recognition model is determined. The total score for each speech recognition model is determined by assigning scores to each speech recognition model in descending order of its ranking.

11. The method according to claim 1, characterized in that, The evaluation indicators include at least any two of the following indicators: first character accuracy rate, second character accuracy rate, first sentence accuracy rate, and second sentence accuracy rate; The step of ranking each speech recognition model according to multiple evaluation data points on evaluation metrics to determine the total score corresponding to each speech recognition model includes: All the speech recognition models are sorted in descending order of the evaluation data according to one of the evaluation indicators, and the first ranking corresponding to each speech recognition model is determined. Based on the evaluation data, all the speech recognition models are sorted in descending order of their evaluation values ​​according to another evaluation metric, and a second ranking is determined for each speech recognition model. Based on the first ranking corresponding to each speech recognition model, scores are assigned to each speech recognition model in descending order to determine the first score corresponding to each speech recognition model; Based on the second ranking corresponding to each speech recognition model, scores are assigned to each speech recognition model in descending order to determine the second score corresponding to each speech recognition model; The total score for each speech recognition model is determined by summing the first score and the second score for each speech recognition model.

12. The method according to claim 11, characterized in that, The step of determining the total score for each speech recognition model based on the sum of the first score and the second score for each speech recognition model includes: The current dimension of the test audio data is determined based on the initial audio data; wherein, the current dimension includes at least one of the following: accent, volume, speech rate, dialect type, single / multi-person dialogue scenario and / or language. The first weighted score of the speech recognition model under each current dimension is determined by performing a weighting operation based on the pre-set weight value corresponding to the current dimension and the first score corresponding to each speech recognition model. The second weighted score of the speech recognition model under each current dimension is determined by performing a weighting operation based on the pre-set weight value corresponding to the current dimension and the second score corresponding to each speech recognition model. The total score for each speech recognition model is determined based on the sum of all first-weighted scores and all second-weighted scores for each speech recognition model.

13. The method according to claim 11, characterized in that, The step of assigning scores to each speech recognition model in descending order based on its first ranking to determine the first score for each speech recognition model includes: The current dimension of the test audio data is determined based on the initial audio data; wherein, the current dimension includes at least one of the following: accent, volume, speech rate, dialect type, single / multi-person dialogue scenario and / or language. In response to the fact that the ranking of the speech recognition model in the current dimension is the lowest, based on the pre-set defect level corresponding to the current dimension, the defect level is assigned to the first score corresponding to the speech recognition model in the current dimension to determine the first defect score; wherein, the first defect score is less than the first score.

14. The method according to claim 1, characterized in that, Before performing preprocessing operations on the pre-recorded initial audio data to determine the test audio data, the method further includes: Normalization is performed on the initial audio data.

15. A speech recognition model selection device, characterized in that, include: The module is configured to build evaluation metrics based on the decision tree model; The determination module is configured to perform preprocessing operations on pre-recorded initial audio data to determine test audio data, and to determine test text data corresponding to the test audio data based on initial text data corresponding to the initial audio data; The testing module is configured to test each pre-acquired speech recognition model. The test audio data is input into the speech recognition model to determine the text data to be recognized. The evaluation data of the speech recognition model on the evaluation index is determined based on the test text data and the recognized text data; The evaluation module is configured to sort each speech recognition model on evaluation metrics based on multiple evaluation data to determine the total score corresponding to each speech recognition model; The selection module is configured to select the speech recognition model with the highest total score for each speech recognition model as the target speech recognition model.

16. 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 computer program, it implements the method as described in any one of claims 1 to 14.

17. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to implement the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Speech recognition result evaluation method, device and equipment and storage medium

    CN112151014A

  • Acoustic model training method for high-precision continuous speech recognition

    CN113707135A

  • Off-line voice quality inspection method and system, electronic equipment and storage medium

    CN114783442A

  • Speech recognition model training method and device, electronic equipment and storage medium

    CN115116443A