Voice sample generation method and device

Through multi-dimensional frame loss detection and screening, the problem of frame loss due to audio data in speech synthesis model training is solved, the training effect and detection efficiency of the model are improved, and the quality of speech synthesis is improved.

CN118675494APending Publication Date: 2024-09-20MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310247068.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

During the training process of the speech synthesis model, the training effect is poor due to the frame dropping phenomenon of audio data, and the existing technology is difficult to effectively detect and filter the frame dropping data, which affects the performance of the model.

Method used

Through multi-dimensional frame loss detection, the initial audio data set is screened based on parameters such as sound intensity, voice activity, pitch period and signal energy, and audio samples without frame loss are filtered out to generate a speech sample data set for training, which simplifies the process of losing frames. Frame detection process.

Benefits of technology

It improves the training effect and frame loss detection efficiency of the speech synthesis model, ensures the quality of audio data, and thereby improves the naturalness and fluency of speech synthesis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675494A
    Figure CN118675494A
Patent Text Reader

Abstract

The embodiment of the invention provides a voice sample generation method and device, and the method comprises the steps: carrying out the multi-dimensional frame loss detection of an initial audio data set based on a plurality of audio frame loss detection dimensions, filtering initial audio samples with frame loss, and screening out a plurality of initial audio samples without frame loss; in this way, the initial audio data set is not directly used as a voice sample data set, the initial audio data set is firstly subjected to multi-dimensional frame loss detection, frame loss audio samples are filtered out, and the remaining non-frame-loss audio sample set is used as the voice sample data set, so that the training effect of the voice synthesis model is improved; and in the audio frame loss detection process, the specified voice signal parameters of the initial audio samples are detected, so that the suspected frame loss audio samples are screened layer by layer from a plurality of audio frame loss detection dimensions, and the initial audio samples which hit n frame loss prediction constraint conditions at the same time are finally filtered out, thereby simplifying the audio frame loss detection steps and improving the detection efficiency. And the audio frame loss detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio data processing, and in particular to a method and device for generating a speech sample. Background Art

[0002] At present, with the development of TTS (Text to Speech) speech synthesis technology and the continuous development of artificial intelligence technology, a large number of speech samples are used to train the speech synthesis model to obtain the trained speech synthesis model. Therefore, the quality of the speech samples used in the training stage of the speech synthesis model will directly affect the training effect of the speech synthesis model.

[0003] However, in reality, voice data may be lost due to loss, attenuation, blocked transmission lines, etc. (i.e., audio frame loss). Therefore, the audio data directly acquired may have frame loss. If the audio data with frame loss is used as a voice sample to train a speech synthesis model, it will inevitably affect the training effect of the speech synthesis model. Therefore, it is necessary to provide a technical solution that can generate high-quality voice samples. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a speech sample generation method and device, which can not only automatically screen out a set of non-frame-lost audio samples as a speech sample data set, thereby improving the training effect of the speech synthesis model; but also simplify the audio frame loss detection step and improve the efficiency of audio frame loss detection.

[0005] In order to implement the above technical solution, the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for generating a speech sample, the method comprising:

[0007] Acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1;

[0008] Based on n audio frame loss detection dimensions, multi-dimensional frame loss detection is performed on the initial audio data set to determine M target normal audio samples from the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N;

[0009] Based on the M target normal audio samples, a speech sample data set is generated; wherein the speech sample data set is used to train a speech synthesis model.

[0010] In a second aspect, an embodiment of the present application provides a speech sample generating device, the device comprising:

[0011] An audio data acquisition module, used to acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1;

[0012] An audio frame loss detection module is used to perform multi-dimensional frame loss detection on the initial audio data set based on n audio frame loss detection dimensions, and determine M target normal audio samples among the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N;

[0013] The speech sample generation module is used to generate a speech sample data set based on the M target normal audio samples; wherein the speech sample data set is used to train a speech synthesis model.

[0014] In a third aspect, an embodiment of the present application provides a speech sample generating device, the device comprising:

[0015] A processor; and a memory arranged to store computer executable instructions, the executable instructions being configured to be executed by the processor, the executable instructions comprising instructions for executing the steps in the method as described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium is used to store computer-executable instructions, and the executable instructions enable the computer to execute the steps in the method described in the first aspect.

[0017] It can be seen that in the embodiment of the present application, after the initial audio data set is acquired, multi-dimensional frame loss detection is first performed on the initial audio data set based on multiple audio frame loss detection dimensions, and the initial audio samples with frame loss (i.e., target frame loss audio samples) are filtered out to screen out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, a speech sample data set for training the speech synthesis model is generated; in this way, the initial audio data set is not directly used as the speech sample data set, but multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set, thereby improving speech synthesis. The training effect of the model; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train a separate audio frame loss detection model. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set. Frame loss audio can be quickly and accurately identified, thereby simplifying the audio frame loss detection steps and improving the efficiency of audio frame loss detection while ensuring the accuracy of audio frame loss detection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 A first flow chart of the method for generating a speech sample provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of the first implementation principle of the method for generating a speech sample provided in an embodiment of the present application;

[0021] Figure 3 A second flow chart of the method for generating a speech sample provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of a second implementation principle of the method for generating a speech sample provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of a third implementation principle of the method for generating a speech sample provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of the module composition of the speech sample generation device provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the structure of a speech sample generating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solutions in one or more of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only one or more partial embodiments of the present application, rather than all embodiments. Based on one or more embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that, in the absence of conflict, one or more embodiments and features in the embodiments of the present application may be combined with each other. The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] One or more embodiments of the present application provide a method and device for generating a speech sample. Considering the process of audio frame loss detection, a frame loss detection model can be pre-trained, and the trained frame loss detection model can be used to perform frame loss detection on the initial audio sample, that is, each initial audio sample is input into the trained frame loss detection model to obtain the frame loss detection result of the initial audio sample (that is, the detection result that characterizes whether the initial audio sample has frame loss). This not only requires a large number of training samples of the frame loss detection model, but also requires continuous maintenance of the frame loss detection model in the future. Therefore, the parameter accuracy of the frame loss detection model is bound to be affected by the training samples. The quality of the audio is affected, which introduces a new factor affecting the accuracy of frame loss detection. In addition, since frame loss usually refers to incomplete audio data caused by the partial loss of meaningful audio signals, it often does not affect the semantics (for example, frame loss can be the loss of certain phonemes in the word speech signal, and frame loss does not lead to the loss of words), but the audio signal with frame loss will make the listener feel that the audio is suddenly disconnected, or there is a popping noise, affecting the user's hearing effect. Among them, the duration of frame loss is usually relatively short (for example, a dozen milliseconds, usually not more than 100 milliseconds), which is bound to require a relatively high parameter accuracy of the frame loss detection model. Based on the above problems, after obtaining the initial audio data set, the technical solution first performs multi-dimensional frame loss detection on the initial audio data set based on multiple audio frame loss detection dimensions, filters out the initial audio samples with frame loss (i.e., target frame loss audio samples), and screens out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, generates a speech sample data set for training the speech synthesis model; in this way, the initial audio data set is not directly used as the speech sample data set, but multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set, thereby improving the speech synthesis model. type of training effect; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train an audio frame loss detection model separately. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified. Therefore, while ensuring the accuracy of the audio frame loss detection, the audio frame loss detection steps are simplified and the audio frame loss detection efficiency is improved.

[0029] in, Figure 1 A first flow chart of a method for generating a speech sample provided in one or more embodiments of the present application, Figure 1The method can be executed by an electronic device provided with a speech sample generating device, and the electronic device can be a terminal device or a designated server, such as Figure 1 As shown, the method comprises at least the following steps:

[0030] S102, obtaining an initial audio data set; wherein the initial audio data set includes N initial audio samples;

[0031] Specifically, the above N is an integer greater than 1, and the initial audio sample can be audio data of a call recording, for example, a telephone recording of an agent pushing a target product to a customer, or a telephone recording of an agent answering a customer's question; the initial audio sample can also be audio data of a conference recording; compared with audio data recorded in a professional recording venue, both audio data of a call recording and audio data of a conference recording are audio data recorded in a non-professional voice recording environment, and therefore, there may be frame loss problems in the audio data due to external factors such as the noisy environment in which the speaker is located, the communication channel transmission, and the instability of the recording equipment. Therefore, instead of directly using the initial audio data set as a training sample set for the speech synthesis model, a multi-dimensional frame loss detection is first performed on the initial audio data set to filter out the frame loss audio samples, and the remaining set of audio samples without frame loss is used as the training sample set for the speech synthesis model.

[0032] In addition, before performing multi-dimensional frame loss detection on the initial audio data set, the initial audio samples can also be processed for human voice enhancement to suppress non-speech information and improve the representation ability of speech features; then, the initial audio data set after the human voice enhancement processing can be subjected to multi-dimensional frame loss detection to filter out the frame loss audio samples, and the remaining set of non-frame loss audio samples can be used as the training sample set of the speech synthesis model.

[0033] S104, performing multi-dimensional frame loss detection on the initial audio data set based on n audio frame loss detection dimensions, and determining M target normal audio samples from the N initial audio samples; wherein each audio frame loss detection dimension corresponds to any one of the speech signal parameters, the speech signal parameters including sound intensity, speech activity, pitch period, and signal energy, and the target normal audio samples are initial audio samples without frame loss;

[0034] Specifically, the above n and M are both integers greater than 1 and M is less than or equal to N. The n audio frame loss detection dimensions may include at least two of the sound intensity detection dimension, the voice activity detection dimension, the fundamental pitch period detection dimension, and the signal energy detection dimension; if n=3, the n audio frame loss detection dimensions may include any three of the sound intensity detection dimension, the voice activity detection dimension, the fundamental pitch period detection dimension, and the signal energy detection dimension; if n=4, the n audio frame loss detection dimensions may include the sound intensity detection dimension, the voice activity detection dimension, the fundamental pitch period detection dimension, and the signal energy detection dimension.

