Synthesis method, system and electronic device for expressive speech dataset

By constructing the StoryTTS dataset and performing speech recognition and text expressiveness analysis, combined with large model annotation, the problem of insufficient expressiveness of existing TTS models is solved, and speech generation with higher expressiveness is achieved.

CN117854474BActive Publication Date: 2026-11-20AISPEECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410185825.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-19
Publication Date
2026-11-20
Estimated Expiration
2044-02-19

AI Technical Summary

Technical Problem

Existing technologies rely on pre-trained language models or basic syntactic structures, failing to deeply explore the expressiveness of text, resulting in poor performance of TTS models in generating expressive speech.

Method used

The StoryTTS dataset was constructed by acquiring and correcting expressive speech segments through speech recognition, text expressiveness analysis, and large model annotation. The segments were annotated according to dimensions such as sentence structure, scene, rhetorical devices, imitation characters, and emotional coloring, forming a high-expressive speech dataset.

Benefits of technology

It improves the accuracy and efficiency of TTS models in generating expressive speech, and the generated speech dataset has higher expressiveness, surpassing the expressiveness level of open source datasets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117854474B_ABST
    Figure CN117854474B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a synthesis method, system and electronic equipment of expressive speech data set. The method comprises the following steps: obtaining original speech data with expressiveness, performing segmentation to obtain expressive speech segments, performing speech recognition on the expressive speech segments to obtain a speech data set with expressive speech segments and recognized text; adjusting the paralanguage words and punctuation marks of the recognized text in the speech data set to obtain a corrected speech data set; performing text expressiveness analysis on the corrected speech data set to determine the text expressiveness categories corresponding to each expressive speech segment and the recognized text in the corrected speech data set; and using a large model to perform batch labeling on the corrected speech data set with the text expressiveness categories according to corresponding rules to obtain an expressive speech data set with batch labeling. The embodiment of the application constructs a high expressiveness speech synthesis data set, and has higher expressiveness in the TTS effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent speech, and more particularly to a method, system, and electronic device for synthesizing expressive speech datasets. Background Technology

[0002] The development of deep learning has improved the quality of text-to-speech (TTS), enabling TTS models to produce speech that is very similar to human speech. However, these models often excel at synthesizing speech with relatively simple emotional features. When it comes to performance formats such as novels, poems, and talk shows, the content is usually rich in expressive text. This textual form influences the rhythm of the speaker's delivery, making it difficult for TTS models to achieve the expected performance level.

[0003] To solve the above problems, existing technologies would use:

[0004] 1. A pre-trained language model is applied to expressive speech synthesis. A pre-trained BERT model is used to extract semantic features from the text. This BERT model is trained on a massive amount of text. The extracted semantic features are then used as auxiliary information to train a speech synthesis model based on Tacotron2. Experimental results show that the expressiveness of the synthesized speech is significantly improved with the addition of semantic features.

[0005] 2. Using graph neural networks to model syntactic features. Since the syntactic dependency tree is itself a tree structure, graph data structures can be well represented. Furthermore, SyntaSpeech proposed a graph encoder that helps the model learn syntactic features, which are then used to assist in the prediction of acoustic features, prosody, and phoneme duration. For part-of-speech tagging features, researchers typically use a learnable embedding table to fuse them into the speech synthesis model.

[0006] In the process of realizing this invention, the inventors discovered at least the following problems in the related technology:

[0007] Existing technologies rely on pre-trained language models or coarse-grained semantic representations of basic syntactic structures, and do not represent linguistic features by extracting part-of-speech tags or dependency syntax. They also fail to thoroughly explore the linguistic features of the text, resulting in poor performance of TTS in generating expressive speech. Summary of the Invention

[0008] To address the issue that screen adaptation in existing technologies only occurs after the program is running, which slows down the program's smoothness, and that designing multiple layout files may not be able to cover all sizes and cannot achieve good adaptation, while also increasing the APK size.

[0009] In a first aspect, embodiments of the present invention provide a method for synthesizing an expressive speech dataset, comprising:

[0010] The process involves acquiring expressive raw speech data, segmenting the raw speech data to obtain expressive speech segments, performing speech recognition on the expressive speech segments, and obtaining a speech dataset containing the expressive speech segments and the recognized text. The raw speech data includes storytelling.

[0011] The onomatopoeic words and punctuation marks in the recognized text of the speech dataset are adjusted to correct the misrecognition of the expressive speech segments due to pitch and speech rate, thus obtaining a corrected speech dataset.

[0012] Text expressiveness analysis is performed on the corrected speech dataset to determine the text expressiveness category corresponding to each expressive speech segment and the recognized text within the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation, and emotional tone.

[0013] Using a large model, the modified speech dataset with text expressiveness categories is batch-annotated according to the rules corresponding to the text expressiveness categories, resulting in a batch-annotated expressive speech dataset.

[0014] Secondly, embodiments of the present invention provide a synthesis system for an expressive speech dataset, comprising:

[0015] The speech dataset determination module is used to acquire expressive raw speech data, segment the raw speech data to obtain expressive speech segments, perform speech recognition on the expressive speech segments, and obtain a speech dataset containing expressive speech segments and recognition text, wherein the raw speech data includes: storytelling;

[0016] The correction module is used to adjust the onomatopoeia and punctuation marks of the recognized text in the speech dataset to correct the misrecognition of the expressive speech segments due to pitch and speech rate errors, thereby obtaining a corrected speech dataset.

[0017] The expressiveness analysis module is used to perform text expressiveness analysis on the corrected speech dataset, and to determine the text expressiveness category corresponding to each expressive speech segment and the recognized text in the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation and emotional color.

[0018] The dataset synthesis module is used to use a large model to perform batch annotation on the modified speech dataset with text expressiveness categories according to the rules corresponding to the text expressiveness categories, so as to obtain an expressive speech dataset with batch annotation.

[0019] Thirdly, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of a method for synthesizing an expressive speech dataset according to any embodiment of the present invention.

[0020] Fourthly, embodiments of the present invention provide a storage medium storing a computer program thereon, characterized in that, when the program is executed by a processor, it implements the steps of a method for synthesizing an expressive speech dataset according to any embodiment of the present invention.

[0021] Fifthly, embodiments of the present invention provide a computer program product, including a computer program / instructions, characterized in that, when the computer program / instructions are executed by a processor, they implement the steps of a method for synthesizing an expressive speech dataset according to any embodiment of the present invention.

[0022] The beneficial effects of this invention are as follows: It constructs a high-expressive speech synthesis dataset derived from expressive audio, which undergoes targeted processing. Furthermore, it classifies textual expressive features from linguistic and literary perspectives. Additionally, this method designs a large language model to assist in annotation, more accurately and efficiently labeling the expressive categories in the dataset. In terms of TTS performance, it exhibits higher expressiveness than currently available open-source datasets. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of a method for synthesizing an expressive speech dataset according to an embodiment of the present invention;

[0025] Figure 2 This is a schematic diagram of the flowchart of a method for synthesizing an expressive speech dataset according to an embodiment of the present invention;

[0026] Figure 3This is a statistical diagram of StoryTTS, a method for synthesizing an expressive speech dataset provided in an embodiment of the present invention;

[0027] Figure 4 This is a comparative schematic diagram of commonly used TTS datasets for a method of synthesizing an expressive speech dataset according to an embodiment of the present invention;

[0028] Figure 5 This is a schematic diagram illustrating the specific classification of sentence structure, context, and rhetorical devices in StoryTTS, a method for synthesizing an expressive speech dataset provided in an embodiment of the present invention.

[0029] Figure 6 This is a schematic diagram of the role types in StoryTTS, which is a method for synthesizing an expressive speech dataset provided in an embodiment of the present invention;

[0030] Figure 7 This is a schematic diagram illustrating the expressive annotation of LLMs for a method of synthesizing an expressive speech dataset according to an embodiment of the present invention;

[0031] Figure 8 This is a schematic diagram of the expressive encoder model structure of an expressive speech dataset synthesis method provided in an embodiment of the present invention;

[0032] Figure 9 This is a schematic diagram illustrating the evaluation results under different settings of a method for synthesizing an expressive speech dataset according to an embodiment of the present invention;

