Speech recognition method, system and medium based on network collection and speech synthesis

The construction of professional speech data sets through web crawling corpus and deep learning speech synthesis technology solves the problems of low accuracy and high cost of speech recognition in professional fields, and realizes the construction and application of efficient speech recognition models.

CN117975932BActive Publication Date: 2024-10-15SOUTH CHINA UNIV OF TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202311416328.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-10-15
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

Existing speech recognition and speech synthesis technologies are insufficiently applied in professional fields and lack voice data sets and efficient adaptation technologies for specific fields, resulting in low recognition accuracy and high costs.

Method used

Crawling corpus in professional fields through the Internet, building a topic network, generating professional speech data sets, using deep learning's end-to-end speech synthesis network for automated batch speech synthesis, and merging open source general speech libraries for training to optimize speech recognition models.

Benefits of technology

It improves the accuracy and reliability of professional speech recognition, saves the labor and time costs of data set construction, is suitable for various professional fields, and simplifies the speech recognition model construction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117975932B_ABST
    Figure CN117975932B_ABST
Patent Text Reader

Abstract

The present invention discloses a speech recognition method, system and medium based on network collection and speech synthesis, the method comprising: selecting a professional field; crawling the corpus related to the selected professional field, and performing sentence segmentation and text cleaning to obtain a corresponding corpus; selecting real person recordings from an open source general voice library to generate a human voice database as a real person voice template; constructing a speech synthesis network, using different real person voice templates to perform automatic batch speech synthesis based on the corpus to generate a professional voice data set; constructing a speech recognition neural network according to the needs of the application scenario; merging the open source general voice library and the professional voice data set, training and testing the speech recognition neural network to obtain an enhanced speech recognition model; and using the model to recognize the speech to be recognized. The present invention can improve the speech recognition accuracy in various professional fields, reduce the application cost of speech recognition, and provide new ideas for realizing intelligent human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a speech recognition method, system, computer equipment and storage medium based on network collection and speech synthesis, belonging to the technical field of speech recognition. Background Art

[0002] The existing speech recognition and speech synthesis technologies have been widely used and developed. Speech recognition technology has been applied to scenarios such as intelligent voice assistants, automatic speech recognition systems, and telephone customer service systems; speech synthesis technology has been applied to fields such as smart speakers and voice advertising.

[0003] The development of speech recognition technology has gone through three stages: GMM-HMM, DNN-HMM and end-to-end. At present, end-to-end speech recognition has become the mainstream research direction. It can directly learn the mapping from input acoustic signals to transcribed text, avoiding the cumbersome structure of traditional speech recognition frameworks. Among them, end-to-end streaming speech recognition technology can return recognition results in real time during the processing of audio streams, and is better applied to scenarios that require real-time recognition results.

[0004] Text-to-Speech (TTS) is a technology that converts text into sound. Early speech synthesis technology was mainly based on rules and templates, which required a lot of manual participation and rule definition, and it was difficult to meet the needs of complex scenarios. In recent years, with the development of deep learning technology, speech synthesis technology based on deep learning has gradually become mainstream. It can be divided into two categories: joint modeling-based and end-to-end modeling-based. End-to-end modeling speech synthesis technology directly maps the input text information to audio output. This method does not require pre-definition of complex acoustic or linguistic features. It only needs to input text information and corresponding audio data, connect the two through a deep learning network, and directly output the required audio. It has the characteristics of simplicity, directness, and efficiency.

[0005] However, there are still some shortcomings. For example, there is still a lack of practical application cases of speech recognition systems in certain professional fields; there is a lack of cases of using speech synthesis technology to build speech data sets for speech recognition model training; how to efficiently adapt speech synthesis technology and speech recognition technology is also an urgent problem to be solved. Summary of the invention

[0006] In view of this, the present invention provides a speech recognition method, system, computer device and storage medium based on network collection and speech synthesis, which can improve the accuracy and reliability of professional speech recognition, save the manpower and time cost of constructing the speech recognition model, and meet the application needs of speech recognition in various professional fields.

