A method and device for processing speech data based on multi-model selection
Through the voice data processing method of multi-model selection, the voice data with the purpose of image generation is screened out and the appropriate algorithm model is selected, which solves the problem of unsatisfactory efficiency and effect of voice generation image in the existing technology, and achieves higher automation and Intelligent.
Patent Information
- Application Number
- CN202410151187.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-02
AI Technical Summary
When generating images based on speech, the existing technology does not make full use of data characteristics, resulting in unsatisfactory prediction efficiency and effects, and a lack of automation and intelligence.
Using a voice data processing method based on multi-model selection, by obtaining the target user's voice data, using neural network algorithms and matching algorithms to screen out target voice data with image generation purposes, and selecting the most appropriate image generation algorithm model based on data parameters. Generate images.
It improves the automation and intelligence of speech-generated images, reduces user operation costs, and improves algorithm efficiency and effectiveness.
Smart Images

Figure CN118098266B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing technology, and in particular to a speech data processing method and device based on multi-model selection. Background Art
[0002] With the development of algorithm technology, users have an increasing demand to use keywords to generate images. The application scenario of automatically generating images based on the user's voice can effectively improve the user experience, so it has also been favored by some users. However, when implementing this application scenario, the existing technology generally only uses trained algorithms to directly generate images or match images based on voice, and does not fully utilize data characteristics to improve the accuracy of voice data and the rationality of model selection. Therefore, the prediction efficiency and effect are not ideal. It can be seen that the existing technology has defects that need to be solved urgently. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a speech data processing method and device based on multi-model selection, which can improve the automation and intelligence of generating images according to speech, reduce user operation costs, and improve algorithm efficiency and effect.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a speech data processing method based on multi-model selection, the method comprising:
[0005] Acquire multiple voice data of target users;
[0006] According to a preset voice screening algorithm, target voice data having the purpose of image generation is screened out from the plurality of voice data;
[0007] Determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data;
[0008] The target voice data is input into the image generation algorithm model to obtain image data corresponding to the target voice data.
[0009] As an optional implementation, in the first aspect of the present invention, the step of selecting target voice data for image generation from the plurality of voice data according to a preset voice screening algorithm comprises:
[0010] Determine the speech text and speech tone corresponding to each of the speech data according to a neural network algorithm;
[0011] Based on the matching algorithm and the similarity algorithm, according to the voice text and the voice tone, the text purpose matching degree and the tone type matching degree corresponding to each of the voice data are calculated;
[0012] According to the text purpose matching degree and the tone type matching degree, target voice data with the purpose of image generation is screened out from the plurality of voice data.
[0013] As an optional implementation, in the first aspect of the present invention, determining the speech text and speech tone corresponding to each of the speech data according to the neural network algorithm includes:
[0014] For each of the voice data, performing noise reduction processing on the voice data to obtain corresponding noise-reduced data;
[0015] Inputting the denoised data into a trained text recognition neural network model to obtain a speech text corresponding to the speech data; the text recognition neural network is trained by a training data set including a plurality of training speech data and corresponding text annotations;
[0016] The denoised data is input into a trained corresponding tone recognition neural network model to obtain the speech tone corresponding to the speech data; the tone recognition neural network is trained by a training data set including a plurality of training speech data and corresponding tone annotations; the speech tone or the tone annotation is one or a combination of two of a target tone and an emotional tone; the target tone is an imperative tone, a declarative tone or a questioning tone; the emotional tone is a neutral tone, an angry tone, a happy tone or a depressed tone.
[0017] As an optional implementation, in the first aspect of the present invention, the text purpose matching and the tone type matching corresponding to each of the voice data are calculated based on the matching algorithm and the similarity algorithm according to the voice text and the voice tone, including:
[0018] For each of the voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, to obtain a first similarity parameter corresponding to the voice data;
[0019] According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated;
[0020] Calculating the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data;
[0021] Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data;
[0022] Calculate the average of the voice tone similarities between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data;
[0023] The product of the second similarity parameter, the third similarity parameter and the duration weight is calculated to obtain a tone type matching degree corresponding to the voice data.
[0024] As an optional implementation, in the first aspect of the present invention, the step of selecting target speech data having the purpose of image generation from the plurality of speech data according to the text purpose matching degree and the tone type matching degree comprises:
[0025] Calculate the weighted average of the text purpose matching degree and the tone type matching degree corresponding to each of the voice data to obtain a matching parameter for each of the voice data;
[0026] According to the matching parameters, all the voice data are sorted from large to small to obtain a first voice sequence;
[0027] Screening out a plurality of candidate voice data within a first number in the first voice sequence and whose matching parameters are greater than a first parameter threshold;
[0028] Calculate the average of the acquisition time differences between each candidate voice data and all other candidate voice data to obtain the time parameter corresponding to each candidate voice data;
[0029] According to the time parameter, all the candidate voice data are sorted from large to small to obtain a second voice sequence;
[0030] The candidate speech data within the first second number in the second speech sequence and whose time parameter is greater than the second parameter threshold are screened out to obtain the target speech data.
[0031] As an optional implementation, in the first aspect of the present invention, determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data parameters of the target speech data comprises:
[0032] Determine the number of voices, voice tone set, voice text set and average voice duration corresponding to the target voice data;
[0033] Calculate the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the number of speech, speech tone set, speech text set and average speech duration; the training data set corresponding to the candidate algorithm model includes a plurality of training speech data and corresponding image annotations;
[0034] According to the data similarity, a corresponding image generation algorithm model is determined from the multiple candidate algorithm models.
[0035] As an optional implementation, in the first aspect of the present invention, the step of calculating the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the speech quantity, speech tone set, speech text set and average speech duration includes:
[0036] For each candidate algorithm model, obtaining multiple training speech data sets in the training data set corresponding to the candidate algorithm model;
[0037] Calculating an average of the differences between the number of voices and the number of voices in each of the training voice data sets to obtain a quantity similarity;
[0038] Calculating the average of the overlap ratios of the speech tone set and the tone annotation set corresponding to each of the training speech data sets to obtain tone similarity;
[0039] Calculating the average of the text similarities between the speech text set and the text annotation set corresponding to each of the training speech data sets to obtain the text similarity;
[0040] Calculate the average of the duration differences between the average speech duration and the average speech duration corresponding to each of the training speech data sets to obtain duration similarity;
[0041] The product of the quantity similarity, the tone similarity, the text similarity and the duration similarity is calculated to obtain the data similarity corresponding to the candidate algorithm model.
[0042] As an optional implementation, in the first aspect of the present invention, determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data similarity comprises:
[0043] According to the data similarity, all the candidate algorithm models are sorted from large to small to obtain a model sequence;
[0044] Screening out candidate algorithm models within the first third number in the model sequence and whose data similarity is greater than a third parameter threshold, to obtain an image generation algorithm model;
[0045] And, inputting the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data includes:
[0046] When the number of the image generation algorithm models is greater than 1, the target speech data is input into each of the image generation algorithm models respectively to obtain a plurality of output predicted image data;
[0047] Calculating an average value of image similarities between each of the predicted image data and a plurality of images confirmed by the target user in a historical time period to obtain a similarity parameter for each of the predicted image data;
[0048] The predicted image data with the largest similarity parameter is determined as the image data corresponding to the target speech data.
[0049] A second aspect of the present invention discloses a speech data processing device based on multi-model selection, the device comprising:
[0050] An acquisition module, used to acquire multiple voice data of a target user;
[0051] A screening module, used to screen target voice data with the purpose of image generation from the plurality of voice data according to a preset voice screening algorithm;
[0052] A determination module, used to determine a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data;
[0053] The prediction module is used to input the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data.
[0054] As an optional implementation, in the second aspect of the present invention, the specific manner in which the screening module screens out target voice data having the purpose of image generation from the plurality of voice data according to a preset voice screening algorithm includes:
[0055] Determine the speech text and speech tone corresponding to each of the speech data according to a neural network algorithm;
[0056] Based on the matching algorithm and the similarity algorithm, according to the voice text and the voice tone, the text purpose matching degree and the tone type matching degree corresponding to each of the voice data are calculated;
[0057] According to the text purpose matching degree and the tone type matching degree, target voice data with the purpose of image generation is screened out from the plurality of voice data.
[0058] As an optional implementation, in the second aspect of the present invention, the screening module determines the specific manner of the speech text and speech tone corresponding to each of the speech data according to the neural network algorithm, including:
[0059] For each of the voice data, performing noise reduction processing on the voice data to obtain corresponding noise-reduced data;
[0060] Inputting the denoised data into a trained text recognition neural network model to obtain a speech text corresponding to the speech data; the text recognition neural network is trained by a training data set including a plurality of training speech data and corresponding text annotations;
[0061] The denoised data is input into a trained corresponding tone recognition neural network model to obtain the speech tone corresponding to the speech data; the tone recognition neural network is trained by a training data set including a plurality of training speech data and corresponding tone annotations; the speech tone or the tone annotation is one or a combination of two of a target tone and an emotional tone; the target tone is an imperative tone, a declarative tone or a questioning tone; the emotional tone is a neutral tone, an angry tone, a happy tone or a depressed tone.
[0062] As an optional implementation, in the second aspect of the present invention, the screening module calculates the text purpose matching degree and the tone type matching degree corresponding to each of the voice data based on the matching algorithm and the similarity algorithm according to the voice text and the voice tone, including:
[0063] For each of the voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, to obtain a first similarity parameter corresponding to the voice data;
[0064] According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated;
[0065] Calculating the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data;
[0066] Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data;
[0067] Calculate the average of the voice tone similarities between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data;
[0068] The product of the second similarity parameter, the third similarity parameter and the duration weight is calculated to obtain a tone type matching degree corresponding to the voice data.
[0069] As an optional implementation, in the second aspect of the present invention, the specific manner in which the screening module screens out target voice data having the purpose of image generation from the plurality of voice data according to the text purpose matching degree and the tone type matching degree includes:
[0070] Calculate the weighted average of the text purpose matching degree and the tone type matching degree corresponding to each of the voice data to obtain a matching parameter for each of the voice data;
[0071] According to the matching parameters, all the voice data are sorted from large to small to obtain a first voice sequence;
[0072] Screening out a plurality of candidate voice data within a first number in the first voice sequence and whose matching parameters are greater than a first parameter threshold;
[0073] Calculate the average of the acquisition time differences between each candidate voice data and all other candidate voice data to obtain the time parameter corresponding to each candidate voice data;
[0074] According to the time parameter, all the candidate voice data are sorted from large to small to obtain a second voice sequence;
[0075] The candidate speech data within the first second number in the second speech sequence and whose time parameter is greater than the second parameter threshold are screened out to obtain the target speech data.
[0076] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data parameters of the target speech data includes:
[0077] Determine the number of voices, voice tone set, voice text set and average voice duration corresponding to the target voice data;
[0078] Calculate the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the number of speech, speech tone set, speech text set and average speech duration; the training data set corresponding to the candidate algorithm model includes a plurality of training speech data and corresponding image annotations;
[0079] According to the data similarity, a corresponding image generation algorithm model is determined from the multiple candidate algorithm models.
[0080] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module calculates the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the speech quantity, speech tone set, speech text set and average speech duration includes:
[0081] For each candidate algorithm model, obtaining multiple training speech data sets in the training data set corresponding to the candidate algorithm model;
[0082] Calculating an average of the differences between the number of voices and the number of voices in each of the training voice data sets to obtain a quantity similarity;
[0083] Calculating the average of the overlap ratios of the speech tone set and the tone annotation set corresponding to each of the training speech data sets to obtain tone similarity;
[0084] Calculating the average of the text similarities between the speech text set and the text annotation set corresponding to each of the training speech data sets to obtain the text similarity;
[0085] Calculate the average of the duration differences between the average speech duration and the average speech duration corresponding to each of the training speech data sets to obtain duration similarity;
[0086] The product of the quantity similarity, the tone similarity, the text similarity and the duration similarity is calculated to obtain the data similarity corresponding to the candidate algorithm model.
[0087] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the corresponding image generation algorithm model from the plurality of candidate algorithm models according to the data similarity includes:
[0088] According to the data similarity, all the candidate algorithm models are sorted from large to small to obtain a model sequence;
[0089] Screening out candidate algorithm models within the first third number in the model sequence and whose data similarity is greater than a third parameter threshold, to obtain an image generation algorithm model;
[0090] And, the prediction module inputs the target voice data into the image generation algorithm model to obtain the specific manner of the image data corresponding to the target voice data, including:
[0091] When the number of the image generation algorithm models is greater than 1, the target speech data is input into each of the image generation algorithm models respectively to obtain a plurality of output predicted image data;
[0092] Calculating an average value of image similarities between each of the predicted image data and a plurality of images confirmed by the target user in a historical time period to obtain a similarity parameter for each of the predicted image data;
[0093] The predicted image data with the largest similarity parameter is determined as the image data corresponding to the target speech data.
[0094] The third aspect of the present invention discloses another speech data processing device based on multi-model selection, the device comprising:
[0095] A memory storing executable program code;
[0096] a processor coupled to the memory;
[0097] The processor calls the executable program code stored in the memory to execute part or all of the steps in the speech data processing method based on multi-model selection disclosed in the first aspect of the present invention.
[0098] Compared with the prior art, the present invention has the following beneficial effects:
[0099] It can be seen that the embodiment of the present invention can filter out voice data with the purpose of image generation from multiple voice data according to the screening algorithm, and then select the most suitable image generation algorithm from multiple candidate algorithm models according to the data parameters to generate the image, thereby improving the degree of automation and intelligence of generating images according to voice, reducing user operation costs, and improving algorithm efficiency and effectiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 these drawings without creative work.
[0101] Figure 1 It is a flowchart of a method for processing speech data based on multi-model selection disclosed in an embodiment of the present invention.
[0102] Figure 2 It is a structural schematic diagram of a speech data processing device based on multi-model selection disclosed in an embodiment of the present invention.
[0103] Figure 3 It is a structural schematic diagram of another speech data processing device based on multi-model selection disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0104] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 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.
[0105] The terms "second", "secondary", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or equipment.
[0106] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0107] The present invention discloses a method and device for processing speech data based on multi-model selection, which can screen speech data with the purpose of image generation from multiple speech data according to a screening algorithm, and then select the most suitable image generation algorithm from multiple candidate algorithm models according to data parameters to generate images, thereby improving the automation and intelligence of generating images according to speech, reducing user operation costs, and improving algorithm efficiency and effect. The following are detailed descriptions.
[0108] Embodiment 1
[0109] See also Figure 1 , Figure 1 : is a flow chart of a method for processing speech data based on multi-model selection disclosed in an embodiment of the present invention. Figure 1 The described speech data processing method based on multi-model selection is applied to a data processing chip, a processing terminal or a processing server (wherein the processing server may be a local server or a cloud server). Figure 1 As shown, the speech data processing method based on multi-model selection may include the following operations:
[0110] 101. Acquire multiple voice data of a target user.
[0111] Optionally, a voice acquisition device can be used to acquire multiple voice data sent by a target user within a short period of time. The voice data can be distinguished by the fact that if no signal data greater than a preset volume threshold is received within a preset time interval, it is deemed that the previous voice data is interrupted, and the subsequently acquired voice data can be a new voice data.
[0112] 102. According to a preset voice screening algorithm, target voice data with the purpose of image generation is screened out from multiple voice data.
[0113] The purpose of this setting is to automatically obtain multiple voice data of the user and use them for screening and recognition. After screening out the target voice data for the purpose of image generation, image generation can be performed directly without the user having to input too many instructions or perform too many operations, thereby improving the degree of automation.
[0114] 103. According to the data parameters of the target speech data, a corresponding image generation algorithm model is determined from a plurality of candidate algorithm models.
[0115] Specifically, each candidate algorithm model is an algorithm model capable of generating images based on speech, which can be a single neural network model or a combination of multiple algorithm models. Optionally, the neural network model or prediction model in the present invention can be a model with a CNN structure or a RNN structure, and is trained with a corresponding training data set, a gradient descent algorithm, and a loss function until convergence. The present invention is not limited here.
[0116] 104. Input the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data.
[0117] It can be seen that the above-mentioned embodiments of the invention can filter out voice data with the purpose of image generation from multiple voice data according to the screening algorithm, and then select the most suitable image generation algorithm from multiple candidate algorithm models according to the data parameters to generate the image, thereby improving the degree of automation and intelligence of generating images according to voice, reducing user operation costs, and improving algorithm efficiency and effectiveness.
[0118] As an optional embodiment, in the above steps, according to a preset voice screening algorithm, the target voice data with the purpose of image generation is screened out from a plurality of voice data, including:
[0119] According to the neural network algorithm, determine the speech text and speech tone corresponding to each speech data;
[0120] Based on the matching algorithm and similarity algorithm, the text purpose matching degree and tone type matching degree corresponding to each voice data are calculated according to the voice text and voice tone;
[0121] According to the text purpose matching and the tone type matching, target voice data with the purpose of image generation is screened out from multiple voice data.
[0122] Through the above embodiments, it is possible to determine the speech text and speech tone corresponding to the speech data based on the neural network and further calculate the text purpose matching degree and the tone type matching degree, and then filter out the target speech data with the purpose of image generation from multiple speech data, which can improve the accuracy of speech screening and the accuracy of subsequent image generation based on speech, reduce user operation costs, and improve algorithm efficiency and effectiveness.
[0123] As an optional embodiment, in the above steps, determining the speech text and speech tone corresponding to each speech data according to the neural network algorithm includes:
[0124] For each voice data, the voice data is subjected to noise reduction processing to obtain corresponding noise-reduced data;
[0125] The denoised data is input into a trained text recognition neural network model to obtain the speech text corresponding to the speech data; the text recognition neural network is trained by a training data set including a plurality of training speech data and corresponding text annotations;
[0126] The denoised data is input into the trained corresponding tone recognition neural network model to obtain the speech tone corresponding to the speech data.
[0127] Specifically, the tone recognition neural network is trained by a training data set including a plurality of training speech data and corresponding tone annotations. Optionally, the speech tone or tone annotation is one or a combination of the target tone and the emotional tone.
[0128] Optionally, the target mood is imperative, declarative, or interrogative.
[0129] Optionally, the emotional tone is a neutral tone, an angry tone, a happy tone, or a depressed tone.
[0130] Through the above embodiments, it is possible to determine the speech text and speech tone corresponding to the speech data based on the neural network and the noise-reduced speech data, which can improve the accuracy of subsequent speech screening and the accuracy of subsequent image generation based on the speech, reduce user operation costs, and improve algorithm efficiency and effectiveness.
[0131] As an optional embodiment, in the above steps, based on the matching algorithm and the similarity algorithm, according to the speech text and the speech tone, the text purpose matching degree and the tone type matching degree corresponding to each speech data are calculated, including:
[0132] For each voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, and obtaining a first similarity parameter corresponding to the voice data;
[0133] According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated;
[0134] Calculate the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data;
[0135] Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data;
[0136] Calculate the average of the voice tone similarities between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data;
[0137] The product of the second similarity parameter, the third similarity parameter and the duration weight is calculated to obtain the tone type matching degree corresponding to the voice data.
[0138] Through the above-mentioned embodiments, it is possible to calculate the text purpose matching and tone type matching corresponding to each voice data based on the preset reference text and reference voice data and based on the matching algorithm and the similarity algorithm, which can improve the accuracy of subsequent voice screening and the accuracy of subsequent image generation based on the voice, reduce user operation costs, and improve algorithm efficiency and effectiveness.
[0139] As an optional embodiment, in the above step, according to the text purpose matching degree and the tone type matching degree, the target voice data with the purpose of image generation is screened out from the multiple voice data, including:
[0140] Calculate the weighted average of the text purpose matching degree and the tone type matching degree corresponding to each voice data to obtain the matching parameter of each voice data;
[0141] According to the matching parameters, all the voice data are sorted from large to small to obtain a first voice sequence;
[0142] Screening out a plurality of candidate voice data within a first number in the first voice sequence and having matching parameters greater than a first parameter threshold;
[0143] Calculate the average of the acquisition time differences between each candidate voice data and all other candidate voice data to obtain the time parameter corresponding to each candidate voice data;
[0144] According to the time parameter, all candidate speech data are sorted from large to small to obtain a second speech sequence;
[0145] The candidate speech data within the first second number in the second speech sequence and whose time parameter is greater than the second parameter threshold are screened out to obtain the target speech data.
[0146] Through the above-mentioned embodiments, it is possible to implement secondary screening of multiple voice data based on the calculation of matching parameters and time parameters, so that the voice data that is most likely to reflect the user's image generation purpose can be fully screened out based on the matching degree and time concentration of the voice data, thereby improving the accuracy of subsequent image generation based on the voice, reducing user operating costs, and improving algorithm efficiency and effectiveness.
[0147] As an optional embodiment, in the above step, determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data includes:
[0148] Determine the number of voices, voice tone set, voice text set and average voice duration corresponding to the target voice data;
[0149] According to the number of voices, voice tone set, voice text set and average voice duration, the data similarity between the training data set corresponding to each candidate algorithm model and the target voice data set is calculated; the training data set corresponding to the candidate algorithm model includes multiple training voice data and corresponding image annotations;
[0150] According to the data similarity, the corresponding image generation algorithm model is determined from multiple candidate algorithm models.
[0151] Through the above embodiments, it is possible to determine the corresponding image generation algorithm model from multiple candidate algorithm models based on the number of voices corresponding to the target voice data, the voice tone set, the voice text set, the average voice duration and the similarity algorithm, and to screen out the algorithm model with the best prediction effect and the most matching effect, thereby improving the accuracy of subsequent image generation based on the voice through this algorithm model, reducing user operation costs, and improving algorithm efficiency and effectiveness.
[0152] As an optional embodiment, in the above steps, according to the number of voices, the voice tone set, the voice text set and the average voice duration, the data similarity between the training data set corresponding to each candidate algorithm model and the target voice data set is calculated, including:
[0153] For each candidate algorithm model, obtaining multiple training speech data sets in the training data set corresponding to the candidate algorithm model;
[0154] Calculate the average of the difference between the number of voices and the number of voices in each training voice data set to obtain the number similarity;
[0155] Calculate the average of the overlap ratios of the speech tone set and the tone annotation set corresponding to each training speech data set to obtain the tone similarity;
[0156] Calculate the average of the text similarities between the speech text set and the text annotation set corresponding to each training speech data set to obtain the text similarity;
[0157] Calculate the average of the difference between the average speech duration and the average speech duration corresponding to each training speech data set to obtain the duration similarity;
[0158] The product of quantity similarity, tone similarity, text similarity and duration similarity is calculated to obtain the data similarity corresponding to the candidate algorithm model.
[0159] Through the above embodiments, it is possible to calculate the data similarity corresponding to each candidate algorithm model based on the calculation of quantity similarity, tone similarity, text similarity and duration similarity, so that the algorithm model with the best prediction effect and the most matching can be obtained based on this screening in the future, thereby improving the accuracy of the subsequent generation of images based on the speech of this algorithm model, reducing user operation costs, and improving algorithm efficiency and effectiveness.
[0160] As an optional embodiment, in the above step, determining the corresponding image generation algorithm model from multiple candidate algorithm models according to data similarity includes:
[0161] According to data similarity, all candidate algorithm models are sorted from large to small to obtain a model sequence;
[0162] The candidate algorithm models within the first third number in the model sequence and whose data similarity is greater than the third parameter threshold are screened out to obtain the image generation algorithm model.
[0163] Through the above embodiments, it is possible to implement the screening of the algorithm model with the best prediction effect and the most matching effect based on data similarity and preset screening rules, thereby improving the accuracy of subsequent image generation based on voice through this algorithm model, reducing user operation costs, and improving algorithm efficiency and effectiveness.
[0164] As an optional embodiment, in the above steps, inputting the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data includes:
[0165] When the number of the image generation algorithm model is greater than 1, the target speech data is input into each image generation algorithm model respectively to obtain a plurality of output predicted image data;
[0166] Calculate the average value of the image similarities between each predicted image data and multiple images confirmed by the target user in the historical time period to obtain a similarity parameter for each predicted image data;
[0167] The predicted image data with the largest similarity parameter is determined as the image data corresponding to the target speech data.
[0168] Through the above-mentioned embodiments, when there are multiple image generation algorithm models, it is possible to determine the most accurate image data from multiple prediction results based on the similarity between the prediction results of each model and the user's historical confirmation results, thereby improving the accuracy of the generated image, reducing user operating costs, improving algorithm efficiency, and providing users with better usage effects.
[0169] Embodiment 2
[0170] See also Figure 2 , Figure 2 is a structural diagram of a speech data processing device based on multi-model selection disclosed in an embodiment of the present invention. Figure 2 The described speech data processing device based on multi-model selection is applied to a data processing chip, a processing terminal or a processing server (wherein the processing server may be a local server or a cloud server). Figure 2 As shown, the speech data processing device based on multi-model selection may include:
[0171] An acquisition module 201 is used to acquire multiple voice data of a target user;
[0172] A screening module 202 is used to screen target voice data with the purpose of image generation from multiple voice data according to a preset voice screening algorithm;
[0173] A determination module 203, configured to determine a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data;
[0174] The prediction module 204 is used to input the target speech data into the image generation algorithm model to obtain image data corresponding to the target speech data.
[0175] As an optional embodiment, the specific method in which the screening module 202 screens out target voice data with the purpose of image generation from a plurality of voice data according to a preset voice screening algorithm includes:
[0176] According to the neural network algorithm, determine the speech text and speech tone corresponding to each speech data;
[0177] Based on the matching algorithm and similarity algorithm, the text purpose matching degree and tone type matching degree corresponding to each voice data are calculated according to the voice text and voice tone;
[0178] According to the text purpose matching and the tone type matching, target voice data with the purpose of image generation is screened out from multiple voice data.
[0179] As an optional embodiment, the screening module 202 determines the specific manner of the speech text and speech tone corresponding to each speech data according to the neural network algorithm, including:
[0180] For each voice data, the voice data is subjected to noise reduction processing to obtain corresponding noise-reduced data;
[0181] The denoised data is input into a trained text recognition neural network model to obtain the speech text corresponding to the speech data; the text recognition neural network is trained by a training data set including a plurality of training speech data and corresponding text annotations;
[0182] The denoised data is input into a trained corresponding tone recognition neural network model to obtain the speech tone corresponding to the speech data; the tone recognition neural network is trained by a training data set including multiple training speech data and corresponding tone annotations; the speech tone or tone annotation is one or a combination of two of the target tone and emotional tone; the target tone is an imperative tone, a declarative tone or a questioning tone; the emotional tone is a neutral tone, an angry tone, a happy tone or a depressed tone.
[0183] As an optional embodiment, the screening module 202 calculates the text purpose matching and the tone type matching corresponding to each voice data based on the matching algorithm and the similarity algorithm according to the voice text and the voice tone, including:
[0184] For each voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, and obtaining a first similarity parameter corresponding to the voice data;
[0185] According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated;
[0186] Calculate the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data;
[0187] Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data;
[0188] Calculate the average of the voice tone similarities between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data;
[0189] The product of the second similarity parameter, the third similarity parameter and the duration weight is calculated to obtain the tone type matching degree corresponding to the voice data.
[0190] As an optional embodiment, the specific manner in which the screening module 202 screens out target voice data having the purpose of image generation from a plurality of voice data according to the text purpose matching degree and the tone type matching degree includes:
[0191] Calculate the weighted average of the text purpose matching degree and the tone type matching degree corresponding to each voice data to obtain the matching parameter of each voice data;
[0192] According to the matching parameters, all the voice data are sorted from large to small to obtain a first voice sequence;
[0193] Screening out a plurality of candidate voice data within a first number in the first voice sequence and having matching parameters greater than a first parameter threshold;
[0194] Calculate the average of the acquisition time differences between each candidate voice data and all other candidate voice data to obtain the time parameter corresponding to each candidate voice data;
[0195] According to the time parameter, all candidate speech data are sorted from large to small to obtain a second speech sequence;
[0196] The candidate speech data within the first second number in the second speech sequence and whose time parameter is greater than the second parameter threshold are screened out to obtain the target speech data.
[0197] As an optional embodiment, the specific manner in which the determination module 203 determines the corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data parameters of the target speech data includes:
[0198] Determine the number of voices, voice tone set, voice text set and average voice duration corresponding to the target voice data;
[0199] According to the number of voices, voice tone set, voice text set and average voice duration, the data similarity between the training data set corresponding to each candidate algorithm model and the target voice data set is calculated; the training data set corresponding to the candidate algorithm model includes multiple training voice data and corresponding image annotations;
[0200] According to the data similarity, the corresponding image generation algorithm model is determined from multiple candidate algorithm models.
[0201] As an optional embodiment, the specific manner in which the determination module 203 calculates the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the number of speech, speech tone set, speech text set and average speech duration includes:
[0202] For each candidate algorithm model, obtaining multiple training speech data sets in the training data set corresponding to the candidate algorithm model;
[0203] Calculate the average of the difference between the number of voices and the number of voices in each training voice data set to obtain the number similarity;
[0204] Calculate the average of the overlap ratios of the speech tone set and the tone annotation set corresponding to each training speech data set to obtain the tone similarity;
[0205] Calculate the average of the text similarities between the speech text set and the text annotation set corresponding to each training speech data set to obtain the text similarity;
[0206] Calculate the average of the difference between the average speech duration and the average speech duration corresponding to each training speech data set to obtain the duration similarity;
[0207] The product of quantity similarity, tone similarity, text similarity and duration similarity is calculated to obtain the data similarity corresponding to the candidate algorithm model.
[0208] As an optional embodiment, the specific manner in which the determination module 203 determines the corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data similarity includes:
[0209] According to data similarity, all candidate algorithm models are sorted from large to small to obtain a model sequence;
[0210] Screen out candidate algorithm models within the first third number in the model sequence and whose data similarity is greater than a third parameter threshold, and obtain an image generation algorithm model;
[0211] And, the prediction module 204 inputs the target speech data into the image generation algorithm model to obtain the specific manner of the image data corresponding to the target speech data, including:
[0212] When the number of the image generation algorithm model is greater than 1, the target speech data is input into each image generation algorithm model respectively to obtain a plurality of output predicted image data;
[0213] Calculate the average value of the image similarities between each predicted image data and multiple images confirmed by the target user in the historical time period to obtain a similarity parameter for each predicted image data;
[0214] The predicted image data with the largest similarity parameter is determined as the image data corresponding to the target speech data.
[0215] The specific technical details and technical effects of the modules and steps in the above embodiments can be referred to the corresponding descriptions in Embodiment 1, which will not be repeated here.
[0216] Embodiment 3
[0217] See also Figure 3 , Figure 3 It is another speech data processing device based on multi-model selection disclosed in an embodiment of the present invention. Figure 3 The described speech data processing device based on multi-model selection is applied to a data processing chip, a processing terminal or a processing server (wherein the processing server may be a local server or a cloud server). Figure 3 As shown, the speech data processing device based on multi-model selection may include:
[0218] A memory 301 storing executable program codes;
[0219] a processor 302 coupled to the memory 301;
[0220] The processor 302 calls the executable program code stored in the memory 301 to execute the steps of the speech data processing method based on multi-model selection described in the first embodiment.
[0221] Embodiment 4
[0222] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the speech data processing method based on multi-model selection described in the first embodiment.
[0223] Embodiment 5
[0224] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the speech data processing method based on multi-model selection described in Example 1.
[0225] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0226] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0227] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, device, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be repeated here.
[0228] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0229] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0230] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0231] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0232] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0233] This specification 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 this specification. 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 produce 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.
[0234] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0235] 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.
[0236] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0237] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0238] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0239] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0240] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0241] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0242] Finally, it should be noted that the speech data processing method and device based on multi-model selection disclosed in the embodiment of the present invention discloses only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A speech data processing method based on multi-model selection, characterized in that: The method comprises: Acquire multiple voice data of target users; According to a preset voice screening algorithm, target voice data with the purpose of image generation is screened out from the plurality of voice data; the method of screening out target voice data with the purpose of image generation from the plurality of voice data according to the preset voice screening algorithm includes: Determine the speech text and speech tone corresponding to each of the speech data according to a neural network algorithm; Based on the matching algorithm and the similarity algorithm, according to the voice text and the voice tone, the text purpose matching degree and the tone type matching degree corresponding to each of the voice data are calculated; According to the text purpose matching degree and the tone type matching degree, target voice data with the purpose of image generation is screened out from the plurality of voice data; the text purpose matching degree and tone type matching degree corresponding to each voice data are calculated based on the matching algorithm and the similarity algorithm according to the voice text and the voice tone, including: For each of the voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, to obtain a first similarity parameter corresponding to the voice data; According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated; Calculating the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data; Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data; Calculate the average value of the voice tone similarity between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data; Calculating the product of the second similarity parameter, the third similarity parameter and the duration weight to obtain a tone type matching degree corresponding to the voice data; Determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data; The target voice data is input into the image generation algorithm model to obtain image data corresponding to the target voice data.
2. The method for processing speech data based on multi-model selection according to claim 1, characterized in that: Determining the speech text and speech tone corresponding to each of the speech data according to the neural network algorithm includes: For each of the voice data, performing noise reduction processing on the voice data to obtain corresponding noise-reduced data; Inputting the denoised data into a trained text recognition neural network model to obtain a speech text corresponding to the speech data; the text recognition neural network is trained by a training data set including a plurality of training speech data and corresponding text annotations; The denoised data is input into a trained corresponding tone recognition neural network model to obtain the speech tone corresponding to the speech data; the tone recognition neural network is trained by a training data set including a plurality of training speech data and corresponding tone annotations; the speech tone or the tone annotation is one or a combination of two of a target tone and an emotional tone; the target tone is an imperative tone, a declarative tone or a questioning tone; the emotional tone is a neutral tone, an angry tone, a happy tone or a depressed tone.
3. The method for processing speech data based on multi-model selection according to claim 1, characterized in that: The step of selecting target voice data having the purpose of image generation from the plurality of voice data according to the text purpose matching degree and the tone type matching degree comprises: Calculate the weighted average of the text purpose matching degree and the tone type matching degree corresponding to each of the voice data to obtain a matching parameter for each of the voice data; According to the matching parameters, all the voice data are sorted from large to small to obtain a first voice sequence; Screening out a plurality of candidate voice data within a first number in the first voice sequence and whose matching parameters are greater than a first parameter threshold; Calculate the average of the acquisition time differences between each candidate voice data and all other candidate voice data to obtain the time parameter corresponding to each candidate voice data; According to the time parameter, all the candidate voice data are sorted from large to small to obtain a second voice sequence; The candidate speech data within the first second number in the second speech sequence and whose time parameter is greater than the second parameter threshold are screened out to obtain the target speech data.
4. The method for processing speech data based on multi-model selection according to claim 1, characterized in that: The step of determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data parameters of the target speech data comprises: Determine the number of voices, voice tone set, voice text set and average voice duration corresponding to the target voice data; According to the number of voices, voice tone set, voice text set and average voice duration, the data similarity between the training data set corresponding to each candidate algorithm model and the target voice data set is calculated; the training data set corresponding to the candidate algorithm model includes a plurality of training voice data and corresponding image annotations; According to the data similarity, a corresponding image generation algorithm model is determined from the multiple candidate algorithm models.
5. The method for processing speech data based on multi-model selection according to claim 4, characterized in that: The calculating the data similarity between the training data set corresponding to each candidate algorithm model and the target speech data set according to the speech quantity, speech tone set, speech text set and average speech duration includes: For each candidate algorithm model, obtaining multiple training speech data sets in the training data set corresponding to the candidate algorithm model; Calculating an average of the differences between the number of voices and the number of voices in each of the training voice data sets to obtain a quantity similarity; Calculating the average of the overlap ratios of the speech tone set and the tone annotation set corresponding to each of the training speech data sets to obtain tone similarity; Calculating the average of the text similarities between the speech text set and the text annotation set corresponding to each of the training speech data sets to obtain the text similarity; Calculate the average of the duration differences between the average speech duration and the average speech duration corresponding to each of the training speech data sets to obtain duration similarity; The product of the quantity similarity, the tone similarity, the text similarity and the duration similarity is calculated to obtain the data similarity corresponding to the candidate algorithm model.
6. The method for processing speech data based on multi-model selection according to claim 5, characterized in that: Determining a corresponding image generation algorithm model from a plurality of candidate algorithm models according to the data similarity includes: According to the data similarity, all the candidate algorithm models are sorted from large to small to obtain a model sequence; Screening out candidate algorithm models within the first third number in the model sequence and whose data similarity is greater than a third parameter threshold, to obtain an image generation algorithm model; And, inputting the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data includes: When the number of the image generation algorithm models is greater than 1, the target speech data is input into each of the image generation algorithm models respectively to obtain a plurality of output predicted image data; Calculating an average value of image similarities between each of the predicted image data and a plurality of images confirmed by the target user in a historical time period to obtain a similarity parameter for each of the predicted image data; The predicted image data with the largest similarity parameter is determined as the image data corresponding to the target speech data.
7. A speech data processing device based on multi-model selection, characterized in that: The device comprises: An acquisition module, used to acquire multiple voice data of a target user; A screening module is used to screen out target voice data with the purpose of image generation from the plurality of voice data according to a preset voice screening algorithm; the screening module screens out target voice data with the purpose of image generation from the plurality of voice data according to a preset voice screening algorithm, including: Determine the speech text and speech tone corresponding to each of the speech data according to a neural network algorithm; Based on the matching algorithm and the similarity algorithm, according to the voice text and the voice tone, the text purpose matching degree and the tone type matching degree corresponding to each of the voice data are calculated; According to the text purpose matching degree and the tone type matching degree, target voice data with the purpose of image generation is screened out from the plurality of voice data; the screening module calculates the text purpose matching degree and the tone type matching degree corresponding to each voice data according to the voice text and the voice tone based on the matching algorithm and the similarity algorithm, including: For each of the voice data, calculating an average value of text similarities between the voice text of the voice data and a plurality of preset standard image generation command texts, to obtain a first similarity parameter corresponding to the voice data; According to a preset text keyword matching rule, the number of matching keywords in the speech text of the speech data is calculated; Calculating the product of the first similarity parameter, the number of matching keywords and the duration weight to obtain the text purpose matching degree corresponding to the voice data; the duration weight is proportional to the voice duration of the voice data; Calculating an average value of the tone similarities between the voice tone of the voice data and the voice tones of a plurality of preset historical voice data samples to obtain a second similarity parameter corresponding to the voice data; Calculate the average value of the voice tone similarity between the voice tone of the voice data and the voice tone of two voice data adjacent in acquisition time, and obtain a third similarity parameter corresponding to the voice data; Calculating the product of the second similarity parameter, the third similarity parameter and the duration weight to obtain a tone type matching degree corresponding to the voice data; A determination module, used to determine a corresponding image generation algorithm model from a plurality of candidate algorithm models according to data parameters of the target speech data; The prediction module is used to input the target voice data into the image generation algorithm model to obtain image data corresponding to the target voice data.
8. A speech data processing device based on multi-model selection, characterized in that: The device comprises: A memory storing executable program code; A processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the speech data processing method based on multi-model selection as described in any one of claims 1-6.
