A data processing method and device
Through the screening of audio feature information and analysis models, the audio data matching problem in the existing technology is solved and the speech synthesis effect is improved.
Patent Information
- Application Number
- CN201911074526.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-11-06
AI Technical Summary
Existing technology cannot efficiently and accurately filter out audio data that matches predetermined audio application scenarios from large-scale raw audio data, affecting the speech synthesis effect.
By obtaining the target audio data and reference audio data, the audio feature information is extracted, the audio analysis model is used to determine whether the audio data matches the scene information, and the matching audio data is screened out for training the speech synthesis model.
It achieves efficient and accurate screening of audio data that matches predetermined audio application scenarios, and improves the guarantee of speech synthesis effects.
Smart Images

Figure CN112786015B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to a data processing method. The present application also relates to a data processing device and an electronic device. The present application also relates to a training method for an audio analysis model, a training device for an audio analysis model, and an electronic device. Background Art
[0002] Speech synthesis is a technology that produces artificial speech through mechanical and electronic methods. Text-to-Speech (TTS) belongs to the speech synthesis system. It is a technology that converts text information generated by the computer itself or input from the outside into speech information and outputs it. It includes language processing, prosody processing, and acoustic processing.
[0003] In the training process of the speech synthesis system related to the speaker, a large amount of original audio data of the speaker needs to be collected in advance. This collection process usually takes weeks or months. During the collection process, the speaker will find it difficult to maintain the stability of audio data collection due to objective and subjective factors such as the external environment, physical condition, and understanding deviation of the application scenario, thereby generating audio data that does not match the predetermined audio application scenario. Using this kind of data to train the speech synthesis model will affect the speech synthesis effect in the predetermined audio application scenario. For example, in the intelligent customer service scenario, the user customized a 100% gentle voice. Due to the influence of the above factors, the final output voice can only reach 80% gentleness, affecting the user experience. Therefore, it is necessary to check the collected original audio data according to whether it matches the predetermined audio application scenario, so as to screen out the original audio data that matches the predetermined audio application scenario for training the speech synthesis system.
[0004] In the prior art, it is impossible to efficiently and accurately filter out audio data that matches a predetermined audio application scenario from a large amount of original audio data, so that the speech synthesis effect in the predetermined audio application scenario cannot be guaranteed. Summary of the invention
[0005] The embodiments of the present application provide a data processing method, device and electronic device to solve the problem that it is currently impossible to efficiently and accurately filter out audio data that matches a predetermined audio application scenario from large-scale raw audio data. The embodiments of the present application also provide a method for training an audio analysis model, a device for training an audio analysis model and an electronic device.
[0006] An embodiment of the present application provides a data processing method, including: obtaining target audio data; obtaining reference audio data corresponding to target scene information; obtaining audio feature information based on the target audio data and the reference audio data; inputting the audio feature information into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data matches the same scene information based on the audio feature information of different audio data.
[0007] Optionally, obtaining audio feature information according to the target audio data and the reference audio data includes: obtaining audio feature information related to an audio usage scenario according to the target audio data and the reference audio data.
[0008] Optionally, obtaining audio feature information related to the audio usage scenario based on the target audio data and the reference audio data includes: obtaining first audio feature information of the target audio data related to the audio usage scenario based on the target audio data; and obtaining second audio feature information of the reference audio data having the same category as the first audio feature information based on the reference audio data.
[0009] Optionally, obtaining first audio feature information of the target audio data related to the audio usage scenario includes: obtaining an i-vector feature vector of the target audio data;
[0010] The obtaining of second audio feature information of the reference audio data having the same category as the first audio feature information includes: obtaining an i-vector feature vector of the reference audio data.
[0011] Optionally, obtaining the i-vector feature vector of the target audio data includes: obtaining a 256-dimensional i-vector feature vector of the target audio data; obtaining the i-vector feature vector of the reference audio data includes: obtaining a 256-dimensional i-vector feature vector of the reference audio data.
[0012] Optionally, the method further includes: combining the first audio feature information and the second audio feature information to obtain combined audio feature information; and inputting the audio feature information into an audio analysis model includes: inputting the combined audio feature information into an audio analysis model.
[0013] Optionally, obtaining audio feature information related to the audio usage scenario based on the target audio data and the reference audio data includes: combining the target audio data with the reference audio data to obtain combined audio data; and performing audio feature extraction on the combined audio data to obtain audio feature information related to the audio usage scenario of the combined audio data.
[0014] Optionally, obtaining audio feature information of the combined audio data related to the audio usage scenario includes: obtaining an i-vector feature vector of the combined audio data.
[0015] Optionally, obtaining reference audio data corresponding to the target scene information includes: obtaining reference audio data from one or more pronunciation subjects pre-recorded for the target scene.
[0016] Optionally, obtaining reference audio data corresponding to the target scene information includes: obtaining at least two reference audio data corresponding to the target scene information.
[0017] Optionally, the target scene information includes at least one of the following: scene information corresponding to the place of use of the audio data; scene information corresponding to the usage function of the audio data; scene information corresponding to the user object the audio data is aimed at; and scene information corresponding to the semantic content contained in the audio data.
[0018] Optionally, the audio analysis model includes a binary classification deep learning model with a DNN structure.
[0019] Optionally, the method further includes: converting the target audio data and the reference audio data into audio data with a predetermined data volume, a predetermined length and a predetermined audio format according to a predetermined audio conversion method.
[0020] Optionally, the method further includes: if the analysis result indicates that the target audio data does not match the target scene information, re-recording the target audio data to obtain audio data matching the target scene information.
[0021] Another embodiment of the present application also provides a method for training an audio analysis model, including: obtaining original audio data and first scene information corresponding to the original audio data; obtaining reference audio data corresponding to second scene information; obtaining audio feature information based on the original audio data and the reference audio data; labeling the audio feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training an audio analysis model for determining whether different audio data correspond to the same scene information based on the model training data.
[0022] Optionally, obtaining audio feature information according to the original audio data and the reference audio data includes: obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data.
[0023] Optionally, obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data includes: obtaining first audio feature information related to an audio usage scenario according to the original audio data; obtaining second audio feature information of the same category as the first audio feature information according to the reference audio data; and merging the first audio feature information and the second audio feature information to obtain merged audio feature information;
[0024] Correspondingly, the marking the audio feature information according to whether the first scene information and the second scene information are the same scene information includes: marking the merged audio feature information according to whether the first scene information and the second scene information are the same scene information.
[0025] Optionally, the obtaining of first audio feature information related to the audio usage scenario includes: obtaining an i-vector feature vector of the original audio data; the obtaining of second audio feature information of the same category as the first audio feature information includes: obtaining an i-vector feature vector of the reference audio data; the merging of the first audio feature information and the second audio feature information to obtain the merged audio feature information includes: merging the i-vector feature vector of the original audio data with the i-vector feature vector of the reference audio data to obtain a merged i-vector feature vector.
[0026] Optionally, obtaining audio feature information related to the audio usage scenario based on the original audio data and the reference audio data includes: combining the original audio data with the reference audio data to obtain combined audio data; and obtaining audio feature information related to the audio usage scenario from the combined audio data.
[0027] Optionally, obtaining audio feature information of the combined audio data related to the audio usage scenario includes: obtaining an i-vector feature vector of the combined audio data.
[0028] Optionally, combining the original audio data with the reference audio data to obtain combined audio data includes: segmenting the original audio data to obtain segmented original audio data; and splicing the segmented original audio data with the reference audio data to obtain combined audio data.
[0029] Optionally, segmenting the original audio data to obtain segmented original audio data includes: segmenting the original audio data according to arbitrary lengths to obtain segmented original audio data.
[0030] Another embodiment of the present application also provides a data processing device, including: a target audio data obtaining unit, used to obtain target audio data; a reference audio data obtaining unit, used to obtain reference audio data corresponding to target scene information; an audio feature information obtaining unit, used to obtain audio feature information based on the target audio data and the reference audio data; an analysis result obtaining unit, used to input the audio feature information into an audio analysis model, and obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of the different audio data.
[0031] Another embodiment of the present application also provides an electronic device, including: a processor and a memory, the memory being used to store a data processing program, and the program, when read and executed by the processor, performs the following operations: obtaining target audio data; obtaining reference audio data corresponding to target scene information; obtaining audio feature information based on the target audio data and the reference audio data; inputting the audio feature information into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of the different audio data.
[0032] Another embodiment of the present application also provides a training device for an audio analysis model, including: an original audio data obtaining unit, used to obtain original audio data and first scene information corresponding to the original audio data; a reference audio data obtaining unit, used to obtain reference audio data corresponding to second scene information; an audio feature information obtaining unit, used to obtain audio feature information based on the original audio data and the reference audio data; a model training data obtaining unit, used to label the audio feature information according to whether the first scene information and the second scene information are the same scene information, and obtain model training data; a model training unit, used to train an audio analysis model for determining whether different audio data correspond to the same scene information based on the model training data.
[0033] Another embodiment of the present application also provides an electronic device, including: a processor and a memory, the memory being used to store a training program for an audio analysis model, and the program, when read and executed by the processor, performs the following operations: obtaining original audio data and first scene information corresponding to the original audio data; obtaining reference audio data corresponding to second scene information; obtaining audio feature information based on the original audio data and the reference audio data; labeling the audio feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training an audio analysis model for determining whether different audio data correspond to the same scene information based on the model training data.
[0034] Another embodiment of the present application also provides a method for matching news broadcast voice data, including: obtaining target voice data; obtaining reference voice data corresponding to a news broadcast scenario; obtaining voice feature information related to a voice usage scenario based on the target voice data and the reference voice data; inputting the voice feature information into a voice analysis model to obtain an analysis result output by the voice analysis model to indicate whether the target voice data matches the news broadcast scenario; the voice analysis model is used to determine whether different voice data match the same scenario information based on the voice feature information of different voice data.
[0035] Another embodiment of the present application also provides a method for training a speech analysis model, including: obtaining original speech data and first scene information corresponding to the original speech data; obtaining reference speech data corresponding to second scene information; obtaining speech feature information related to the speech usage scenario based on the original speech data and the reference speech data; labeling the speech feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training a speech analysis model for determining whether different speech data correspond to the same scene information based on the model training data.
[0036] Another embodiment of the present application also provides a method for matching promotional voice data, including: obtaining target voice data; obtaining reference voice data corresponding to a voice promotion scenario; obtaining voice feature information related to the voice usage scenario based on the target voice data and the reference voice data; inputting the voice feature information into a voice analysis model to obtain an analysis result output by the voice analysis model to indicate whether the target voice data matches the voice promotion scenario; the voice analysis model is used to determine whether different voice data match the same scenario information based on the voice feature information of different voice data.
[0037] Another embodiment of the present application also provides a voice data matching method, including: obtaining target voice data; obtaining reference voice data that matches the voice usage requirements of a target location; obtaining voice feature information related to a voice usage scenario based on the target voice data and the reference voice data; inputting the voice feature information into a voice analysis model to obtain an analysis result output by the voice analysis model to indicate whether the target voice data matches the voice usage requirements of the target location; the voice analysis model is used to determine whether different voice data match the same scenario information based on the voice feature information of different voice data.
[0038] Another embodiment of the present application also provides an image data processing method, characterized in that it includes: obtaining target image data; obtaining reference image data corresponding to target scene information; obtaining image feature information related to the image usage scenario based on the target image data and the reference image data; inputting the image feature information into an image analysis model to obtain an analysis result output by the image analysis model to indicate whether the target image data matches the target scene information; the image analysis model is used to determine whether different image data match the same scene information based on the image feature information of different image data.
[0039] Another embodiment of the present application also provides a method for training an image analysis model, including: obtaining original image data and first scene information corresponding to the original image data; obtaining reference image data corresponding to second scene information; obtaining image feature information related to the image usage scenario based on the original image data and the reference image data; labeling the image feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training an image analysis model for determining whether different image data correspond to the same scene information based on the model training data.
[0040] Another embodiment of the present application also provides a video data processing method, including: obtaining target video data; obtaining reference video data corresponding to target scene information; obtaining video feature information related to the video usage scenario based on the target video data and the reference video data; inputting the video feature information into a video analysis model to obtain an analysis result output by the video analysis model to indicate whether the target video data matches the target scene information; the video analysis model is used to determine whether different video data match the same scene information based on the video feature information of different video data.
[0041] Another embodiment of the present application also provides a method for training a video analysis model, including: obtaining original video data and first scene information corresponding to the original video data; obtaining reference video data corresponding to the second scene information; obtaining video feature information related to the video usage scenario based on the original video data and the reference video data; labeling the video feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training a video analysis model for determining whether different video data correspond to the same scene information based on the model training data.
[0042] Another embodiment of the present application also provides a text data processing method, including: obtaining target text data; obtaining reference text data corresponding to target scene information; obtaining text feature information related to the text usage scenario based on the target text data and the reference text data; inputting the text feature information into a text analysis model to obtain an analysis result output by the text analysis model to indicate whether the target text data matches the target scene information; the text analysis model is used to determine whether different text data match the same scene information based on the text feature information of different text data.
[0043] Another embodiment of the present application also provides a method for training a text analysis model, including: obtaining original text data and first scene information corresponding to the original text data; obtaining reference text data corresponding to second scene information; obtaining text feature information related to the text usage scenario based on the original text data and the reference text data; labeling the text feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training a text analysis model for determining whether different text data correspond to the same scene information based on the model training data.
[0044] Compared with the prior art, the embodiments of the present application have the following advantages:
[0045] The data processing method provided in the embodiment of the present application obtains audio feature information based on target audio data and reference audio data, inputs the audio feature information into an audio analysis model, and obtains an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of different audio data. By using this method, a pre-trained audio analysis model can be used to efficiently and accurately filter out audio data that matches a predetermined audio application scenario from large-scale raw audio data, and the speech synthesis model can be trained using the audio data to ensure the speech synthesis effect in the predetermined audio application scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a flow chart of a data processing method provided in the first embodiment of the present application;
[0047] Figure 1-A is a schematic diagram of a data processing method provided in the first embodiment of the present application;
[0048] Figure 2 is a flow chart of a training method for an audio analysis model provided in the second embodiment of the present application;
[0049] Figure 3 is a unit block diagram of a data processing device provided in a third embodiment of the present application;
[0050] Figure 4 is a schematic diagram of the logical structure of an electronic device provided in the fourth embodiment of the present application;
[0051] Figure 5 It is a unit block diagram of a training device for an audio analysis model provided in a fifth embodiment of the present application;
[0052] Figure 6 It is a schematic diagram of the logical structure of an electronic device provided in the sixth embodiment of the present application. DETAILED DESCRIPTION
[0053] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0054] For the training scenario of a speech synthesis system, in order to efficiently and accurately filter out audio data that matches a predetermined audio application scenario from large-scale raw audio data, the present application provides a data processing method, a data processing device corresponding to the method, and an electronic device. The present application also provides a training method for an audio analysis model, a training device for an audio analysis model corresponding to the method, and an electronic device. The following provides an embodiment to describe the method, device, and electronic device in detail.
[0055] The first embodiment of the present application provides a data processing method. Figure 1 This is a flowchart of the data processing method provided in the first embodiment of the present application. Figure 1 The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use.
[0056] like Figure 1 As shown, the data processing method provided in this embodiment includes the following steps:
[0057] S101, obtaining target audio data.
[0058] The target audio data may refer to audio data with scene matching requirements. For example, in the training process of the speech synthesis model of the TTS (Text To Speech) system, the pre-recorded original audio data is required to be used as training data for speech synthesis training so that the speech synthesis model can output speech data that matches the predetermined speech usage scenario. In this process, in order to ensure the accuracy of the model training, it is necessary to determine whether the recorded original audio data matches the predetermined audio usage scenario (the place of use of the audio data, the function of the audio data, and the user object for which the audio data is directed). The original audio data can be used as the target audio data. In this embodiment, the process of obtaining the target audio data may refer to selecting a predetermined number of sentences from the pre-recorded original sentences as the target audio data.
[0059] In this embodiment, after obtaining the target audio data, the target audio data needs to be converted into audio data with a predetermined data amount, a predetermined length and a predetermined audio format according to a predetermined audio conversion method. For example, the target audio data is converted into audio data in a 16k, 16-bit uncompressed PCM (Pulse Code Modulation) audio file format or a WAV audio file format.
[0060] S102: Obtain reference audio data corresponding to the target scene information.
[0061] The target scene information refers to the predetermined scene information that needs to be determined whether the original audio data collected for the scene matches it. In this embodiment, the target scene information may refer to one or more of the following scene information: scene information used to indicate the place where the audio data is used, such as scene information used to indicate children's entertainment places, elderly activity places, railway stations, gathering places, schools and other places; scene information used to indicate the use function of the audio data, such as scene information used to indicate customer service, news broadcast, advertising, weather broadcast and other use functions; scene information used to indicate the user object for which the audio data is intended, such as scene information used to indicate specific groups such as the elderly, children, girls, working people, soldiers, students and the like; scene information used to indicate the semantic content corresponding to the audio data, such as scene information indicating novels, humorous clips, explanation materials, popular science literature, and historical information.
[0062] Reference audio data refers to predetermined audio data corresponding to the above-mentioned target scenario information. The method for obtaining reference audio data can be: when initially constructing the speech synthesis model of the TTS system, in a preset audio usage scenario, instruct the recorder to use a speech recording method that is consistent with the audio usage scenario for speech expression, and use a predetermined number of recorded speech as reference audio data, which is used as a reference standard for measuring whether other audio data matches the audio usage scenario.
[0063] In this embodiment, obtaining the reference audio data corresponding to the target scene information may refer to obtaining reference audio data from one or more pronunciation subjects pre-recorded for the target scene, and the number of the reference audio data is at least two.
[0064] For example, standard voice information used for voice broadcasting in places such as stations and schools is recorded in advance, and the recorded voice information can be used as reference audio data corresponding to the voice broadcasting scenes in places such as stations and schools.
[0065] For another example, in a specific group, group members with different identity attributes correspond to different voice expression styles, and group members with the same identity attributes have similar voice expression styles. Therefore, group members with the same identity attributes in a specific group can correspond to the same audio usage scenario. For example, in family relationships, due to identity limitations, different family members (father, mother, children, brother, etc.) have different voice factors such as sound wave frequency, sound wave amplitude, and sound wave vibration duration when speaking, resulting in different speaking styles for each family member. Since the speaking styles of family members with the same identity in multiple families tend to be consistent, the corresponding voice usage scenario can be set according to the identity attribute information of the family members, and reference audio data can be obtained accordingly. For example, the voice data of fathers in multiple families can be pre-recorded as reference audio data for the voice usage scenario that matches the role of "father" in the family scene.
[0066] After obtaining the reference audio data, the reference audio data needs to be converted into audio data with a predetermined data amount, a predetermined length and a predetermined audio format corresponding to the above-mentioned target audio data, for example, the reference audio data needs to be converted into 16k, 16-bit and uncompressed PCM (Pulse Code Modulation) audio file format or WAV audio file format audio data.
[0067] S103, obtaining audio feature information according to the target audio data and the reference audio data.
[0068] After obtaining the target audio data and the reference audio data corresponding to the target scene information in the above steps, this step is used to obtain audio feature information based on the above target audio data and the reference audio data.
[0069] The audio feature information refers to feature information extracted from audio data that can be used to implement data processing processes such as analysis and recognition of the audio data. For example, normalized feature information extracted from target audio data and reference audio data respectively can be used as input data for an audio analysis model. For example, information such as word-level energy, speech rate, fundamental frequency, etc. can all be used as audio feature information.
[0070] In this embodiment, the above-mentioned obtaining of audio feature information based on the target audio data and the reference audio data mainly refers to extracting audio feature information related to the usage scenario of the audio data from the target audio data and the reference audio data, such as the i-vector feature vector of the audio data. The i-vector feature vector of the audio data contains the difference information of the voice subject, which is mainly used in the field of voiceprint recognition. The i-vector feature vector of the audio data corresponding to different voice scenarios has strong distinctiveness and relatively low dimension, which can greatly reduce the amount of calculation in the audio data processing process. Therefore, the strong distinctiveness of the i-vector feature vector can be used to establish an association between the i-vector feature vector and the usage scenario information of the audio data, and the subsequent processing of the audio data can be realized through the i-vector feature vector of the audio data.
[0071] In this embodiment, the process of obtaining the audio feature information related to the audio usage scenario based on the target audio data and the reference audio data can be implemented in the following two ways:
[0072] Method 1: Based on the target audio data, obtain first audio feature information of the target audio data related to the audio usage scenario; based on the reference audio data, obtain second audio feature information of the reference audio data that has the same category as the first audio feature information. For example, obtaining the first audio feature information of the target audio data related to the audio usage scenario refers to extracting the i-vector feature vector of the target audio data, for example, extracting the 256-dimensional i-vector feature vector of the target audio data; obtaining the second audio feature information of the reference audio data that has the same category as the first audio feature information specifically refers to extracting the i-vector feature vector of the reference audio data, for example, extracting the 256-dimensional i-vector feature vector of the reference audio data.
[0073] After obtaining the first audio feature information and the second audio feature information, the first audio feature information and the second audio feature information may be combined to obtain the combined audio feature information. For example, the 256-dimensional i-vector feature vector of the target audio data extracted above is combined with the 256-dimensional i-vector feature vector of the reference audio data to obtain the combined i-vector feature vector.
[0074] Method 2: Combine the target audio data with the reference audio data to obtain combined audio data; perform audio feature extraction on the combined audio data to obtain audio feature information of the combined audio data related to the audio usage scenario, for example, obtain a 256-dimensional i-vector feature vector of the combined audio data.
[0075] S104, inputting the audio feature information into the audio analysis model, and obtaining an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information.
[0076] After the audio feature information related to the usage scenarios of the target audio data and the reference audio data is obtained in the above steps, this step is used to input the audio feature information into a pre-trained audio analysis model, and obtain the analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information. The audio analysis model is used to determine whether the different audio data match the same scene information based on the audio feature information of the different audio data. Since the reference audio data corresponds to the predetermined target scene information, the above analysis result can also be used to indicate whether the target audio data is the audio data corresponding to the above target scene information. In this way, audio data that matches the predetermined target scene information can be screened out from a large amount of audio data. For example, the target audio data and the reference audio data are judged to match the same scene information based on the i-vector feature vector of the target audio data and the i-vector feature vector of the reference audio data. If they match, it indicates that the target audio data matches the target scene information.
[0077] In this embodiment, the inputting of audio feature information into the audio analysis model may refer to: inputting the i-vector feature vector obtained by combining the i-vector feature vector of the target audio data and the i-vector feature vector of the reference audio data into the audio analysis model, or inputting the i-vector feature vector of the target audio data and the i-vector feature vector of the reference audio data into the audio analysis model separately, which is not limited here.
[0078] In this embodiment, the audio analysis model can be a binary classification deep learning model with a deep neural network (DNN) structure. The model can output a classification result of whether the target audio data matches or does not match the reference audio data based on the input i-vector feature vector. The classification result can be used to indicate whether the target audio data matches the target scene information.
[0079] For example, if the reference audio data is the reference audio data of the voice broadcast scenes in the above-mentioned stations, schools and other places, the analysis results output by the audio analysis model can indicate whether the input target audio matches the voice broadcast scenes in the stations, schools and other places.
[0080] For another example, the reference audio data is the pre-recorded voice data of fathers in multiple families. The analysis results output by the audio analysis model can indicate whether the input target audio matches the voice usage scenario corresponding to the role of "father" in the family scene.
[0081] In this embodiment, the corresponding audio processing method can also be determined based on the analysis result of whether the target audio data matches the target scene information. For example, if the above analysis result shows that the target audio data does not match the target scene information, the target audio data can be re-recorded and the re-recorded target audio data can be processed using the above method until audio data matching the above target scene information is obtained.
[0082] like Figure 1-A As shown, the data processing method provided by this embodiment obtains audio feature information based on target audio data and reference audio data, inputs the audio feature information into an audio analysis model, and obtains an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether the different audio data match the same scene information based on the audio feature information of different audio data. By using this method, a pre-trained audio analysis model can be used to efficiently and accurately filter out audio data that matches a predetermined audio application scenario from large-scale raw audio data, and the speech synthesis model can be trained using the audio data to ensure the speech synthesis effect in the predetermined audio application scenario.
[0083] The present embodiment also provides a method for matching news broadcast voice data, which can be used to match voice data corresponding to a predetermined news broadcast scenario from a large amount of voice data, and specifically includes the following contents: obtaining target voice data; obtaining reference voice data corresponding to the news broadcast scenario; obtaining voice feature information related to the voice usage scenario based on the target voice data and the reference voice data, for example, obtaining the i-vector feature vector of the target voice data and the i-vector feature vector of the reference voice data; inputting the above voice feature information into a voice analysis model, and obtaining an analysis result output by the voice analysis model to indicate whether the above target voice data matches the predetermined news broadcast scenario, wherein the above voice analysis model is used to determine whether different voice data matches the same scenario information based on the voice feature information of the different voice data.
[0084] The present embodiment also provides a model training method for training the above-mentioned speech analysis model, and the model training method includes the following contents: obtaining original speech data and first scene information corresponding to the original speech data, for example, obtaining pre-recorded original speech data for voice broadcasting at a railway station and information for identifying the voice broadcasting scene of the railway station; obtaining reference speech data corresponding to the second scene information, for example, obtaining pre-recorded reference speech data for advertising and information for identifying the advertising scene; obtaining speech feature information related to the speech usage scene based on the above-mentioned original speech data and reference speech data, for example, obtaining i-vector feature vectors of the original speech data and i-vector feature vectors of the reference speech data; determining whether the above-mentioned first scene information and the second scene information are the same scene; Information is obtained, and the voice feature information is labeled to obtain model training data. For example, since the information used to identify the voice broadcast scene of the railway station and the information used to identify the advertising scene are different voice usage scenario information, the i-vector feature vector of the combined original voice data and the i-vector feature vector of the reference voice data are labeled as 0. Conversely, if the first scene information and the second scene information are the same scene information, they are labeled as 1. According to the model training data, a voice analysis model for determining whether different voice data corresponds to the same scene information is trained. For example, after model training is performed using multiple groups of the above-mentioned types of training data, the voice analysis model can output a result of 1 for input voice data under the same voice usage scenario, and can output a result of 0 for input voice data under different voice usage scenarios.
[0085] This embodiment also provides a method for matching promotional voice data. The method can be used to match promotional voice data from a large amount of voice data, for example, advertising terms used for commercial or non-commercial channels. The method specifically includes the following contents: obtaining target voice data; obtaining reference voice data corresponding to a voice promotion scenario; obtaining voice feature information related to the voice usage scenario based on the target voice data and the reference voice data; inputting the voice feature information into a voice analysis model to obtain an analysis result output by the voice analysis model to indicate whether the target voice data matches the voice promotion scenario; the voice analysis model is used to determine whether different voice data match the same scenario information based on the voice feature information of different voice data.
[0086] This embodiment also provides a voice data matching method, which is based on the correspondence between geographical location and voice usage scenario, and can be used to match voice data that matches the voice usage requirements of the target location from a large batch of voice data. For example, since groups from different regions have different voice usage requirements, this method can be used to match voice data belonging to the target "local accent" from a large batch of voice data. The method includes the following contents: obtaining target voice data; obtaining reference voice data that matches the voice usage requirements of the target location, for example, a pre-recorded standard "local accent" belonging to the target province; obtaining voice feature information related to the voice usage scenario based on the target voice data and the reference voice data; inputting the voice feature information into a voice analysis model, and obtaining an analysis result output by the voice analysis model to indicate whether the target voice data matches the voice usage requirements of the target location, wherein the voice analysis model is used to determine whether the different voice data match the same scenario information based on the voice feature information of different voice data, for example, obtaining a voice analysis result of whether the above-mentioned target voice data belongs to the "local accent" of the above-mentioned target province.
[0087] The second embodiment of the present application provides a method for training an audio analysis model, such as Figure 2 As shown, Figure 2 A flowchart of the training method of the audio analysis model provided in this embodiment, such as Figure 2 As shown, the training method of the audio analysis model provided in this embodiment includes the following steps:
[0088] S201, obtaining original audio data and first scene information corresponding to the original audio data. For example, obtaining pre-recorded original voice data for voice broadcasting at a railway station and information for identifying a voice broadcasting scene at the railway station.
[0089] S202, obtaining reference audio data corresponding to the second scene information, for example, obtaining pre-recorded reference voice data for advertising and information for identifying the advertising scene.
[0090] S203: Obtain audio feature information according to the original audio data and the reference audio data.
[0091] This step is used to obtain audio feature information related to the audio usage scenario based on the original audio data and the reference audio data. Specifically, it can be: obtaining first audio feature information related to the audio usage scenario based on the original audio data; obtaining second audio feature information of the same category as the first audio feature information based on the reference audio data; merging the first audio feature information and the second audio feature information to obtain merged audio feature information.
[0092] In this embodiment, obtaining the first audio feature information related to the audio usage scenario specifically refers to obtaining the i-vector feature vector of the original audio data; obtaining the second audio feature information of the same category as the first audio feature information specifically refers to: obtaining the i-vector feature vector of the reference audio data; merging the first audio feature information and the second audio feature information to obtain the merged audio feature information specifically refers to: merging the i-vector feature vector of the original audio data with the i-vector feature vector of the reference audio data to obtain the merged i-vector feature vector.
[0093] The obtaining of audio feature information related to the audio usage scenario based on the original audio data and the reference audio data may also be: combining the original audio data with the reference audio data to obtain combined audio data; obtaining audio feature information related to the audio usage scenario of the combined audio data, for example, obtaining an i-vector feature vector of the combined audio data.
[0094] The above-mentioned combining the original audio data with the reference audio data to obtain the combined audio data may specifically be: segmenting the original audio data to obtain segmented original audio data; and splicing the segmented original audio data with the reference audio data to obtain the combined audio data. In this way, the robustness of the combined audio data may be increased. In this embodiment, the segmenting of the original audio data may be segmenting the original audio data according to any length or by sentence, which is not limited here.
[0095] S204: Label the audio feature information according to whether the first scene information and the second scene information are the same scene information, and obtain model training data.
[0096] The process may be to label the audio feature information after merging the first audio feature information and the second audio feature information, or label the audio feature information of the combined audio data obtained by combining the original audio data with the reference audio data, according to whether the first scene information and the second scene information are the same scene information. For example, if the first scene information and the second scene information are the same scene information, the audio feature information after merging the first audio feature information and the second audio feature information is labeled as 1, or the audio feature information of the combined audio data obtained by combining the original audio data with the reference audio data is labeled as 1; if the first scene information and the second scene information are different scene information, the audio feature information after merging the first audio feature information and the second audio feature information is labeled as 0, or the audio feature information of the combined audio data obtained by combining the original audio data with the reference audio data is labeled as 0, and the labeled audio feature information is used as model training data.
[0097] For example, since the information used to identify the voice broadcast scene of the railway station and the information used to identify the advertising scene are different voice usage scenario information, the i-vector feature vector of the combined original voice data and the i-vector feature vector of the reference voice data are marked as 0; conversely, if the above-mentioned first scene information and the second scene information are both information used to identify the advertising scene, the i-vector feature vector of the combined original voice data and the i-vector feature vector of the reference voice data are marked as 1.
[0098] S205, training an audio analysis model for determining whether different audio data corresponds to the same scene information based on the model training data. For example, after model training using multiple sets of the above-mentioned types of training data, the speech analysis model may output a result of 1 for input speech data in the same speech usage scene, and may output a result of 0 for input speech data in different speech usage scenes.
[0099] The audio analysis model training method provided in this embodiment can train the audio analysis model based on whether the audio usage scenarios corresponding to the audio data are the same. The trained audio analysis model can determine whether different audio data correspond to the same audio usage scenarios.
[0100] Another embodiment of the present application provides an image data processing method, which can be used to filter out image data that matches a predetermined image usage scenario from a large amount of image data, and the method includes the following contents: obtaining target image data; obtaining reference image data corresponding to target scene information; obtaining image feature information related to the image usage scenario based on the target image data and the reference image data; inputting the image feature information into an image analysis model to obtain an analysis result output by the image analysis model to indicate whether the target image data matches the target scene information; the image analysis model is used to determine whether different image data match the same scene information based on the image feature information of different image data.
[0101] Another embodiment of the present application provides a model training method for training the above-mentioned image analysis model, which method includes the following contents: obtaining original image data and first scene information corresponding to the original image data; obtaining reference image data corresponding to the second scene information; obtaining image feature information related to the image usage scenario based on the original image data and the reference image data; labeling the image feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training an image analysis model for determining whether different image data correspond to the same scene information based on the model training data.
[0102] Another embodiment of the present application provides a video data processing method, which can be used to filter out video data that matches a predetermined video usage scenario from a large amount of video data, and the method includes the following contents: obtaining target video data; obtaining reference video data corresponding to target scene information; obtaining video feature information related to the video usage scenario based on the target video data and the reference video data; inputting the video feature information into a video analysis model to obtain an analysis result output by the video analysis model to indicate whether the target video data matches the target scene information; the video analysis model is used to determine whether different video data match the same scene information based on the video feature information of different video data.
[0103] Another embodiment of the present application provides a model training method for training the above-mentioned video analysis model, which includes the following contents: obtaining original video data and first scene information corresponding to the original video data; obtaining reference video data corresponding to the second scene information; obtaining video feature information related to the video usage scenario based on the original video data and the reference video data; labeling the video feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training a video analysis model for determining whether different video data correspond to the same scene information based on the model training data.
[0104] Another embodiment of the present application provides a text data processing method, which can be used to filter out text data that matches a predetermined text usage scenario from a large batch of video data, for example, to filter out articles that match the writing style of a specific writer from a large batch of articles, or to filter out articles belonging to a specific genre (novels, essays, poems) from a large batch of articles, or to filter out copywriting information used for advertising from a large batch of text information. The method includes the following contents: obtaining target text data; obtaining reference text data corresponding to target scene information; obtaining text feature information related to the text usage scenario based on the target text data and the reference text data; inputting the text feature information into a text analysis model to obtain an analysis result output by the text analysis model to indicate whether the target text data matches the target scene information; the text analysis model is used to determine whether the different text data matches the same scene information based on the text feature information of the different text data.
[0105] Another embodiment of the present application provides a model training method for training the above-mentioned text analysis model, which includes the following contents: obtaining original text data and first scene information corresponding to the original text data; obtaining reference text data corresponding to the second scene information; obtaining text feature information related to the text usage scenario based on the original text data and the reference text data; labeling the text feature information based on whether the first scene information and the second scene information are the same scene information to obtain model training data; and training a text analysis model for determining whether different text data correspond to the same scene information based on the model training data.
[0106] The above-mentioned first embodiment provides a data processing method. Correspondingly, the third embodiment of the present application also provides a data processing device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0107] Please refer to Figure 3 To understand this embodiment, Figure 3 A unit block diagram of the device provided in this embodiment, such as Figure 3 As shown, the device provided in this embodiment includes:
[0108] The target audio data obtaining unit 301 is used to obtain the target audio data;
[0109] A reference audio data obtaining unit 302 is used to obtain reference audio data corresponding to the target scene information;
[0110] An audio feature information obtaining unit 303, configured to obtain audio feature information according to the target audio data and the reference audio data;
[0111] The analysis result obtaining unit 304 is used to input the audio feature information into the audio analysis model to obtain the analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data matches the same scene information based on the audio feature information of different audio data.
[0112] Optionally, obtaining audio feature information according to the target audio data and the reference audio data includes:
[0113] Audio feature information related to an audio usage scenario is obtained according to the target audio data and the reference audio data.
[0114] Optionally, obtaining audio feature information related to an audio usage scenario according to the target audio data and the reference audio data includes:
[0115] Obtaining, according to the target audio data, first audio feature information of the target audio data related to an audio usage scenario;
[0116] According to the reference audio data, second audio feature information of the reference audio data having the same category as the first audio feature information is obtained.
[0117] Optionally, the obtaining first audio feature information of the target audio data related to the audio usage scenario includes:
[0118] Obtaining an i-vector feature vector of the target audio data;
[0119] The obtaining of second audio feature information of the reference audio data having the same category as the first audio feature information includes:
[0120] Obtain an i-vector feature vector of the reference audio data.
[0121] Optionally, obtaining the i-vector feature vector of the target audio data includes: obtaining a 256-dimensional i-vector feature vector of the target audio data;
[0122] The step of obtaining the i-vector feature vector of the reference audio data comprises:
[0123] A 256-dimensional i-vector feature vector of the reference audio data is obtained.
[0124] Optionally, the method further includes: combining the first audio feature information and the second audio feature information to obtain combined audio feature information;
[0125] The inputting the audio feature information into an audio analysis model includes: inputting the combined audio feature information into an audio analysis model.
[0126] Optionally, obtaining audio feature information related to an audio usage scenario according to the target audio data and the reference audio data includes:
[0127] Combining the target audio data with the reference audio data to obtain combined audio data;
[0128] Audio feature extraction is performed on the combined audio data to obtain audio feature information of the combined audio data that is related to the audio usage scenario.
[0129] Optionally, the step of obtaining audio feature information related to the audio usage scenario of the combined audio data includes:
[0130] Obtain an i-vector feature vector of the combined audio data.
[0131] Optionally, obtaining reference audio data corresponding to the target scene information includes:
[0132] Reference audio data from one or more speaking subjects pre-recorded for a target scenario is obtained.
[0133] Optionally, obtaining reference audio data corresponding to the target scene information includes: obtaining at least two reference audio data corresponding to the target scene information.
[0134] Optionally, the target scene information includes at least one of the following:
[0135] scene information corresponding to the place where the audio data is used;
[0136] Scenario information corresponding to the usage function of the audio data;
[0137] Scene information corresponding to the user object to which the audio data is directed;
[0138] Scene information corresponding to the semantic content contained in the audio data.
[0139] Optionally, the audio analysis model includes a binary classification deep learning model with a DNN structure.
[0140] Optionally, the method further includes: converting the target audio data and the reference audio data into audio data with a predetermined data volume, a predetermined length and a predetermined audio format according to a predetermined audio conversion method.
[0141] Optionally, the method further includes: if the analysis result indicates that the target audio data does not match the target scene information, re-recording the target audio data to obtain audio data matching the target scene information.
[0142] In the above-mentioned embodiments, a data processing method and a data processing device are provided. In addition, the fourth embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is merely illustrative.
[0143] The electronic device embodiment is as follows:
[0144] Please refer to Figure 4 To understand this embodiment, Figure 4 A schematic diagram of an electronic device provided in this embodiment.
[0145] like Figure 4 As shown, the electronic device includes: a processor 401; a memory 402;
[0146] The memory 402 is used to store a data processing program. When the program is read and executed by the processor, the following operations are performed:
[0147] Obtain target audio data;
[0148] Obtaining reference audio data corresponding to the target scene information;
[0149] Obtaining audio feature information according to the target audio data and the reference audio data;
[0150] The audio feature information is input into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of different audio data.
[0151] Optionally, obtaining audio feature information according to the target audio data and the reference audio data includes:
[0152] Audio feature information related to an audio usage scenario is obtained according to the target audio data and the reference audio data.
[0153] Optionally, obtaining audio feature information related to an audio usage scenario according to the target audio data and the reference audio data includes:
[0154] Obtaining, according to the target audio data, first audio feature information of the target audio data related to an audio usage scenario;
[0155] According to the reference audio data, second audio feature information of the reference audio data having the same category as the first audio feature information is obtained.
[0156] Optionally, the obtaining first audio feature information of the target audio data related to the audio usage scenario includes:
[0157] Obtaining an i-vector feature vector of the target audio data;
[0158] The obtaining of second audio feature information of the reference audio data having the same category as the first audio feature information includes:
[0159] Obtain an i-vector feature vector of the reference audio data.
[0160] Optionally, obtaining the i-vector feature vector of the target audio data includes: obtaining a 256-dimensional i-vector feature vector of the target audio data;
[0161] The step of obtaining the i-vector feature vector of the reference audio data comprises:
[0162] A 256-dimensional i-vector feature vector of the reference audio data is obtained.
[0163] Optionally, the method further includes: combining the first audio feature information and the second audio feature information to obtain combined audio feature information;
[0164] The inputting the audio feature information into an audio analysis model includes: inputting the combined audio feature information into an audio analysis model.
[0165] Optionally, obtaining audio feature information related to an audio usage scenario according to the target audio data and the reference audio data includes:
[0166] Combining the target audio data with the reference audio data to obtain combined audio data;
[0167] Audio feature extraction is performed on the combined audio data to obtain audio feature information of the combined audio data that is related to the audio usage scenario.
[0168] Optionally, the step of obtaining audio feature information related to the audio usage scenario of the combined audio data includes:
[0169] Obtain an i-vector feature vector of the combined audio data.
[0170] Optionally, obtaining reference audio data corresponding to the target scene information includes:
[0171] Reference audio data from one or more speaking subjects pre-recorded for a target scenario is obtained.
[0172] Optionally, obtaining reference audio data corresponding to the target scene information includes: obtaining at least two reference audio data corresponding to the target scene information.
[0173] Optionally, the target scene information includes at least one of the following:
[0174] scene information corresponding to the place where the audio data is used;
[0175] Scenario information corresponding to the usage function of the audio data;
[0176] Scene information corresponding to the user object to which the audio data is directed;
[0177] Scene information corresponding to the semantic content contained in the audio data.
[0178] Optionally, the audio analysis model includes a binary classification deep learning model with a DNN structure.
[0179] Optionally, the method further includes: converting the target audio data and the reference audio data into audio data with a predetermined data volume, a predetermined length and a predetermined audio format according to a predetermined audio conversion method.
[0180] Optionally, the method further includes: if the analysis result indicates that the target audio data does not match the target scene information, re-recording the target audio data to obtain audio data matching the target scene information.
[0181] The above-mentioned second embodiment provides a training method for an audio analysis model. Correspondingly, the fifth embodiment of the present application also provides a training device for an audio analysis model. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0182] Please refer to Figure 5 To understand this embodiment, Figure 5 A unit block diagram of the device provided in this embodiment, such as Figure 5 As shown, the device provided in this embodiment includes:
[0183] The original audio data obtaining unit 501 is used to obtain the original audio data and the first scene information corresponding to the original audio data;
[0184] A reference audio data obtaining unit 502 is used to obtain reference audio data corresponding to the second scene information;
[0185] An audio feature information obtaining unit 503, configured to obtain audio feature information according to the original audio data and the reference audio data;
[0186] A model training data obtaining unit 504 is used to label the audio feature information according to whether the first scene information and the second scene information are the same scene information, so as to obtain model training data;
[0187] The model training unit 505 is used to train an audio analysis model for determining whether different audio data corresponds to the same scene information based on the model training data.
[0188] Optionally, obtaining audio feature information according to the original audio data and the reference audio data includes:
[0189] Audio feature information related to an audio usage scenario is obtained according to the original audio data and the reference audio data.
[0190] Optionally, obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data includes:
[0191] Obtaining first audio feature information related to an audio usage scenario according to the original audio data;
[0192] Obtaining, according to the reference audio data, second audio feature information having the same category as the first audio feature information;
[0193] Merging the first audio feature information and the second audio feature information to obtain merged audio feature information;
[0194] Correspondingly, the marking the audio feature information according to whether the first scene information and the second scene information are the same scene information includes:
[0195] The merged audio feature information is labeled according to whether the first scene information and the second scene information are the same scene information.
[0196] Optionally, obtaining the first audio feature information related to the audio usage scenario includes: obtaining an i-vector feature vector of the original audio data;
[0197] The obtaining of second audio feature information having the same category as the first audio feature information comprises: obtaining an i-vector feature vector of the reference audio data;
[0198] The merging of the first audio feature information and the second audio feature information to obtain the merged audio feature information includes: merging the i-vector feature vector of the original audio data with the i-vector feature vector of the reference audio data to obtain the merged i-vector feature vector.
[0199] Optionally, obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data includes:
[0200] Combining the original audio data with the reference audio data to obtain combined audio data;
[0201] Audio feature information related to the audio usage scenario of the combined audio data is obtained.
[0202] Optionally, obtaining audio feature information of the combined audio data related to the audio usage scenario includes: obtaining an i-vector feature vector of the combined audio data.
[0203] Optionally, combining the original audio data with the reference audio data to obtain combined audio data includes:
[0204] Segmenting the original audio data to obtain segmented original audio data;
[0205] The segmented original audio data is concatenated with the reference audio data to obtain combined audio data.
[0206] Optionally, segmenting the original audio data to obtain segmented original audio data includes: segmenting the original audio data according to arbitrary lengths to obtain segmented original audio data.
[0207] In the above-mentioned embodiments, a training method for an audio analysis model and a training device for an audio analysis model are provided. In addition, the sixth embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows:
[0208] Please refer to Figure 6 To understand this embodiment, Figure 6 A schematic diagram of an electronic device provided in this embodiment.
[0209] like Figure 6 As shown, the electronic device includes: a processor 601; a memory 602;
[0210] The memory 602 is used to store a training program for the audio analysis model. When the program is read and executed by the processor, the following operations are performed:
[0211] Obtaining original audio data and first scene information corresponding to the original audio data;
[0212] Obtaining reference audio data corresponding to the second scene information;
[0213] Obtaining audio feature information according to the original audio data and the reference audio data;
[0214] According to whether the first scene information and the second scene information are the same scene information, marking the audio feature information to obtain model training data;
[0215] An audio analysis model is trained based on the model training data to determine whether different audio data corresponds to the same scene information.
[0216] Optionally, obtaining audio feature information according to the original audio data and the reference audio data includes:
[0217] Audio feature information related to an audio usage scenario is obtained according to the original audio data and the reference audio data.
[0218] Optionally, obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data includes:
[0219] Obtaining first audio feature information related to an audio usage scenario according to the original audio data;
[0220] Obtaining, according to the reference audio data, second audio feature information having the same category as the first audio feature information;
[0221] Merging the first audio feature information and the second audio feature information to obtain merged audio feature information;
[0222] Correspondingly, the marking the audio feature information according to whether the first scene information and the second scene information are the same scene information includes:
[0223] The merged audio feature information is labeled according to whether the first scene information and the second scene information are the same scene information.
[0224] Optionally, obtaining the first audio feature information related to the audio usage scenario includes: obtaining an i-vector feature vector of the original audio data;
[0225] The obtaining of second audio feature information having the same category as the first audio feature information comprises: obtaining an i-vector feature vector of the reference audio data;
[0226] The merging of the first audio feature information and the second audio feature information to obtain the merged audio feature information includes: merging the i-vector feature vector of the original audio data with the i-vector feature vector of the reference audio data to obtain the merged i-vector feature vector.
[0227] Optionally, obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data includes:
[0228] Combining the original audio data with the reference audio data to obtain combined audio data;
[0229] Audio feature information related to the audio usage scenario of the combined audio data is obtained.
[0230] Optionally, obtaining audio feature information of the combined audio data related to the audio usage scenario includes: obtaining an i-vector feature vector of the combined audio data.
[0231] Optionally, combining the original audio data with the reference audio data to obtain combined audio data includes:
[0232] Segmenting the original audio data to obtain segmented original audio data;
[0233] The segmented original audio data is concatenated with the reference audio data to obtain combined audio data.
[0234] Optionally, segmenting the original audio data to obtain segmented original audio data includes: segmenting the original audio data according to arbitrary lengths to obtain segmented original audio data.
[0235] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0236] 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.
[0237] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0238] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0239] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A data processing method, It is characterized in that include: Obtain target audio data; Obtaining reference audio data corresponding to the target scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; Obtaining audio feature information according to the target audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by performing audio feature extraction on combined audio data obtained by combining the target audio data and the reference audio data; The audio feature information is input into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of different audio data.
2. The method according to claim 1, It is characterized in that The obtaining, according to the target audio data and the reference audio data, audio feature information related to the audio usage scenario includes: Obtaining, according to the target audio data, first audio feature information of the target audio data related to an audio usage scenario; According to the reference audio data, second audio feature information of the reference audio data having the same category as the first audio feature information is obtained.
3. The method according to claim 2, It is characterized in that The obtaining first audio feature information of the target audio data related to the audio usage scenario includes: Obtaining an i-vector feature vector of the target audio data; The obtaining of second audio feature information of the reference audio data having the same category as the first audio feature information includes: Obtain an i-vector feature vector of the reference audio data.
4. The method according to claim 3, It is characterized in that The obtaining of the i-vector feature vector of the target audio data comprises: obtaining a 256-dimensional i-vector feature vector of the target audio data; The step of obtaining the i-vector feature vector of the reference audio data comprises: A 256-dimensional i-vector feature vector of the reference audio data is obtained.
5. The method according to claim 2, It is characterized in that Also includes: Combining the first audio feature information and the second audio feature information to obtain combined audio feature information; The inputting the audio feature information into an audio analysis model includes: inputting the combined audio feature information into an audio analysis model.
6. The method according to claim 1, It is characterized in that The audio feature information related to the audio usage scenario of the combined audio data is obtained, including: Obtain an i-vector feature vector of the combined audio data.
7. The method according to claim 1, It is characterized in that The obtaining of reference audio data corresponding to the target scene information includes: obtaining at least two reference audio data corresponding to the target scene information.
8. The method according to claim 1, It is characterized in that The target scene information includes at least one of the following: Scene information used to indicate where the audio data is used; Scenario information for indicating the usage function of the audio data; Used to represent scene information of the user object to which the audio data is directed; Scene information used to represent the semantic content contained in audio data.
9. The method according to claim 1, It is characterized in that The audio analysis model includes a binary classification deep learning model with a DNN structure.
10. The method according to claim 1, It is characterized in that Also includes: The target audio data and the reference audio data are converted into audio data having a predetermined data amount, a predetermined length, and a predetermined audio format according to a predetermined audio conversion method.
11. The method according to claim 1, It is characterized in that Also includes: If the analysis result indicates that the target audio data does not match the target scene information, the target audio data is re-recorded to obtain audio data that matches the target scene information.
12. A training method for an audio analysis model, It is characterized in that include: Obtaining original audio data and first scene information corresponding to the original audio data; Obtaining reference audio data corresponding to the second scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for a target scene, and the first scene information is scene information of the target scene; Obtaining audio feature information according to the original audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by performing audio feature extraction on combined audio data obtained by combining the original audio data and the reference audio data; According to whether the first scene information and the second scene information are the same scene information, marking the audio feature information to obtain model training data; An audio analysis model is trained based on the model training data to determine whether different audio data corresponds to the same scene information.
13. The method according to claim 12, It is characterized in that Obtaining audio feature information related to an audio usage scenario according to the original audio data and the reference audio data, including: Obtaining first audio feature information related to an audio usage scenario according to the original audio data; Obtaining, according to the reference audio data, second audio feature information having the same category as the first audio feature information; Merging the first audio feature information and the second audio feature information to obtain merged audio feature information; Correspondingly, the marking the audio feature information according to whether the first scene information and the second scene information are the same scene information includes: The merged audio feature information is labeled according to whether the first scene information and the second scene information are the same scene information.
14. The method according to claim 13, It is characterized in that The obtaining of first audio feature information related to the audio usage scenario includes: obtaining an i-vector feature vector of the original audio data; The obtaining of second audio feature information having the same category as the first audio feature information comprises: obtaining an i-vector feature vector of the reference audio data; The merging of the first audio feature information and the second audio feature information to obtain the merged audio feature information includes: merging the i-vector feature vector of the original audio data with the i-vector feature vector of the reference audio data to obtain the merged i-vector feature vector.
15. The method according to claim 12, It is characterized in that The obtaining of audio feature information related to the audio usage scenario of the combined audio data includes: Obtain an i-vector feature vector of the combined audio data.
16. The method according to claim 15, It is characterized in that Combining the original audio data with the reference audio data to obtain combined audio data comprises: Segmenting the original audio data to obtain segmented original audio data; The segmented original audio data is concatenated with the reference audio data to obtain combined audio data.
17. The method according to claim 16, It is characterized in that The segmenting of the original audio data to obtain the segmented original audio data includes: The original audio data is segmented according to arbitrary lengths to obtain segmented original audio data.
18. A data processing device, It is characterized in that include: A target audio data obtaining unit, used for obtaining target audio data; A reference audio data obtaining unit, used to obtain reference audio data corresponding to target scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; an audio feature information obtaining unit, configured to obtain audio feature information according to the target audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by extracting audio features from combined audio data obtained by combining the target audio data with the reference audio data; An analysis result obtaining unit is used to input the audio feature information into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data matches the same scene information based on the audio feature information of different audio data.
19. An electronic device, It is characterized in that include: processor; The memory is used to store a data processing program, and when the program is read and executed by the processor, the program performs the following operations: Obtain target audio data; Obtaining reference audio data corresponding to the target scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; Obtaining audio feature information according to the target audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by performing audio feature extraction on combined audio data obtained by combining the target audio data and the reference audio data; The audio feature information is input into an audio analysis model to obtain an analysis result output by the audio analysis model to indicate whether the target audio data matches the target scene information; the audio analysis model is used to determine whether different audio data match the same scene information based on the audio feature information of different audio data.
20. A training device for an audio analysis model, It is characterized in that include: An original audio data obtaining unit, used to obtain original audio data and first scene information corresponding to the original audio data; A reference audio data obtaining unit, configured to obtain reference audio data corresponding to the second scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for a target scene, and the first scene information is scene information of the target scene; an audio feature information obtaining unit, configured to obtain audio feature information according to the original audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by extracting audio features from combined audio data obtained by combining the original audio data and the reference audio data; a model training data obtaining unit, configured to label the audio feature information according to whether the first scene information and the second scene information are the same scene information, and obtain model training data; The model training unit is used to train an audio analysis model for determining whether different audio data corresponds to the same scene information based on the model training data.
21. An electronic device, It is characterized in that include: processor; The memory is used to store a training program of the audio analysis model, and when the program is read and executed by the processor, the following operations are performed: Obtaining original audio data and first scene information corresponding to the original audio data; Obtaining reference audio data corresponding to the second scene information, wherein the reference audio data is audio data from one or more pronunciation subjects pre-recorded for a target scene, and the first scene information is scene information of the target scene; Obtaining audio feature information according to the original audio data and the reference audio data, wherein the audio feature information is related to an audio usage scenario and is obtained by performing audio feature extraction on combined audio data obtained by combining the original audio data and the reference audio data; According to whether the first scene information and the second scene information are the same scene information, marking the audio feature information to obtain model training data; An audio analysis model is trained based on the model training data to determine whether different audio data corresponds to the same scene information.
22. A method for matching news broadcast voice data, It is characterized in that include: Obtaining target voice data; Obtaining reference voice data corresponding to news broadcast scene information, wherein the reference voice data is voice data from one or more pronunciation subjects pre-recorded for a target scene, and the news broadcast scene information is scene information of the target scene; Acquire voice feature information related to a voice usage scenario according to the target voice data and the reference voice data, wherein the voice feature information is related to the voice usage scenario and is obtained by performing voice feature extraction on combined voice data obtained by combining the target voice data and the reference voice data; The speech feature information is input into a speech analysis model to obtain an analysis result output by the speech analysis model to indicate whether the target speech data matches the news broadcast scene; the speech analysis model is used to determine whether different speech data match the same scene information based on the speech feature information of different speech data.
23. A method for training a speech analysis model. It is characterized in that include: Obtaining original voice data and first scene information corresponding to the original voice data; Obtaining reference voice data corresponding to the second scene information, wherein the reference voice data is voice data from one or more pronunciation subjects pre-recorded for the target scene, and the first scene information is scene information of the target scene; Obtaining voice feature information related to a voice usage scenario according to the original voice data and the reference voice data, wherein the voice feature information is related to the voice usage scenario and is obtained by performing voice feature extraction on combined voice data obtained by combining the original voice data and the reference voice data; According to whether the first scene information and the second scene information are the same scene information, marking the speech feature information to obtain model training data; A speech analysis model is trained based on the model training data to determine whether different speech data correspond to the same scene information.
24. A method for matching promotional voice data. It is characterized in that include: Obtaining target voice data; Obtain reference voice data corresponding to the voice promotion scene information, wherein the reference voice data is voice data from one or more pronunciation subjects pre-recorded for the target scene, and the voice promotion scene information is scene information of the target scene; Acquire voice feature information related to a voice usage scenario according to the target voice data and the reference voice data, wherein the voice feature information is related to the voice usage scenario and is obtained by performing voice feature extraction on combined voice data obtained by combining the target voice data and the reference voice data; The speech feature information is input into a speech analysis model to obtain an analysis result output by the speech analysis model to indicate whether the target speech data matches the speech promotion scene; the speech analysis model is used to determine whether different speech data match the same scene information based on the speech feature information of different speech data.
25. A method for matching voice data, It is characterized in that include: Obtaining target voice data; Obtaining reference voice data that matches the voice usage requirement information of the target location, wherein the reference voice data is voice data from one or more pronunciation subjects pre-recorded for the target scene, and the voice usage requirement information of the target location is scene information of the target scene; According to the target voice data and the reference voice data, voice feature information related to the voice usage scenario is obtained, wherein the voice feature information is related to the audio usage scenario and is obtained by performing voice feature extraction on combined voice data obtained by combining the target voice data and the reference voice data; The speech feature information is input into a speech analysis model to obtain an analysis result output by the speech analysis model to indicate whether the target speech data matches the speech usage requirement of the target location; the speech analysis model is used to determine whether different speech data match the same scene information based on the speech feature information of different speech data.
26. A method for processing image data, It is characterized in that include: Obtaining target image data; Obtaining reference image data corresponding to the target scene information, wherein the reference image data is image data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; Obtaining image feature information related to an image usage scenario according to the target image data and the reference image data, wherein the image feature information is related to the image usage scenario and is obtained by performing image feature extraction on combined image data obtained by combining the target image data and the reference image data; The image feature information is input into an image analysis model to obtain an analysis result output by the image analysis model to indicate whether the target image data matches the target scene information; the image analysis model is used to determine whether different image data match the same scene information based on the image feature information of different image data.
27. A training method for an image analysis model, It is characterized in that include: Obtaining original image data and first scene information corresponding to the original image data; Obtaining reference image data corresponding to the second scene information, wherein the reference image data is image data from one or more pronunciation subjects pre-recorded for a target scene, and the first scene information is scene information of the target scene; Obtaining image feature information related to an image usage scenario according to the original image data and the reference image data, wherein the image feature information is related to the image usage scenario and is obtained by performing image feature extraction on combined image data obtained by combining the original image data and the reference image data; According to whether the first scene information and the second scene information are the same scene information, marking the image feature information to obtain model training data; An image analysis model for determining whether different image data corresponds to the same scene information is trained according to the model training data.
28. A video data processing method, It is characterized in that include; Obtain target video data; Obtaining reference video data corresponding to the target scene information, wherein the reference video data is video data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; Obtaining video feature information related to a video usage scenario according to the target video data and the reference video data, wherein the video feature information is related to the video usage scenario and is obtained by performing video feature extraction on combined video data obtained by combining the target video data and the reference video data; The video feature information is input into a video analysis model to obtain an analysis result output by the video analysis model to indicate whether the target video data matches the target scene information; the video analysis model is used to determine whether different video data match the same scene information based on the video feature information of different video data.
29. A video analysis model training method, It is characterized in that include: Obtaining original video data and first scene information corresponding to the original video data; Obtaining reference video data corresponding to the second scene information, wherein the reference video data is video data from one or more pronunciation subjects pre-recorded for a target scene, and the first scene information is scene information of the target scene; Obtaining video feature information related to a video usage scenario according to the original video data and the reference video data, wherein the video feature information is related to the video usage scenario and is obtained by performing video feature extraction on combined video data obtained by combining the original video data and the reference video data; According to whether the first scene information and the second scene information are the same scene information, marking the video feature information to obtain model training data; A video analysis model for determining whether different video data corresponds to the same scene information is trained according to the model training data.
30. A text data processing method, It is characterized in that include: Obtain target text data; Obtaining reference text data corresponding to the target scene information, wherein the reference text data is text data from one or more pronunciation subjects pre-recorded for the target scene, and the target scene information is scene information of the target scene; Obtaining text feature information related to a text usage scenario according to the target text data and the reference text data; The text feature information is input into a text analysis model to obtain an analysis result output by the text analysis model to indicate whether the target text data matches the target scene information; the text analysis model is used to determine whether the different text data match the same scene information based on the text feature information of the different text data, wherein the text feature information is related to the text usage scene, and the text feature information is obtained by performing text feature extraction on the combined text data obtained by combining the target text data and the reference text data.
31. A training method for a text analysis model. It is characterized in that include: Obtaining original text data and first scene information corresponding to the original text data; Obtaining reference text data corresponding to the second scene information, wherein the reference text data is text data from one or more pronunciation subjects pre-recorded for the target scene, and the first scene information is scene information of the target scene; Obtaining text feature information related to a text usage scenario based on the original text data and the reference text data; According to whether the first scene information and the second scene information are the same scene information, the text feature information is annotated to obtain model training data, wherein the text feature information is related to the text usage scenario, and the text feature information is obtained by performing text feature extraction on combined text data obtained by combining the original text data and the reference text data; A text analysis model for determining whether different text data corresponds to the same scene information is trained based on the model training data.