[0007] The first object of the present invention is to provide a speech recognition method based on network collection and speech synthesis.

[0008] The second object of the present invention is to provide a speech recognition system based on network collection and speech synthesis.

[0009] A third object of the present invention is to provide a computer device.

[0010] A fourth object of the present invention is to provide a storage medium.

[0011] The first object of the present invention can be achieved by adopting the following technical solutions:

[0012] A speech recognition method based on network collection and speech synthesis, the method comprising:

[0013] Select the professional field where professional speech recognition models need to be built;

[0014] Use a topic-based web crawler to crawl the corpus related to the selected professional field, and perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field;

[0015] Select real-person recordings from the open-source general voice library to generate a human voice database as a real-person voice template;

[0016] Build an end-to-end speech synthesis network based on deep learning, use different real-person voice templates to perform automatic batch speech synthesis based on the corpus, and generate a professional speech dataset;

[0017] Build a speech recognition neural network based on the needs of the application scenario;

[0018] Merge the open-source general voice library and professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model;

[0019] The enhanced speech recognition model is used to recognize the speech to be recognized.

[0020] Furthermore, the sentence segmentation and text cleaning of the crawled corpus specifically includes:

[0021] Use periods or semicolons as separators to split text and write it into lines in a text document;

[0022] Remove special symbols that are not convenient for speech synthesis, convert professional-related symbols into corresponding Chinese spoken expressions, count the number of words in a single sentence, and eliminate text sentences with too many words in a single sentence.

[0023] Furthermore, selecting real person recordings from the open source general voice library to generate the open source general voice library specifically includes:

[0024] A plurality of real-person recordings are randomly extracted from an open-source general voice database to generate an open-source general voice database, wherein the ratio of male voice to female voice in the real-person recordings is 1:1.

[0025] Furthermore, the construction of an end-to-end speech synthesis network based on deep learning, automatic batch speech synthesis based on the corpus, and generation of a professional speech dataset specifically includes:

[0026] Constructing an end-to-end speech synthesis network based on deep learning, wherein the speech synthesis network includes an encoder, a synthesizer, and a vocoder;

[0027] Using an end-to-end speech synthesis network, speech synthesis operations are performed on the corpus line by line to obtain a professional speech dataset, and the speech data is quality inspected and cleaned.

[0028] Furthermore, the quality inspection and cleaning of the voice data specifically includes:

[0029] The speech data is recognized, and the word error rate and missing word rate of each speech are calculated and output. The speech files with missing word rate and word error rate that do not meet the requirements are eliminated according to the specific situation, thereby ensuring the quality of professional speech data sets.

[0030] Furthermore, the open source general voice library and the professional voice data set are merged to train and test the voice recognition neural network to obtain an enhanced voice recognition model, which specifically includes:

[0031] Merge the open source general voice database and professional voice dataset to divide them into training set and test set;

[0032] The training set is input into the speech recognition neural network for training to obtain an enhanced speech recognition model;

[0033] The test set is input into the enhanced speech recognition model for recognition, and the recognition accuracy is obtained;

[0034] If the recognition accuracy reaches the preset value, the enhanced speech recognition model is used as the final enhanced speech recognition model;

[0035] If the recognition accuracy rate does not reach the preset value, the enhanced speech recognition model is debugged and optimized until the recognition accuracy rate reaches the preset value, and the debugged and optimized enhanced speech recognition model is used as the final enhanced speech recognition model.

[0036] Furthermore, the speech recognition neural network is a recurrent neural network, a self-attention mechanism neural network or a convolution-attention mechanism neural network.

[0037] The second object of the present invention can be achieved by adopting the following technical solutions:

[0038] A speech recognition system based on network collection and speech synthesis, the system comprising:

[0039] The selection module is used to select the professional field where a professional speech recognition model needs to be built;