[0035] In some example embodiments, audio frame loss detection of n dimensions may be performed on each initial audio sample, and whether the initial audio sample is a frame loss audio sample is determined based on the audio frame loss detection result; specifically, for each initial audio sample, multi-dimensional frame loss detection is performed on the initial audio sample based on n audio frame loss detection dimensions to obtain an audio frame loss detection result of the initial audio sample; the audio frame loss detection result includes sub-detection results corresponding to the n audio frame loss detection dimensions.

[0036] In other example embodiments, normal audio samples (i.e., initial audio samples that do not hit the frame loss prediction constraints corresponding to the currently selected audio frame loss detection dimension) may be filtered out based on the currently selected audio frame loss detection dimension in the order of detection priority of the n audio frame loss detection dimensions, and suspected frame loss audio samples (i.e., initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to the m selected audio frame loss detection dimensions) may be filtered out; then, the remaining suspected frame loss audio samples may be used as detection objects for the next selected audio frame loss detection dimension, i.e., a portion of normal audio samples may be filtered out one by one in a funnel manner based on the n audio frame loss detection dimensions, and the suspected frame loss audio samples filtered out after passing through the n audio frame loss detection dimensions may be determined as target frame loss audio samples (i.e., initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to the n audio frame loss detection dimensions), so that audio frame loss detection of m dimensions is performed on each initial audio sample, where m is an integer greater than 0 and less than or equal to n.

[0037] Among them, each audio frame loss detection dimension corresponds to a frame loss prediction constraint condition. Starting from the frame loss characteristics of audio data, considering that the sound intensity of the speech signal is determined by the size of the signal vibration amplitude, the frame loss position is usually manifested as the signal vibration amplitude disappearing or becoming extremely low (that is, the sound intensity changes suddenly). However, the position of the sound intensity mutation point may also be a non-frame loss position. For example, the position of the sound intensity mutation point appears between syllables. Therefore, the detection priority of the sound intensity detection dimension can be set to the highest, and suspected frame loss audio samples are preliminarily screened out, and then other audio detection dimensions are used to further identify whether the suspected frame loss audio samples are real frame loss audio.

[0038] Specifically, if the audio frame loss detection dimension is a sound intensity detection dimension, the frame loss prediction constraint corresponding to the sound intensity detection dimension may include a sound intensity mutation point (i.e., if the initial audio sample includes at least one sound intensity mutation point, it is determined that the initial audio sample hits the frame loss prediction constraint corresponding to the sound intensity detection dimension, and the initial audio sample is used as a suspected frame loss audio sample to enter the detection link of the next audio detection dimension);

[0039] If the audio frame loss detection dimension is the voice activity detection dimension, the frame loss prediction constraint corresponding to the voice activity detection dimension may be a suspicious audio segment containing a sound intensity mutation segment in a non-human voice segment (i.e., if the initial audio sample contains at least one sound intensity mutation segment and the sound intensity mutation segment is in a non-human voice segment, it is determined that the initial audio sample hits the frame loss prediction constraint corresponding to the voice activity detection dimension, and the initial audio sample is used as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension);

[0040] If the audio frame loss detection dimension is the pitch period detection dimension, the frame loss prediction constraint corresponding to the pitch period detection dimension may be a suspicious audio segment containing a sound intensity mutation segment located in a pitch period discontinuous segment (i.e., if the initial audio sample contains at least one sound intensity mutation segment and the sound intensity mutation segment is located in a pitch period discontinuous segment, it is determined that the initial audio sample hits the frame loss prediction constraint corresponding to the pitch period detection dimension, and the initial audio sample is used as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension);

[0041] If the audio frame loss detection dimension is the signal energy detection dimension, the frame loss prediction constraint corresponding to the signal energy detection dimension may be a suspicious audio segment containing a sound intensity mutation segment located in a low signal energy segment (i.e., if the initial audio sample contains at least one sound intensity mutation segment and the sound intensity mutation segment is located in a low signal energy segment, it is determined that the initial audio sample hits the frame loss prediction constraint corresponding to the signal energy detection dimension, and the initial audio sample is used as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension);

[0042] Combined with the frame loss prediction constraints corresponding to the above n audio frame loss detection dimensions, initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to the n audio frame loss detection dimensions are screened out, and then M target normal audio samples among the N initial audio samples are determined.

[0043] It should be noted that the specific implementation process of performing multi-dimensional frame loss detection on audio samples using a funnel method based on n audio frame loss detection dimensions can be found in the following related content.

[0044] S106, generating a speech sample data set based on the M target normal audio samples; wherein the speech sample data set is used to train a speech synthesis model.

[0045] Specifically, after M target normal audio samples are screened out from the initial audio data set, the M target normal audio samples can be directly determined as the speech sample data set, or the M target normal audio samples can be pre-processed to obtain more normal audio samples, thereby expanding the speech sample data set.

[0046] Further, after obtaining a speech sample data set including a plurality of non-frame-lost audio samples, the speech synthesis model is iteratively trained. Specifically, in the above S106, after generating the speech sample data set based on the above M target normal audio samples, the following is further included:

[0047] Based on the above speech sample data set, the parameters of the speech synthesis model to be trained are iteratively updated to obtain a trained speech synthesis model.

[0048] Specifically, since the speech sample data set is screened out through audio frame loss detection, the audio samples in the speech sample data set are all audio samples without frame loss. Therefore, performing speech synthesis processing based on the speech synthesis model trained with such sample sets can improve the naturalness and fluency of speech synthesis.

[0049] Among them, the iterative update process of the parameters of the speech synthesis model can refer to the training process of the existing speech synthesis model, which will not be repeated here.

[0050] In the embodiment of the present application, in the process of acquiring the training sample set for the speech synthesis model, the initial audio data set is not directly used as the training sample set, but the initial audio data set is first subjected to multi-dimensional frame loss detection, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the training sample set, thereby improving the training effect of the speech synthesis model; and in the audio frame loss detection process, the specified speech signal parameters of the initial audio samples are detected to screen the suspected frame loss audio samples layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out, so that there is no need to train an audio frame loss detection model separately, and only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified, thereby simplifying the audio frame loss detection step and improving the audio frame loss detection efficiency while ensuring the accuracy of the audio frame loss detection.

[0051] In a specific embodiment, n audio frame loss detection dimensions may include a sound intensity detection dimension, a voice activity detection dimension, a pitch period detection dimension, and a signal energy detection dimension (ie, the value of n is equal to 4) as an example. Figure 2 As shown in FIG. 1 , a specific implementation process of a speech sample generation method is given, which mainly includes:

[0052] (1) obtaining an initial audio data set; wherein the initial audio data set includes N initial audio samples; for example, initial audio sample 1 to initial audio sample N;

[0053] (2) Based on n audio frame loss detection dimensions, perform multi-dimensional frame loss detection on the above initial audio data set to determine M target normal audio samples from the above N initial audio samples; for example, target normal audio sample 1 to target normal audio sample M, that is, filter out (NM) target frame loss audio samples from the above N initial audio samples; wherein the n audio frame loss detection dimensions may include a sound intensity detection dimension, a voice activity detection dimension, a pitch period detection dimension, and a signal energy detection dimension;

[0054] Specifically, the target normal audio sample is an initial audio sample without frame loss (that is, an initial audio sample that does not hit the frame loss prediction constraint condition corresponding to at least one audio frame loss detection dimension), and the target frame loss audio sample is an initial audio sample with frame loss (that is, an initial audio sample that simultaneously hits the frame loss prediction constraint conditions corresponding to n audio frame loss detection dimensions);

[0055] (3) Based on the above M target normal audio samples, generate a speech sample dataset;

[0056] (4) Based on the above-mentioned speech sample data set, the parameters of the speech synthesis model to be trained are iteratively updated to obtain a trained speech synthesis model.

[0057] Furthermore, in order to improve the efficiency of frame loss detection, a funnel-type multi-dimensional frame loss detection can be performed on the audio samples based on n audio frame loss detection dimensions. Specifically, Figure 3 As shown, the above S104, based on n audio frame loss detection dimensions, performs multi-dimensional frame loss detection on the above initial audio data set to determine M target normal audio samples from the above N initial audio samples, specifically includes:

[0058] S1042, determining the detection priority order of n audio frame loss detection dimensions; wherein, taking the n audio frame loss detection dimensions including sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension as an example, the above detection priority order includes the priority order of the four detection dimensions of sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension.

[0059] Specifically, in some example embodiments, the detection priority order of the n audio frame loss detection dimensions may be preset. For example, the detection priority order of the n audio frame loss detection dimensions is from high to low: sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension. For another example, the detection priority order of the n audio frame loss detection dimensions is from high to low: sound intensity detection dimension, pitch period detection dimension, voice activity detection dimension, and signal energy detection dimension.

[0060] In some other example embodiments, the detection priority order of the n audio frame loss detection dimensions may also be determined based on the specific attribute information of the initial audio data set. Therefore, for different initial audio data sets, the detection priority order of the n audio frame loss detection dimensions used may be different; wherein the above-mentioned specific attribute information may include audio recording scene information. In combination with the audio recording scene information, the priority of the audio frame loss detection dimension that can screen out more normal audio samples is set to be higher, which can further improve the efficiency of frame loss detection; specifically, the correspondence between the audio recording scene information and the detection priority order of the n audio frame loss detection dimensions is pre-stored; then, based on The audio recording scene information of the initial audio data set determines the detection priority order of n audio frame loss detection dimensions; for example, if the audio recording scene information of the initial audio data set is a telephone recording scene, the detection priority order of the n audio frame loss detection dimensions used may be: sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, signal energy detection dimension; for another example, if the audio recording scene information of the initial audio data set is a live recording scene, the detection priority order of the n audio frame loss detection dimensions used may be: sound intensity detection dimension, voice activity detection dimension, signal energy detection dimension, pitch period detection dimension.

