Voice data processing method and device, storage medium and electronic device
By identifying and correcting misrecognition data in voice interaction in smart appliances, and using multiple speech recognition algorithms for re-recognition and score calculation, the problem of speech recognition errors in smart appliances is solved and recognition accuracy and user experience are improved.
Patent Information
- Application Number
- CN202210302059.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-25
AI Technical Summary
When smart appliances recognize incorrect voice data during voice interaction, they cannot effectively recognize it again, affecting the user experience.
By determining the misrecognized speech data from the voice interaction data, multiple speech recognition algorithms are used for re-recognition, and the scores of each recognition result are calculated according to the preset algorithm, and the result with the largest score is selected as the final recognition result to ensure the accuracy of the recognition results. sex.
It realizes the automatic extraction and correction of incorrectly recognized voice data in voice interaction with smart appliances, improves the accuracy of voice recognition and improves user experience.
Smart Images

Figure CN114842871B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular, to a method and device for processing voice data, a storage medium, and an electronic device. Background Art
[0002] When smart appliances perform voice interaction, voice recognition errors or unrecognition problems sometimes occur, affecting the user experience.
[0003] In related technologies, the accuracy of speech recognition is usually improved from aspects such as algorithms, application scenarios and model data. Specifically, it includes: continuously optimizing speech recognition algorithms, training speech recognition for users with different accents, etc. However, the above technical solutions only optimize one problem, and speech recognition not only depends on the performance of the product, but also needs to take into account the actual situation of users. Users may have strong regional accents, so the above solutions cannot really meet the needs of users.
[0004] Regarding the related art, when erroneous voice data is recognized during the voice interaction process of smart appliances, the erroneous voice data cannot be recognized again, and no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for processing voice data, a storage medium, and an electronic device to at least solve the problem of voice recognition errors that occur during voice interaction with smart appliances in the related art.
[0006] According to one embodiment of the embodiments of the present application, a method for processing voice data is provided, including: determining misrecognized voice data from voice interaction data; re-recognizing the misrecognized voice data through multiple voice recognition algorithms respectively to obtain multiple first recognition results; calculating the scores of the multiple first recognition results according to a preset algorithm, and determining the first recognition result with the largest score as the recognition result of the misrecognized voice data.
[0007] In an exemplary embodiment, determining misrecognized voice data from voice interaction data includes at least one of the following steps: receiving a feedback instruction from a first object for a control operation, and determining the misrecognized voice data based on the feedback instruction, wherein the control operation is an operation in response to first voice interaction data of the first object; determining the misrecognized voice data based on the amount of second voice interaction data of the first object received within a preset time; wherein the voice interaction data includes at least one of the following: first voice interaction data, second voice interaction data.
[0008] In an exemplary embodiment, a feedback instruction of a first object regarding a control operation is received, and misrecognized voice data is determined based on the feedback instruction, including: recognizing the first voice interaction data based on a preset voice recognition algorithm to obtain a control operation corresponding to the first voice interaction data; receiving a feedback instruction sent by the first object based on the control operation; and determining that the first voice data is misrecognized voice data when the feedback instruction includes preset keywords.
[0009] In an exemplary embodiment, misrecognized voice data is determined based on the amount of the second voice interaction data of the first object received within a preset time, including: calculating the amount of the second voice interaction data within the preset time through a streaming computing algorithm; and determining that the second voice interaction data within the preset time is misrecognized voice data when the amount of the second voice interaction data within the preset time is greater than a first preset threshold.
[0010] In an exemplary embodiment, the scores of the multiple first recognition results are calculated according to a preset algorithm, including: obtaining algorithm coefficients of the multiple speech recognition algorithms from a configuration center, and using the algorithm coefficients of the multiple speech recognition algorithms as the first scores of the multiple first recognition results, wherein the algorithm coefficients are used to indicate the maturity of the multiple speech recognition algorithms, and the configuration center is used to store the algorithm coefficients; determining a third recognition result with the same recognition result among the multiple first recognition results, and other recognition results among the multiple first recognition results except the third recognition result; obtaining multiple first scores corresponding to the third recognition result, using the sum of the multiple first scores as the score of the third recognition result, and using the first scores corresponding to the other recognition results as the scores of the other recognition results.
[0011] In an exemplary embodiment, before determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method further includes: obtaining the score of the first recognition result with the largest score, determining whether the score is greater than a second preset threshold, wherein the second preset threshold indicates a valid value of the score of the first recognition result; and when the score is greater than the second preset threshold, determining the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0012] In an exemplary embodiment, after calculating the scores of the multiple first recognition results according to a preset algorithm and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method further includes: determining the recognition result of the misrecognized speech data as a label of the misrecognized speech data; using multiple misrecognized speech data and the labels corresponding to the multiple misrecognized speech data as training samples, and adjusting the parameters of the speech recognition algorithm according to the training samples to obtain an adjusted speech recognition algorithm.
[0013] According to another embodiment of the embodiment of the present application, a speech data processing device is also provided, including: a determination module, used to determine misrecognized speech data from speech interaction data; a recognition module, used to re-recognize the misrecognized speech data through multiple speech recognition algorithms respectively, to obtain multiple first recognition results; a calculation module, used to calculate the scores of the multiple first recognition results according to a preset algorithm, and determine the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0014] According to another aspect of an embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for processing speech data when running.
[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the voice data processing method through the computer program.
[0016] In an embodiment of the present application, misrecognized voice data is determined from voice interaction data; and the misrecognized voice data is re-recognized respectively through a plurality of voice recognition algorithms to obtain a plurality of first recognition results; the scores of the plurality of first recognition results are respectively calculated and sorted according to a preset algorithm, and the first recognition result with the largest score is determined as the recognition result of the misrecognized voice data to ensure that the obtained recognition result is closest to the correct result; the above-mentioned technical solution is adopted to solve the problem in the related art that, in the voice interaction process of the smart appliance, when misrecognized voice data appears, the erroneous voice data cannot be recognized again. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1It is a hardware structure block diagram of a voice interaction device of an optional voice data processing method of an embodiment of the present application;
[0019] Figure 2 It is a flowchart of an optional method for processing voice data according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of the overall structure of an optional voice interaction device according to an embodiment of the present application;
[0021] Figure 4 is a flowchart of an optional method for determining misrecognized speech data according to an embodiment of the present application;
[0022] Figure 5 is a flowchart of another optional method for determining misrecognized speech data according to an embodiment of the present application;
[0023] Figure 6 is a flow chart of an optional method for determining a recognition result of misrecognized speech data according to an embodiment of the present application;
[0024] Figure 7 It is a structural block diagram of another optional voice data processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] The method embodiment provided in the embodiment of the present application can be executed on a voice interaction device or a similar computing system. Taking running on a voice interaction device as an example, Figure 1 1 is a hardware structure block diagram of a voice interaction device of a method for processing voice data in an embodiment of the present application. Figure 1 As shown, the voice interaction device may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing system such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned voice interaction device may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned voice interaction device. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.
[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for processing voice data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage systems, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the voice data via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0029] The transmission system 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the voice interaction device. In one example, the transmission system 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet.
[0030] In this embodiment, a method for processing voice data is provided, which is applied to the above-mentioned voice interaction device. Figure 2 : is a flowchart of an optional method for processing voice data according to an embodiment of the present application, the process comprising the following steps:
[0031] Step S202, determining misrecognized voice data from the voice interaction data;
[0032] Step S204, re-recognizing the misrecognized voice data using a plurality of voice recognition algorithms to obtain a plurality of first recognition results;
[0033] Step S206, calculating the scores of the plurality of first recognition results according to a preset algorithm, and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0034] Through the above steps, misidentified voice data is determined from the voice interaction data; the misidentified voice data is re-identified by multiple voice recognition algorithms to obtain multiple first recognition results; the scores of the multiple first recognition results are calculated and sorted according to a preset algorithm, and when it is determined that the highest score exceeds a preset threshold, the first recognition result with the largest score is determined as the recognition result of the misidentified voice data to ensure that the obtained recognition result is closest to the correct result; the above technical solution is adopted to solve the problem in the related technology that, during the voice interaction process of the smart appliance, when misidentified voice data appears, the erroneous voice data cannot be recognized again, thereby achieving the technical effect of automatically extracting and correcting misidentified voice data.
[0035] It should be noted that the above-mentioned determination of misrecognized voice data from voice interaction data can be understood as determining misrecognized voice data from a large amount of actual voice interaction data of users.
[0036] It should be noted that the above-mentioned multiple speech recognition algorithms can be self-developed speech recognition algorithms or speech recognition services provided by a third party, and this application does not impose any restrictions on this.
[0037] In an exemplary embodiment, determining misrecognized voice data from voice interaction data includes at least one of the following steps: receiving a feedback instruction from a first object for a control operation, and determining the misrecognized voice data based on the feedback instruction, wherein the control operation is an operation in response to first voice interaction data of the first object; determining the misrecognized voice data based on the amount of second voice interaction data of the first object received within a preset time; wherein the voice interaction data includes at least one of the following: first voice interaction data, second voice interaction data.
[0038] In order to determine the misrecognized voice data from a large amount of actual voice interaction data of users, the present application proposes the following two methods: after executing the recognized instruction, by receiving the feedback instruction that may be issued by the user, the first voice interaction data indicated by the feedback instruction is determined as misrecognized voice data; the voice interaction data is statistically judged by a streaming computing method, and the second voice interaction data that meets the conditions is determined as misrecognized voice data; wherein the first voice interaction data and the second voice interaction data both belong to voice interaction data, that is, both are actual voice interaction data of users; the present application determines the misrecognized voice interaction data from a large amount of actual voice interaction data of users through at least one of the above methods.
[0039] It should be noted that the above method for determining misrecognized voice data may also include: determining data with no recognition results in the voice recognition process as misrecognized voice data, or determining voice interaction data whose recognition results cannot be parsed as misrecognized voice data, and this application does not impose any restrictions on this.
[0040] Based on the above process, a feedback instruction of the first object for a control operation is received, and misrecognized voice data is determined according to the feedback instruction, including: recognizing the first voice interaction data according to a preset voice recognition algorithm to obtain the control operation corresponding to the first voice interaction data; receiving a feedback instruction sent by the first object according to the control operation; and determining that the first voice data is misrecognized voice data when the feedback instruction includes preset keywords.
[0041] During the voice interaction process, the voice interaction device first performs voice recognition on the first voice interaction data through a preset voice recognition algorithm to obtain a recognition result of the first voice interaction data, and then determines the control operation corresponding to the recognition result, and controls the voice interaction device to perform the control operation; after the voice interaction device completes the control operation, it receives a feedback instruction sent by the first object according to the result after the voice interaction device completes the control operation, and determines whether the feedback instruction contains preset keywords, such as "recognition error", "wrong", etc.; if the feedback instruction contains preset keywords, it is determined that the first voice interaction data is misrecognized voice data.
[0042] In addition, based on the number of the second voice interaction data of the first object received within a preset time, the misrecognized voice data is determined, including: calculating the number of the second voice interaction data within the preset time through a streaming computing algorithm; when the number of the second voice interaction data within the preset time is greater than a first preset threshold, determining that the second voice interaction data within the preset time is misrecognized voice data.
[0043] In the actual interaction process, if the user finds that the voice interaction device has misidentified the voice command, the user will issue the voice command again until the recognition is correct. Therefore, it can be judged whether misidentification has occurred based on this point. By using big data processing technology, the second voice interaction data of users in a specific time window is counted by device in a streaming manner. When it is judged that the number of second voice interaction data exceeds the first preset threshold, it is an abnormal interaction process, and the voice interaction data in the time window is determined as misidentified voice data. Specifically, for example, when the number of second voice interaction data within one minute exceeds 3 times, all second voice interaction data within this minute will be marked as error data and wait for the next step of processing, so as to obtain misidentified voice data more accurately.
[0044] In an exemplary embodiment, the scores of the multiple first recognition results are calculated according to a preset algorithm, including: obtaining algorithm coefficients of the multiple speech recognition algorithms from a configuration center, and using the algorithm coefficients of the multiple speech recognition algorithms as the first scores of the multiple first recognition results, wherein the algorithm coefficients are used to indicate the maturity of the multiple speech recognition algorithms, and the configuration center is used to store the algorithm coefficients; determining a third recognition result with the same recognition result among the multiple first recognition results, and other recognition results among the multiple first recognition results except the third recognition result; obtaining multiple first scores corresponding to the third recognition result, using the sum of the multiple first scores as the score of the third recognition result, and using the first scores corresponding to the other recognition results as the scores of the other recognition results.
[0045] After re-identifying the misrecognized voice data through multiple voice recognition algorithms to obtain multiple first recognition results, it is necessary to determine the most likely correct first recognition result, so the recognition results are sorted by calculating the scores; first, the corresponding algorithm coefficients of the multiple voice recognition algorithms are obtained from the configuration center, and the algorithm coefficients are used to indicate the maturity of the voice recognition algorithm. The more mature the voice recognition algorithm, the higher the algorithm coefficient; the algorithm coefficient corresponding to each voice recognition algorithm is used as the first score corresponding to the first recognition result obtained by each voice recognition algorithm for recognizing the misrecognized voice data; each identical first recognition result is classified into multiple third recognition results, and the sum of the multiple first scores corresponding to each third recognition result is used as the score of the corresponding third recognition result; specifically, the misrecognized voice data is re-identified according to six voice recognition algorithms, and the multiple first recognition results obtained are: a, a, b, b, b, c; the algorithm coefficients corresponding to the six voice recognition algorithms are: A, B, C, D, E, F; then the third recognition results are: a, b, c; the scores of the third recognition results are: a=A+B; b=C+D+E.
[0046] It should be noted that the above-mentioned configuration center can also be used to store the second preset threshold and other configuration data, which is not limited in this application.
[0047] Furthermore, before determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method also includes: obtaining the score of the first recognition result with the largest score, and determining whether the score is greater than a second preset threshold, wherein the second preset threshold indicates a valid value of the score of the first recognition result; and when the score is greater than the second preset threshold, determining the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0048] In order to avoid using an erroneous recognition result as the recognition result of misrecognized speech data and to prevent the situation where multiple speech recognition algorithms all make incorrect recognition errors, after obtaining the scores of each first recognition result, the score of the first recognition result with the largest score is determined, and the score value is judged to determine whether it is greater than a second preset threshold. The second preset threshold indicates the valid value of the score of the first recognition result. Only when the score value is greater than the second preset threshold, the score of the first recognition result is a valid score, that is, the first recognition result is determined to be the correct recognition result of the misrecognized speech data.
[0049] Based on the above process, after calculating the scores of the multiple first recognition results according to a preset algorithm and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method also includes: determining the recognition result of the misrecognized speech data as the label of the misrecognized speech data; using multiple misrecognized speech data and the labels corresponding to the multiple misrecognized speech data as training samples, and adjusting the parameters of the speech recognition algorithm according to the training samples to obtain an adjusted speech recognition algorithm.
[0050] In order to continuously optimize the speech recognition algorithm and avoid the same misrecognition from happening again, after obtaining the recognition result of the misrecognized speech data, the recognition result of the misrecognized speech data is determined as the label of the misrecognized speech data, and a large amount of misrecognized speech data and its corresponding labels are used as training samples. The parameters of the speech recognition algorithm are adjusted according to the training samples to continuously optimize the speech recognition algorithm, so as to continuously improve the recognition accuracy of the speech recognition algorithm and bring better user experience.
[0051] Figure 3 is a schematic diagram of the overall structure of an optional voice interaction device in an embodiment of the present application, such as Figure 3 As shown, the specific functions of each part of the structure are as follows:
[0052] Error data screening module: Screen out the data with recognition errors from a large amount of actual user voice interaction data. Specifically, it can include but is not limited to the following methods:
[0053] (1) Determining voice interaction data without recognition results or voice interaction data whose recognition results cannot be parsed as misrecognized voice data;
[0054] (2) Adding a voice error detection entry to the smart appliance: After recognizing and executing the user's voice command, the voice error detection entry of the smart appliance is opened to receive the erroneous voice command that the user may issue. When receiving the erroneous voice command, the voice interaction data (equivalent to the first voice interaction data) is determined as the erroneous recognition voice data;
[0055] (3) In apps, websites, and other places that provide services to users, provide users with operation history records. Users can use the error marking function to mark a certain voice interaction as misrecognition, that is, to determine the voice interaction data of the voice interaction as misrecognition voice data;
[0056] (4) Add an automatic determination method: Use big data processing technology to perform streaming calculations on a large amount of user voice interaction data, and count the user voice interaction data in a specific time window by device. When the number of voice interaction data in the specific time window exceeds a certain threshold, the voice interaction data in the specific time window (equivalent to the above-mentioned second voice interaction data) is determined as misrecognized voice data.
[0057] Recognition result error correction module: After obtaining the misrecognized voice data, the obtained misrecognized voice data is input into the recognition result error correction module for recognition and error correction. The misrecognized voice data is re-recognized by multiple voice recognition algorithms respectively, and the corresponding recognition results are scored according to the algorithm coefficients of each voice recognition algorithm. The scores of the same recognition results are summed and sorted, and the recognition result with the highest score is obtained. It is determined whether the score of the recognition result exceeds a certain threshold to ensure the credibility of the result. If the score exceeds the preset threshold, the recognition result is used as the correct recognition result (equivalent to the recognition result of the above-mentioned misrecognized voice data); if the score does not exceed the preset threshold, the result is eliminated to prevent interference with normal data.
[0058] Training data push module: sends the misrecognized speech data and the correct recognition results (equivalent to the recognition results of the above-mentioned misrecognized speech data) to each speech recognition training database for adjusting the speech recognition training model, thereby optimizing the speech recognition algorithm and improving the recognition accuracy.
[0059] Configuration center module: used to store parameters such as algorithm coefficients and score thresholds.
[0060] Through the above module, a large amount of user voice data is sent to the error data screening module to determine the misrecognized voice data, and the misrecognized voice data is sent to the recognition result correction module for re-recognition. The recognition result correction module re-recognizes the misrecognized voice data through multiple voice recognition algorithms, and assigns the algorithm coefficient of each voice recognition algorithm to the corresponding recognition result as a score, and sums the scores of the same recognition results as the score of the recognition result, obtains the recognition result with the highest score, and determines whether the score exceeds the score threshold. If the score threshold is exceeded, the recognition result is determined to be the correct recognition result (equivalent to the recognition result of the above-mentioned misrecognized voice data), and the misrecognized voice data and the correct recognition result (equivalent to the recognition result of the above-mentioned misrecognized voice data) are sent together to the voice recognition training database for adjusting the voice recognition training model. The above technical solution is adopted to solve the problems of voice recognition errors occurring during voice interaction of smart appliances in the related technology, and achieve the technical effect of automatically extracting and correcting voice data with recognition errors.
[0061] Figure 4 is a flow chart of an optional method for determining misrecognized speech data according to an embodiment of the present application, such as Figure 4 As shown, the specific steps are as follows:
[0062] Step S402: The user speaks “It’s too hot”;
[0063] Step S404: the voice interaction device, i.e., the smart air conditioner, recognizes "a little hotter";
[0064] Step S406: Execute raising the air conditioner temperature and play a voice message "The temperature has been raised by 1 degree";
[0065] Step S408: After the user finds that the smart air conditioner has made a recognition error, a voice prompt "You heard it wrong / You have made a recognition error" is added;
[0066] Step S410: The smart air conditioner receives the voice prompt, determines the voice interaction data as misrecognized voice data, and plays a reply voice "Your error message has been received."
[0067] In an embodiment of the present invention, through the above steps, the voice interaction device receives the voice issued by the user, recognizes the instruction corresponding to the voice and executes it, and opens the error judgment entrance. The user issues a voice prompt after discovering that the voice interaction device has made a recognition error. The voice interaction device receives the voice prompt through the error judgment entrance and determines the voice interaction data as misrecognized voice data. The above technical solution is adopted to solve the problems of voice recognition errors occurring during voice interaction of smart appliances in related technologies, and achieves the technical effect of automatically extracting and correcting misrecognized voice data.
[0068] According to another optional embodiment of the present application, a flowchart of another optional method for determining misrecognized speech data is provided, such as: Figure 5 As shown:
[0069] Perform streaming computing on a large amount of user voice interaction data, count the number of voice interaction data within a specific time window (for example, 1 minute) by device, filter out devices that exceed a certain threshold in each time window, and determine the voice interaction data associated with the device as misidentified voice data, that is, the voice interaction data within the time window that exceeds a certain threshold is determined as misidentified voice data.
[0070] It is understandable that in the actual voice interaction process, when the smart appliance does not execute or does not correctly execute the user's intention, the user will perform voice interaction again, so there will be multiple voice interactions in a short period of time; by using streaming computing methods to accurately count the voice interaction data that meets the conditions, the misrecognized voice data can be determined.
[0071] Figure 6 FIG. 1 is a flow chart of an optional method for determining a recognition result of misrecognized speech data according to an embodiment of the present application. Figure 6 As shown:
[0072] The acquired misrecognized speech data is input into a plurality of speech recognition algorithms for re-recognition respectively to obtain a plurality of first recognition results, and the score of each recognition result is calculated by the algorithm coefficient of each speech recognition algorithm; for example, three speech recognition algorithms are used for re-recognition, and the algorithm coefficients corresponding to the three speech recognition algorithms are: algorithm 1 coefficient, algorithm 2 coefficient, algorithm 3 coefficient, respectively; the recognition results obtained by the re-recognition of the three speech recognition algorithms are: a, b, a, respectively; that is, if the recognition results obtained by algorithm 1 and algorithm 3 are the same, then the score of recognition result a is: algorithm 1 coefficient + algorithm 3 coefficient; the score of recognition result b is: algorithm 2 coefficient; the scores of the recognition results are sorted by size, and the result with the highest recognition result score is taken to determine whether the score exceeds a certain threshold, if so, the recognition result is regarded as the correct recognition result, if not, the result is discarded to ensure the credibility of the result.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0074] Figure 7 is a structural block diagram of a voice data processing device according to an embodiment of the present application; Figure 7 As shown, including:
[0075] A determination module 72, configured to determine misrecognized speech data from the speech interaction data;
[0076] A recognition module 74, configured to re-recognize the misrecognized voice data using a plurality of voice recognition algorithms to obtain a plurality of first recognition results;
[0077] The calculation module 76 is used to calculate the scores of the multiple first recognition results according to a preset algorithm, and determine the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0078] Through the above-mentioned device, misidentified voice data is determined from the voice interaction data; the misidentified voice data is re-identified respectively through a plurality of voice recognition algorithms to obtain a plurality of first recognition results; the scores of the plurality of first recognition results are calculated and sorted respectively according to a preset algorithm, and when it is determined that the highest score exceeds a preset threshold, the first recognition result with the largest score is determined as the recognition result of the misidentified voice data to ensure that the obtained recognition result is closest to the correct result; the above-mentioned technical solution is adopted to solve the problem in the related technology that, in the voice interaction process of the smart appliance, when misidentified voice data appears, the erroneous voice data cannot be recognized again, thereby achieving the technical effect of automatically extracting and correcting the misidentified voice data.
[0079] In an exemplary embodiment, the determination module is also used to determine misrecognized voice data from the voice interaction data through at least one of the following steps: receiving a feedback instruction from the first object for a control operation, and determining the misrecognized voice data based on the feedback instruction, wherein the control operation is an operation in response to the first voice interaction data of the first object; determining the misrecognized voice data based on the amount of second voice interaction data of the first object received within a preset time; wherein the voice interaction data includes at least one of the following: first voice interaction data, second voice interaction data.
[0080] In order to determine the misrecognized voice data from a large amount of actual voice interaction data of users, the present application proposes the following two methods: after executing the recognized instruction, by receiving the feedback instruction that may be issued by the user, the first voice interaction data indicated by the feedback instruction is determined as misrecognized voice data; the voice interaction data is statistically judged by a streaming computing method, and the second voice interaction data that meets the conditions is determined as misrecognized voice data; wherein the first voice interaction data and the second voice interaction data both belong to voice interaction data, that is, both are actual voice interaction data of users; the present application determines the misrecognized voice interaction data from a large amount of actual voice interaction data of users through at least one of the above methods.
[0081] Based on the above process, the determination module is also used to identify the first voice interaction data according to a preset voice recognition algorithm to obtain a control operation corresponding to the first voice interaction data; receive a feedback instruction sent by the first object according to the control operation; and when the feedback instruction includes preset keywords, determine that the first voice data is misrecognized voice data.
[0082] During the voice interaction process, the voice interaction device first performs voice recognition on the first voice interaction data through a preset voice recognition algorithm to obtain a recognition result of the first voice interaction data, and then determines the control operation corresponding to the recognition result, and controls the voice interaction device to perform the control operation; after the voice interaction device completes the control operation, it receives a feedback instruction sent by the first object according to the result after the voice interaction device completes the control operation, and determines whether the feedback instruction contains preset keywords, such as "recognition error", "wrong", etc.; if the feedback instruction contains preset keywords, it is determined that the first voice interaction data is misrecognized voice data.
[0083] In addition, the calculation module is also used to calculate the amount of the second voice interaction data within a preset time through a streaming computing algorithm; when the amount of the second voice interaction data within the preset time is greater than the first preset threshold, it is determined that the second voice interaction data within the preset time is misrecognized voice data.
[0084] In the actual interaction process, if the user finds that the voice interaction device has misidentified the voice command, the user will issue the voice command again until the recognition is correct. Therefore, it can be judged whether misidentification has occurred based on this point. By using big data processing technology, the second voice interaction data of users in a specific time window is counted by device in a streaming manner. When it is judged that the number of second voice interaction data exceeds the first preset threshold, it is an abnormal interaction process, and the voice interaction data in the time window is determined as misidentified voice data. Specifically, for example, when the number of second voice interaction data within one minute exceeds 3 times, all second voice interaction data within this minute will be marked as error data and wait for the next step of processing, so as to obtain misidentified voice data more accurately.
[0085] In an exemplary embodiment, the calculation module is also used to obtain the algorithm coefficients of the multiple speech recognition algorithms from the configuration center, and use the algorithm coefficients of the multiple speech recognition algorithms as the first scores of the multiple first recognition results, wherein the algorithm coefficients are used to indicate the maturity of the multiple speech recognition algorithms, and the configuration center is used to store the algorithm coefficients; determine a third recognition result with the same recognition result among the multiple first recognition results, and other recognition results among the multiple first recognition results except the third recognition result; obtain multiple first scores corresponding to the third recognition result, use the sum of the multiple first scores as the score of the third recognition result, and use the first scores corresponding to the other recognition results as the scores of the other recognition results.
[0086] After re-identifying the misrecognized voice data through multiple voice recognition algorithms to obtain multiple first recognition results, it is necessary to determine the most likely correct first recognition result, so the recognition results are sorted by calculating the scores; first, the corresponding algorithm coefficients of the multiple voice recognition algorithms are obtained from the configuration center, and the algorithm coefficients are used to indicate the maturity of the voice recognition algorithm. The more mature the voice recognition algorithm, the higher the algorithm coefficient; the algorithm coefficient corresponding to each voice recognition algorithm is used as the first score corresponding to the first recognition result obtained by each voice recognition algorithm for recognizing the misrecognized voice data; each identical first recognition result is classified into multiple third recognition results, and the sum of the multiple first scores corresponding to each third recognition result is used as the score of the corresponding third recognition result; specifically, the misrecognized voice data is re-identified according to six voice recognition algorithms, and the multiple first recognition results obtained are: a, a, b, b, b, c; the algorithm coefficients corresponding to the six voice recognition algorithms are: A, B, C, D, E, F; then the third recognition results are: a, b, c; the scores of the third recognition results are: a=A+B; b=C+D+E.
[0087] Furthermore, the recognition module is also used to obtain the score of the first recognition result with the largest score, and determine whether the score is greater than a second preset threshold, wherein the second preset threshold indicates a valid value of the score of the first recognition result; when the score is greater than the second preset threshold, determine the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0088] In order to avoid using an erroneous recognition result as the recognition result of misrecognized speech data and to prevent the situation where multiple speech recognition algorithms all make incorrect recognition errors, after obtaining the scores of each first recognition result, the score of the first recognition result with the largest score is determined, and the score value is judged to determine whether it is greater than a second preset threshold. The second preset threshold indicates the valid value of the score of the first recognition result. Only when the score value is greater than the second preset threshold, the score of the first recognition result is a valid score, that is, the first recognition result is determined to be the correct recognition result of the misrecognized speech data.
[0089] Based on the above process, after calculating the scores of the multiple first recognition results according to a preset algorithm and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method also includes: determining the recognition result of the misrecognized speech data as the label of the misrecognized speech data; using multiple misrecognized speech data and the labels corresponding to the multiple misrecognized speech data as training samples, and adjusting the parameters of the speech recognition algorithm according to the training samples to obtain an adjusted speech recognition algorithm.
[0090] In order to continuously optimize the speech recognition algorithm and avoid the same misrecognition from happening again, after obtaining the recognition result of the misrecognized speech data, the recognition result of the misrecognized speech data is determined as the label of the misrecognized speech data, and a large amount of misrecognized speech data and its corresponding labels are used as training samples. The parameters of the speech recognition algorithm are adjusted according to the training samples to continuously optimize the speech recognition algorithm, so as to continuously improve the recognition accuracy of the speech recognition algorithm and bring better user experience.
[0091] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0092] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0093] S1, determining misrecognized speech data from the speech interaction data;
[0094] S2, re-recognizing the misrecognized voice data using multiple voice recognition algorithms to obtain multiple first recognition results;
[0095] S3, calculating the scores of the multiple first recognition results according to a preset algorithm, and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0096] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0097] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0098] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0099] S1, determining misrecognized speech data from the speech interaction data;
[0100] S2, re-recognizing the misrecognized voice data using multiple voice recognition algorithms to obtain multiple first recognition results;
[0101] S3, calculating the scores of the multiple first recognition results according to a preset algorithm, and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data.
[0102] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0103] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0104] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented with a general computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented with program codes executable by the computing system, so that they can be stored in a storage system and executed by the computing system, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0105] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing speech data, characterized in that: include: determining misidentified speech data from the speech interaction data; Re-recognize the misrecognized voice data using multiple voice recognition algorithms to obtain multiple first recognition results; Calculate the scores of the plurality of first recognition results according to a preset algorithm, and determine the first recognition result with the largest score as the recognition result of the misrecognized speech data; wherein, Calculating the scores of the plurality of first recognition results according to a preset algorithm includes: Acquire algorithm coefficients of the multiple speech recognition algorithms from a configuration center, and use the algorithm coefficients of the multiple speech recognition algorithms as first scores of the multiple first recognition results, wherein the algorithm coefficients are used to indicate the maturity of the multiple speech recognition algorithms, and the configuration center is used to store the algorithm coefficients; Determine a third recognition result that is the same as the recognition result among the plurality of first recognition results, and other recognition results among the plurality of first recognition results except the third recognition result; Acquire multiple first scores corresponding to the third recognition result, use the sum of the multiple first scores as the score of the third recognition result, and use the first scores corresponding to the other recognition results respectively as the scores of the other recognition results; The configuration center is further used to store a second preset threshold, and the second preset threshold is used to indicate a valid value of the score of the first recognition result.
2. The method for processing speech data according to claim 1, characterized in that: Determining misrecognized speech data from speech interaction data includes at least one of the following steps: receiving a feedback instruction of the first object for a control operation, and determining misrecognized voice data according to the feedback instruction, wherein the control operation is an operation in response to first voice interaction data of the first object; Determine misrecognized voice data according to the amount of second voice interaction data of the first object received within a preset time; The voice interaction data includes at least one of the following: first voice interaction data and second voice interaction data.
3. The method for processing speech data according to claim 2, characterized in that: Receiving a feedback instruction from the first object regarding a control operation, and determining misrecognized voice data according to the feedback instruction, comprising: Recognize the first voice interaction data according to a preset voice recognition algorithm to obtain a control operation corresponding to the first voice interaction data; receiving a feedback instruction sent by the first object according to the control operation; When the feedback instruction includes a preset keyword, it is determined that the first voice interaction data is misrecognized voice data.
4. The method for processing speech data according to claim 2, characterized in that: Determining misrecognized voice data according to the amount of the second voice interaction data of the first object received within a preset time includes: Calculate the amount of the second voice interaction data within a preset time by a streaming computing algorithm; When the amount of the second voice interaction data within the preset time is greater than the first preset threshold, it is determined that the second voice interaction data within the preset time is misrecognized voice data.
5. The method for processing speech data according to claim 4, characterized in that: Before determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method further includes: Obtaining the score of the first recognition result with the largest score, and determining whether the score is greater than the second preset threshold; In a case where the score is greater than a second preset threshold, a first recognition result with the largest score is determined as the recognition result of the misrecognized speech data.
6. The method for processing speech data according to any one of claims 1 to 5, characterized in that: After calculating the scores of the plurality of first recognition results according to a preset algorithm and determining the first recognition result with the largest score as the recognition result of the misrecognized speech data, the method further includes: Determining a recognition result of the misrecognized speech data as a label of the misrecognized speech data; A plurality of misrecognized speech data and labels corresponding to the plurality of misrecognized speech data are used as training samples, and parameters of the speech recognition algorithm are adjusted according to the training samples to obtain an adjusted speech recognition algorithm.
7. A speech data processing device, characterized in that: include: A determination module, used to determine misrecognized speech data from the speech interaction data; A recognition module, configured to re-recognize the misrecognized voice data using a plurality of voice recognition algorithms to obtain a plurality of first recognition results; A calculation module is used to calculate the scores of the plurality of first recognition results according to a preset algorithm, and determine the first recognition result with the largest score as the recognition result of the misrecognized speech data; wherein, The calculation module is further used to obtain algorithm coefficients of the multiple speech recognition algorithms from the configuration center, and use the algorithm coefficients of the multiple speech recognition algorithms as first scores of the multiple first recognition results, wherein the algorithm coefficients are used to indicate the maturity of the multiple speech recognition algorithms, and the configuration center is used to store the algorithm coefficients; determine a third recognition result with the same recognition result among the multiple first recognition results, and other recognition results among the multiple first recognition results except the third recognition result; obtain multiple first scores corresponding to the third recognition result, use the sum of the multiple first scores as the score of the third recognition result, and use the first scores corresponding to the other recognition results as the scores of the other recognition results; The configuration center is further used to store a second preset threshold, and the second preset threshold is used to indicate a valid value of the score of the first recognition result.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.
Citation Information
Patent Citations
Voice inputting method and device
CN103645876A
Voice recognition method, device and voice control system
CN105374357A
Information processing method and electronic equipment
CN105810188A
Recognition text correction method and system
CN106448675A
Method, device, server and terminal for correcting license plate character string
CN108257602A