[0040] The crawling module is used to crawl the corpus related to the selected professional field using a topic-based web crawler, and to perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field;

[0041] The first generation module is used to select real-person recordings from an open-source general voice library to generate a human voice database as a real-person voice template;

[0042] The second generation module is used to build an end-to-end speech synthesis network based on deep learning, and use different real-person voice templates to perform automatic batch speech synthesis based on the corpus to generate a professional speech dataset;

[0043] Building module, used to build speech recognition neural network according to the needs of application scenarios;

[0044] The training and testing module is used to merge the open source general voice library and the professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model;

[0045] The recognition module is used to recognize the speech to be recognized by using the enhanced speech recognition model.

[0046] The third object of the present invention can be achieved by adopting the following technical solutions:

[0047] A computer device comprises a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the above-mentioned speech recognition method is implemented.

[0048] The fourth object of the present invention can be achieved by adopting the following technical solutions:

[0049] A storage medium stores a program, and when the program is executed by a processor, the above-mentioned speech recognition method is implemented.

[0050] The present invention has the following beneficial effects compared with the prior art:

[0051] 1. The present invention improves the accuracy and reliability of professional speech recognition and is applicable to various professional fields. By using the corpus and speech synthesis technology in the professional field to construct the speech data set required for training, the accuracy and reliability of the speech recognition model in this field can be greatly improved. It is applicable to various professional fields, such as medical, legal, financial and other fields, thereby meeting the speech recognition needs in professional fields.

[0052] 2. The present invention can save the manpower and time costs of dataset construction. Since the traditional speech dataset construction requires a lot of manpower and time costs, the present invention uses speech synthesis technology to quickly generate professional speech datasets, greatly reducing the manpower and time costs of dataset construction.

[0053] 3. Compared with the traditional method, the construction method of the present invention is simple and easy, and can effectively improve the efficiency of speech recognition applications. The construction process includes crawling corpus with a web crawler, cleaning corpus, building a speech synthesis network, generating a professional speech data set, and training a speech recognition neural network. It is easy to implement and operate. The improvement of the accuracy and reliability of the speech recognition model will promote the efficiency of speech recognition-related applications such as human-computer interaction.

[0054] 4. The present invention efficiently integrates crawler technology, text processing technology, speech synthesis technology and speech recognition technology, constructs a corpus through crawler technology and text processing technology, then applies the corpus to speech synthesis technology to complete the construction of the speech library, and finally uses the speech library to train the model in speech recognition technology, thereby efficiently completing the construction of the speech recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0056] Figure 1 This is a simplified flow chart of a speech recognition method based on network collection and speech synthesis according to Embodiment 1 of the present invention.

[0057] Figure 2 This is a detailed flow chart of the speech recognition method based on network collection and speech synthesis of Example 1 of the present invention.

[0058] Figure 3 This is a framework diagram of the web crawler program in Example 1 of the present invention.

[0059] Figure 4 The following are the effect diagrams before and after the crawled text is cleaned in Example 1 of the present invention.

[0060] Figure 5 This is a structural block diagram of a speech recognition system based on network collection and speech synthesis according to Embodiment 2 of the present invention.

[0061] Figure 6 This is a structural block diagram of a computer device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION

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

[0063] Embodiment 1:

[0064] Many professional fields, such as civil engineering and mechanical engineering, require the use of various design software, mechanical analysis software and other tools for research and practice. In addition, there is a need to record a large amount of information in real time in professional scenarios such as civil engineering construction sites and medical consultation sites. However, traditional human-computer interaction and information recording methods limit the efficiency of software use and the convenience of information collection. It can be seen that human-computer interaction methods based on natural language have important application value. However, existing paid and open source speech recognition tools are designed for general usage scenarios, and the recognition accuracy of vocabulary in specific professional fields is relatively low, and there is often no open source speech data set available for training. Therefore, this embodiment provides a speech recognition method based on network collection and speech synthesis, which can improve the speech recognition accuracy in various professional fields, reduce the application cost of speech recognition, and provide new ideas for realizing intelligent human-computer interaction methods.