[0061] S1044, based on the detection priority order, performing multi-dimensional frame loss detection on the initial audio data set to obtain a frame loss audio data set; wherein the frame loss audio data set includes P target frame loss audio samples, each target frame loss audio sample includes an audio segment that simultaneously satisfies n frame loss prediction constraints, and the frame loss prediction constraints correspond one-to-one to the audio frame loss detection dimensions;

[0062] Specifically, P is an integer greater than or equal to 0 and P is less than N, and the sum of P and M is equal to N. According to the detection priority of the n audio frame loss detection dimensions from high to low, one audio frame loss detection dimension is selected in turn as the target detection dimension; based on the currently selected target detection dimension, the audio sample set to be detected (that is, the initial audio data set or the suspected frame loss audio sample set screened out by the previous target detection dimension) is subjected to frame loss detection until the currently selected target detection dimension is the audio frame loss detection dimension with the lowest priority, thereby obtaining a frame loss audio data set;

[0063] Specifically, if the target detection dimension is the audio frame loss detection dimension with the highest priority, frame loss detection is performed on the initial audio data set based on the currently selected target detection dimension to obtain a set of suspected frame loss audio samples; wherein each suspected frame loss audio sample in the set of suspected frame loss audio samples hits the frame loss prediction constraint condition corresponding to the audio frame loss detection dimension with the highest priority;

[0064] If the target detection dimension is not the audio frame loss detection dimension with the highest priority or the lowest priority, then based on the currently selected target detection dimension, frame loss detection is performed on the suspected frame loss audio sample set screened out by the previous target detection dimension to obtain a suspected frame loss audio sample set; wherein each suspected frame loss audio sample in the suspected frame loss audio sample set hits the frame loss prediction constraints corresponding to all selected target detection dimensions (i.e., audio frame loss detection dimensions with a priority higher than or equal to the priority of the currently selected target detection dimension);

[0065] If the target detection dimension is the audio frame loss detection dimension with the lowest priority, frame loss detection is performed on the set of suspected frame loss audio samples screened out by the previous target detection dimension based on the currently selected target detection dimension to obtain a set of suspected frame loss audio samples; wherein each suspected frame loss audio sample in the set of suspected frame loss audio samples hits the frame loss prediction constraints corresponding to the n audio frame loss detection dimensions.

[0066] S1046: Determine the initial audio samples other than the P target frame-lost audio samples as the M target normal audio samples among the N initial audio samples.

[0067] Specifically, the P target frame-loss audio samples include frame-loss audio samples screened out based on the audio frame-loss detection dimension with the lowest priority, and the frame-loss audio samples simultaneously hit the frame-loss prediction constraints corresponding to n audio frame-loss detection dimensions, that is, the frame-loss audio samples include audio clips that simultaneously satisfy the frame-loss prediction constraints corresponding to n audio frame-loss detection dimensions; that is, in the process of layer-by-layer screening of frame-loss audio samples, based on each audio frame-loss detection dimension, the set of audio samples to be detected is divided into a set of suspected frame-loss audio samples and a subset of normal audio samples, the set of suspected frame-loss audio samples is used as the next set of audio samples to be detected, and enters the detection link of the next audio detection dimension, and the subset of normal audio samples is added to the set of normal audio samples;

[0068] The above-mentioned M target normal audio samples include a subset of normal audio samples screened out based on each audio frame loss detection dimension; wherein, the subset of normal audio samples screened out based on the audio frame loss detection dimension with the highest priority includes: an initial audio sample that misses the frame loss prediction constraint corresponding to the audio frame loss detection dimension with the highest priority; the subset of normal audio samples screened out based on the audio frame loss detection dimension with the lowest priority includes: an initial audio sample that hits the frame loss prediction constraint corresponding to an audio frame loss detection dimension with a non-lowest priority and misses the frame loss prediction constraint corresponding to the lowest priority, that is, the initial audio sample includes an audio segment that simultaneously satisfies the frame loss prediction constraints corresponding to the first (n-1) audio frame loss detection dimensions and the audio segment does not satisfy the frame loss prediction constraint corresponding to the nth audio frame loss detection dimension.

[0069] Specifically, for the process of screening the initial audio data set layer by layer based on n audio frame loss detection dimensions, screening out normal audio sample subsets corresponding to each audio frame loss detection dimension to filter out the frame loss audio data set, the above S1044, based on the above detection priority order, performs multi-dimensional frame loss detection on the above initial audio data set to obtain the frame loss audio data set, specifically including:

[0070] Step 1: Based on the detection priority order, a target detection dimension is selected from the n audio frame loss detection dimensions, and a set of audio samples to be detected corresponding to the target detection dimension is determined; wherein the target detection dimension is an audio frame loss detection dimension that has not been selected and has the highest priority, and the first determined set of audio samples to be detected is the initial audio data set;

[0071] In the specific implementation, still taking the n audio frame loss detection dimensions which may include sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension, and the detection priorities of the n audio frame loss detection dimensions are in the order of high to low: sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension as an example, the first selected target detection dimension is the sound intensity detection dimension with the highest priority, and the corresponding audio sample set to be detected is the initial audio data set; the second selected target detection dimension is the voice activity detection dimension with the second highest priority, and the corresponding audio sample set to be detected is the suspected frame loss audio sample set screened out based on the frame loss prediction constraint condition corresponding to the sound intensity detection dimension; the third selected target detection dimension is the pitch period detection dimension with the third highest priority, and the corresponding audio sample set to be detected is the suspected frame loss audio sample set screened out based on the frame loss prediction constraint condition corresponding to the voice activity detection dimension; the last selected target detection dimension is the signal energy detection dimension with the lowest priority, and the corresponding audio sample set to be detected is the suspected frame loss audio sample set screened out based on the frame loss prediction constraint condition corresponding to the pitch period detection dimension.

[0072] Step 2: Based on the target detection dimension selected this time, frame loss detection is performed on multiple initial audio samples in the above-mentioned audio sample set to be detected to obtain a suspected frame loss audio sample set; wherein each suspected frame loss audio sample in the suspected frame loss audio sample set includes an audio segment that simultaneously satisfies m frame loss prediction constraints, where m is equal to the number of target detection dimensions that have been selected and m is less than or equal to n, and the audio sample set to be detected corresponding to the target detection dimension selected next time includes the above-mentioned suspected frame loss audio sample set;

[0073] Specifically, if the target detection dimension selected this time is the sound intensity detection dimension with the highest priority, the set of suspected frame loss audio samples screened out based on the sound intensity detection dimension includes the initial audio samples that hit the frame loss prediction constraint condition corresponding to the sound intensity detection dimension, that is, each suspected frame loss audio sample in the set of suspected frame loss audio samples includes an audio segment that satisfies the frame loss prediction constraint condition corresponding to the sound intensity detection dimension; that is, a set of suspected frame loss audio samples that hit the frame loss prediction constraint condition corresponding to the sound intensity detection dimension is screened out from the initial audio data set;

[0074] If the target detection dimension selected this time is the voice activity detection dimension with the second highest priority, then the set of suspected frame loss audio samples screened out based on the voice activity detection dimension includes the initial audio samples that hit the frame loss prediction constraints corresponding to the sound intensity detection dimension and the voice activity detection dimension, that is, each suspected frame loss audio sample in the set of suspected frame loss audio samples includes an audio segment that simultaneously satisfies the frame loss prediction constraints corresponding to the sound intensity detection dimension and the voice activity detection dimension, respectively; that is, from the set of suspected frame loss audio samples that hit the frame loss prediction constraints corresponding to the sound intensity detection dimension, a set of suspected frame loss audio samples that hit the frame loss prediction constraints corresponding to the voice activity detection dimension is screened out;

[0075] If the target detection dimension selected this time is the pitch period detection dimension with the third priority, the set of suspected frame loss audio samples screened out based on the pitch period detection dimension includes the initial audio samples that hit the frame loss prediction constraints corresponding to the sound intensity detection dimension, the voice activity detection dimension, and the pitch period detection dimension, that is, each suspected frame loss audio sample in the set of suspected frame loss audio samples includes an audio segment that simultaneously satisfies the frame loss prediction constraints corresponding to the sound intensity detection dimension, the voice activity detection dimension, and the pitch period detection dimension, respectively; that is, from the set of suspected frame loss audio samples that hit the frame loss prediction constraints corresponding to the voice activity detection dimension, a set of suspected frame loss audio samples that hit the frame loss prediction constraints corresponding to the pitch period detection dimension is screened out;

[0076] If the target detection dimension selected this time is the signal energy detection dimension with the lowest priority, then the set of suspected frame-loss audio samples screened out based on the signal energy detection dimension includes the initial audio samples that hit the frame-loss prediction constraints corresponding to the sound intensity detection dimension, the voice activity detection dimension, the pitch period detection dimension, and the signal energy detection dimension, respectively. That is, each suspected frame-loss audio sample in the set of suspected frame-loss audio samples includes an audio segment that simultaneously satisfies the frame-loss prediction constraints corresponding to the sound intensity detection dimension, the voice activity detection dimension, the pitch period detection dimension, and the signal energy detection dimension, respectively; that is, from the set of suspected frame-loss audio samples that hit the frame-loss prediction constraints corresponding to the pitch period detection dimension, a set of suspected frame-loss audio samples that hit the frame-loss prediction constraints corresponding to the signal energy detection dimension is screened out.

[0077] Step 3: If the target detection dimension selected this time is not the audio frame loss detection dimension with the lowest priority and the above-mentioned suspected frame loss audio sample set is not empty, continue to select the next target detection dimension;

[0078] Step 4: If the target detection dimension selected this time is the audio frame loss detection dimension with the lowest priority, or the above-mentioned suspected frame loss audio sample set is empty, the above-mentioned suspected frame loss audio sample set is determined as the frame loss audio data set.

