A method and system for generating speech manuscripts based on algorithm model
By parsing and feature-enhancing the speech audio and video, combined with the labeling and intent scoring of speech recognition, the problem of focus and professionalism of text expansion in the existing technology is solved, and the quality of the speech and the effect of information dissemination are improved.
Patent Information
- Application Number
- CN202411095050.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The existing technology cannot carry out focused expansion during text expansion, resulting in highly professional speeches, difficult to understand information dissemination, and inability to automatically learn the characteristics of massive data, resulting in low text expansion quality.
By parsing the speech audio and video, removing the background and identifying different types of features, feature enhancement is performed, and the tags and intent scores obtained from speech recognition are used to train the expanded network model and update the enhancement weights to generate focused and accurate Text expansion.
It achieves the generation of focused and easy-to-understand text expansion, improves the quality of speeches, and enables information to be disseminated in a simple and easy-to-understand manner.
Smart Images

Figure CN118657121B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for generating speech manuscripts based on an algorithm model. Background Art
[0002] When expanding a text, the prior art usually generates the expanded text in the form of a text search recommendation combination. However, since this expansion method is to expand the expanded text indiscriminately and cannot perform focused expansion, the speaker is required to manually modify the expanded text. In addition, the prior art does not pay attention to the processing of spoken language, resulting in the expanded speech being too professional, which is not conducive to disseminating information in a simple and easy-to-understand manner through speeches. In addition, the content generated by the prior art is limited to the materials organized by the user, and cannot automatically learn the characteristics of massive data, resulting in low quality of text expansion obtained by the prior art. Summary of the invention
[0003] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and to propose a speech manuscript generation method and system based on an algorithm model, which can improve the quality of text expansion.
[0004] In a first aspect, the present invention provides a method for generating a speech manuscript based on an algorithm model, comprising:
[0005] Obtaining a first speech audio and video file during training, parsing the first speech audio and video file to obtain a first audio and video result, and preprocessing the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of several frames;
[0006] Generate a first mask layer according to the grayscale histogram of the first image result, remove the background of the first image result according to the first mask layer, obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area, and a picture area;
[0007] Performing the same enhancement on the features corresponding to the text area, the table area, and the picture area according to the initial first enhancement weight to obtain enhanced features, and using the enhanced features as the input of the initial first expansion network model, and using the output expanded text as the first input of the initial first twin network model;
[0008] Recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and extract the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model;
[0009] According to the first twin network model, the feature intent score of the first input and the label intent score of the second input are obtained respectively, and the first loss function is obtained according to the feature intent score and the label intent score, and the first twin network model and the first expanded network model are trained according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training;
[0010] After several trainings, a trained second expansion network model is obtained, and a speech manuscript is generated based on the speech material during the test of the second expansion network model.
[0011] The present invention adopts the method of analyzing the speech audio and video, and then processing the obtained first image result and audio result respectively, taking the first image result as training data, and removing the background and identifying the type to be detected first, thereby removing the background interference and noise, thereby obtaining the accurate area of the type to be identified of the first image result to be detected, which is convenient for accurately obtaining the features of the type to be identified; and, by performing feature enhancement on features of different types, it is possible to construct features with different emphases, which is convenient for generating expanded text with emphasis, thereby improving the expanded quality of the speech, and taking the speech fragments obtained by speech recognition as labels, and obtaining the intention score of the label and the intention score of the expanded text at the same time, and simultaneously performing parameter changes and enhancement weight updates on the expansion network model and the twin network used to evaluate similarity, and being able to synchronously update the enhancement weights and parameters according to the labels, so as to automatically learn the features of massive data, obtain more accurate text expansion with emphasis, thereby improving the expansion quality.
[0012] Further, the feature intent score includes: a text feature intent score, a table feature intent score, and a picture feature intent score; the label intent score includes: a text label intent score, a table label intent score, and a picture label intent score; and the updating of the first enhancement weight according to the feature intent score and the label intent score at the same time includes:
[0013] Respectively obtain a first mean square difference between the text feature intention score and the text label intention score, a second mean square difference between the table feature intention score and the table label intention score, and a third mean square difference between the image feature intention score and the image label intention score;
[0014] The sum of errors of the first mean square error, the second mean square error and the third mean square error is obtained, and the first enhancement weight is updated according to a difference between the sum of the errors and a preset scoring threshold.
[0015] The present invention adopts the mean square error of the intention of labels and features to update the enhancement weights, which can reduce the difference in the description of the emphasis intention between the training model and the real data according to the difference; at the same time, the language expression in the real scene is obtained from the spoken voice expression, and the language expression in the real scene is labeled to obtain a standardized expanded text, de-professionalize and strengthen the emphasis, so as to achieve more accurate, focused and easy-to-understand text expansion, thereby improving the expansion quality.
[0016] Further, the first enhancement weight includes: a first text enhancement weight, a first table enhancement weight and a first picture enhancement weight; the obtaining the sum of errors of the first mean square error, the second mean square error and the third mean square error, and updating the first enhancement weight according to the difference between the sum of errors and a preset scoring threshold, includes:
[0017] When the difference is greater than the difference threshold, the first text enhancement weight is updated with the first mean square error as a negative growth value, and the first table enhancement weight and the first picture enhancement weight are respectively updated with the second mean square error and the third mean square error as positive growth values, so that in the next training, the features of the expanded text part with strong text features are weakened according to the corresponding second text enhancement weight, second table enhancement weight and second picture enhancement weight, and the features of the expanded text part with weak non-text features are enhanced;
[0018] Otherwise, the first text enhancement weight is updated with the first mean square error as the positive growth value, and the first table enhancement weight and the first picture enhancement weight are updated with the second mean square error and the third mean square error as the negative growth values, respectively, so that in the next training, the corresponding third text enhancement weight, third table enhancement weight and third picture enhancement weight are used to enhance the features of the expanded text part with weak text features, and weaken the features of the expanded text part with weak non-text features.
[0019] Further, the first image result to be detected is classified to obtain a text area, a table area and a picture area, including:
[0020] Detecting the target to be identified in the first image result to be detected according to a pre-trained clustering algorithm, and classifying the obtained target to be identified to obtain a number of unidentified areas to be identified; wherein the types include: text, table and picture;
[0021] The several areas to be identified are respectively used as inputs of a pre-trained image recognition model. The image recognition model performs type recognition on the several areas to be identified, and correspondingly obtains several text areas, table areas and picture areas, so that the text areas, the table areas and the picture areas are recognized according to the pre-trained optical character recognition model to obtain key information.
[0022] Further, the features corresponding to the text area, the table area, and the picture area are enhanced in the same manner according to the initial first enhancement weight to obtain enhanced features, including:
[0023] The key information corresponding to the text area, the table area and the picture area are respectively identified, and the key information is parsed to obtain key information features, the first enhancement weight is used as the gain of the key information features, and the key information features are enhanced with a preset offset to obtain enhanced features; wherein the enhanced features include: text enhancement features, table enhancement features and picture enhancement features.
[0024] Further, generating a first mask layer according to the grayscale histogram of the first image result, and removing the background of the first image result according to the first mask layer to obtain the first image result to be detected displayed in a grayscale image, includes:
[0025] The first image result is converted into a grayscale image, and the grayscale values of the first pixels of the grayscale image are counted, a grayscale histogram is drawn according to the grayscale values of the first pixels, the grayscale histogram is converted into a grayscale normal distribution diagram, a first mask layer is generated according to the second pixel grayscale values corresponding to the standard deviation of the grayscale normal distribution diagram, and according to the first mask layer, the grayscale values of the pixels in the grayscale image that are greater than the second pixel grayscale value are retained, so as to obtain the first image result to be detected with the background removed and still displayed in a grayscale image.
[0026] Further, the method of using the enhanced features as the input of the initial first expansion network model and using the output expanded text as the first input of the initial first twin network model includes:
[0027] The enhanced features corresponding to the first image results of M consecutive frames with a step size not greater than M are intercepted as the input of the initial first expansion network model, the first expansion network model maps the enhanced features, outputs the expanded text of M consecutive frames, and uses the expanded text as the first input of the initial first twin network model; wherein M is a positive integer.
[0028] Further, the audio result is recognized according to the trained first speech recognition network model to obtain the speech text of the speaker, including:
[0029] Performing Fourier FFT transform on the audio result, passing the energy spectrum of the obtained spectrum signal through a set of Mel filters, performing discrete cosine transform on the obtained output to obtain MFCC coefficients, extracting dynamic differential parameters of the MFCC coefficients, and obtaining multidimensional MFCC parameters;
[0030] Using the MFCC parameters as a pre-trained first speech recognition network model based on a deep neural network and long short-term memory for input to perform silence detection to obtain a silence detection result, and dividing the audio result according to the silence detection result to obtain a plurality of speech division results;
[0031] The plurality of speech division results are subjected to speaker classification to obtain the speech speech of the speaker, and the speech speech is decoded to obtain the speech text of the speaker.
[0032] Further, generating a speech manuscript based on the speech material during the test according to the second expansion network model includes:
[0033] Parsing the speech material to obtain a second image result, generating a second mask layer according to a grayscale histogram of the second image result, removing the background of the second image result according to the second mask layer to obtain a second image result to be detected displayed in a grayscale image, and classifying the second image result to be detected to obtain a test text area, a test table area, and a test picture area;
[0034] The test text area, the test table area and the test picture area are enhanced with the third enhancement weight obtained during training to obtain test enhancement features, and the test enhancement features are used as input of the second expansion network model. According to the output of the second expansion network model, the speech manuscript is obtained.
[0035] In a second aspect, the present invention provides a speech manuscript generation system based on an algorithm model, comprising: a parsing unit, a first classification unit, an expansion unit, a speech recognition unit, a training unit and a testing unit; wherein:
[0036] The parsing unit is used to obtain a first speech audio and video file during training, parse the first speech audio and video file to obtain a first audio and video result, and pre-process the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of a plurality of frames;
[0037] The first classification unit is used to generate a first mask layer according to a grayscale histogram of the first image result, remove the background of the first image result according to the first mask layer, obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area and a picture area;
[0038] The expansion unit is used to perform the same enhancement on the features corresponding to the text area, the table area and the picture area according to the initial first enhancement weight to obtain enhanced features, and use the enhanced features as the input of the initial first expansion network model, and use the output expanded text as the first input of the initial first twin network model;
[0039] The speech recognition unit is used to recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and to intercept the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model;
[0040] The training unit is used to obtain the feature intent score of the first input and the label intent score of the second input respectively according to the first twin network model, obtain a first loss function according to the feature intent score and the label intent score, and train the first twin network model and the first expanded network model according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training;
[0041] The testing unit is used to obtain a trained second expansion network model after several trainings, and generate a speech manuscript based on the speech material during the test of the second expansion network model. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of a method for generating a speech manuscript based on an algorithm model provided by an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of a flow chart of obtaining a speech text provided by an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of a process of updating the first type of feature enhancement provided by an embodiment of the present invention;
[0045] Figure 4 is a schematic diagram of a flow chart of a second type of feature enhancement update provided by an embodiment of the present invention;
[0046] Figure 5 It is a flowchart of a complete method for generating a speech manuscript based on an algorithm model provided by an embodiment of the present invention;
[0047] Figure 6 It is a structural diagram of a speech manuscript generation system based on an algorithm model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] See also Figure 1 , is a flow chart of a method for generating a speech manuscript based on an algorithm model provided by an embodiment of the present invention, comprising: steps S11 to S16, specifically:
[0050] Step S11, obtain the first speech audio and video file during training, parse the first speech audio and video file to obtain a first audio and video result, and preprocess the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of several frames.
[0051] It is worth noting that the first audio and video result obtained by analysis includes: video image results and speech audio results; wherein, the speech audio result is preprocessed to obtain the audio result, including: pre-emphasis, framing and windowing the speech audio result to obtain the audio result.
[0052] In an optional embodiment, the audio result includes multiple language types, and the specific language type is identified according to the actual scenario.
[0053] In an optional embodiment, the audio result may be subjected to language recognition to obtain an audio result in a known language, so that subsequent processing may be performed based on the audio result in the known language.
[0054] It is worth noting that the video image result is preprocessed to obtain the first image result, including: reading each frame of the video image result, removing duplicate video image results, and recording the duration of the deduplicated video image results, so as to query the time period corresponding to the enhanced feature according to the duration over time; transforming the obtained deduplicated video image results to obtain multiple types of first image results; wherein the transformation includes at least one of flipping, rotating, cropping, color transformation, noise addition, blurring, erasing, filling, etc. Preprocessing the image data can reduce the sensitivity of the model to the image, thereby improving the generalization ability of the model.
[0055] Step S12: Generate a first mask layer according to the grayscale histogram of the first image result, remove the background of the first image result according to the first mask layer, obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area and a picture area.
[0056] Among them, according to the grayscale histogram of the first image result, a first mask layer is generated, and according to the first mask layer, the background of the first image result is removed to obtain the first image result to be detected displayed in a grayscale image, including: converting the first image result into a grayscale image, and counting the grayscale values of the first pixels of the grayscale image, drawing a grayscale histogram according to the first pixel grayscale values, converting the grayscale histogram into a grayscale normal distribution graph, generating a first mask layer according to the second pixel grayscale value corresponding to the standard deviation of the grayscale normal distribution graph, and according to the first mask layer, retaining the grayscale values greater than the second pixel grayscale value in the grayscale image to obtain the first image result to be detected with the background removed and still displayed in a grayscale image.
[0057] The first image result to be detected is classified to obtain a text area, a table area and a picture area, including: detecting a target to be identified in the first image result to be detected according to a pre-trained clustering algorithm, and classifying the obtained target to be identified to obtain a number of unidentified areas to be identified; wherein the types include: text, table and picture; using the several areas to be identified as inputs of a pre-trained image recognition model respectively, and the image recognition model performs type identification on the several areas to be identified, and correspondingly obtains a number of text areas, table areas and picture areas, so that the text area, the table area and the picture area are identified according to the pre-trained optical character recognition model to obtain key information.
[0058] It is worth noting that the present invention first removes the background of the image result according to the grayscale histogram. At this time, an image result of unknown type is obtained. The present invention then uses a clustering algorithm to cluster the image result to monitor several areas of different types. Now, it is only necessary to identify the types of several areas, and the corresponding features can be obtained according to different types of areas.
[0059] As an optional embodiment, the clustering algorithm for identifying the target to be identified by the first image result to be detected is any one of a K-MEANS clustering algorithm, a K-MEANS clustering algorithm, an expectation maximization (EM) clustering using a Gaussian mixture model (GMM), a hierarchical clustering algorithm or a synthetic clustering algorithm.
[0060] It is worth noting that all clustering algorithms mentioned in the present invention adopt any one of the K-MEANS clustering algorithm, the K-MEANS clustering algorithm, the expectation maximization (EM) clustering using the Gaussian mixture model (GMM), the hierarchical clustering algorithm or the composite clustering algorithm.
[0061] It is worth noting that if other clustering algorithms are used to achieve the same functions of the present invention, they should also be regarded as clustering algorithms falling within the scope of the present invention, and no limitation is made herein on the specific clustering algorithms used.
[0062] As an optional embodiment, after obtaining the text area, the table area and the image area, the text area, the table area and the image area may be preprocessed for a second time to change the shape or area of different areas; wherein the second preprocessing includes at least one of deformation or scaling. By changing the shape or area of different areas, the model's ability to expand different types of areas with different shapes or areas is improved, that is, by changing different types of areas, the implicit influence on the emphasis of the expanded text can be obtained, thereby improving the ability to expand the expanded text with emphasis, thereby improving the expansion quality and improving the user experience.
[0063] As an optional embodiment, the image recognition model includes: the convolution kernel is decomposed into and A Resnet network is used to perform low-rank decomposition on the input, and the residual parameter block of the Resnet network is a residual parameter structure of BN-Conv-BN-PRelu-Conv-BN, and the discrete probabilities of text, tables and pictures are used as outputs to discriminate the input.
[0064] As an optional embodiment, the image recognition model is one of the YOLO series algorithms; wherein, low-rank decomposition is adopted for at least one convolution layer in the YOLO series algorithms; and a Resnet network with a BN-Conv-BN-PRelu-Conv-BN residual parameter structure is added to the YOLO series algorithms.
[0065] Step S13: perform the same enhancement on the features corresponding to the text area, the table area and the picture area according to the initial first enhancement weight to obtain enhanced features, and use the enhanced features as the input of the initial first expansion network model, and use the output expanded text as the first input of the initial first twin network model.
[0066] Among them, according to the initial first enhancement weight, the features corresponding to the text area, the table area and the picture area are enhanced in the same way to obtain enhanced features, including: respectively identifying the key information corresponding to the text area, the table area and the picture area, and parsing the key information to obtain key information features, using the first enhancement weight as the gain of the key information features, and enhancing the key information features with a preset offset to obtain enhanced features; wherein the enhanced features include: text enhancement features, table enhancement features and picture enhancement features.
[0067] As an optional embodiment, after obtaining the key information features, it also includes: performing matrix low-rank decomposition on the key features to obtain reduced-dimensional key information features, so that the first enhancement weight is used as the gain of the reduced-dimensional key information features, and the reduced-dimensional key information features are enhanced with a preset offset.
[0068] It is worth noting that the first image result includes: speaker, speech PPT, speech manuscript and multimedia playback, and multimedia playback includes: audio or video. The pre-processed first image results are represented by key features. The key features are actually represented by a visual feature matrix. The visual feature matrix is mathematically low-rank, that is, several consecutive first image results will have similar content information, and it is necessary to separate the similar content information while keeping the retained content information unchanged. Therefore, the present invention adopts low-rank decomposition of key features, which can remove similar content information while keeping the distinguishing features between text, tables and pictures unchanged.
[0069] Using the enhanced features as the input of the initial first expansion network model, and using the output expanded text as the first input of the initial first twin network model, including: intercepting the enhanced features corresponding to the first image results of M consecutive frames with a step size not greater than M as the input of the initial first expansion network model, the first expansion network model maps the enhanced features, outputs M consecutive frames of expanded text, and uses the expanded text as the first input of the initial first twin network model; wherein M is a positive integer.
[0070] As an optional embodiment, the first expanded network model includes at least one of CNN (Convolutional Neural Network), RNN (Recurrent Neural Network) and Transformer.
[0071] As a preferred embodiment, the present invention adopts LSTM (Long Short Term Memory networks) as the first expansion network model. The specific structure of LSTM includes: two transmission states, namely, a cell state and a hidden layer state, and inputting the cell state, the hidden layer state and the input data of the previous state into a cyclic unit to obtain the cell state, the hidden layer state and the output data of the current state; using a neural network to score each hidden state from the encoder, and then normalizing it to the probability of the encoder hidden state, and using these probabilities to calculate the weighted sum of the encoder hidden states to provide a context vector used in the decoder, so that the context vector summarizes the entire input sequence into a single vector.
[0072] Step S14: recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and extract the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model.
[0073] The audio result is recognized according to the trained first speech recognition network model to obtain the speaker's speech text, including: sub-steps S141 to S143, see Figure 2 , is a flow chart of obtaining a speech text provided by an embodiment of the present invention, specifically:
[0074] Sub-step S141, performing Fourier FFT transform on the audio result, and passing the energy spectrum of the obtained spectrum signal through a set of Mel filters, performing discrete cosine transform on the obtained output to obtain MFCC coefficients, extracting dynamic differential parameters of the MFCC coefficients, and obtaining multidimensional MFCC parameters.
[0075] Sub-step S142: using the MFCC parameters as a pre-trained first speech recognition network model based on a deep neural network and long short-term memory for input to perform silence detection to obtain a silence detection result, and dividing the audio result according to the silence detection result to obtain a plurality of speech division results.
[0076] Sub-step S143: classify the plurality of speech division results by speaker to obtain the speech speech of the speaker, and decode the speech speech to obtain the speech text of the speaker.
[0077] Step S15: According to the first twin network model, the feature intent score of the first input and the label intent score of the second input are respectively obtained, and a first loss function is obtained according to the feature intent score and the label intent score, and the first twin network model and the first expanded network model are trained according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training.
[0078] It is worth noting that the feature intent score includes: text feature intent score, table feature intent score and image feature intent score; the label intent score includes: text label intent score, table label intent score and image label intent score.
[0079] Among them, the updating of the first enhancement weight according to the feature intent score and the label intent score at the same time includes: respectively obtaining a first mean square error between the text feature intent score and the text label intent score, a second mean square error between the table feature intent score and the table label intent score, and a third mean square error between the image feature intent score and the image label intent score; obtaining the sum of the errors of the first mean square error, the second mean square error and the third mean square error, and updating the first enhancement weight according to the difference between the total error and a preset score threshold.
[0080] The present invention adopts the mean square error of the intention of labels and features to update the enhancement weights, which can reduce the difference in the description of the emphasis intention between the training model and the real data according to the difference, thereby achieving more accurate text expansion with emphasis, thereby improving the expansion quality.
[0081] It is worth noting that the first enhancement weight includes: a first text enhancement weight, a first table enhancement weight and a first picture enhancement weight.
[0082] Wherein, the sum of the errors of the first mean square error, the second mean square error and the third mean square error is obtained, and the first enhancement weight is updated according to the difference between the total error and a preset scoring threshold, including: when the difference is greater than the difference threshold, the first mean square error is used as a negative growth value to update the first text enhancement weight, and the second mean square error and the third mean square error are used as positive growth values to update the first table enhancement weight and the first picture enhancement weight respectively, so that in the next training, the text feature is enhanced according to the corresponding second text enhancement weight, second table enhancement weight and second picture enhancement weight. The features of the expanded text part with strong text feature expression are weakened, and the features of the expanded text part with weak non-text feature expression are enhanced; otherwise, the first text enhancement weight is updated with the first mean square error as the positive growth value, and the first table enhancement weight and the first picture enhancement weight are updated with the second mean square error and the third mean square error as the negative growth values, respectively, so that in the next training, the features of the expanded text part with weak text feature expression are enhanced according to the corresponding third text enhancement weight, third table enhancement weight and third picture enhancement weight, and the features of the expanded text part with weak non-text feature expression are weakened.
[0083] The present invention adopts the mean square error of the intention of labels and features to update the enhancement weights, which can reduce the difference in the description of the emphasis intention between the training model and the real data according to the difference; at the same time, the language expression in the real scene is obtained from the spoken voice expression, and the language expression in the real scene is labeled to obtain a standardized expanded text, de-professionalize and strengthen the emphasis, so as to achieve more accurate, focused and easy-to-understand text expansion, thereby improving the expansion quality.
[0084] As an alternative embodiment, see Figure 3 , is a flow chart of the first type of feature enhancement update provided in an embodiment of the present invention, obtaining a first mean square error between a text feature intent score and a text label intent score, a second mean square error between a table feature intent score and a table label intent score, and a third mean square error between a picture feature intent score and a picture label intent score; calculating the sum of the errors of the three mean square errors, and comparing the difference between the sum of the errors and the error threshold with the difference threshold.
[0085] When the difference is greater than the difference threshold, the first mean square error is used as the negative growth amount of the first text enhancement weight to obtain the second text enhancement weight, the second mean square error is used as the positive growth amount of the first table enhancement weight to obtain the second table enhancement weight, and the third mean square error is used as the positive growth amount of the first picture enhancement weight to obtain the second picture enhancement weight.
[0086] Preferably, when the difference is greater than the difference threshold, the second text enhancement weight can be expressed as:
[0087] ,
[0088] in, and are the second text enhancement weight at the next training moment and the first text enhancement weight at this training moment, respectively. It is the first mean square error as gain at this training moment, and negatively increases the first character enhancement weight; The preset offset.
[0089] Preferably, when the difference is greater than the difference threshold, the second table enhancement weight and the second picture enhancement weight can be respectively expressed as:
[0090] ,
[0091] ,
[0092] in, and The second table enhancement weights for the next training time and the first table enhancement weights for the current training time are respectively, It is the second mean square error of the gain at this training moment, which increases the weight of the first table positively; and are the second image enhancement weight at the next training moment and the first image enhancement weight at this training moment, respectively. It is the third mean square error of the gain at this training moment, and the first picture enhancement weight is positively increased.
[0093] When the difference is not greater than the difference threshold, the first mean square error is used as the positive growth amount of the first text enhancement weight to obtain the third text enhancement weight, the second mean square error is used as the negative growth amount of the first table enhancement weight to obtain the third table enhancement weight, and the third mean square error is used as the negative growth amount of the first picture enhancement weight to obtain the third picture enhancement weight.
[0094] Similarly, when the difference is not greater than the difference threshold, the third text enhancement weight, the second table enhancement weight, and the second picture enhancement weight can be respectively expressed as:
[0095] ,
[0096] ,
[0097] ,
[0098] in, The preset offset.
[0099] As another optional embodiment, the first mean square error, the second mean square error and the third mean square error are Normalize and update the first enhancement weight based on the normalized result. Figure 4 , is a flow chart of the second type of feature enhancement update provided by an embodiment of the present invention.
[0100] Similarly, when the difference is greater than the difference threshold, the second text enhancement weight can be expressed as:
[0101] ,
[0102] in, It is the first normalized result of the gain at this training moment, and the first character enhancement weight is negatively increased.
[0103] Preferably, when the difference is greater than the difference threshold, the second table enhancement weight and the second picture enhancement weight can be respectively expressed as:
[0104] ,
[0105] ,
[0106] in, It is the second normalized result of the gain at this training moment, and the enhanced weight of the first table is positively increased; It is the third normalized result of the gain at this training moment, and the first picture enhancement weight is positively increased.
[0107] Exemplarily, the first normalization result, the second normalization result, and the third normalization result may be expressed as:
[0108] .
[0109] It is worth noting that
[0110] Similarly, when the difference is not greater than the difference threshold, the third text enhancement weight, the second table enhancement weight, and the second picture enhancement weight can be respectively expressed as:
[0111] ,
[0112] ,
[0113] ,
[0114] in, The preset offset.
[0115] It is worth noting that the normalization results include: a first normalization result, a second normalization result and a third normalization result. The present invention can avoid suddenly over-enhancing or over-weakening the features by normalizing the gain, thereby realizing focused text generation according to features with different weights.
[0116] In an optional embodiment, the error sum can be expressed as:
[0117] .
[0118] In another optional embodiment, the error sum can be expressed as:
[0119] .
[0120] It is worth noting that the error sum is used as the first loss function common to the first twin network model and the first expanded network model to perform simultaneous parameter updates.
[0121] Step S16: After several trainings, a trained second expansion network model is obtained, and a speech manuscript is generated based on the speech material during the test of the second expansion network model.
[0122] Specifically, a speech manuscript is generated based on the speech material during testing according to the second expansion network model and the second twin network model, including: parsing the speech material to obtain a second image result, and generating a second mask layer according to the grayscale histogram of the second image result, and removing the background of the second image result according to the second mask layer to obtain a second image result to be detected displayed in a grayscale image, and classifying the second image result to be detected to obtain a test text area, a test table area and a test picture area; enhancing the test text area, the test table area and the test picture area with the third enhancement weight obtained during training to obtain a test enhancement feature, and using the test enhancement feature as the input of the second expansion network model, and obtaining the speech manuscript according to the output of the second expansion network model.
[0123] As an optional embodiment, the speech materials include: PDF, word or ppt for presentation.
[0124] The present invention adopts the method of analyzing the speech audio and video, and then processing the obtained first image result and audio result respectively, taking the first image result as training data, and removing the background and identifying the type to be detected first, thereby removing the background interference and noise, thereby obtaining an accurate area of the type to be identified of the first image result to be detected, which is convenient for accurately obtaining the features of the type to be identified; and, by performing feature enhancement on features of different types, it is possible to construct features with different emphases, thereby facilitating the generation of focused expanded text, thereby improving the expanded quality of the speech, and taking the speech fragments obtained by speech recognition as labels, and obtaining the intention score of the label and the intention score of the expanded text at the same time, and simultaneously performing parameter changes and enhancement weight updates on the expansion network model and the twin network for evaluating similarity, and being able to synchronously update the enhancement weights and parameters according to the labels, so as to obtain more accurate focused text expansion, thereby improving the expansion quality.
[0125] Example 2
[0126] See also Figure 5 , is a flow chart of a complete method for generating a speech manuscript based on an algorithm model provided in an embodiment of the present invention. The speech manuscript generation process obtains the target speech manuscript in the order of training the model first and then testing it.
[0127] Among them, after parsing the first speech audio and video file, the first video result and the audio result are executed differently in no particular order; the first twin network model includes two networks in the first twin network, specifically a first network and a second network, the first network is used to process the feature intention score of the expanded text as the first input, and the obtained feature intention score includes the text feature intention score, the table feature intention score and the picture feature intention score; and the second network is used to process the label intention score of the expanded text as the second input, and the obtained label intention score includes: the text label intention score, the table label intention score and the picture label intention score.
[0128] It is worth noting that Figure 5 The method includes two clustering algorithms, which respectively classify the types of the detailed explanation of the first figure to be detected and classify the speakers of several voice division results, and obtain the detection results of the text area, table area and picture area, as well as the detection results of the speaker's speech text.
[0129] The present invention adopts the method of analyzing the speech audio and video, and then processing the obtained first image result and audio result respectively, taking the first image result as training data, and removing the background and identifying the type to be detected first, thereby removing the background interference and noise, thereby obtaining an accurate area of the type to be identified of the first image result to be detected, which is convenient for accurately obtaining the features of the type to be identified; and, by performing feature enhancement on features of different types, it is possible to construct features with different emphases, thereby facilitating the generation of focused expanded text, thereby improving the expanded quality of the speech, and taking the speech fragments obtained by speech recognition as labels, and obtaining the intention score of the label and the intention score of the expanded text at the same time, and simultaneously performing parameter changes and enhancement weight updates on the expansion network model and the twin network for evaluating similarity, and being able to synchronously update the enhancement weights and parameters according to the labels, so as to obtain more accurate focused text expansion, thereby improving the expansion quality.
[0130] Example 3
[0131] See also Figure 6 , is a structural diagram of a speech manuscript generation system based on an algorithm model provided in an embodiment of the present invention, comprising: a parsing unit 61, a first classification unit 62, an expansion unit 63, a speech recognition unit 64, a training unit 65 and a testing unit 66.
[0132] It is worth noting that the parsing unit 61 mainly parses and preprocesses the first speech audio and video file, transmits the first image result in the second audio and video result to the first classification unit 62, and transmits the audio result in the second audio and video result to the speech recognition unit 64; after the first classification unit 62 receives the first image result in the second audio and video result, it removes the background of the first image result, identifies different types of areas, and transmits the obtained text area, table area and picture area to the expansion unit 63; after the expansion unit 63 receives the text area, table area and picture area, it first enhances the features, and then expands the text area according to the enhanced features to obtain the expanded text area. Write text and use the expanded text as the input of a network of the training unit; after receiving the audio result, the speech recognition unit 64 identifies the speaker's speech segment and transmits it to the training unit 65, so as to serve as the input of another network of the training unit 65; the training unit 65 outputs the feature intention score and label intention score of the two inputs according to the twin network based on the two received inputs, and conducts several trainings based on the feature intention score and label intention score, and transmits the trained second expansion network model to the testing unit 66; after receiving the second expansion network model, the testing unit 66 automatically generates a speech manuscript based on the speech material to be tested.
[0133] The parsing unit 61 is used to obtain the first speech audio and video file during training, parse the first speech audio and video file to obtain a first audio and video result, and preprocess the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of several frames.
[0134] The first classification unit 62 is used to generate a first mask layer according to the grayscale histogram of the first image result, and remove the background of the first image result according to the first mask layer to obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area and a picture area.
[0135] Among them, according to the grayscale histogram of the first image result, a first mask layer is generated, and according to the first mask layer, the background of the first image result is removed to obtain the first image result to be detected displayed in a grayscale image, including: converting the first image result into a grayscale image, and counting the grayscale values of the first pixels of the grayscale image, drawing a grayscale histogram according to the first pixel grayscale values, converting the grayscale histogram into a grayscale normal distribution graph, generating a first mask layer according to the second pixel grayscale value corresponding to the standard deviation of the grayscale normal distribution graph, and according to the first mask layer, retaining the grayscale values greater than the second pixel grayscale value in the grayscale image to obtain the first image result to be detected with the background removed and still displayed in a grayscale image.
[0136] The first image result to be detected is classified to obtain a text area, a table area and a picture area, including: detecting a target to be identified in the first image result to be detected according to a pre-trained clustering algorithm, and classifying the obtained target to be identified to obtain a number of unidentified areas to be identified; wherein the types include: text, table and picture; using the several areas to be identified as inputs of a pre-trained image recognition model respectively, and the image recognition model performs type identification on the several areas to be identified, and correspondingly obtains a number of text areas, table areas and picture areas, so that the text area, the table area and the picture area are identified according to the pre-trained optical character recognition model to obtain key information.
[0137] The expansion unit 63 is used to perform the same enhancement on the features corresponding to the text area, the table area and the picture area according to the initial first enhancement weight to obtain enhanced features, and use the enhanced features as the input of the initial first expansion network model, and use the output expanded text as the first input of the initial first twin network model.
[0138] Among them, according to the initial first enhancement weight, the features corresponding to the text area, the table area and the picture area are enhanced in the same way to obtain enhanced features, including: respectively identifying the key information corresponding to the text area, the table area and the picture area, and parsing the key information to obtain key information features, using the first enhancement weight as the gain of the key information features, and enhancing the key information features with a preset offset to obtain enhanced features; wherein the enhanced features include: text enhancement features, table enhancement features and picture enhancement features.
[0139] Using the enhanced features as the input of the initial first expansion network model, and using the output expanded text as the first input of the initial first twin network model, including: intercepting the enhanced features corresponding to the first image results of M consecutive frames with a step size not greater than M as the input of the initial first expansion network model, the first expansion network model maps the enhanced features, outputs M consecutive frames of expanded text, and uses the expanded text as the first input of the initial first twin network model; wherein M is a positive integer.
[0140] The speech recognition unit 64 is used to recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and to extract the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model.
[0141] The audio result is recognized according to the trained first speech recognition network model to obtain the speaker's speech text, including: sub-steps S141 to S143, specifically:
[0142] Sub-step S141, performing Fourier FFT transform on the audio result, and passing the energy spectrum of the obtained spectrum signal through a set of Mel filters, performing discrete cosine transform on the obtained output to obtain MFCC coefficients, extracting dynamic differential parameters of the MFCC coefficients, and obtaining multidimensional MFCC parameters.
[0143] Sub-step S142: using the MFCC parameters as a pre-trained first speech recognition network model based on a deep neural network and long short-term memory for input to perform silence detection to obtain a silence detection result, and dividing the audio result according to the silence detection result to obtain a plurality of speech division results.
[0144] Sub-step S143: classify the plurality of speech division results by speaker to obtain the speech speech of the speaker, and decode the speech speech to obtain the speech text of the speaker.
[0145] The training unit 65 is used to obtain the feature intent score of the first input and the label intent score of the second input according to the first twin network model, obtain a first loss function according to the feature intent score and the label intent score, and train the first twin network model and the first expanded network model according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training.
[0146] It is worth noting that the feature intent score includes: text feature intent score, table feature intent score and image feature intent score; the label intent score includes: text label intent score, table label intent score and image label intent score.
[0147] Among them, the updating of the first enhancement weight according to the feature intent score and the label intent score at the same time includes: respectively obtaining a first mean square error between the text feature intent score and the text label intent score, a second mean square error between the table feature intent score and the table label intent score, and a third mean square error between the image feature intent score and the image label intent score; obtaining the sum of the errors of the first mean square error, the second mean square error and the third mean square error, and updating the first enhancement weight according to the difference between the total error and a preset score threshold.
[0148] It is worth noting that the first enhancement weight includes: a first text enhancement weight, a first table enhancement weight and a first picture enhancement weight.
[0149] Wherein, the sum of the errors of the first mean square error, the second mean square error and the third mean square error is obtained, and the first enhancement weight is updated according to the difference between the total error and a preset scoring threshold, including: when the difference is greater than the difference threshold, the first mean square error is used as a negative growth value to update the first text enhancement weight, and the second mean square error and the third mean square error are used as positive growth values to update the first table enhancement weight and the first picture enhancement weight respectively, so that in the next training, the text feature is enhanced according to the corresponding second text enhancement weight, second table enhancement weight and second picture enhancement weight. The features of the expanded text part with strong text feature expression are weakened, and the features of the expanded text part with weak non-text feature expression are enhanced; otherwise, the first text enhancement weight is updated with the first mean square error as the positive growth value, and the first table enhancement weight and the first picture enhancement weight are updated with the second mean square error and the third mean square error as the negative growth values, respectively, so that in the next training, the features of the expanded text part with weak text feature expression are enhanced according to the corresponding third text enhancement weight, third table enhancement weight and third picture enhancement weight, and the features of the expanded text part with weak non-text feature expression are weakened.
[0150] The testing unit 66 is used to obtain a trained second expansion network model after several trainings, and generate a speech manuscript based on the speech material during the test of the second expansion network model.
[0151] Specifically, a speech manuscript is generated based on the speech material during testing according to the second expansion network model and the second twin network model, including: parsing the speech material to obtain a second image result, and generating a second mask layer according to the grayscale histogram of the second image result, and removing the background of the second image result according to the second mask layer to obtain a second image result to be detected displayed in a grayscale image, and classifying the second image result to be detected to obtain a test text area, a test table area and a test picture area; enhancing the test text area, the test table area and the test picture area with the third enhancement weight obtained during training to obtain a test enhancement feature, and using the test enhancement feature as the input of the second expansion network model, and obtaining the speech manuscript according to the output of the second expansion network model.
[0152] The present invention adopts the method of analyzing the speech audio and video, and then processing the obtained first image result and audio result respectively, taking the first image result as training data, and removing the background and identifying the type to be detected first, thereby removing the background interference and noise, thereby obtaining an accurate area of the type to be identified of the first image result to be detected, which is convenient for accurately obtaining the features of the type to be identified; and, by performing feature enhancement on features of different types, it is possible to construct features with different emphases, thereby facilitating the generation of focused expanded text, thereby improving the expanded quality of the speech, and taking the speech fragments obtained by speech recognition as labels, and obtaining the intention score of the label and the intention score of the expanded text at the same time, and simultaneously performing parameter changes and enhancement weight updates on the expansion network model and the twin network for evaluating similarity, and being able to synchronously update the enhancement weights and parameters according to the labels, so as to obtain more accurate focused text expansion, thereby improving the expansion quality.
[0153] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.
[0154] 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.
[0155] 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 including 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.
[0156] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for generating speech manuscripts based on an algorithm model, characterized in that: include: Obtaining a first speech audio and video file during training, parsing the first speech audio and video file to obtain a first audio and video result, and preprocessing the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of several frames; Generate a first mask layer according to the grayscale histogram of the first image result, remove the background of the first image result according to the first mask layer, obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area, and a picture area; Performing the same enhancement on the features corresponding to the text area, the table area, and the picture area according to the initial first enhancement weight to obtain enhanced features, and using the enhanced features as the input of the initial first expansion network model, and using the output expanded text as the first input of the initial first twin network model; Recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and extract the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model; According to the first twin network model, the feature intent score of the first input and the label intent score of the second input are obtained respectively, and the first loss function is obtained according to the feature intent score and the label intent score, and the first twin network model and the first expanded network model are trained according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training; After several trainings, a trained second expansion network model is obtained, and the speech material during the test is processed according to the second expansion network model to generate a speech manuscript; The feature intent score includes: a text feature intent score, a table feature intent score, and a picture feature intent score; the label intent score includes: a text label intent score, a table label intent score, and a picture label intent score; and the updating of the first enhancement weight according to the feature intent score and the label intent score simultaneously includes: Respectively obtain a first mean square difference between the text feature intention score and the text label intention score, a second mean square difference between the table feature intention score and the table label intention score, and a third mean square difference between the image feature intention score and the image label intention score; The sum of errors of the first mean square error, the second mean square error and the third mean square error is obtained, and the first enhancement weight is updated according to a difference between the sum of the errors and a preset scoring threshold.
2. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The first enhancement weight includes: a first text enhancement weight, a first table enhancement weight, and a first picture enhancement weight; the obtaining the sum of errors of the first mean square error, the second mean square error, and the third mean square error, and updating the first enhancement weight according to the difference between the sum of errors and a preset scoring threshold, includes: When the difference is greater than the difference threshold, the first text enhancement weight is updated with the first mean square error as a negative growth value, and the first table enhancement weight and the first picture enhancement weight are respectively updated with the second mean square error and the third mean square error as positive growth values, so that in the next training, the features of the expanded text part with strong text features are weakened according to the corresponding second text enhancement weight, second table enhancement weight and second picture enhancement weight, and the features of the expanded text part with weak non-text features are enhanced; Otherwise, the first text enhancement weight is updated with the first mean square error as the positive growth value, and the first table enhancement weight and the first picture enhancement weight are updated with the second mean square error and the third mean square error as the negative growth values, respectively, so that in the next training, the corresponding third text enhancement weight, third table enhancement weight and third picture enhancement weight are used to enhance the features of the expanded text part with weak text features, and weaken the features of the expanded text part with weak non-text features.
3. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The first image result to be detected is classified to obtain a text area, a table area and a picture area, including: Detecting the target to be identified in the first image result to be detected according to a pre-trained clustering algorithm, and classifying the obtained target to be identified to obtain a number of unidentified areas to be identified; wherein the types include: text, table and picture; The several areas to be identified are respectively used as inputs of a pre-trained image recognition model. The image recognition model performs type recognition on the several areas to be identified, and correspondingly obtains several text areas, table areas and picture areas, so that the text areas, the table areas and the picture areas are recognized according to the pre-trained optical character recognition model to obtain key information.
4. The method for generating a speech manuscript based on an algorithm model as claimed in claim 1, characterized in that: The same enhancement is performed on the features corresponding to the text area, the table area and the picture area according to the initial first enhancement weight to obtain enhanced features, including: The key information corresponding to the text area, the table area and the picture area are respectively identified, and the key information is parsed to obtain key information features, the first enhancement weight is used as the gain of the key information features, and the key information features are enhanced with a preset offset to obtain enhanced features; wherein the enhanced features include: text enhancement features, table enhancement features and picture enhancement features.
5. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The step of generating a first mask layer according to the grayscale histogram of the first image result, and removing the background of the first image result according to the first mask layer to obtain the first image result to be detected displayed in a grayscale image, includes: The first image result is converted into a grayscale image, and the grayscale values of the first pixels of the grayscale image are counted, a grayscale histogram is drawn according to the grayscale values of the first pixels, the grayscale histogram is converted into a grayscale normal distribution diagram, a first mask layer is generated according to the second pixel grayscale values corresponding to the standard deviation of the grayscale normal distribution diagram, and according to the first mask layer, the grayscale values of the pixels in the grayscale image that are greater than the second pixel grayscale value are retained, so as to obtain the first image result to be detected with the background removed and still displayed in a grayscale image.
6. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The step of using the enhanced features as the input of the initial first expansion network model and using the output expansion text as the first input of the initial first twin network model includes: The enhanced features corresponding to the first image results of M consecutive frames with a step size not greater than M are intercepted as the input of the initial first expansion network model, the first expansion network model maps the enhanced features, outputs the expanded text of M consecutive frames, and uses the expanded text as the first input of the initial first twin network model; wherein M is a positive integer.
7. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The step of recognizing the audio result according to the trained first speech recognition network model to obtain the speech text of the speaker includes: Performing Fourier FFT transform on the audio result, passing the energy spectrum of the obtained spectrum signal through a set of Mel filters, performing discrete cosine transform on the obtained output to obtain MFCC coefficients, extracting dynamic differential parameters of the MFCC coefficients, and obtaining multidimensional MFCC parameters; Using the MFCC parameters as a pre-trained first speech recognition network model based on a deep neural network and long short-term memory for input to perform silence detection to obtain a silence detection result, and dividing the audio result according to the silence detection result to obtain a plurality of speech division results; The plurality of speech division results are subjected to speaker classification to obtain the speech speech of the speaker, and the speech speech is decoded to obtain the speech text of the speaker.
8. The method for generating speech manuscripts based on an algorithm model as claimed in claim 1, characterized in that: The step of processing the test speech material according to the second expansion network model to generate a speech manuscript includes: Parsing the speech material to obtain a second image result, generating a second mask layer according to a grayscale histogram of the second image result, removing the background of the second image result according to the second mask layer to obtain a second image result to be detected displayed in a grayscale image, and classifying the second image result to be detected to obtain a test text area, a test table area, and a test picture area; The test text area, the test table area and the test picture area are enhanced with the third enhancement weight obtained during training to obtain test enhancement features, and the test enhancement features are used as input of the second expansion network model. According to the output of the second expansion network model, the speech manuscript is obtained.
9. A speech manuscript generation system based on an algorithm model, characterized in that: include: parsing unit, first classification unit, expansion unit, speech recognition unit, training unit and testing unit; wherein, The parsing unit is used to obtain a first speech audio and video file during training, parse the first speech audio and video file to obtain a first audio and video result, and pre-process the first audio and video result to obtain a second audio and video result; wherein the second audio and video result includes: a first image result and an audio result of a plurality of frames; The first classification unit is used to generate a first mask layer according to a grayscale histogram of the first image result, remove the background of the first image result according to the first mask layer, obtain the first image result to be detected displayed in a grayscale image, and classify the first image result to be detected to obtain a text area, a table area and a picture area; The expansion unit is used to perform the same enhancement on the features corresponding to the text area, the table area and the picture area according to the initial first enhancement weight to obtain enhanced features, and use the enhanced features as the input of the initial first expansion network model, and use the output expanded text as the first input of the initial first twin network model; The speech recognition unit is used to recognize the audio result according to the trained first speech recognition network model to obtain the speaker's speech text, and to intercept the target speech segment from the speech text according to the time period corresponding to the enhanced feature, and input the obtained speech segment as a label into the second input of the first twin network model; The training unit is used to obtain the feature intent score of the first input and the label intent score of the second input respectively according to the first twin network model, obtain a first loss function according to the feature intent score and the label intent score, and train the first twin network model and the first expanded network model according to the first loss function; wherein, the first enhancement weight is updated according to the feature intent score and the label intent score at the same time, so that the updated second enhancement weight is used for feature enhancement during the next training; The testing unit is used to obtain a trained second expansion network model after several trainings, and to process the speech material during the test according to the second expansion network model to generate a speech manuscript; The feature intent score includes: a text feature intent score, a table feature intent score, and a picture feature intent score; the label intent score includes: a text label intent score, a table label intent score, and a picture label intent score; and the updating of the first enhancement weight according to the feature intent score and the label intent score simultaneously includes: Respectively obtain a first mean square difference between the text feature intention score and the text label intention score, a second mean square difference between the table feature intention score and the table label intention score, and a third mean square difference between the image feature intention score and the image label intention score; The sum of errors of the first mean square error, the second mean square error and the third mean square error is obtained, and the first enhancement weight is updated according to a difference between the sum of the errors and a preset scoring threshold.