[0033] Figure 10 This is a schematic diagram of the structure of a synthesis system for an expressive speech dataset provided in an embodiment of the present invention;

[0034] Figure 11 This is a schematic diagram of an embodiment of an electronic device for synthesizing expressive speech datasets, provided as an example of the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0036] like Figure 1 The diagram shown is a flowchart of a method for synthesizing an expressive speech dataset according to an embodiment of the present invention, including the following steps:

[0037] S11: Acquire expressive raw speech data, segment the raw speech data to obtain expressive speech segments, perform speech recognition on the expressive speech segments to obtain a speech dataset containing expressive speech segments and recognition text, wherein the raw speech data includes: storytelling;

[0038] S12: Adjust the onomatopoeic words and punctuation marks in the recognized text of the speech dataset to correct the misrecognition of the expressive speech segments due to pitch and speech rate, and obtain the corrected speech dataset.

[0039] S13: Perform text expressiveness analysis on the corrected speech dataset to determine the text expressiveness category corresponding to each expressive speech segment and the identified text in the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation, and emotional tone.

[0040] S14: Using a large model, batch label the modified speech dataset with text expressiveness categories according to the rules corresponding to the text expressiveness categories, to obtain a batch-labeled expressive speech dataset.

[0041] In this implementation, we constructed the StoryTTS (text-to-speech) dataset, the first TTS dataset to contain rich expressiveness in both speech and text, and also equipped with comprehensive annotations of speech-related text expressiveness. This dataset features high-quality audio, organization, coherent chapters, and sufficient data volume. Furthermore, we established a framework supported by LLM (large language models) to annotate text expressiveness across five different dimensions (sentence structure, scene, rhetorical devices, character imitation, and emotional tone). Further experiments were conducted to verify that the TTS model can produce speech with enhanced expressiveness when integrated with annotated text expressiveness labels. The overall process of this method is as follows: Figure 2 As shown.

[0042] For step S11, this method utilizes retrieval and crawling techniques to obtain expressive raw audio data from the internet. Specifically, regarding the selection and retrieval of raw audio data, this method specifically chose storytelling, a traditional Chinese oral art form where performers narrate stories, imitate various voices, and portray characters to attract audiences. This oral art form is usually based on historical novels, which makes the told stories not only rich in phonetic rhythm but also diverse in textual expressiveness, such as language structure, rhetoric, and role-playing. Therefore, storytelling programs largely meet the goal of this method to obtain highly expressive audio with rich expressive annotations. For example, this method selected a storytelling program called "The Wisdom of Dongfang Shuo," which tells the legendary story of Dongfang Shuo, a key figure in the development of the ancient Han Dynasty. To construct the dataset, this method retrieved recorded audio data from a public website organized into 160 consecutive chapters. Each chapter lasts approximately 24 minutes, totaling 64 hours, including breaks.

[0043] After obtaining the original audio data of the storytelling performance, this method estimates the SNR (Signal to Interference plus Noise Ratio) of the audio data for speech segmentation. The noise power is calculated using silent segments predicted by the VAD (Voice Activity Detection) tool. For example... Figure 3 As shown, the SNR estimate is 32 dB, indicating high audio quality of the waveform. Subsequently, statistical analysis was performed on several common Mandarin (ZH) and English (EN) datasets, such as... Figure 4 As shown, several existing datasets were compared, including LJSpeech, Blizzard-2013, HiFi-TTS, LibriTTS, Aishell3, Biaobei, and StoryTTS (based on our method). The results show that StoryTTS exhibits a significantly higher pitch standard deviation than other datasets, and only the StoryTTS dataset from our method achieves the required annotation results, providing compelling evidence for its remarkable acoustic performance.

[0044] Specifically, to process the initially coarsely segmented speech data, this method first uses the VAD tool to segment chapter-level speech into utterances based on the duration of silence segments. In this step, long silences are also eliminated, resulting in 60.9 hours of spoken speech segments. Subsequently, in the absence of matching text transcripts, the speech segments are identified using the Whisper speech recognition model, yielding text transcripts. It can be seen that excessively long speech segments still exist after the VAD process. To address this issue, this method identifies these speech segments and their corresponding texts. The extended text is manually divided into smaller sentences, and then the Aeneas2 tool is used to synchronize the text segments with the speech. This alignment accurately trims the speech, generating a speech dataset of 33,108 pairs of speech and text with expressive speech segments and identified text.