[0079] Specifically, if the target detection dimension selected this time is not the audio frame loss detection dimension with the lowest priority and the set of suspected frame loss audio samples screened out based on the target detection dimension selected this time is not empty, it is necessary to continue to perform frame loss detection on the suspected frame loss audio sample set based on the next target detection dimension, that is, take the suspected frame loss audio sample set as the next audio sample set to be detected, and enter the detection link of the next audio detection dimension; if the set of suspected frame loss audio samples screened out based on a certain target detection dimension is empty, it means that the initial audio data set does not contain frame loss audio samples, that is, the initial audio data set is all normal audio samples, and it is determined that the frame loss detection is completed; if the target detection dimension selected this time is the audio frame loss detection dimension with the lowest priority, it means that each suspected frame loss audio sample in the suspected frame loss audio sample set includes an audio segment that simultaneously satisfies n frame loss prediction constraints (that is, the target frame loss audio sample), and it is determined that the frame loss detection is completed.

[0080] In a specific embodiment, Figure 4 As shown, taking n audio frame loss detection dimensions as an example, the n audio frame loss detection dimensions may include a sound intensity detection dimension, a voice activity detection dimension, a pitch period detection dimension, and a signal energy detection dimension, and the detection priorities of the n audio frame loss detection dimensions are in the following order from high to low: sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension, and the sound intensity detection dimension corresponds to frame loss prediction constraint condition 1, the voice activity detection dimension corresponds to frame loss prediction constraint condition 2, the pitch period detection dimension corresponds to frame loss prediction constraint condition 3, and the signal energy detection dimension corresponds to frame loss prediction constraint condition 4; in the above Figure 2 Based on this, another specific implementation process of speech sample generation method is given, which mainly includes:

[0081] (1) obtaining an initial audio data set; wherein the initial audio data set includes N initial audio samples; for example, initial audio sample 1 to initial audio sample N;

[0082] (2) Based on the detection priority order of the n audio frame loss detection dimensions, a target detection dimension is selected from the n audio frame loss detection dimensions. If the target detection dimension selected this time is the sound intensity detection dimension, the corresponding audio sample set to be detected is the initial audio data set;

[0083] Based on the sound intensity detection dimension, frame loss detection is performed on multiple initial audio samples in the initial audio data set, and the initial audio data set is divided into a normal audio sample subset 1 and a suspected frame loss audio sample set 1; wherein each normal audio sample in the normal audio sample subset 1 does not contain an audio segment that meets the frame loss prediction constraint condition 1, and each suspected frame loss audio sample in the suspected frame loss audio sample set 1 includes an audio segment that meets the frame loss prediction constraint condition 1;

[0084] (3) Based on the detection priority order of the n audio frame loss detection dimensions, a target detection dimension is selected from the n audio frame loss detection dimensions. If the target detection dimension selected this time is the voice activity detection dimension, the corresponding audio sample set to be detected is the suspected frame loss audio sample set 1;

[0085] Based on the voice activity detection dimension, frame loss detection is performed on multiple initial audio samples in the suspected frame loss audio sample set 1, and the suspected frame loss audio sample set 1 is divided into a normal audio sample subset 2 and a suspected frame loss audio sample set 2; wherein each normal audio sample in the normal audio sample subset 2 includes an audio segment that satisfies the frame loss prediction constraint condition 1 but does not satisfy the frame loss prediction constraint condition 2, and each suspected frame loss audio sample in the suspected frame loss audio sample set 2 includes an audio segment that satisfies the frame loss prediction constraints 1 and 2;

[0086] (4) Based on the detection priority order of the n audio frame loss detection dimensions, a target detection dimension is selected from the n audio frame loss detection dimensions. If the target detection dimension selected this time is the pitch period detection dimension, the corresponding audio sample set to be detected is the suspected frame loss audio sample set 2;

[0087] Based on the pitch period detection dimension, frame loss detection is performed on multiple initial audio samples in the suspected frame loss audio sample set 2, and the suspected frame loss audio sample set 2 is divided into a normal audio sample subset 3 and a suspected frame loss audio sample set 3; wherein each normal audio sample in the normal audio sample subset 3 includes an audio segment that satisfies frame loss prediction constraints 1 and 2, but the audio segment does not satisfy the frame loss prediction constraint 3, and each suspected frame loss audio sample in the suspected frame loss audio sample set 3 includes an audio segment that satisfies frame loss prediction constraints 1 to 3;

[0088] (5) Based on the detection priority order of the n audio frame loss detection dimensions, a target detection dimension is selected from the n audio frame loss detection dimensions. If the target detection dimension selected this time is the signal energy detection dimension, the corresponding audio sample set to be detected is the suspected frame loss audio sample set 3;

[0089] Based on the signal energy detection dimension, frame loss detection is performed on multiple initial audio samples in the suspected frame loss audio sample set 3, and the suspected frame loss audio sample set 3 is divided into a normal audio sample subset 4 and a suspected frame loss audio sample set 4; wherein each normal audio sample in the normal audio sample subset 4 includes an audio segment that satisfies frame loss prediction constraints 1, 2, and 3, but the audio segment does not satisfy the frame loss prediction constraint 4, and each suspected frame loss audio sample in the suspected frame loss audio sample set 4 includes an audio segment that satisfies frame loss prediction constraints 1 to 4;

[0090] (6) generating a speech sample data set based on the normal audio sample subset 1 to the normal audio sample subset 4; wherein the set of the normal audio sample subset 1 to the normal audio sample subset 4 includes M target normal audio samples;

[0091] (7) Based on the above-mentioned speech sample data set, the parameters of the speech synthesis model to be trained are iteratively updated to obtain a trained speech synthesis model.

[0092] Specifically, in the case where the target detection dimension is the sound intensity detection dimension, the above step 2, based on the target detection dimension selected this time, performs frame loss detection on multiple initial audio samples in the above audio sample set to be detected to obtain a suspected frame loss audio sample set, specifically including:

[0093] Step A1: if the target detection dimension is the sound intensity detection dimension and the sound intensity detection dimension has the highest priority, then for each initial audio sample in the initial audio data set, determine the sound intensity mutation point detection result of the initial audio sample;

[0094] Step A2: determining a set of suspected frame-loss audio samples based on the sound intensity mutation point detection results of each initial audio sample; wherein each suspected frame-loss audio sample in the set of suspected frame-loss audio samples contains at least one sound intensity mutation point.

[0095] Specifically, each initial audio sample includes multiple audio frames, each audio frame corresponds to multiple sampling points, and the number of sampling points contained in each audio frame is related to the sampling rate and the duration of each frame; in order to improve the accuracy of the sound intensity of each sampling point calculated, the audio frame is used as the calculation unit, and a preset sound intensity calculation algorithm is used to calculate the sound intensity of each audio frame, and the sound intensity of the audio frame is determined as the sound intensity of the sampling points contained therein; then the sound intensity derivative of each sampling point is calculated, and the sampling point whose absolute value of the sound intensity derivative is greater than a preset threshold is determined as a sound intensity mutation point.

[0096] That is to say, in the process of performing frame loss detection on the initial audio sample based on the sound intensity detection dimension, the audio frame is first taken as the minimum analysis object to calculate the sound intensity of each audio frame, and then the sampling point is taken as the minimum analysis object to calculate the sound intensity derivative of each sampling point, and then the target sampling point belonging to the sound intensity mutation point is determined based on the sound intensity derivative of each sampling point. This can not only ensure the accuracy of the sound intensity of each sampling point, but also locate the minimum frame loss detection granularity to each sampling point; since the duration of frame loss is usually relatively short, if the minimum frame loss detection granularity is located at each sampling point, the accuracy of frame loss detection can be further improved.

[0097] Specifically, for the process of detecting the sound intensity mutation point of the initial audio sample, the above step A1, for each initial audio sample in the initial audio data set, determines the sound intensity mutation point detection result of the initial audio sample, specifically including:

[0098] Step A11, for each initial audio sample in the initial audio data set, determining the sound intensity of each audio frame in the initial audio sample;

[0099] Specifically, an existing sound intensity calculation algorithm may be used to calculate the sound intensity of each audio frame in the initial audio sample. The specific calculation process is detailed in the prior art and will not be described in detail here.

[0100] Step A12, determining the sound intensity of each sampling point in the initial audio sample based on the sound intensity of each audio frame; wherein each audio frame includes a plurality of sampling points, and the sound intensity of the plurality of sampling points belonging to the same audio frame is the same;

[0101] Specifically, for a certain audio frame, the sound intensity of the audio frame is determined as the sound intensity of multiple sampling points contained in the audio frame, so that the sound intensity of each sampling point in the initial audio sample can be determined;

[0102] Step A13, performing a derivative process on the sound intensity of each sampling point in the initial audio sample to obtain a sound intensity derivative sequence of the initial audio sample; wherein the sound intensity derivative sequence includes the derivative of the sound intensity of each sampling point;

[0103] Specifically, the sound intensity derivative is the first-order difference of the sound intensity. In the process of sound intensity calculation, the audio frame is used as the minimum calculation unit, and in the process of sound intensity derivative calculation, the sampling point is used as the minimum calculation unit. The first-order difference of the sound intensity of each sampling point is solved, and then the first-order difference of the sound intensity of each sampling point in the initial audio sample (that is, the sound intensity derivative) is obtained.

[0104] Step A14, based on the above-mentioned sound intensity derivative sequence, determine the sound intensity mutation point detection result of the above-mentioned initial audio sample; wherein the above-mentioned sound intensity mutation point detection result includes a first detection result or a second detection result, the above-mentioned first detection result indicates that the audio sample does not contain a sound intensity mutation point, and the above-mentioned second detection result includes the position information of at least one sound intensity mutation point contained in the audio sample.

[0105] Specifically, if the absolute value of the first-order difference of the sound intensity at a certain sampling point is relatively large, it means that there is a mutation in the sound intensity at the sampling point. Therefore, the sampling point is determined as the sound intensity mutation point. Among them, for the case of frame loss, usually, the frame loss segment corresponds to two sound intensity mutation points (i.e., the first sampling point and the last sampling point of the frame loss segment), one sound intensity mutation point is a positive number (e.g., positive infinity), and the other sound intensity mutation point is a negative number (e.g., negative infinity). Therefore, by analyzing whether there is a sound intensity mutation point in the initial audio sample, it is possible to determine whether the initial audio sample contains suspected frame loss segments, and then preliminarily screen out suspected frame loss audio samples.

