Voice recognition method, device, equipment and storage medium for wearing protective equipment
By analyzing the difference in voice information before and after wearing protective equipment, generating a voice conversion method and processing audio data, the problem of low voice recognition accuracy after medical staff wears it is solved and the recognition accuracy is improved.
Patent Information
- Application Number
- CN202210734623.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-06-24
AI Technical Summary
When medical staff wear masks or protective clothing, the acoustic characteristics will be nonlinearly distorted, resulting in an increase in the misrecognition rate of speech recognition, a decrease in model promotion capabilities, and a low speech recognition accuracy.
By obtaining the difference in speech information before and after wearing protective equipment, analyze and generate multiple speech conversion methods, perform speech processing on the audio data to be recognized, enhance the resonance peak, identify and sort the semantic coherence accuracy, and obtain the audio data with the highest accuracy for processing. Identify.
It effectively reduces the speech recognition error caused by changes in pronunciation after wearing protective equipment, and improves the accuracy of speech recognition after wearing protective equipment.
Smart Images

Figure CN115240661B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech recognition technology, and in particular to a speech recognition method, device, equipment and storage medium for wearing protective equipment. Background Art
[0002] In daily life, there are some scenarios where medical staff need to wear masks or protective clothing. Wearing masks or protective clothing will cause nonlinear distortion of the acoustic characteristics of medical staff, thereby increasing the error rate of speech recognition and decreasing the generalization ability of the model. Therefore, in the prior art, the accuracy of speech recognition is low when medical staff wear masks or protective clothing. Summary of the invention
[0003] In order to solve the technical problem of low voice recognition accuracy in scenarios where medical staff wear masks or protective clothing, the embodiments of the present invention provide a voice recognition method, device, electronic device and storage medium for wearing protective equipment.
[0004] The technical solution of the embodiment of the present invention is achieved as follows:
[0005] An embodiment of the present invention provides a method for voice recognition when wearing protective equipment, the method comprising:
[0006] Obtain audio data to be recognized;
[0007] Acquire a plurality of preset voice conversion methods; wherein the voice conversion methods are obtained by analyzing the difference between voice information emitted after wearing protective equipment and voice information emitted when not wearing protective equipment;
[0008] Performing voice processing on the audio data to be recognized according to the multiple voice conversion methods to obtain corresponding multiple first audio data;
[0009] Performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data;
[0010] Sort the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient;
[0011] Speech recognition is performed on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized.
[0012] In the above solution, the acquisition of preset multiple speech conversion methods includes:
[0013] Get sample data;
[0014] Acquire first voice information obtained by speaking the sample data after wearing the protective equipment and second voice information obtained by speaking the sample data without wearing the protective equipment;
[0015] The differences between the first voice information and the second voice information are compared to obtain a plurality of voice conversion methods.
[0016] In the above solution, the comparison of the difference between the first voice information and the second voice information to obtain multiple voice conversion methods includes:
[0017] Performing word segmentation processing on the first voice information and the second voice information to obtain first voice words and second voice words respectively;
[0018] Matching the first spoken word with the second spoken word one by one to obtain a pair of words to be recognized;
[0019] Analyze the pinyin difference between the two words in each pair of words to be recognized and obtain the difference result;
[0020] Counting the difference results to obtain first difference results whose number is greater than a preset value;
[0021] A speech conversion method is obtained based on each first difference result.
[0022] In the above solution, the audio data to be recognized is processed according to the multiple speech conversion methods to obtain the corresponding multiple first audio data, including:
[0023] Performing word segmentation processing on the audio data to be recognized to obtain words to be recognized;
[0024] According to each speech conversion method, the pinyin in the to-be-recognized word is converted to obtain a converted word;
[0025] The converted words obtained according to each voice conversion method are spliced to obtain the first audio data corresponding to each voice conversion method.
[0026] In the above solution, the step of performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes:
[0027] Dividing each of the first audio data into words of multiple parts of speech according to grammatical rules;
[0028] Get the part of speech of each word and the parts of speech of the words before and after it;
[0029] According to the part of speech of each word and the part of speech of the words before and after it, determine whether it matches and obtain the matching result;
[0030] Count the proportion of qualified words among all words;
[0031] Based on the ratio, the accuracy coefficient of each of the first audio data is obtained.
[0032] In the above solution, the step of performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes:
[0033] Input each of the first audio data into a speech recognition model, and obtain a speech recognition result and an accuracy rate output by the speech recognition model;
[0034] The accuracy rate output by the speech recognition model based on each first audio data is used as the accuracy coefficient of each first audio data.
[0035] In the above solution, before performing speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain the corresponding multiple first audio data, the method further includes:
[0036] The resonance peak value of the audio data to be recognized is enhanced.
[0037] An embodiment of the present invention further provides a speech recognition device for wearing protective equipment, the device comprising:
[0038] A first acquisition module, used to acquire audio data to be recognized;
[0039] A second acquisition module is used to acquire a plurality of preset voice conversion methods; wherein the voice conversion method is obtained by analyzing the difference between the voice information emitted after wearing the protective equipment and the voice information emitted when not wearing the protective equipment;
[0040] A processing module, configured to perform speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain corresponding multiple first audio data;
[0041] A first recognition module is used to perform semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data;
[0042] A sorting module, used for sorting the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient;
[0043] The second recognition module is used to perform speech recognition on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized.
[0044] An embodiment of the present invention further provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor; wherein:
[0045] When the processor is used to run the computer program, the steps of any of the above methods are executed.
[0046] An embodiment of the present invention further provides a storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0047] The speech recognition method, device, electronic device and storage medium for wearing protective equipment provided by the embodiments of the present invention obtain audio data to be recognized; obtain a plurality of preset speech conversion methods; wherein the speech conversion methods are obtained by analyzing the difference between the speech information emitted after wearing the protective equipment and the speech information emitted when not wearing the protective equipment; speech processing is performed on the audio data to be recognized according to the plurality of speech conversion methods to obtain the corresponding plurality of first audio data; semantic coherence accuracy recognition is performed on the plurality of first audio data to obtain the accuracy coefficient of each first audio data; the accuracy coefficients are sorted to obtain the first audio data with the largest accuracy coefficient; speech recognition is performed on the first audio data with the largest accuracy coefficient to obtain the recognition result of the audio data to be recognized. The scheme provided by the present invention can improve the speech recognition accuracy of users after wearing protective equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic flow chart of a method for voice recognition when wearing protective equipment according to an embodiment of the present invention;
[0049] Figure 2 Another schematic diagram of a flow chart of a method for voice recognition of wearing protective equipment according to an embodiment of the present invention;
[0050] Figure 3 Another schematic diagram of a flow chart of a method for voice recognition of wearing protective equipment according to an embodiment of the present invention;
[0051] Figure 4 Another schematic diagram of a flow chart of a method for voice recognition of wearing protective equipment according to an embodiment of the present invention;
[0052] Figure 5 Another schematic diagram of a flow chart of a method for voice recognition of wearing protective equipment according to an embodiment of the present invention;
[0053] Figure 6 Another schematic diagram of a flow chart of a method for voice recognition of wearing protective equipment according to an embodiment of the present invention;
[0054] Figure 7This is a structural schematic diagram of a speech recognition device for wearing protective equipment according to an embodiment of the present invention;
[0055] Figure 8 1 is a diagram showing the internal structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
[0057] The embodiment of the present invention provides a method for voice recognition of a user wearing protective equipment, such as Figure 1 As shown, the method includes:
[0058] Step 101: Acquire audio data to be recognized;
[0059] Step 102: obtaining a plurality of preset voice conversion methods; wherein the voice conversion methods are obtained by analyzing the difference between voice information emitted after wearing the protective equipment and voice information emitted when not wearing the protective equipment;
[0060] Step 103: performing speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain corresponding multiple first audio data;
[0061] Step 104: performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data;
[0062] Step 105: sorting the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient;
[0063] Step 106: Perform speech recognition on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized.
[0064] Specifically, the audio data to be recognized in this embodiment may be audio data collected after the user wears the protective device. This embodiment can effectively reduce the speech recognition error caused by the pronunciation change after the user wears the protective device. When the user wears the protective device, the pronunciation changes due to the tightness of the mouth and nose and the restriction of the pronunciation movement. When the user's pronunciation changes, it will cause changes in pitch and resonance peaks, thereby significantly reducing the accuracy of speech recognition. The present application converts the audio data to be recognized based on the difference between the voice information emitted after wearing the protective device and the voice information emitted when not wearing the protective device, which can reduce the recognition error caused by the pronunciation change after the user wears the protective device.
[0065] Further, see Figure 2 In one embodiment, the obtaining of the preset multiple speech conversion methods includes:
[0066] Step 201: Obtain sample data;
[0067] Step 202: Obtain the first voice information obtained by pronouncing the sample data after wearing the protective equipment and the second voice information obtained by pronouncing the sample data without wearing the protective equipment;
[0068] Step 203: Compare the differences between the first voice information and the second voice information to obtain various voice conversion methods.
[0069] In this embodiment, by obtaining the pronunciation changes of the same sample data before and after wearing the protective equipment, the voice conversion method is obtained. For example, after the user wears the protective equipment, the vowel of [A] in "he" is pronounced as Based on this change, a voice conversion method can be obtained, changing in the pinyin of each character in the audio data to [A]. For another example, after the user wears the protective equipment, the compound vowel [au] of "hao[xau]" is pronounced as the simple vowel Based on this, a voice conversion method can be obtained, changing in the pinyin of each character in the audio data to [au].
[0070] Further, referring to Figure 3 , in one embodiment, the comparing the differences between the first voice information and the second voice information to obtain various voice conversion methods includes:
[0071] Step 301: Perform word segmentation on the first voice information and the second voice information to obtain the first voice words and the second voice words respectively;
[0072] Step 302: Match the first voice words with the second voice words one by one to obtain the word pairs to be recognized;
[0073] Step 303: Analyze the pinyin differences between the two words in each word pair to be recognized to obtain the difference results;
[0074] Step 304: Statistically analyze the difference results to obtain the first difference results with the quantity greater than the preset value;
[0075] Step 305: Obtain a voice conversion method based on each first difference result.
[0076] In real life, due to the pronunciation changes caused by users wearing protective equipment, in addition to the pronunciation changes of each word in the audio data, there are often also pronunciation changes of words. For example, after a user wears a protective equipment, the front part of the initial sound [i] of "you [iou]" is lost and is shorter than normal. Another example is that after a user wears a protective equipment, "hui [xuei]" is pronounced as the final sound [i] disappears. Therefore, in this embodiment, the first voice information and the second voice information are first subjected to word segmentation processing, and then the phonetic differences between two words that match are obtained based on the divided words, so as to obtain the voice conversion method.
[0077] In addition, due to the different pronunciations of each user, there are often their own accents. Therefore, to exclude the pronunciation differences caused by the personal accents of each user, the voice conversion method is obtained only based on the first difference results in the divided words whose quantity is greater than the preset value. That is to say, only when the same differences appear in most words, the voice conversion method is determined based on the same differences.
[0078] Furthermore, referring to Figure 4 , in one embodiment, the performing voice processing on the audio data to be recognized according to the multiple voice conversion methods to obtain corresponding multiple first audio data includes:
[0079] Step 401: Perform word segmentation processing on the audio data to be recognized to obtain words to be recognized;
[0080] Step 402: Convert the pinyin in the words to be recognized according to each voice conversion method to obtain converted words;
[0081] Step 403: Concatenate the converted words obtained according to each voice conversion method to obtain the first audio data corresponding to each voice conversion method.
[0082] In this embodiment, first, according to the pronunciation changes of the same text before and after the user wears the protective equipment, the change rule is determined, and then multiple voice conversion methods are determined based on the change rule. Then, the determined multiple voice conversion methods are used to perform voice conversion on the audio data to be recognized. Here, in this embodiment, the audio data to be recognized is still first subjected to word segmentation processing to obtain words to be recognized, and then the divided words are converted in units of words to improve the recognition accuracy.
[0083] After performing voice conversion on the audio data to be recognized, there are often some incorrect conversion methods. Therefore, in this embodiment, the correctness of the conversion of the audio data is judged by the semantic coherence degree of the converted audio data.
[0084] Furthermore, referring to Figure 5 In one embodiment, the performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes:
[0085] Step 501: Divide each of the first audio data into words of multiple parts of speech according to grammatical rules;
[0086] Step 502: Obtain the part of speech of each word and the parts of speech of the words before and after it;
[0087] Step 503: Determine whether there is a match based on the part of speech of each word and the parts of speech of the words before and after it, and obtain a matching result;
[0088] Step 504: Count the proportion of qualified words in the matching results to all words;
[0089] Step 505: Based on the ratio, obtain the accuracy coefficient of each of the first audio data.
[0090] Specifically, in some cases, after the pronunciation of a word is incorrectly converted, the word's part of speech often changes. For example, after some phonetic conversion, "apple" will become "evaluation". In this way, the original part of speech of "apple" is a noun, and it is converted into "evaluation" with a verb part of speech. Therefore, in some cases, the conversion accuracy can be judged based on whether the part of speech of the word matches the part of speech of the previous and next words. For example, the two verbs "drinking water and holding an umbrella" are often not used before and after a sentence in daily life. Therefore, when two adjacent verbs "drinking water and holding an umbrella" appear in the converted sentence, it can be judged as a match failure. For another example, the two nouns "you and me" are often not used before and after a sentence in daily life. Therefore, when two adjacent nouns "you and me" appear in the converted sentence, it can be judged as a match failure.
[0091] In addition, in order to avoid errors caused by a few rare cases, the accuracy of the converted audio data can be determined based on the matching results of most words, thereby further improving the recognition accuracy.
[0092] Of course, in this application, other methods can also be used to obtain the accuracy coefficient of the first audio data. For example, the following method is used:
[0093] Further, see Figure 6 In one embodiment, the performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes:
[0094] Step 601: input each of the first audio data into a speech recognition model, and obtain the speech recognition result and accuracy rate output by the speech recognition model;
[0095] Step 602: The accuracy rate output by the speech recognition model based on each first audio data is used as the accuracy coefficient of each first audio data.
[0096] Here, this embodiment obtains the accuracy coefficient of the first audio data through a speech recognition model. The speech recognition model here can be a deep learning model. A conventional deep learning model can be used to detect the semantic coherence of the first audio data to obtain a detection result and an accuracy rate.
[0097] In one embodiment, before performing speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain the corresponding multiple first audio data, the method further includes:
[0098] The resonance peak value of the audio data to be recognized is enhanced.
[0099] Specifically, in order to eliminate the error caused by the absorption of audio data by the protective equipment after the user wears it, resulting in the high-order resonance peaks of the audio data not being obvious, the present application first enhances the resonance peak value of the audio data to be identified before performing speech processing on the audio data to reduce the error.
[0100] The speech recognition method for wearing protective equipment provided by an embodiment of the present invention obtains audio data to be recognized; obtains a plurality of preset speech conversion methods; wherein the speech conversion methods are obtained by analyzing the difference between the speech information emitted after wearing the protective equipment and the speech information emitted when not wearing the protective equipment; performs speech processing on the audio data to be recognized according to the plurality of speech conversion methods to obtain a plurality of corresponding first audio data; performs semantic coherence accuracy recognition on the plurality of first audio data to obtain the accuracy coefficient of each first audio data; sorts the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient; performs speech recognition on the first audio data with the largest accuracy coefficient to obtain the recognition result of the audio data to be recognized. The scheme provided by the present invention can improve the speech recognition accuracy after the user wears protective equipment.
[0101] In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a voice recognition device for wearing protective equipment, such as Figure 7 As shown, the speech recognition device 700 for wearing protective equipment includes: a first acquisition module 701, a second acquisition module 702, a processing module 703, a first recognition module 704, a sorting module 705 and a second recognition module 706; wherein,
[0102] A first acquisition module 701 is used to acquire audio data to be recognized;
[0103] The second acquisition module 702 is used to acquire a plurality of preset voice conversion methods; wherein the voice conversion methods are obtained by analyzing the difference between the voice information emitted after wearing the protective equipment and the voice information emitted when not wearing the protective equipment;
[0104] The processing module 703 is used to perform speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain corresponding multiple first audio data;
[0105] A first recognition module 704 is used to perform semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data;
[0106] A sorting module 705, used to sort the accuracy coefficients and obtain the first audio data with the largest accuracy coefficient;
[0107] The second recognition module 706 is used to perform speech recognition on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized.
[0108] In actual application, the first acquisition module 701, the second acquisition module 702, the processing module 703, the first recognition module 704, the sorting module 705 and the second recognition module 706 can be implemented by a processor in the speech recognition device of the wearing protective equipment.
[0109] It should be noted that: when the above-mentioned device provided in the above-mentioned embodiment is executed, only the division of the above-mentioned program modules is used as an example. In actual application, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the above-mentioned processing. In addition, the above-mentioned device provided in the above-mentioned embodiment and the above-mentioned method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0110] In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the above method.
[0111] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides an electronic device (computer device). Specifically, in one embodiment, the computer device can be a terminal, and its internal structure diagram can be as follows: Figure 8 As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, the method of any one of the above embodiments is implemented. The display screen A04 of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0112] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0113] The device provided by the embodiment of the present invention includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method of any one of the above embodiments is implemented.
[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0115] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0118] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0121] It can be understood that the memory of the embodiment of the present invention can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.
[0122] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0123] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for voice recognition when wearing protective equipment, characterized in that: The method comprises: Obtain audio data to be recognized; Get multiple preset speech conversion methods; Performing voice processing on the audio data to be recognized according to the multiple voice conversion methods to obtain corresponding multiple first audio data; Performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data; Sort the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient; Performing speech recognition on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized; Among them, the obtaining of preset multiple voice conversion methods includes: obtaining sample data; obtaining first voice information obtained by uttering the sample data after wearing protective equipment and second voice information obtained by uttering the sample data without wearing protective equipment; performing word segmentation processing on the first voice information and the second voice information to obtain first voice words and second voice words respectively; matching the first voice words with the second voice words one by one to obtain word pairs to be recognized; analyzing the pinyin differences between the two words in each word pair to be recognized to obtain difference results; counting the difference results to obtain first difference results whose number is greater than a preset value; and obtaining a voice conversion method based on each first difference result.
2. The method according to claim 1, characterized in that The performing speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain corresponding multiple first audio data includes: Performing word segmentation processing on the audio data to be recognized to obtain words to be recognized; According to each speech conversion method, the pinyin in the to-be-recognized word is converted to obtain a converted word; The converted words obtained according to each voice conversion method are spliced to obtain the first audio data corresponding to each voice conversion method.
3. The method according to claim 1, characterized in that The performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes: Dividing each of the first audio data into words of multiple parts of speech according to grammatical rules; Get the part of speech of each word and the parts of speech of the words before and after it; According to the part of speech of each word and the part of speech of the words before and after it, determine whether it matches and obtain the matching result; Count the proportion of qualified words among all words; Based on the ratio, the accuracy coefficient of each of the first audio data is obtained.
4. The method according to claim 1, characterized in that: The performing semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data includes: Input each of the first audio data into a speech recognition model, and obtain a speech recognition result and an accuracy rate output by the speech recognition model; The accuracy rate output by the speech recognition model based on each first audio data is used as the accuracy coefficient of each first audio data.
5. The method according to claim 1, characterized in that Before performing speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain the corresponding multiple first audio data, the method further includes: The resonance peak value of the audio data to be recognized is enhanced.
6. A voice recognition device for wearing protective equipment, characterized in that: The device comprises: A first acquisition module, used to acquire audio data to be recognized; The second acquisition module is used to obtain a plurality of preset voice conversion methods, wherein obtaining the preset plurality of voice conversion methods includes: obtaining sample data; obtaining first voice information obtained by speaking the sample data after wearing protective equipment and second voice information obtained by speaking the sample data without wearing protective equipment; performing word segmentation processing on the first voice information and the second voice information to obtain first voice words and second voice words respectively; matching the first voice words with the second voice words one by one to obtain a pair of words to be recognized; analyzing the pinyin difference between the two words in each pair of words to be recognized to obtain a difference result; performing statistics on the difference results to obtain a first difference result whose number is greater than a preset value; and obtaining a voice conversion method based on each first difference result; A processing module, configured to perform speech processing on the audio data to be recognized according to the multiple speech conversion methods to obtain corresponding multiple first audio data; A first recognition module is used to perform semantic coherence accuracy recognition on the plurality of first audio data to obtain an accuracy coefficient of each first audio data; A sorting module, used for sorting the accuracy coefficients to obtain the first audio data with the largest accuracy coefficient; The second recognition module is used to perform speech recognition on the first audio data with the largest accuracy coefficient to obtain a recognition result of the audio data to be recognized.
7. An electronic device, characterized in that: include: A processor and a memory for storing a computer program capable of running on the processor; wherein, When the processor is used to run the computer program, the steps of the method according to any one of claims 1 to 5 are performed.
8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