[0065] like Figure 1 and Figure 2 As shown, the speech recognition method of this embodiment includes the following steps:

[0066] S201. Select a professional field in which a professional speech recognition model needs to be constructed.

[0067] In this embodiment, the professional speech recognition model to be constructed is a speech recognition model for the field of bridge engineering, that is, the professional field is the field of bridge engineering.

[0068] S202: Use a topic-based web crawler to crawl corpora related to the selected professional field, and perform sentence segmentation and text cleaning on the crawled corpora to obtain a corpus of the selected professional field.

[0069] This embodiment follows Figure 3 The idea shown in the figure is to write a web crawler program to obtain texts related to the field of bridge engineering. Specifically, first, obtain the URL of the journal website, send a request to the web page and obtain the web page data, then parse the data, grab the required relative path information, and form a new URL. According to the above process, data acquisition and parsing are continuously performed (such as year → issue number → number of articles) until all abstract texts can be crawled through the updated URL sequence. Finally, only the abstract text information needs to be crawled and written into a txt file. After the text is crawled, further processing is required to ensure that the text can be successfully used for speech synthesis.

[0070] The crawled text is processed, including sentence segmentation and text cleaning. Specifically, the large text segments are first cut into pieces using periods or semicolons as delimiters and written into text documents in separate lines. Then, code is written to perform the following operations on the text: (1) remove HTML tags, Greek letters, and other special symbols that are not convenient for speech synthesis; (2) remove “+”, Common bridge-related symbols such as "plus" and "diameter 20 mm" were converted into their corresponding Chinese colloquial expressions; (3) the number of words in a single sentence was counted, and text sentences with more than 30 words were removed; referring to the open source general speech library AISHELL-1, the text length is almost within 25 words, indicating that overly long sentences are rarely used in actual scenarios; and training overly long sentences will consume more computing resources and reduce the training speed. The effects before and after text processing are shown in Figure 2. Figure 4 shown.

[0071] S203, selecting real person recordings from an open source general voice library to generate a human voice database as a real person voice template.

[0072] Specifically, the open source general voice library (also known as the open source voice data set) can be an open source general voice library such as AISHELL, thchs30, etc. This embodiment downloads the open source general voice library AISHELL-1, randomly extracts multiple real-person recordings from it, and generates a human voice database as a real-person voice template for subsequent speech synthesis. The ratio of male and female voices in the real-person recordings is 1:1.

[0073] S204. Build an end-to-end speech synthesis network based on deep learning, use different real-person voice templates to perform automatic batch speech synthesis based on the corpus, and generate a professional speech dataset.

[0074] Among them, an end-to-end speech synthesis network based on deep learning is constructed, and automatic batch speech synthesis is performed based on the corpus. Specifically, a Chinese speech synthesis network based on deep learning is built with the help of an open source project. The network can clone the voice of any speaker within 5 seconds and generate a voice file with specified text content. It consists of three parts: an independently trained speaker encoder, a synthesizer, and a vocoder. The speaker encoder is used to calculate an embedding vector containing the speaker's voice features from an audio sample of any length; the synthesizer generates a Mel spectrum graph of the target text in combination with the embedding vector; the vocoder is responsible for converting the Mel spectrum graph generated by the synthesizer into a time domain waveform graph, and then linearly transforming the coordinates of the pixel points of the waveform graph in time sequence to obtain energy points to restore the audio; the neural network is used to obtain the sound feature vector of the real voice template, and the speech synthesis operation is performed line by line on the corpus obtained in step S202 to finally obtain the voice file of the text.