[0106] Furthermore, considering that the suspected frame loss segment in the initial audio sample can be initially located through sound intensity detection, then other specified speech signal parameters of the suspected frame loss segment are detected in a targeted manner to further identify whether the suspected frame loss segment is a real frame loss segment; specifically, for the case where the next target detection dimension is the voice activity detection dimension, the above step 2, based on the target detection dimension selected this time, performs frame loss detection on multiple initial audio samples in the above audio sample set to be detected, and obtains a suspected frame loss audio sample set, which specifically includes:

[0107] Step B1: if the target detection dimension is a voice activity detection dimension and the priority of the voice activity detection dimension is lower than the sound intensity detection dimension, then for each initial audio sample in the set of audio samples to be detected, determine a voice activity detection result of the initial audio sample; wherein the voice activity detection result includes location information of non-human voice segments in the audio sample;

[0108] Specifically, an existing voice activity detection method can be used to identify vocal segments and non-voice segments in the initial audio sample. For example, the existing voice activity detection method can be voice activity detection (VAD). The specific detection process is detailed in the prior art and will not be repeated here.

[0109] Step B2, based on the voice activity detection results of each initial audio sample in the above-mentioned audio sample set to be detected and the sound intensity mutation point detection results of each initial audio sample, determine a set of suspected frame-lost audio samples; wherein the sound intensity mutation point detection result is obtained by performing frame loss detection on the initial audio sample based on the above-mentioned sound intensity detection dimension.

[0110] Specifically, first, based on the sound intensity detection dimension, the suspected frame-lost audio samples are preliminarily screened out, and the sound intensity mutation segments in the suspected frame-lost audio samples are located. Then, based on the voice activity detection dimension, it is determined whether the sound intensity mutation segments fall in non-human voice segments or human voice segments. If all the sound intensity mutation segments in the suspected frame-lost audio sample fall in human voice segments, then the suspected frame-lost audio sample is determined to be a normal audio sample; if at least one sound intensity mutation segment in the suspected frame-lost audio sample falls in non-human voice segments, then it is determined that the suspected frame-lost audio sample continues to enter the next frame-lost detection link.

[0111] Specifically, the above step B2, based on the voice activity detection results of each initial audio sample in the above audio sample set to be detected and the sound intensity mutation point detection results of each initial audio sample, determines the suspected frame loss audio sample set, specifically including:

[0112] Step B21, for each initial audio sample in the above-mentioned audio sample set to be detected, based on the voice activity detection result of the initial audio sample and the sound intensity mutation point detection result of the initial audio sample, position matching is performed between the non-human voice segment and the sound intensity mutation segment to obtain a first matching result; wherein the above-mentioned sound intensity mutation segment is an audio segment between the first sound intensity mutation point and the second sound intensity mutation point, the absolute values ​​of the sound intensity derivatives of the first sound intensity mutation point and the second sound intensity mutation point are both greater than a first preset threshold value, the sound intensity derivative of the first sound intensity mutation point is a negative number, and the sound intensity derivative of the second sound intensity mutation point is a positive number;

[0113] Specifically, a certain initial audio sample may include multiple first sound intensity mutation points and multiple second sound intensity mutation points, each sound intensity mutation segment includes a first sound intensity mutation point, a second sound intensity mutation point, and multiple continuous sampling points located between the first sound intensity mutation point and the second sound intensity mutation point, the first sound intensity mutation point and the second sound intensity mutation point included in each sound intensity mutation segment are two adjacent sound intensity mutation points, and the audio duration of each sound intensity mutation segment is less than a preset duration threshold.

[0114] Step B22, based on the first matching results of each initial audio sample in the above-mentioned audio sample set to be detected, determine a set of suspected frame-lost audio samples; wherein each suspected frame-lost audio sample in the above-mentioned set of suspected frame-lost audio samples contains at least one first target audio segment, and the above-mentioned first target audio segment is a sound intensity mutation segment and a non-human voice segment.

[0115] Specifically, for each sound intensity mutation segment in the initial audio sample, determine whether the sound intensity mutation segment is located in a non-human voice segment; if a sound intensity mutation segment in the initial audio sample is located in a non-human voice segment, the initial audio sample is taken as a suspected frame-lost audio sample and enters the detection link of the next audio detection dimension.

[0116] That is to say, if the target detection dimension selected this time is not the audio frame loss detection dimension with the highest priority (such as the audio frame loss detection dimension with the priority ranking being the mth), then based on the target detection dimension selected this time, continue to perform frame loss detection on the suspected frame loss fragments in the initial audio sample (that is, the suspected frame loss fragments that simultaneously satisfy the frame loss prediction constraints corresponding to the first (m-1) audio frame loss detection dimensions with the priority ranking being the first); if at least one suspected frame loss fragment in the initial audio sample simultaneously satisfies the frame loss prediction constraints corresponding to the first m audio frame loss detection dimensions, then the initial audio sample is taken as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension.

[0117] Furthermore, considering that the suspected frame loss segment in the initial audio sample can be initially located through sound intensity detection, then other specified speech signal parameters of the suspected frame loss segment are detected in a targeted manner to further identify whether the suspected frame loss segment is a real frame loss segment; specifically, for the case where the next target detection dimension is the pitch period detection dimension, the above step 2, based on the target detection dimension selected this time, performs frame loss detection on multiple initial audio samples in the above audio sample set to be detected, and obtains a suspected frame loss audio sample set, which specifically includes:

[0118] Step C1, if the target detection dimension is the pitch period detection dimension and the priority of the pitch period detection dimension is lower than the sound intensity detection dimension, then for each initial audio sample in the set of audio samples to be detected, determine the pitch period detection result of the initial audio sample; wherein the pitch period detection result includes the position information of the discontinuous segment of the pitch period in the audio sample;

[0119] Specifically, the existing fundamental period detection method can be used to determine the fundamental period of each sampling point in the initial audio sample; then, based on the fundamental period of each sampling point, the continuous segment of the fundamental period (i.e., the audio segment with a fundamental period greater than or equal to a preset threshold) and the discontinuous segment of the fundamental period (i.e., the audio segment with a fundamental period less than a preset threshold) in the initial audio sample are determined. For example, the existing fundamental period detection method can be a harvest method. The specific detection process is detailed in the prior art and will not be repeated here.

[0120] Step C2, based on the pitch period detection results of each initial audio sample in the above-mentioned audio sample set to be detected and the sound intensity mutation point detection results of each initial audio sample, determine a set of suspected frame-lost audio samples; wherein the sound intensity mutation point detection results are obtained by performing frame-lost detection on the initial audio samples based on the above-mentioned sound intensity detection dimension.

[0121] Specifically, firstly, based on the sound intensity detection dimension, the suspected frame loss audio sample is preliminarily screened out, and the sound intensity mutation segment in the suspected frame loss audio sample is located, and then based on the pitch period detection dimension, it is determined whether the sound intensity mutation segment falls within the continuous segment of the pitch period or the discontinuous segment of the pitch period. If all the sound intensity mutation segments in the suspected frame loss audio sample fall within the continuous segment of the pitch period, then the suspected frame loss audio sample is determined to be a normal audio sample; if at least one sound intensity mutation segment in the suspected frame loss audio sample falls within the discontinuous segment of the pitch period, then it is determined that the suspected frame loss audio sample continues to enter the next frame loss detection link.

[0122] Specifically, the above step C2, based on the pitch period detection result of each initial audio sample in the above audio sample set to be detected and the sound intensity mutation point detection result of each initial audio sample, determines the suspected frame loss audio sample set, specifically including:

[0123] Step C21, for each initial audio sample in the above-mentioned audio sample set to be detected, based on the pitch period detection result of the initial audio sample and the sound intensity mutation point detection result of the initial audio sample, position matching is performed between the pitch period discontinuity segment and the sound intensity mutation segment to obtain a second matching result; wherein the above-mentioned sound intensity mutation segment is an audio segment between the first sound intensity mutation point and the second sound intensity mutation point, the absolute values ​​of the sound intensity derivatives of the first sound intensity mutation point and the second sound intensity mutation point are both greater than the first preset threshold value, the sound intensity derivative of the first sound intensity mutation point is a negative number, and the sound intensity derivative of the second sound intensity mutation point is a positive number;

[0124] Specifically, a certain initial audio sample may include multiple first sound intensity mutation points and multiple second sound intensity mutation points, each sound intensity mutation segment includes a first sound intensity mutation point, a second sound intensity mutation point, and multiple continuous sampling points located between the first sound intensity mutation point and the second sound intensity mutation point, the first sound intensity mutation point and the second sound intensity mutation point included in each sound intensity mutation segment are two adjacent sound intensity mutation points, and the audio duration of each sound intensity mutation segment is less than a preset duration threshold.

[0125] Step C22, based on the second matching results of each initial audio sample in the above-mentioned audio sample set to be detected, determine a suspected frame-lost audio sample set; wherein each suspected frame-lost audio sample in the above-mentioned suspected frame-lost audio sample set contains at least one second target audio segment, and the above-mentioned second target audio segment is a sound intensity mutation segment and a fundamental frequency period discontinuous segment.

[0126] Specifically, for each sound intensity mutation segment in the initial audio sample, determine whether the sound intensity mutation segment is located in the pitch period discontinuity segment; if the audio segment between a certain sound intensity mutation segment in the initial audio sample is located in the pitch period discontinuity segment, then the initial audio sample is regarded as a suspected frame-lost audio sample and enters the detection link of the next audio detection dimension.

[0127] That is to say, if the target detection dimension selected this time is not the audio frame loss detection dimension with the highest priority (such as the audio frame loss detection dimension with the priority ranking being the mth), then based on the target detection dimension selected this time, continue to perform frame loss detection on the suspected frame loss fragments in the initial audio sample (that is, the suspected frame loss fragments that simultaneously satisfy the frame loss prediction constraints corresponding to the first (m-1) audio frame loss detection dimensions with the priority ranking being the first); if at least one suspected frame loss fragment in the initial audio sample simultaneously satisfies the frame loss prediction constraints corresponding to the first m audio frame loss detection dimensions, then the initial audio sample is taken as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension.