[0045] For step S12, considering the highly variable pitch and speaking speed of storytelling performances, the speech recognition results show a higher error rate compared to standard speech. To address this issue, this method examines each speech segment and corrects recognition errors. Furthermore, onomatopoeic elements in the speech are replaced with appropriate words from the corresponding text. For the highest accuracy, manual review can be used. Alternatively, a pre-trained model based on preset rules can be used to correct onomatopoeia and punctuation. Since punctuation and onomatopoeia play a crucial role in text expression—exclamation marks can express emotions like surprise or shock, and quotation marks can express dialogue or inner thoughts—Whisper, while able to recognize some punctuation, falls far short of expectations. Therefore, further correction and addition of punctuation are needed during text review to ensure the most accurate use of punctuation. This focus on punctuation accuracy also greatly benefits subsequent text sentiment analysis. The text in the corrected speech dataset exhibits a high degree of colloquialism and is rich in role-playing, psychological, action, and environmental descriptions.

[0046] For step S13, in the study of the expressive power of speech-related texts, this method divides it into five dimensions from the fields of literary studies, linguistics, and rhetoric. These dimensions include sentence structure, scene, rhetorical devices, character imitation, and emotional tone. Rhetorical devices, such as hyperbole, and sentence structures, such as declarative sentences, are commonly used textual expression tools. For example, using exclamatory sentences or incorporating hyperbole can evoke emotions of excitement or surprise. Considering the characteristics of the StoryTTS dataset in this method, scenes such as role-playing (i.e., character imitation) are also employed. For example, role-playing scenes often carry strong emotional content, while narration typically lacks emotional elements. Specific classifications of sentence structure, scene, and rhetorical devices are as follows: Figure 5As shown, emotional tone often directly influences a performer's expression. Instead of categorizing them into different polarities or predefined classes, this method chooses a more precise approach: summarizing the emotional tone of a sentence in a few words. Compared to traditional classification methods, this method provides a more accurate description of the emotional tone of the text.

[0047] This method corrects the use of TTS in the StoryTTS speech dataset. It leverages the fact that performers in StoryTTS often mimic the vocal patterns of characters (i.e., playing characters in a storytelling performance) when delivering lines. For example, when playing an old person, they might deliberately lower their tone and slow down, while raising their tone and speeding up when imitating a villain. Characters can be categorized into 19 types based on characteristics such as age, gender, and social status, which forms the basis for performers' imitations. The six most common character types are as follows: Figure 6 As shown.

[0048] For step S14, this method uses a large model to perform batch annotation on the corrected speech dataset with text expressiveness categories according to the rules corresponding to the text expressiveness categories. Further, the large model's rules corresponding to the text expressiveness categories include:

[0049] The large model receives a continuously input modified speech dataset with text expressiveness categories and performs context labeling on the continuously input modified speech dataset with text expressiveness categories.

[0050] The large model receives source data from the modified speech dataset with text expressiveness categories, and enhances the onomatopoeic words, inner monologues, and character imitation features of the modified speech dataset based on the source data;

[0051] The large model is used to batch label the words corresponding to the text expressiveness categories in the enhanced and corrected speech dataset, resulting in an expressive speech dataset with word annotations.

[0052] The Claude2 large model was used to batch annotate the sentence structure, scene, rhetorical devices and words corresponding to the imitated characters in the enhanced and corrected speech dataset.

[0053] We used the GPT4 large model to batch label the words corresponding to the emotional color in the enhanced and corrected speech dataset.