[0075] Since the professional speech data set required for training usually contains tens of thousands of speech sounds, the workload of manual synthesis each time is huge. Therefore, this embodiment has written a code that can automatically and batchly perform speech synthesis. The idea is as follows: first, the real-person voice templates required for speech synthesis are stored in a folder and numbered; secondly, the PyautoGui library is used to simulate the keyboard and mouse to automatically and cyclically execute window operations: run the speech synthesis tool, set the model parameters, enter the starting sound template number and the starting text line number in sequence, enter the text to be synthesized in the speech synthesis window, wait for the speech synthesis to be completed, export the wav file, and name the file according to the rule of "synthesis date-sound template number-text line number.wav" to facilitate indexing during later training.

[0076] The synthesized speech may contain individual cases that are not suitable for speech recognition, such as unclear pronunciation and heavy electronic noise. If it is directly used for subsequent training without screening, it will affect the quality of the speech recognition model. However, a professional speech data set often has tens of thousands of speech sounds, and it is time-consuming and laborious to perform quality checks through manual audition. In this embodiment, code is written to call the online speech recognition platform iFlytek to recognize the synthesized professional speech data set, and calculate and output the word error rate and missing word rate of each synthesized speech, and eliminate speech files with missing word rate > 0 or word error rate > 45%, thereby ensuring the quality of the professional speech data set.

[0077] S205. Construct a speech recognition neural network according to the requirements of the application scenario.

[0078] Specifically, a neural network form such as a recurrent neural network (RNN), a self-attention mechanism neural network (Transformer), or a convolution-attention mechanism neural network (Conformer) is selected according to streaming or non-streaming application requirements; this embodiment has both streaming and non-streaming application requirements, and therefore constructs a speech recognition neural network based on a self-attention mechanism network.

[0079] Based on the self-attention mechanism neural network structure, this embodiment introduces a dynamic block mechanism to achieve the unification of streaming and non-streaming, and adopts connectionist temporal classification (CTC) / attention mechanism for joint decoding to achieve the construction of an efficient end-to-end streaming speech recognition neural network.

[0080] S206, merging the open source general voice database and the professional voice data set, training and testing the voice recognition neural network, and obtaining an enhanced voice recognition model;

[0081] Specifically, the open source general voice library and the professional voice data set are merged in a certain ratio, and then divided into a training set and a test set. The training set of this embodiment consists of about 150 hours (120,098 voices) of synthesized voices of bridge engineering in the open source general voice library and about 28 hours (24,754 voices) of synthesized voices of bridge engineering in the professional voice data set. The test set consists of about 5 hours (4,621 voices) of synthesized voices of bridge engineering in the professional voice data set. The training set is input into the speech recognition neural network for training to obtain an enhanced speech recognition model. The test set is input into the enhanced speech recognition model for recognition to obtain the recognition accuracy.

[0082] In this embodiment, if the recognition accuracy reaches a preset value (such as 95%), that is, the recognition accuracy meets expectations, the enhanced speech recognition model will be used as the final enhanced speech recognition model; if the recognition accuracy does not reach the preset value, that is, the recognition accuracy does not meet expectations, the enhanced speech recognition model will be debugged and optimized, and the proportion of professional speech in the training set can be appropriately increased to improve the accuracy of professional speech recognition, until the recognition accuracy reaches the preset value, and the debugged and optimized enhanced speech recognition model will be used as the final enhanced speech recognition model.

[0083] This embodiment uses the character error rate (CER) as the model evaluation indicator. The lower the CER, the higher the model recognition accuracy. In this embodiment, a total of three speech recognition models are compared, including a general speech recognition model trained using the speech recognition network constructed in step S205 of this embodiment, an enhanced speech recognition model for bridge engineering, and iFlytek online speech recognition. In addition, each model in this embodiment uses four different decoding methods to obtain corresponding CER results. The specific decoding methods are shown in Table 1 below.

[0084] Table 1 Four speech recognition decoding methods used in this embodiment

[0085]

[0086]

[0087] Table 2 Comparison of word error rates of general model, enhanced model and online speech recognition for different application scenarios

[0088]