[0128] Furthermore, considering that the suspected frame loss segment in the initial audio sample can be initially located through sound intensity detection, then other specified speech signal parameters of the suspected frame loss segment are detected in a targeted manner to further identify whether the suspected frame loss segment is a real frame loss segment; specifically, for the case where the next target detection dimension is the signal energy detection dimension, the above step 2, based on the target detection dimension selected this time, performs frame loss detection on multiple initial audio samples in the above audio sample set to be detected, and obtains a suspected frame loss audio sample set, which specifically includes:

[0129] Step D1: if the target detection dimension is a signal energy detection dimension and the priority of the signal energy detection dimension is lower than that of the sound intensity detection dimension, then for each initial audio sample in the audio sample set to be detected, based on the sound intensity mutation point detection result of the initial audio sample, signal energy detection is performed on at least one sound intensity mutation segment in the initial audio sample to obtain a signal energy detection result of the initial audio sample;

[0130] Step D2, based on the signal energy detection results of each initial audio sample in the above-mentioned audio sample set to be detected, determine a suspected frame-lost audio sample set; wherein each suspected frame-lost audio sample in the above-mentioned suspected frame-lost audio sample set contains at least one third target audio segment, and the above-mentioned third target audio segment is a sound intensity mutation segment and a low signal energy segment.

[0131] Specifically, first, based on the sound intensity detection dimension, the suspected frame loss audio samples are preliminarily screened out, and the sound intensity mutation segments in the suspected frame loss audio samples are located, and then based on the signal energy detection dimension, it is determined whether the sound intensity mutation segments fall in the low signal energy segment. If all the sound intensity mutation segments in the suspected frame loss audio sample fall in the high signal energy segment, then the suspected frame loss audio sample is determined to be a normal audio sample; if at least one sound intensity mutation segment in the suspected frame loss audio sample falls in the low signal energy segment, then it is determined that the suspected frame loss audio sample continues to enter the next frame loss detection link.

[0132] Specifically, the step D1, based on the sound intensity mutation point detection result of the initial audio sample, performs signal energy detection on at least one sound intensity mutation segment in the initial audio sample to obtain the signal energy detection result of the initial audio sample, specifically includes:

[0133] Step D11, based on the sound intensity mutation point detection result of the above-mentioned initial audio sample, determine at least one sound intensity mutation segment in the above-mentioned initial audio sample; wherein the above-mentioned sound intensity mutation segment is an audio segment between a first sound intensity mutation point and a second sound intensity mutation point, and the absolute values ​​of the sound intensity derivatives of the first sound intensity mutation point and the second sound intensity mutation point are both greater than a first preset threshold value, the sound intensity derivative of the first sound intensity mutation point is a negative number, and the sound intensity derivative of the second sound intensity mutation point is a positive number;

[0134] Specifically, a certain initial audio sample may include multiple first sound intensity mutation points and multiple second sound intensity mutation points, each sound intensity mutation segment includes a first sound intensity mutation point, a second sound intensity mutation point, and multiple continuous sampling points located between the first sound intensity mutation point and the second sound intensity mutation point, the first sound intensity mutation point and the second sound intensity mutation point included in each sound intensity mutation segment are two adjacent sound intensity mutation points, and the audio duration of each sound intensity mutation segment is less than a preset duration threshold.

[0135] Step D12, for each sound intensity mutation segment, calculating the energy parameter value of the sound intensity mutation segment; wherein the energy parameter value includes the energy mean and the energy variance;

[0136] Step D13, based on the energy parameter value of at least one of the above-mentioned sound intensity mutation segments, determine the signal energy detection result of the above-mentioned initial audio sample; wherein the above-mentioned signal energy detection result includes a detection result characterizing whether the sound intensity mutation segment belongs to a low signal energy segment, and the above-mentioned low signal energy segment is an audio segment whose energy mean is less than the second preset threshold and whose energy variance is less than the third preset threshold.

[0137] Specifically, for each sound intensity mutation segment in the initial audio sample, determine whether the sound intensity mutation segment is located in a low signal energy segment; specifically, based on the signal energy of each sampling point in the sound intensity mutation segment, calculate the energy mean and energy variance of the sound intensity mutation segment; if the energy mean is less than the second preset threshold and the energy variance is less than the third preset threshold, determine that the sound intensity mutation segment is a low signal energy segment.

[0138] That is to say, if the target detection dimension selected this time is not the audio frame loss detection dimension with the highest priority (such as the audio frame loss detection dimension with the priority ranking being the mth), then based on the target detection dimension selected this time, continue to perform frame loss detection on the suspected frame loss fragments in the initial audio sample (that is, the suspected frame loss fragments that simultaneously satisfy the frame loss prediction constraints corresponding to the first (m-1) audio frame loss detection dimensions with the priority ranking being the first); if at least one suspected frame loss fragment in the initial audio sample simultaneously satisfies the frame loss prediction constraints corresponding to the first m audio frame loss detection dimensions, then the initial audio sample is taken as a suspected frame loss audio sample and enters the detection link of the next audio detection dimension.

[0139] In a specific embodiment, Figure 5 As shown, the n audio frame loss detection dimensions include sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension; and the detection priorities of the n audio frame loss detection dimensions are in the following order from high to low: sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension; the frame loss prediction constraint 1 of the sound intensity detection dimension is to include a sound intensity mutation point, the frame loss prediction constraint 2 of the voice activity detection dimension is to include a suspicious audio segment containing a sound intensity mutation segment located in a non-human voice segment, the frame loss prediction constraint 3 of the pitch period detection dimension is to include a suspicious audio segment containing a sound intensity mutation segment located in a non-human voice segment and a pitch period discontinuous segment, and the frame loss prediction constraint 4 of the signal energy detection dimension is to include a suspicious audio segment containing a sound intensity mutation segment located in a non-human voice segment, a pitch period discontinuous segment, and a segment with low signal energy; in the above Figure 4 Based on this, another specific implementation process of speech sample generation method is given, which mainly includes:

[0140] (1) obtaining an initial audio data set; wherein the initial audio data set includes N initial audio samples; for example, initial audio sample 1 to initial audio sample N;

[0141] (2) The first target detection dimension selected is the sound intensity detection dimension, and the set of audio samples to be detected corresponding to the sound intensity detection dimension is the initial audio data set;

[0142] For each initial audio sample in the initial audio data set, determine the sound intensity of each audio frame in the initial audio sample; determine the sound intensity derivative sequence of the initial audio sample based on the sound intensity of the audio frame; determine whether the initial audio sample contains the target suspicious audio segment 1 (i.e., the sound intensity mutation segment) based on the sound intensity derivative sequence; if it does, treat the initial audio sample as a suspected frame-lost audio sample;

[0143] The initial audio sample that does not contain the target suspicious audio segment 1 is added to the normal audio sample subset 1, and the initial audio sample that contains the target suspicious audio segment 1 is added to the suspected frame-lost audio sample set 1; considering that the sound intensity mutation point not only appears at the frame-lost position, but also may appear between syllables, the sound intensity mutation segment is not necessarily a frame-lost segment. Therefore, it is necessary to further identify whether the sound intensity mutation segment is a real frame-lost segment through other audio detection dimensions, and then determine whether the initial audio sample is a real frame-lost audio sample; considering that the speech of the frame-lost segment is non-human voice, while the speech of the audio segment between syllables is still human voice, therefore, the speech activity of the sound intensity mutation segment can continue to be detected.

[0144] (3) The second selected target detection dimension is the voice activity detection dimension, and the audio sample set to be detected corresponding to the voice activity detection dimension is the suspected frame loss audio sample set 1;

[0145] For each initial audio sample in the suspected frame-lost audio sample set 1, determine the vocal segment and the non-voice segment in the initial audio sample; based on the position information of the sound intensity mutation segment and the non-voice segment in the initial audio sample, determine whether the initial audio sample contains the target suspicious audio segment 2 (that is, the target suspicious audio segment 1 belongs to the non-voice segment, that is, the suspicious audio segment whose sound intensity mutation segment is located in the non-voice segment); if it is contained, the initial audio sample is regarded as a suspected frame-lost audio sample;

[0146] The initial audio samples that do not contain the target suspicious audio segment 2 are added to the normal audio sample subset 2, and the initial audio samples that contain the target suspicious audio segment 2 are added to the suspected frame-lost audio sample set 2; taking into account that there may be certain errors in voice activity detection, and taking into account that another characteristic of the frame-lost segment is the discontinuity of the fundamental pitch period, therefore, the fundamental pitch period detection can continue to be performed on the suspicious audio segment whose sound intensity mutation segment is located in the non-human voice segment.

[0147] (4) The third selected target detection dimension is the pitch period detection dimension, and the audio sample set to be detected corresponding to the pitch period detection dimension is the suspected frame loss audio sample set 2;

[0148] For each initial audio sample in the suspected frame-lost audio sample set 2, determine the pitch period continuous segment and the pitch period discontinuous segment in the initial audio sample; based on the position information of the target suspicious audio segment 2 and the position information of the pitch period discontinuous segment in the initial audio sample, determine whether the initial audio sample contains the target suspicious audio segment 3 (that is, the target suspicious audio segment 2 belongs to the pitch period discontinuous segment, that is, the suspicious audio segment whose sound intensity mutation segment is located in the non-human voice segment and the pitch period discontinuous segment); if it is contained, the initial audio sample is regarded as a suspected frame-lost audio sample;

[0149] The initial audio samples that do not contain the target suspicious audio segment 3 are added to the normal audio sample subset 3, and the initial audio samples that contain the target suspicious audio segment 3 are added to the suspected frame-lost audio sample set 3; taking into account that there may also be certain errors in the fundamental pitch period detection, and considering that another characteristic of the frame-lost segment is that the signal energy is relatively low, it is possible to continue to perform signal energy detection on the suspicious audio segments whose sound intensity mutation segments are located in non-human voice segments and pitch period discontinuous segments.