[0054] In this implementation, LLM has been applied in extensive research. To accelerate the tagging process and reduce costs, this method uses GPT4 and Claude2 for batch annotation, both of which are more powerful than GPT3. During annotation, Claude2 is used to annotate sentence structure, rhetorical devices, scenes, and imitation characters. However, when it comes to summarizing the emotional tone in the text, this method found that Claude2's performance was not ideal. Therefore, it switched to GPT4, which proved to be more proficient in this area. This method establishes the LLM as a linguist. The model is then further guided, informed that the input text is continuous and requires tagging using contextual information. For example, two consecutive sentences may belong to the same role-playing scene. Subsequently, the source and characteristics of the text are detailed, emphasizing their richness in elements such as onomatopoeia, inner monologues, and role-playing. Finally, the model is instructed to annotate each sentence in a prescribed format according to the outlined prompts and requirements. Specifically, sentence structure, scenes, rhetorical devices, and imitation characters must be assigned to specific categories, and each emotional tone should be summarized in a few words.

[0055] Initially, this method attempted labeling in a zero-shot setting, but the results showed low accuracy. Therefore, this method provides the model with labeled text and explains the underlying principles behind each labeling decision. In this case, the model shows improved accuracy and meets the labeling requirements of this method. Figure 7 An example of using LLM for annotation is shown.

[0056] As one implementation, after obtaining an expressive speech dataset with batch annotations, the method further includes:

[0057] Build an expressive encoder;

[0058] The expressive speech dataset with batch annotations is tested using an expressive encoder to obtain a valid expressive speech dataset with batch annotations.

[0059] The structure of the expressive encoder includes: BERT, BERT with sentence vectors, a multi-head attention layer, an upsampling layer, a linear layer, and four independently learnable embedding layers. The BERT receives the input speech dataset and outputs word-level embeddings. The BERT with sentence vectors receives the emotional color labeled by the large model and outputs emotional color embeddings. The multi-head attention layer, upsampling layer, and linear layer determine the phonemes of the emotional distribution from the word-level embeddings and the emotional color embeddings. The four independently learnable embedding layers independently receive the scene, sentence structure, rhetorical devices, and imitated characters labeled by the large model, and output the corresponding phonemes. The test results are obtained through the phonemes of the emotional distribution and the corresponding phonemes.

[0060] To fully leverage the expressive annotation capabilities of this method, an expressive encoder was developed. Four independent, learnable embedding tables were used to provide information for the model across four labels: sentence structure, scene, rhetorical device, and imitated character. For each sentence, four category numbers were assigned based on these four expressive labels. These numbers were then input into the corresponding embedding tables with vector dimensions of 32, 32, 64, and 256, respectively. The structure of the expressive encoder is as follows: Figure 8 As shown.

[0061] Regarding the modeling of sentiment color, this method employs a different model architecture. Considering that sentiment descriptions are often condensed into a few words representing the overall sentiment of a sentence, and that sentiment can change within a sentence—for example, in exclamatory sentences, the sentiment often intensifies towards the end—this method initially uses a pre-trained BERT to extract word-level embeddings for the entire sentence. Subsequently, sentence-level BERT is used to extract sentiment color embeddings. By cross-referencing these embeddings, the distribution of sentiment at different locations in the text is captured, improving its expressive accuracy. Next, the results are upsampled to the phoneme level based on word-to-phoneme correspondences and added to the encoder output along with the previous four embeddings.

[0062] Furthermore, this method constructs a TTS model to analyze the impact of the text representation tags created by this method on the synthesized speech. The baseline model constructed by this method is based on an existing VQTTS system, which utilizes self-supervised vector quantization acoustic features instead of traditional mel spectrograms. Specifically, it consists of an acoustic model t2v and a vocoder v2w. t2v receives the sequence and then outputs VQ acoustic features and auxiliary features consisting of pitch, energy, and speech probability. v2w receives these features to synthesize the waveform.

[0063] This implementation demonstrates the construction of a high-expressive speech synthesis dataset derived from expressive audio. The dataset undergoes targeted processing, and textual expressive features are categorized from linguistic and literary perspectives. Furthermore, a large language model is designed to assist in annotation, resulting in more accurate and efficient labeling of expressive categories within the dataset. In terms of TTS performance, it exhibits higher expressiveness than currently available open-source datasets.