[0089] By observing the experimental results in Table 2, it can be seen that in general scenarios, iFlytek online speech recognition has the highest accuracy, and the recognition accuracy of the general speech recognition model and the enhanced speech recognition model are close, slightly lower than that of iFlytek online speech recognition, and both are well suited for the recognition of commonly used words and sentences; in the bridge engineering scenario, the accuracy of iFlytek online speech recognition decreased by 10.5%, the general speech recognition model decreased by 24.3%, and the enhanced speech recognition model increased by 0.6%. It can be seen that the enhanced speech recognition model has obvious advantages in recognizing speech in professional fields.

[0090] S207: Recognize the speech to be recognized by using the enhanced speech recognition model.

[0091] Specifically, by acquiring the speech to be recognized, the speech to be recognized is input into an enhanced speech recognition model for recognition, thereby meeting the speech recognition needs in the field of bridge engineering.

[0092] In this embodiment, the recognition accuracy of the enhanced speech recognition model for bridge scene speech is improved to meet the needs; if it is found that the speech recognition accuracy of the professional enhanced speech recognition model in the bridge field does not meet the expectations compared with the general speech recognition, the training set size can be increased, the hot word enhancement function can be added, or text correction measures based on pinyin similarity can be adopted to further improve the model recognition accuracy.

[0093] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium.

[0094] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0095] Embodiment 2:

[0096] like Figure 5 As shown, this embodiment provides a speech recognition system based on network collection and speech synthesis, which includes a selection module 501, a crawling module 502, a first generation module 503, a second generation module 504, a construction module 505, a training and testing module 506 and a recognition module 507. The specific functions of each module are as follows:

[0097] A selection module 501 is used to select a professional field for which a professional speech recognition model needs to be constructed;

[0098] The crawling module 502 is used to crawl the corpus related to the selected professional field using a subject-based web crawler, and perform sentence segmentation and text cleaning on the crawled corpus to obtain a corpus of the selected professional field;

[0099] The first generating module 503 is used to select real person recordings from an open source general voice library to generate a human voice database as a real person voice template;

[0100] The second generation module 504 is used to build an end-to-end speech synthesis network based on deep learning, and use different real-person voice templates to perform automatic batch speech synthesis based on the corpus to generate a professional speech data set;

[0101] A construction module 505 is used to construct a speech recognition neural network according to the requirements of the application scenario;

[0102] The training and testing module 506 is used to merge the open source general voice database and the professional voice data set, train and test the voice recognition neural network, and obtain an enhanced voice recognition model;

[0103] The recognition module 507 is used to recognize the speech to be recognized by using the enhanced speech recognition model.

[0104] The specific implementation of each unit in this embodiment can refer to the above-mentioned embodiment 1, and will not be described one by one here; it should be noted that the system provided in this embodiment is only illustrated by the division of the above-mentioned functional units. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure can be divided into different functional units to complete all or part of the functions described above.

[0105] Embodiment 3:

[0106] This embodiment provides a computer device, such as Figure 6 As shown, it includes a processor 602, a memory, an input device 603, a display device 604 and a network interface 605 connected through a system bus 601. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium 606 and an internal memory 607. The non-volatile storage medium 606 stores an operating system, a computer program and a database. The internal memory 607 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the processor 602 executes the computer program stored in the memory, the multi-modal interactive structural mechanics analysis method of the above-mentioned embodiment 1 is implemented as follows:

[0107] Select the professional field where professional speech recognition models need to be built;

[0108] Use a topic-based web crawler to crawl the corpus related to the selected professional field, and perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field;

[0109] Select real-person recordings from the open-source general voice library to generate a human voice database as a real-person voice template;

[0110] Build an end-to-end speech synthesis network based on deep learning, use different real-person voice templates to perform automatic batch speech synthesis based on the corpus, and generate a professional speech dataset;

[0111] Build a speech recognition neural network based on the needs of the application scenario;

[0112] Merge the open-source general voice library and professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model;

[0113] The enhanced speech recognition model is used to recognize the speech to be recognized.

[0114] Embodiment 4:

[0115] This embodiment provides a storage medium, which is a computer-readable storage medium, storing a computer program. When the computer program is executed by a processor, the multi-modal interactive structural mechanics analysis method of the above embodiment 1 is implemented as follows:

[0116] Select the professional field where professional speech recognition models need to be built;

[0117] Use a topic-based web crawler to crawl the corpus related to the selected professional field, and perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field;

[0118] Select real-person recordings from the open-source general voice library to generate a human voice database as a real-person voice template;

[0119] Build an end-to-end speech synthesis network based on deep learning, use different real-person voice templates to perform automatic batch speech synthesis based on the corpus, and generate a professional speech dataset;

[0120] Build a speech recognition neural network based on the needs of the application scenario;

[0121] Merge the open-source general voice library and professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model;

[0122] The enhanced speech recognition model is used to recognize the speech to be recognized.

[0123] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0124] In summary, the present invention utilizes crawlers and speech synthesis technology to highly automatically construct a speech data set for a specific field, and trains a speech recognition model for the field based on a speech recognition neural network; compared with the traditional generalized speech recognition model, the present invention uses a self-built professional speech data set for training, which can improve the model's recognition accuracy for professional words and sentences, thereby effectively solving the speech recognition problem in specific professional fields; the technology used in the present invention has strong generalizability, and professional enhanced speech recognition models in different fields can be constructed according to the needs of different scenarios; the method proposed in the present invention breaks the traditional form of recruiting a large number of real-person recordings for speech library construction, which can greatly save manpower and material costs.

[0125] The above is only a preferred embodiment of the present invention, but the implementation of the present invention is not limited to the above embodiment. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principle of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A speech recognition method based on network collection and speech synthesis, It is characterized in that The method comprises: Select the professional field where professional speech recognition models need to be built; Use a topic-based web crawler to crawl the corpus related to the selected professional field, and perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field; Select real-person recordings from the open-source general voice library to generate a human voice database as a real-person voice template; Build an end-to-end speech synthesis network based on deep learning, use different real-person voice templates to perform automatic batch speech synthesis based on the corpus, and generate a professional speech dataset; Build a speech recognition neural network based on the needs of the application scenario; Merge the open-source general voice library and professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model; Using the enhanced speech recognition model to recognize the speech to be recognized; The end-to-end speech synthesis network based on deep learning is constructed, and different real-person voice templates are used to perform automatic batch speech synthesis based on the corpus to generate a professional speech dataset, which specifically includes: Constructing an end-to-end speech synthesis network based on deep learning, wherein the speech synthesis network includes an encoder, a synthesizer, and a vocoder; Using an end-to-end speech synthesis network, the editing program automatically loops and executes window operations, performs speech synthesis operations on the corpus line by line, obtains a professional speech data set, and performs quality inspection and cleaning on the speech data; wherein, the quality inspection and cleaning of the speech data specifically includes: recognizing the speech data, and calculating and outputting the word error rate and word missing rate of each speech, and eliminating the speech files whose word missing rate and word error rate do not meet the requirements according to the specific situation, so as to ensure the quality of the professional speech data set; The open source general voice library and the professional voice data set are merged to train and test the voice recognition neural network to obtain an enhanced voice recognition model, which specifically includes: Merge the open source general voice database and professional voice dataset to divide them into training set and test set; The training set is input into the speech recognition neural network for training to obtain an enhanced speech recognition model; The test set is input into the enhanced speech recognition model for recognition, and the recognition accuracy is obtained; If the recognition accuracy reaches the preset value, the enhanced speech recognition model is used as the final enhanced speech recognition model; If the recognition accuracy rate does not reach the preset value, the enhanced speech recognition model is debugged and optimized until the recognition accuracy rate reaches the preset value, and the debugged and optimized enhanced speech recognition model is used as the final enhanced speech recognition model.