[0150] (5) The last selected target detection dimension is the signal energy detection dimension, and the audio sample set to be detected corresponding to the signal energy detection dimension is the suspected frame loss audio sample set 3;

[0151] For each initial audio sample in the suspected frame-lost audio sample set 3, determine the energy mean and energy variance of each target suspicious audio segment 3 in the initial audio sample; based on the energy mean and energy variance, determine whether the initial audio sample contains the target suspicious audio segment 4 (that is, the target suspicious audio segment 3 belongs to a segment with low signal energy, that is, a suspicious audio segment with a sudden sound intensity change located in a non-human voice segment, a segment with discontinuous pitch period, and a segment with low signal energy); if it does, treat the initial audio sample as a suspected frame-lost audio sample;

[0152] Adding the initial audio samples not including the target suspicious audio segment 4 to the normal audio sample subset 4, and adding the initial audio samples including the target suspicious audio segment 4 to the suspected frame-lost audio sample set 4;

[0153] (6) generating a speech sample data set based on the normal audio sample subset 1 to the normal audio sample subset 4; wherein the set of the normal audio sample subset 1 to the normal audio sample subset 4 includes M target normal audio samples;

[0154] (7) Based on the above-mentioned speech sample data set, the parameters of the speech synthesis model to be trained are iteratively updated to obtain a trained speech synthesis model.

[0155] The speech sample generation method in the embodiment of the present application, after obtaining the initial audio data set, first performs multi-dimensional frame loss detection on the initial audio data set based on multiple audio frame loss detection dimensions, filters out the initial audio samples with frame loss (i.e., target frame loss audio samples), and screens out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, generates a speech sample data set for training the speech synthesis model; in this way, the initial audio data set is not directly used as the speech sample data set, but multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set, thereby improving the speech The training effect of the synthetic model; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train an audio frame loss detection model separately. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified. Therefore, while ensuring the accuracy of the audio frame loss detection, the audio frame loss detection steps are simplified and the efficiency of the audio frame loss detection is improved.

[0156] Corresponding to the above Figures 1 to 5 The speech sample generation method described above is based on the same technical concept. The embodiment of the present application also provides a speech sample generation device. Figure 6 A schematic diagram of the module composition of a speech sample generating device provided in an embodiment of the present application, the device is used to perform Figures 1 to 5 The speech sample generation method described in Figure 6 As shown, the device comprises:

[0157] The audio data acquisition module 602 is used to acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1;

[0158] The audio frame loss detection module 604 is used to perform multi-dimensional frame loss detection on the initial audio data set based on n audio frame loss detection dimensions to determine M target normal audio samples among the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N;

[0159] The speech sample generation module 606 is used to generate a speech sample data set based on the M target normal audio samples; wherein the speech sample data set is used to train a speech synthesis model.

[0160] The speech sample generating device in the embodiment of the present application, after acquiring the initial audio data set, first performs multi-dimensional frame loss detection on the initial audio data set based on multiple audio frame loss detection dimensions, filters out the initial audio samples with frame loss (i.e., target frame loss audio samples), and screens out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, generates a speech sample data set for training the speech synthesis model; in this way, instead of directly using the initial audio data set as the speech sample data set, multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set, thereby improving the speech quality. The training effect of the synthetic model; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train an audio frame loss detection model separately. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified. Therefore, while ensuring the accuracy of the audio frame loss detection, the audio frame loss detection steps are simplified and the efficiency of the audio frame loss detection is improved.

[0161] It should be noted that the embodiment of the speech sample generation device in the present application and the embodiment of the speech sample generation method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding speech sample generation method mentioned above, and the repeated parts will not be repeated.

[0162] Furthermore, corresponding to the above Figures 1 to 6 Based on the same technical concept, the present application also provides a speech sample generation device, which is used to execute the above-mentioned speech sample generation method, such as Figure 7 shown.

[0163] The speech sample generation device may have relatively large differences due to different configurations or performances, and may include one or more processors 701 and memory 702, and the memory 702 may store one or more storage applications or data. Among them, the memory 702 may be a temporary storage or a permanent storage. The application stored in the memory 702 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the speech sample generation device. Furthermore, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer executable instructions in the memory 702 on the speech sample generation device. The speech sample generation device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706, etc.

[0164] In a specific embodiment, the speech sample generation device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the speech sample generation device, and the one or more programs configured to be executed by one or more processors include computer executable instructions for performing the following:

[0165] Acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1;

[0166] Based on n audio frame loss detection dimensions, multi-dimensional frame loss detection is performed on the initial audio data set to determine M target normal audio samples from the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N;

[0167] Based on the M target normal audio samples, a speech sample data set is generated; wherein the speech sample data set is used to train a speech synthesis model.

[0168] The speech sample generating device in the embodiment of the present application, after acquiring the initial audio data set, first performs multi-dimensional frame loss detection on the initial audio data set based on multiple audio frame loss detection dimensions, filters out the initial audio samples with frame loss (i.e., target frame loss audio samples), so as to screen out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, generates a speech sample data set for training the speech synthesis model; in this way, instead of directly using the initial audio data set as the speech sample data set, multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set, thereby improving the speech quality. The training effect of the synthetic model; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train an audio frame loss detection model separately. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified. Therefore, while ensuring the accuracy of the audio frame loss detection, the audio frame loss detection steps are simplified and the efficiency of the audio frame loss detection is improved.

[0169] It should be noted that the embodiment of the speech sample generation device in the present application and the embodiment of the speech sample generation method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding speech sample generation method mentioned above, and the repeated parts will not be repeated.

[0170] Furthermore, corresponding to the above Figures 1 to 5 The method shown is based on the same technical concept. The embodiment of the present application also provides a computer-readable storage medium for storing computer-executable instructions. In a specific embodiment, the storage medium can be a USB flash drive, an optical disk, a hard disk, etc. When the computer-executable instructions stored in the storage medium are executed by the processor, the following process can be implemented:

[0171] Acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1;

[0172] Based on n audio frame loss detection dimensions, multi-dimensional frame loss detection is performed on the initial audio data set to determine M target normal audio samples from the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N;

[0173] Based on the M target normal audio samples, a speech sample data set is generated; wherein the speech sample data set is used to train a speech synthesis model.

[0174] When the computer executable instructions stored in the storage medium in the embodiment of the present application are executed by the processor, after obtaining the initial audio data set, the initial audio data set is first subjected to multi-dimensional frame loss detection based on multiple audio frame loss detection dimensions, and the initial audio samples with frame loss (i.e., target frame loss audio samples) are filtered out to screen out multiple initial audio samples without frame loss (i.e., target normal audio samples); then, based on the multiple target normal audio samples, a speech sample data set for training the speech synthesis model is generated; in this way, the initial audio data set is not directly used as the speech sample data set, but multi-dimensional frame loss detection is first performed on the initial audio data set, the frame loss audio samples are filtered out, and the remaining set of audio samples without frame loss is used as the speech sample data set , thereby improving the training effect of the speech synthesis model; and in the audio frame loss detection process, by detecting the specified speech signal parameters of the initial audio sample, the suspected frame loss audio samples are screened layer by layer from multiple audio frame loss detection dimensions, and finally the initial audio samples that simultaneously hit the frame loss prediction constraints corresponding to n audio frame loss detection dimensions are filtered out. In this way, there is no need to train an audio frame loss detection model separately. Only n different specified speech signal parameters are used as audio frame loss detection dimensions, and multi-dimensional frame loss detection is performed on the initial audio data set, so that the frame loss audio can be quickly and accurately identified. Therefore, while ensuring the accuracy of the audio frame loss detection, the audio frame loss detection steps are simplified and the audio frame loss detection efficiency is improved.

[0175] It should be noted that the embodiment of the storage medium in the present application and the embodiment of the voice sample generation method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding voice sample generation method mentioned above, and the repeated parts will not be repeated.

[0176] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0177] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0178] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0179] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0180] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium. Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, modules of programs, 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 disk storage or other magnetic storage devices or any other non-transmission media for storing information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0181] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0182] The embodiments of the present application can be described in the general context of computer executable instructions executed by a computer, such as a program module. Generally, a program module includes routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present application can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices. The various embodiments in the present application are described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0183] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. A method for generating a speech sample, It is characterized in that The method comprises: Acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1; Based on n audio frame loss detection dimensions, multi-dimensional frame loss detection is performed on the initial audio data set to determine M target normal audio samples from the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N; Based on the M target normal audio samples, a speech sample data set is generated; wherein the speech sample data set is used to train a speech synthesis model.

2. The method according to claim 1, It is characterized in that The performing multi-dimensional frame loss detection on the initial audio data set based on the n audio frame loss detection dimensions to determine M target normal audio samples from the N initial audio samples includes: Determine the detection priority order of n audio frame loss detection dimensions; Based on the detection priority order, performing multi-dimensional frame loss detection on the initial audio data set to obtain a frame loss audio data set; wherein the frame loss audio data set includes P target frame loss audio samples, each of the target frame loss audio samples includes an audio segment that simultaneously satisfies n frame loss prediction constraints, the frame loss prediction constraints correspond to the audio frame loss detection dimensions one by one, and P is an integer greater than or equal to 0 and P is less than N; The initial audio samples except the P target frame-lost audio samples are determined as M target normal audio samples among the N initial audio samples.