[0064] This method experimentally evaluates the impact of each of the five text expressiveness labels on the expressiveness of the synthesized speech. Furthermore, the cumulative effect of using all these labels together is also evaluated. For these experiments, acoustic models were trained for 300 epochs each using a batch size of 8. The vocoder was shared and trained on StoryTTS for 100 epochs using a batch size of 8. The remaining model configurations and parameters were consistent. Each experiment was performed on a single 2080Ti GPU. For text data preprocessing, text-to-phoneme conversion was performed using the Grapheme-To-Phoneme (G2P) tool. 5% of the text was also reserved for test and validation sets, with the test set consisting of 3 consecutive chapters. To obtain the base-fact phoneme durations, a Montreal forced alignment was used, which employed Kaldi for forced alignment.

[0065] To evaluate the synthesized text-to-speech, this method employed a MOS (mean opinion score) listening test involving 20 listeners who were asked to rate each sample. MOS ratings were based on a 1-5 scale with 0.5-point increments and a 95% confidence interval. During the test, listeners were guided to specifically assess the expressiveness of the synthesized speech while also evaluating speech quality. For objective evaluation, MCD (Mel-cepstral distortion) was calculated using DTW (dynamic time warping). Furthermore, the log-F0 RMSE (root mean square error), also calculated using DTW, was analyzed. MCD measures general speech quality, while log-F0 RMSE assesses performance based on speech prosody. Lower values ​​for both metrics indicate better sound quality and rhythmic performance.

[0066] like Figure 9The evaluation results are presented. It can be seen that when expressiveness labels are incorporated into the model, both subjective and objective scores are superior to the baseline model. Specifically, sentence structure and scene enhancements are relatively small. This may be attributed to the prevalence of declarative sentences in the dataset, resulting in limited information for the model. Furthermore, although the scene type distribution is fairly even, the diversity is insufficient to provide the model with enough information due to the different character imitations in role-playing and inner monologue scenes. Rhetorical devices and emotional tone bring more significant enhancements. Among the various expressiveness labels, the imitated character is the most effective because it directly provides information about the currently imitated person, enabling the model to effectively learn how the imitated person speaks, thus synthesizing speech close to the original data. Finally, the fusion of all expressiveness labels provides the most significant enhancement. It significantly outperforms other settings on both objective and subjective metrics, providing the model with increasingly accurate information about the imitated person and scene. This fusion also benefits from the complementarity of sentence structure, rhetorical devices, and emotional tone.

[0067] In summary, this method is the first to include a richly expressive TTS dataset from both acoustic and textual perspectives. This dataset, derived from high-quality recordings of Mandarin storytelling programs, provides a valuable resource for researchers studying acoustic expressiveness. Furthermore, this method performs a comprehensive analysis of the expressive text, categorizing speech-related textual expressions into five distinct dimensions. Then, LLM (Limited Language Modeling) is used, providing several examples of manually annotated texts for batch annotation. The effective labeling of LLM also offers insights for similar data labeling work. Therefore, this dataset is equipped with rich textual expressiveness annotations. Experimental results demonstrate that combining a TTS model with annotated textual expressiveness labels can generate speech with significantly improved expressiveness.

[0068] like Figure 10 The diagram shown is a structural schematic of a speech dataset synthesis system according to an embodiment of the present invention. The system can execute the speech dataset synthesis method described in any of the above embodiments and is configured in a terminal.

[0069] This embodiment provides a speech dataset synthesis system 10, which includes: a speech dataset determination module 11, a correction module 12, an expressiveness analysis module 13, and a dataset synthesis module 14.

[0070] The system includes the following modules: a speech dataset determination module 11, which acquires expressive raw speech data, segments the raw speech data to obtain expressive speech segments, performs speech recognition on the expressive speech segments to obtain a speech dataset containing expressive speech segments and recognized text; a correction module 12, which adjusts the onomatopoeia and punctuation marks in the recognized text of the speech dataset to correct misrecognition of the expressive speech segments due to pitch and speech rate errors, thus obtaining a corrected speech dataset; an expressiveness analysis module 13, which performs text expressiveness analysis on the corrected speech dataset to determine the text expressiveness category corresponding to each expressive speech segment and recognized text in the corrected speech dataset; and a dataset synthesis module 14, which uses a large model to batch-annotate the corrected speech dataset containing text expressiveness categories according to the rules corresponding to the text expressiveness categories, thus obtaining a batch-annotated expressive speech dataset.