2. The speech recognition method according to claim 1, It is characterized in that The sentence segmentation and text cleaning of the crawled corpus specifically includes: Use periods or semicolons as separators to split text and write it into lines in a text document; Remove special symbols that are not convenient for speech synthesis, convert professional-related symbols into corresponding Chinese spoken expressions, count the number of words in each sentence, and eliminate text sentences with more than 30 words.

3. The speech recognition method according to claim 1, It is characterized in that The method of selecting real person recordings from an open source general voice library to generate a human voice database as a real person voice template for subsequent speech synthesis specifically includes: A plurality of clear recordings of different real people are randomly selected from an open source general voice library to generate a voice database, wherein the ratio of male voice to female voice in the real person recordings is 1:

1.

4. The speech recognition method according to any one of claims 1 to 3, It is characterized in that The speech recognition neural network is a recurrent neural network, a self-attention mechanism neural network or a convolution-attention mechanism neural network.

5. A speech recognition system based on network collection and speech synthesis, It is characterized in that The system comprises: The selection module is used to select the professional field where a professional speech recognition model needs to be built; The crawling module is used to crawl the corpus related to the selected professional field using a topic-based web crawler, and to perform sentence segmentation and text cleaning on the crawled corpus to obtain the corpus of the selected professional field; The first generation module is used to select real-person recordings from an open-source general voice library to generate a human voice database as a real-person voice template; The second generation module is used to build an end-to-end speech synthesis network based on deep learning, and use different real-person voice templates to perform automatic batch speech synthesis based on the corpus to generate a professional speech dataset; Building module, used to build speech recognition neural network according to the needs of application scenarios; The training and testing module is used to merge the open source general voice library and the professional voice data set to train and test the speech recognition neural network to obtain an enhanced speech recognition model; A recognition module, used for recognizing a speech to be recognized by using an enhanced speech recognition model; The end-to-end speech synthesis network based on deep learning is constructed, and different real-person voice templates are used to perform automatic batch speech synthesis based on the corpus to generate a professional speech dataset, which specifically includes: Constructing an end-to-end speech synthesis network based on deep learning, wherein the speech synthesis network includes an encoder, a synthesizer, and a vocoder; Using an end-to-end speech synthesis network, the editing program automatically loops and executes window operations, performs speech synthesis operations on the corpus line by line, obtains a professional speech data set, and performs quality inspection and cleaning on the speech data; wherein, the quality inspection and cleaning of the speech data specifically includes: recognizing the speech data, and calculating and outputting the word error rate and word missing rate of each speech, and eliminating the speech files whose word missing rate and word error rate do not meet the requirements according to the specific situation, so as to ensure the quality of the professional speech data set; The open source general voice library and the professional voice data set are merged to train and test the voice recognition neural network to obtain an enhanced voice recognition model, which specifically includes: Merge the open source general voice database and professional voice dataset to divide them into training set and test set; The training set is input into the speech recognition neural network for training to obtain an enhanced speech recognition model; The test set is input into the enhanced speech recognition model for recognition, and the recognition accuracy is obtained; If the recognition accuracy reaches the preset value, the enhanced speech recognition model is used as the final enhanced speech recognition model; If the recognition accuracy rate does not reach the preset value, the enhanced speech recognition model is debugged and optimized until the recognition accuracy rate reaches the preset value, and the debugged and optimized enhanced speech recognition model is used as the final enhanced speech recognition model.

6. A computer device comprising a processor and a memory for storing a program executable by the processor, It is characterized in that When the processor executes the program stored in the memory, the speech recognition method described in any one of claims 1 to 4 is implemented.

7. A storage medium storing a program, It is characterized in that When the program is executed by a processor, the speech recognition method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • A corpus training method and system

    CN109213996A

  • Deep learning-based word segmentation device training method and device

    CN110032619A

  • Children language ability evaluation method based on artificial intelligence

    CN110675292A

  • Airport control decision support system and method based on controller instruction semantic recognition

    CN111667830A

  • Feedback speech enhancement method for enhancing memory

    CN113269305A