3. The method according to claim 2, It is characterized in that The performing multi-dimensional frame loss detection on the initial audio data set based on the detection priority order to obtain a frame loss audio data set includes: Based on the detection priority order, a target detection dimension is selected from the n audio frame loss detection dimensions, and a set of audio samples to be detected corresponding to the target detection dimension is determined; wherein the target detection dimension is an audio frame loss detection dimension that has not been selected and has the highest priority, and the first determined set of audio samples to be detected is the initial audio data set; Based on the target detection dimension, frame loss detection is performed on multiple initial audio samples in the audio sample set to be detected to obtain a suspected frame loss audio sample set; wherein each suspected frame loss audio sample in the suspected frame loss audio sample set includes an audio segment that simultaneously satisfies m frame loss prediction constraints, where m is equal to the number of target detection dimensions that have been selected and m is less than or equal to n, and the audio sample set to be detected corresponding to the target detection dimension selected next time includes the suspected frame loss audio sample set; If the target detection dimension selected this time is not the audio frame loss detection dimension with the lowest priority and the suspected frame loss audio sample set is not empty, continue to select the next target detection dimension; If the target detection dimension selected this time is the audio frame loss detection dimension with the lowest priority, or the suspected frame loss audio sample set is empty, the suspected frame loss audio sample set is determined as the frame loss audio data set.

4. The method according to claim 3, It is characterized in that The step of performing frame loss detection on a plurality of initial audio samples in the set of audio samples to be detected based on the target detection dimension to obtain a set of suspected frame loss audio samples includes: If the target detection dimension is a sound intensity detection dimension and the sound intensity detection dimension has the highest priority, then determining a sound intensity mutation point detection result of each initial audio sample in the set of audio samples to be detected; Based on the sound intensity mutation point detection results of each of the initial audio samples, a set of suspected frame-loss audio samples is determined; wherein each suspected frame-loss audio sample in the set of suspected frame-loss audio samples contains at least one sound intensity mutation point.

5. The method according to claim 4, It is characterized in that The step of determining the sound intensity mutation point detection result of each initial audio sample in the set of audio samples to be detected includes: For each initial audio sample in the set of audio samples to be detected, determining the sound intensity of each audio frame in the initial audio sample; Determine the sound intensity of each sampling point in the initial audio sample based on the sound intensity of each audio frame; wherein each audio frame includes a plurality of sampling points, and the sound intensities of the plurality of sampling points belonging to the same audio frame are the same; Performing a derivative process on the sound intensity of each sampling point in the initial audio sample to obtain a sound intensity derivative sequence of the initial audio sample; wherein the sound intensity derivative sequence includes the derivative of the sound intensity of each sampling point; Based on the sound intensity derivative sequence, determine the sound intensity mutation point detection result of the initial audio sample; wherein the sound intensity mutation point detection result includes a first detection result or a second detection result, the first detection result characterizes that the audio sample does not contain a sound intensity mutation point, and the second detection result includes the position information of at least one sound intensity mutation point contained in the audio sample.

6. The method according to claim 3, It is characterized in that The step of performing frame loss detection on a plurality of initial audio samples in the set of audio samples to be detected based on the target detection dimension to obtain a set of suspected frame loss audio samples includes: If the target detection dimension is a voice activity detection dimension and the priority of the voice activity detection dimension is lower than the sound intensity detection dimension, determining a voice activity detection result of each initial audio sample in the set of audio samples to be detected; wherein the voice activity detection result includes location information of a non-human voice segment in the audio sample; Based on the voice activity detection results of each of the initial audio samples and the sound intensity mutation point detection results of each of the initial audio samples, a set of suspected frame-loss audio samples is determined; the sound intensity mutation point detection results are obtained by performing frame loss detection on the initial audio samples based on the sound intensity detection dimension.

7. The method according to claim 6, It is characterized in that The step of determining a set of suspected frame-lost audio samples based on the voice activity detection results of the initial audio samples and the sound intensity mutation point detection results of the initial audio samples comprises: For each of the initial audio samples, based on the voice activity detection result of the initial audio sample and the sound intensity mutation point detection result of the initial audio sample, position matching is performed between the non-human voice segment and the sound intensity mutation segment to obtain a first matching result; wherein the sound intensity mutation segment is an audio segment between a first sound intensity mutation point and a second sound intensity mutation point, the absolute values ​​of the sound intensity derivatives of the first sound intensity mutation point and the second sound intensity mutation point are both greater than a first preset threshold, the sound intensity derivative of the first sound intensity mutation point is a negative number, and the sound intensity derivative of the second sound intensity mutation point is a positive number; Based on the first matching results of each of the initial audio samples, a set of suspected frame-lost audio samples is determined; wherein each suspected frame-lost audio sample in the set of suspected frame-lost audio samples includes at least one first target audio segment, and the first target audio segment is a sound intensity mutation segment and a non-human voice segment.

8. The method according to claim 3, It is characterized in that The step of performing frame loss detection on a plurality of initial audio samples in the set of audio samples to be detected based on the target detection dimension to obtain a set of suspected frame loss audio samples includes: If the target detection dimension is a pitch period detection dimension and the priority of the pitch period detection dimension is lower than the sound intensity detection dimension, then for each initial audio sample in the set of audio samples to be detected, determining a pitch period detection result of the initial audio sample; wherein the pitch period detection result includes position information of a discontinuous segment of the pitch period in the audio sample; Based on the pitch period detection result of each of the initial audio samples and the sound intensity mutation point detection result of each of the initial audio samples, a set of suspected frame loss audio samples is determined; the sound intensity mutation point detection result is obtained by performing frame loss detection on the initial audio samples based on the sound intensity detection dimension.

9. The method according to claim 8, It is characterized in that The determining of a set of suspected frame-lost audio samples based on the pitch period detection results of each of the initial audio samples and the sound intensity mutation point detection results of each of the initial audio samples comprises: For each of the initial audio samples, based on the pitch period detection result of the initial audio sample and the sound intensity mutation point detection result of the initial audio sample, position matching is performed between the pitch period discontinuity segment and the sound intensity mutation segment to obtain a second matching result; Based on the second matching results of each of the initial audio samples, a set of suspected frame-lost audio samples is determined; wherein each suspected frame-lost audio sample in the set of suspected frame-lost audio samples includes at least one second target audio segment, and the second target audio segment is a sound intensity mutation segment and a fundamental pitch period discontinuous segment.

10. The method according to claim 3, It is characterized in that The step of performing frame loss detection on a plurality of initial audio samples in the set of audio samples to be detected based on the target detection dimension to obtain a set of suspected frame loss audio samples includes: If the target detection dimension is a signal energy detection dimension and the priority of the signal energy detection dimension is lower than that of the sound intensity detection dimension, for each initial audio sample in the set of audio samples to be detected, based on the sound intensity mutation point detection result of the initial audio sample, signal energy detection is performed on at least one sound intensity mutation segment in the initial audio sample to obtain a signal energy detection result of the initial audio sample; Based on the signal energy detection results of each of the initial audio samples, a set of suspected frame-lost audio samples is determined; wherein each suspected frame-lost audio sample in the set of suspected frame-lost audio samples contains at least one third target audio segment, and the third target audio segment is a sound intensity mutation segment and a low signal energy segment.

11. The method according to claim 10, It is characterized in that The step of performing signal energy detection on at least one sound intensity mutation segment in the initial audio sample based on the sound intensity mutation point detection result of the initial audio sample to obtain the signal energy detection result of the initial audio sample includes: Based on the sound intensity mutation point detection result of the initial audio sample, determining at least one sound intensity mutation segment in the initial audio sample; For each of the sound intensity mutation segments, calculating the energy parameter value of the sound intensity mutation segment; wherein the energy parameter value includes an energy mean and an energy variance; Based on the energy parameter value of at least one sound intensity mutation segment, the signal energy detection result of the initial audio sample is determined; wherein the signal energy detection result includes a detection result characterizing whether the sound intensity mutation segment belongs to a low signal energy segment, and the low signal energy segment is an audio segment whose energy mean is less than a second preset threshold and whose energy variance is less than a third preset threshold.

12. The method according to claim 2, It is characterized in that The n audio frame loss detection dimensions include a sound intensity detection dimension, a voice activity detection dimension, a pitch period detection dimension, and a signal energy detection dimension; the frame loss prediction constraint of the sound intensity detection dimension is that the sound intensity mutation point is included; the frame loss prediction constraint of the voice activity detection dimension is that the suspected audio segment contains a sound intensity mutation segment located in a non-human voice segment; the frame loss prediction constraint of the pitch period detection dimension is that the suspected audio segment contains a sound intensity mutation segment located in a pitch period discontinuous segment; the frame loss prediction constraint of the signal energy detection dimension is that the suspected audio segment contains a sound intensity mutation segment located in a segment with low signal energy; The determining of the detection priority order of the n audio frame loss detection dimensions includes: The detection priorities of the n audio frame loss detection dimensions are determined in descending order as sound intensity detection dimension, voice activity detection dimension, pitch period detection dimension, and signal energy detection dimension.

13. The method according to any one of claims 1 to 12, It is characterized in that After generating a speech sample data set based on the M target normal audio samples, the method further includes: Based on the speech sample data set, the parameters of the speech synthesis model to be trained are iteratively updated to obtain a trained speech synthesis model.

14. A speech sample generating device, It is characterized in that The device comprises: An audio data acquisition module, used to acquire an initial audio data set; wherein the initial audio data set includes N initial audio samples, where N is an integer greater than 1; An audio frame loss detection module is used to perform multi-dimensional frame loss detection on the initial audio data set based on n audio frame loss detection dimensions, and determine M target normal audio samples among the N initial audio samples; wherein each of the audio frame loss detection dimensions corresponds to any one of the speech signal parameters, the speech signal parameters include sound intensity, speech activity, pitch period and signal energy, the target normal audio sample is an initial audio sample without frame loss, n and M are both integers greater than 1 and M is less than or equal to N; The speech sample generation module is used to generate a speech sample data set based on the M target normal audio samples; wherein the speech sample data set is used to train a speech synthesis model.

15. A speech sample generating device, It is characterized in that The device comprises: Processor; and A memory arranged to store computer executable instructions, the executable instructions being configured to be executed by the processor, the executable instructions comprising instructions for performing the steps of the method according to any one of claims 1 to 13.

16. A computer-readable storage medium, It is characterized in that The storage medium is used to store computer-executable instructions, and the executable instructions enable a computer to execute the method according to any one of claims 1 to 13.