[0071] This invention also provides a non-volatile computer storage medium storing computer-executable instructions that can execute the method for synthesizing an expressive speech dataset in any of the above method embodiments.

[0072] In one embodiment, the non-volatile computer storage medium of the present invention stores computer-executable instructions, which are configured as follows:

[0073] The process involves acquiring expressive raw speech data, segmenting the raw speech data to obtain expressive speech segments, performing speech recognition on the expressive speech segments, and obtaining a speech dataset containing the expressive speech segments and the recognized text. The raw speech data includes storytelling.

[0074] The onomatopoeic words and punctuation marks in the recognized text of the speech dataset are adjusted to correct the misrecognition of the expressive speech segments due to pitch and speech rate, thus obtaining a corrected speech dataset.

[0075] Text expressiveness analysis is performed on the corrected speech dataset to determine the text expressiveness category corresponding to each expressive speech segment and the recognized text within the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation, and emotional tone.

[0076] Using a large model, the modified speech dataset with text expressiveness categories is batch-annotated according to the rules corresponding to the text expressiveness categories, resulting in a batch-annotated expressive speech dataset.

[0077] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods in the embodiments of this invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by a processor, they perform the method for synthesizing expressive speech datasets in any of the above method embodiments.

[0078] Figure 11 This is a schematic diagram of the hardware structure of an electronic device for a method of synthesizing an expressive speech dataset according to another embodiment of this application, as shown below. Figure 11 As shown, the device includes:

[0079] One or more processors 1110 and memory 1120, Figure 11 Taking a processor 1110 as an example, the device for synthesizing expressive speech datasets may further include an input device 1130 and an output device 1140.

[0080] The processor 1110, memory 1120, input device 1130, and output device 1140 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.

[0081] The memory 1120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the expressive speech dataset synthesis method in the embodiments of this application. The processor 1110 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 1120, thereby implementing the expressive speech dataset synthesis method of the above-described method embodiments.

[0082] The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data, etc. Furthermore, the memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1120 may optionally include memory remotely located relative to the processor 1110, and these remote memories may be connected to the mobile device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0083] Input device 1130 can receive input numerical or character information. Output device 1140 may include display devices such as a display screen.

[0084] The one or more modules are stored in the memory 1120, and when executed by the one or more processors 1110, they perform the method for synthesizing expressive speech datasets in any of the above method embodiments.

[0085] The above-described product can perform the methods provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for performing the methods. Technical details not described in detail in this embodiment can be found in the methods provided in the embodiments of this application.

[0086] Non-volatile computer-readable storage media may include a stored program area and a stored data area, wherein the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created based on the use of the device, etc. Furthermore, the non-volatile computer-readable storage medium may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include memory remotely located relative to the processor, and these remote memories may be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0087] This invention also provides an electronic device comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the method for synthesizing an expressive speech dataset according to any embodiment of this invention.

[0088] The electronic devices described in this application exist in various forms, including but not limited to:

[0089] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include smartphones, multimedia phones, feature phones, and low-end phones.

[0090] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as tablet computers.

[0091] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes audio and video players, handheld game consoles, e-book readers, as well as smart toys and portable car navigation devices.

[0092] (4) Other electronic devices with data processing functions.

[0093] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising" or "including" include not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0094] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for synthesizing an expressive speech dataset, comprising: The process involves acquiring expressive raw speech data, segmenting the raw speech data to obtain expressive speech segments, performing speech recognition on the expressive speech segments, and obtaining a speech dataset containing the expressive speech segments and the recognized text. The raw speech data includes storytelling. The onomatopoeic words and punctuation marks in the recognized text of the speech dataset are adjusted to correct the misrecognition of the expressive speech segments due to pitch and speech rate, thus obtaining a corrected speech dataset. Text expressiveness analysis is performed on the corrected speech dataset to determine the text expressiveness category corresponding to each expressive speech segment and the recognized text within the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation, and emotional tone. Using a large model, the modified speech dataset with text expressiveness categories is batch-annotated according to the rules corresponding to the text expressiveness categories, resulting in a batch-annotated expressive speech dataset. Construct an expressive encoder; use the expressive encoder to test the expressive speech dataset with batch annotations to obtain a valid expressive speech dataset with batch annotations. The expressive encoder structure includes: BERT, sentence vector BERT, multi-head attention layer, upsampling layer, linear layer, and four independently learnable embedding layers. BERT receives the input speech dataset and outputs word-level embeddings. The sentence vector BERT receives the emotional color labeled by the large model and outputs emotional color embeddings. The multi-head attention layer, upsampling layer, and linear layer determine the phonemes of the emotional distribution from the word-level embeddings and the emotional color embeddings. The four independently learnable embedding layers independently receive the scene, sentence structure, rhetorical devices, and imitated characters labeled by the large model, and output the corresponding phonemes. The test results are obtained through the emotional distribution phonemes and the corresponding phonemes.

2. The method according to claim 1, wherein, The large model includes the following rules according to the correspondence with the text expressiveness category: The large model receives a continuously input modified speech dataset with text expressiveness categories and performs context labeling on the continuously input modified speech dataset with text expressiveness categories. The large model receives source data from the modified speech dataset with text expressiveness categories, and enhances the onomatopoeic words, inner monologues, and character imitation features of the modified speech dataset based on the source data; The large model is used to batch label the words corresponding to the text expressiveness categories in the enhanced and corrected speech dataset, resulting in an expressive speech dataset with word annotations.

3. The method according to claim 2, wherein, The words corresponding to the text expressiveness categories in the enhanced and corrected speech dataset, which are batch-annotated using the large model, include: The Claude2 large model was used to batch annotate the sentence structure, scene, rhetorical devices and words corresponding to the imitated characters in the enhanced and corrected speech dataset.

4. The method according to claim 2, wherein, The words corresponding to the text expressiveness categories in the enhanced and corrected speech dataset, which are batch-annotated using the large model, include: We used the GPT4 large model to batch label the words corresponding to the emotional color in the enhanced and corrected speech dataset.

5. A system for synthesizing an expressive speech dataset, comprising: The speech dataset determination module is used to acquire expressive raw speech data, segment the raw speech data to obtain expressive speech segments, perform speech recognition on the expressive speech segments, and obtain a speech dataset containing expressive speech segments and recognition text, wherein the raw speech data includes: storytelling; The correction module is used to adjust the onomatopoeia and punctuation marks of the recognized text in the speech dataset to correct the misrecognition of the expressive speech segments due to pitch and speech rate errors, thereby obtaining a corrected speech dataset. The expressiveness analysis module is used to perform text expressiveness analysis on the corrected speech dataset, and to determine the text expressiveness category corresponding to each expressive speech segment and the recognized text in the corrected speech dataset. The text expressiveness category includes: sentence structure, scene, rhetorical device, character imitation and emotional color. The dataset synthesis module is used to batch-annotate the corrected speech dataset with text expressiveness categories according to the rules corresponding to the text expressiveness categories using a large model, thereby obtaining a batch-annotated expressive speech dataset; construct an expressive encoder; and use the expressive encoder to test the batch-annotated expressive speech dataset to obtain a valid batch-annotated expressive speech dataset. The expressive encoder structure includes: BERT, sentence vector BERT, a multi-head attention layer, an upsampling layer, a linear layer, and four independently learnable embedding layers. The BERT receives the input speech dataset and outputs word-level embeddings. The sentence vector BERT receives the emotional color labeled by the large model and outputs emotional color embeddings. The multi-head attention layer, upsampling layer, and linear layer determine the phonemes of the emotional distribution from the word-level embeddings and the emotional color embeddings. The four independently learnable embedding layers independently receive the scene, sentence structure, rhetorical device, and imitated character labeled by the large model, and output the corresponding phonemes. The test results are obtained through the emotional distribution phonemes and the corresponding phonemes.

6. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1-4.

7. An electronic device comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method according to any one of claims 1-4.

8. A storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-4.

Citation Information

Patent Citations

  • Automatic audio content generation

    CN113628609A