A speech annotation method and device for speech feature description
Through pre-trained speech style recognition and natural language models, multiple attributes of audio data are identified and generated, solving the problem of multi-dimensional analysis of audio data in the existing technology, achieving efficient and detailed speech feature description, and reducing labeling costs and time.
Patent Information
- Application Number
- CN202411037101.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing technology mainly focuses on basic audio features in speech language model training, making it difficult to perform multi-dimensional detailed analysis. Manual annotation of data is costly, time-consuming and has a limited annotation range.
Use pre-trained speech style recognition models and natural language models to identify multiple attributes of audio data through signal processing, speaker identification, emotion annotation and prosody detection sub-models, and input these attributes into the natural language model to generate detailed natural language Description text.
It achieves multi-dimensional detailed analysis of audio data, reduces annotation costs and time, generates detailed and personalized natural language description text, and improves the accuracy and efficiency of speech feature description.
Smart Images

Figure CN118571229B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing technology, and in particular to a speech annotation method and device for describing speech features. Background Art
[0002] The success of multimodal learning has driven rapid progress in speech and language model development in recent years, including improvements in speech synthesis and automatic description and annotation. Large-scale text-to-speech (TTS) models (such as VALL-E and Natural Speech 2) and audio-to-text (ATT) models (such as SALMONN and Qwen) have achieved impressive performance in traditional tasks. Leveraging large amounts of high-quality annotated data to train these models is crucial.
[0003] Existing research focuses primarily on basic audio features, such as generating intelligible speech and classifying a wide range of audio. However, there is limited research on in-depth interpretation of speech details. Manually annotating datasets is often costly, time-consuming, and limited in scope.
[0004] How to achieve multi-dimensional and detailed analysis of audio data is a technical problem that needs to be solved at present. Summary of the Invention
[0005] The present invention provides a speech annotation method and device for describing speech features, so as to solve the defects in the prior art.
[0006] The present invention provides a speech annotation method for describing speech features, comprising the following steps:
[0007] Get the original audio data;
[0008] Inputting the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is used to identify the pitch, volume, and speaking rate of the raw audio data, the speaker identification sub-model is used to identify the speaker age and gender of the raw audio data, the emotion labeling sub-model is used to identify the emotional tone of the raw audio data, and the prosody detection sub-model is used to identify the stress of the raw audio data;
[0009] The speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0010] According to a speech annotation method for speech feature description provided by the present invention, the original audio data includes: original audio;
[0011] Inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data includes:
[0012] The original audio is subjected to speech quality enhancement processing to obtain a denoised audio frequency, and the denoised audio frequency is input into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data.
[0013] According to a speech annotation method for speech feature description provided by the present invention, inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data includes:
[0014] Inputting the denoised audio data into a pre-trained signal processing sub-model to obtain the pitch, volume and speaking rate of the original audio data;
[0015] Inputting the denoised audio data into a pre-trained speaker identification sub-model to obtain the speaker age and speaker gender of the original audio data;
[0016] Inputting the denoised audio data into a pre-trained emotion annotation sub-model to obtain the emotional tone of the original audio data;
[0017] The denoised audio data is input into a pre-trained prosody detection sub-model to obtain the accent of the original audio data.
[0018] According to a speech annotation method for speech feature description provided by the present invention, the speech style recognition model further includes: a topic recognition sub-model; the original audio data further includes: a description text of the original audio;
[0019] Inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data includes:
[0020] The description text of the original audio is input into a pre-trained topic recognition sub-model to obtain the topic of the original audio data.
[0021] According to a speech annotation method for speech feature description provided by the present invention, after inputting the speech style attributes and speech recognition text into a pre-trained natural language model to obtain the natural language description text corresponding to the original audio data, the method further includes:
[0022] Obtain multiple basic speech data sets;
[0023] The multiple basic speech data sets are input into a speech annotation system to obtain an extended speech data set; wherein the speech annotation system includes: the speech style recognition model and the natural language model, and the speech annotation system is used to expand the speech style attributes of the multiple basic speech data sets.
[0024] According to a speech annotation method for speech feature description provided by the present invention, after inputting the multiple basic speech data sets into a speech annotation system to obtain an extended speech data set, the method further includes:
[0025] The speech annotation system is evaluated based on the extended speech dataset to verify the attribute recognition accuracy of the speech style recognition model and the transcription ability of the natural language model.
[0026] The present invention also provides a speech annotation device for describing speech features, comprising the following modules:
[0027] Acquisition module, used to obtain original audio data;
[0028] A speech style recognition module, configured to input the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is configured to identify the pitch, volume, and speaking rate of the raw audio data; the speaker identification sub-model is configured to identify the speaker age and gender of the raw audio data; the emotion labeling sub-model is configured to identify the emotional tone of the raw audio data; and the prosody detection sub-model is configured to identify the stress of the raw audio data;
[0029] A natural language description module is used to input the speech style attributes and speech recognition text into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0030] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the speech annotation method for describing speech features as described above is implemented.
[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described speech annotation methods for describing speech features.
[0032] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-described speech annotation methods for describing speech features.
[0033] The present invention provides a speech annotation method and device for describing speech features, which obtains original audio data; inputs the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identity recognition sub-model, an emotion annotation sub-model and a rhythm detection sub-model; the signal processing sub-model is used to identify the pitch, volume and speaking speed of the original audio data, the speaker identity recognition sub-model is used to identify the speaker age and speaker gender of the original audio data, the emotion annotation sub-model is used to identify the emotional tone of the original audio data, and the rhythm detection sub-model is used to identify the stress of the original audio data; the speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain natural language description text corresponding to the original audio data; wherein the speech recognition text is: obtained by performing speech recognition based on the original audio data; the natural language description text is: text that describes the speech features of the original audio data. It can be seen from this that the present invention proposes a speech annotation system, including a speech style recognition model and a natural language model, which respectively realize the recognition of multiple speech styles of original audio data and transcription based on multiple speech styles, forming a detailed and personalized natural language description text for the original audio data. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a flow chart of the speech annotation method for describing speech features provided by the present invention.
[0036] Figure 2 This is an overall framework diagram of the speech annotation method for speech feature description provided by the present invention.
[0037] Figure 3 This is a schematic diagram of the distribution of description sentence lengths generated by different models provided by the present invention.
[0038] Figure 4 Schematic diagram of the transcription capability evaluation of the natural language model provided by the present invention.
[0039] Figure 5 This is a schematic diagram of the age, gender and emotional tone distribution provided by the present invention.
[0040] Figure 6 It is a schematic diagram of the experimental results of the controllable speech synthesis based on natural language description on the TextrolSpeech test set provided by the present invention.
[0041] Figure 7 It is a structural diagram of a speech annotation device for describing speech features provided by the present invention.
[0042] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0043] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0044] The following combination Figures 1-8 The present invention describes a speech annotation method and device for describing speech features.
[0045] Figure 1 FIG. 1 is a flow chart of a speech annotation method for describing speech features provided by the present invention. Figure 1 As shown, the method includes the following:
[0046] Step 100: Obtain original audio data.
[0047] It should be noted that Figure 2 This is the overall framework diagram of the speech annotation method for speech feature description provided by the present invention, such as Figure 2 As shown, the original audio data includes original audio and metadata. The original audio can be, for example, a voice clip from a video website, and the metadata can be, for example, data protected in the original video website URL such as the video title, a description when the video was uploaded, etc.
[0048] Specifically, after obtaining the original audio data, the method further includes:
[0049] The original audio is subjected to speech quality enhancement processing to obtain a denoised audio frequency, and the denoised audio frequency is input into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data.
[0050] Specifically, raw audio from various sources varies in data quality and original metadata form. In order to transform the data into an enhanced format, data preprocessing is first required to improve the data quality. Figure 2 All audio clips, if not sourced from professional audiobooks, undergo voice enhancement to improve audio quality. If no audio content is provided, transcription is performed using Whisper Large-v3. Other miscellaneous information from the original audio, such as the title and original description from the data uploader, and the video classification tags from the website, also known as metadata, are transformed through a large language model to summarize the topic of the spoken sentence.
[0051] It should be noted that the speech style recognition model includes multiple sub-models: signal processing sub-model, speaker identification sub-model, emotion labeling sub-model and prosody detection sub-model, which are used to achieve more fine-grained speech style attribute recognition. Figure 2 Provide explanation.
[0052] Signal processing tools (i.e., the aforementioned signal processing sub-model): Utilize traditional signal processing tools to analyze and classify audio signals, further predicting acoustic characteristics such as volume, pitch, and speech rate. Regarding pitch, following Audiobox's precedent, different thresholds are set for pitch classification based on gender, based on the common understanding that women's voices are higher than men's.
[0053] Speaker Identification (i.e., the Speaker Identification sub-model mentioned above): The hidden layers of the audio encoder do a good job of detecting high-level speech features. Wav2vec2.0 adds some additional linear layers to identify information such as the speaker’s gender and age.
[0054] Emotional annotation model (i.e., the aforementioned emotion annotation sub-model): Emotional tone is key to language style, and it is extremely important to preserve the subtle emotional tones in the original audio to the greatest extent possible. This embodiment of the present invention sets the emotional tone of speech from professional audiobooks to "neutral." For other emotional descriptions, state-of-the-art emotion recognition technology is employed based on the language. For English audio data, a self-supervised pre-trained model called Emotion2vec is used for speech emotion representation. It provides nine categories of emotion recognition results and achieves SOTA on the SER task. For Chinese audio data, the speech annotation model SECap is employed, which is trained solely on Chinese speech and annotations. SECap helps describe fine-grained emotions in speech using diverse natural languages. It captures subtle emotional cues in audio, including intensity and fluctuation, through short sentences rather than predefined words. Customization of emotional tone makes the description of each audio segment unique, and this content forms the textual foundation for the final description of the expressiveness of the speech.
[0055] Prosody Detection Model (i.e., the prosody detection submodel mentioned above): Word stress plays a crucial role in speech expression, conveying a specific attitude beyond the lexical scope of the spoken content. Stress is often manifested as the strategic emphasis on certain words in a sentence. Therefore, in both Chinese and English, the smallest unit for stress detection is the word. Stress detection simultaneously considers two factors: acoustic information is obtained through hierarchical modeling of spectral and non-spectral features. Spectral and non-spectral features are modeled using residual convolutional neural networks and deep neural networks, respectively.
[0056] Step 200: Input the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model and a rhythm detection sub-model; the signal processing sub-model is used to identify the pitch, volume and speaking rate of the original audio data, the speaker identification sub-model is used to identify the speaker age and speaker gender of the original audio data, the emotion labeling sub-model is used to identify the emotional tone of the original audio data, and the rhythm detection sub-model is used to identify the stress of the original audio data.
[0057] Specifically, step 200 inputs the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data, including:
[0058] Step 210: Input the denoised audio data into a pre-trained signal processing sub-model to obtain the pitch, volume and speaking rate of the original audio data.
[0059] Step 220: Input the denoised audio data into a pre-trained speaker identification sub-model to obtain the speaker age and speaker gender of the original audio data.
[0060] Step 230: Input the denoised audio data into a pre-trained emotion annotation sub-model to obtain the emotional tone of the original audio data.
[0061] Step 240: Input the denoised audio data into a pre-trained prosody detection sub-model to obtain the accent of the original audio data.
[0062] Furthermore, the speech style recognition model also includes: a topic recognition sub-model; the original audio data also includes: a description text of the original audio, that is, the metadata mentioned above.
[0063] Specifically, step 200 inputs the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data, and further includes:
[0064] The description text of the original audio is input into a pre-trained topic recognition sub-model to obtain the topic of the original audio data.
[0065] It should be noted that, see Figure 2 The topic recognition sub-model is trained based on the large language model and can summarize the topics.
[0066] Step 300: Input the speech style attributes and speech recognition text into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0067] It should be noted that this embodiment of the present invention uses a fine-tuned LlaMA 2 model (the aforementioned natural language model) to generate phonetically explicit natural language descriptions from a set of speech style attributes. It is important to note that this embodiment of the present invention emphasizes vocabulary richness and accurate label expression. To standardize LlaMA 2 and achieve good results, the fine-tuning process focused on detecting invalidity and improving diversity. Existing LlaMA 2 models can misinterpret or omit input content, resulting in unusable output, such as by excluding certain labels or slightly modifying the text. Furthermore, it is necessary to prevent the inclusion of irrelevant content, including contextual continuation between multiple inputs. Therefore, this embodiment of the present invention conducts a thorough check and discards low-quality generation. To better cultivate diversity and reduce coarse connections between labels, three data augmentation methods are primarily employed: input attribute reordering, synonym replacement, and multi-round description translation. GPT-4Turbo is used to generate descriptions for a small portion of the data, while the fine-tuned LlaMA 2 takes the primary role of transcription.
[0068] Figure 3 This is a schematic diagram of the distribution of description sentence lengths generated by different models provided by the present invention, see Figure 3 , which shows the comparison of the description sentence length distribution generated by the fine-tuned LlaMA 2 model of the present invention and the related models of the prior art.
[0069] It should be noted that the goal of this embodiment of the present invention is to generate two versions of voice prompts to expand the applicability of the data. The description version includes all available attributes. In addition, the instruction version is formed by adding the voice transcript as an additional attribute.
[0070] Unified control of style and content: To achieve unified control of voice audio in text-to-voice interaction, both style and text are important.
[0071] Unified control of global and detailed style attributes: Existing models typically process the corpus and style descriptions separately through two channels, making it difficult to model the fine-grained instructions for specific words in the corpus. With the text included in the description, it is easier to model global style as well as fine-grained instructions.
[0072] Unified control of voice and audio: The unified construction form can be easily extended from voice commands to future audio command datasets, describing the overall context of sound events, voice content, and scene atmosphere.
[0073] The above is a description of the steps of the speech annotation method for describing speech features provided by the present invention. From the description of the above steps, it can be seen that according to the speech annotation method for describing speech features provided by the present invention, by obtaining original audio data; inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion annotation sub-model and a rhythm detection sub-model; the signal processing sub-model is used to identify the pitch, volume and speaking speed of the original audio data, the speaker identification sub-model is used to identify the speaker age and speaker gender of the original audio data, the emotion annotation sub-model is used to identify the emotional tone of the original audio data, and the rhythm detection sub-model is used to identify the stress of the original audio data; the speech style attributes and the speech recognition text are input into a pre-trained natural language model to obtain the natural language description text corresponding to the original audio data; wherein the speech recognition text is: obtained by performing speech recognition based on the original audio data; the natural language description text is: text that describes the speech features of the original audio data. It can be seen from this that the present invention proposes a speech annotation system, including a speech style recognition model and a natural language model, which respectively realize the recognition of multiple speech styles of original audio data and transcription based on multiple speech styles, forming a detailed and personalized natural language description text for the original audio data.
[0074] Based on the above embodiment, in this embodiment, after inputting the speech style attributes and speech recognition text into a pre-trained natural language model in step 300 to obtain the natural language description text corresponding to the original audio data, the method further includes:
[0075] Step 410: Acquire multiple basic speech data sets.
[0076] It should be noted that, considering comprehensive factors such as the audio quality of the dataset, the number and distribution of speakers, and the richness of emotional intonation, the embodiment of the present invention selected the Chinese AISHELL-3 and Zhvoice, and the English GigasSpeech-m and LibriTTS-R as the basic speech datasets.
[0077] It should be noted that, considering the high-quality corpora, such as AISHELL-3, which clearly annotates the attributes of the auxiliary speakers (gender, age group, native accent), some functions of the system were omitted according to actual circumstances when constructing the extended speech dataset.
[0078] Specifically, word stress is typically achieved through a combination of pitch changes, increased volume, prolonged speech, and strategic pauses. These various vocal cues work together to draw attention to stressed words. To better simulate the principles of stress, this embodiment of the present invention uses FastSpeech 2 as its backbone. It generates high-quality speech and independently controls phoneme-level acoustic properties such as pitch, volume, and duration. By adjusting the predicted values of these acoustic properties, loud, high-pitched, and prolonged sounds are achieved for the designed words. By testing the mixing scale factors of volume, pitch, and duration, the optimal combination that matches human hearing is determined. For the determination of stressed words, the key words of the sentence are primarily assumed to be candidates for reasonable stressed pronunciation, thereby extracting keywords from the speech transcript. The FastSpeech 2 model was pre-trained on AISHELL-3 and LibriTTS-R to regenerate stressed keywords on these two datasets. Ultimately, 63,000 and 75,000 stressed audio clips were obtained from AISHELL-3 and LibriTTS, respectively.
[0079] Step 420: Input the multiple basic speech data sets into a speech annotation system to obtain an extended speech data set; wherein the speech annotation system includes: the speech style recognition model and the natural language model, and the speech annotation system is used to expand the speech style attributes of the multiple basic speech data sets.
[0080] Step 430: Evaluate the speech annotation system based on the extended speech dataset to verify the attribute recognition accuracy of the speech style recognition model and the transcription capability of the natural language model.
[0081] It's important to note that the entire speech annotation system works by combining detailed audio analysis with language model transcription to generate natural language descriptions that automatically capture the subtle characteristics of speech expression. Therefore, verifying the accuracy of speech stylistic attributes and fine-tuning the LLM's transcription capabilities are crucial during the transcription process.
[0082] Specifically, multiple sub-models for speech style recognition were first evaluated on human-labeled data. On the AISHELL3 dataset, which provides real speaker information, the age and gender classification models based on Wav2vec 2.0 achieved accuracies of 97.72% and 87.7%, respectively. A fine-tuned version of the Emotion2vec model for speech emotion recognition achieved an accuracy of 84% on an internal English emotion dataset, outperforming other SERPs. To evaluate the performance of SECap, which describes speech emotion in short sentences, ChatGPT was used to summarize the main emotional tendencies of title sentences within the context of single-word sentiment. Results showed that SECap achieved an accuracy of 70.45% for summarizing title sentences on an internal 12-category Chinese emotion dataset.
[0083] Further, Figure 4 This is a schematic diagram of the transcription ability evaluation of the natural language model provided by the present invention, combined with Figure 3 and Figure 4 The fine-tuned LlaMA 2 provided in the embodiment of the present invention was evaluated to assess the transcription effect. Figure 3 , the description sentences generated by GPT-3.5Turbo and TextrolSpeech are used as two groups for comparison. The distribution of description sentence lengths shows that the description sentences generated by LlaMA 2 fine-tuned by the embodiment of the present invention contain more details. Figure 4 , the transcription ability of LlaMA 2 fine-tuned by the embodiment of the present invention is significantly better than TextrolSpeech and GPT-3.5Turbo.
[0084] Furthermore, we trained the reread detection models for AISHELL-3 and LibrTTS-R. On the test set, the accuracy of reread detection for AISHELL-3 reached 88.55%, while the accuracy of reread detection for LibiTTS-R reached 85.60%.
[0085] The speech annotation method for speech feature description provided in this embodiment generates a SpeechCraft dataset (i.e., the above-mentioned extended speech dataset) by applying a speech annotation system to an existing basic speech dataset. The SpeechCraft dataset contains more than 2,000,000 audio clips annotated with speech descriptions and voice commands. Figure 5 This is a schematic diagram of the age, gender and emotional tone distribution provided by the present invention, such as Figure 5As shown, gender distribution is generally balanced, with a slight skew between age groups. The majority of age groups are adolescents, young adults, and middle-aged adults, suggesting that the key demographic is likely at the most active stage of their lives. The English portion of SpeechCraft contains 36.1% of emotional data, primarily "soon," "sad," and "angry." The number of segments expressing surprise, disgust, and fear is 5,626, 4,038, and 3,223, respectively, exceeding the size of existing datasets.
[0086] Based on the above embodiments, in this embodiment, in order to verify the effectiveness of the SpeechCraft dataset, a comprehensive verification was conducted in a variety of speech and language multimodal learning tasks, including expressive speech synthesis, precise speech stress control in TTS systems, and automatic speech style description.
[0087] 1) Expressive speech synthesis. Expressive speech synthesis aims to generate high-quality speech audio that conforms to the intended speaking style. To verify the effectiveness of SpeechCraft's synthesis control in achieving the desired expressiveness, this example replicates the text-controllable TTS model Salle and trains it on both the original TextrolSpeech dataset and the SpeechCraft dataset for comparative analysis.
[0088] Salle uses the VALL-E architecture to integrate natural language style cues for accurate speech generation. It adheres to the VALL-E conditional codec language modeling architecture and produces residual vector quantization (RVQ) as the audio representation.
[0089] Specifically, the evaluation of generated speech is mainly carried out from three aspects: accuracy of style attributes, audio quality and user study.
[0090] The accuracy of style attributes is evaluated using a series of randomly selected labels, which are rewritten by GPT-3.5Turbo to reflect the diversity of all attribute dimensions. The speech style recognition model provided by the above embodiment obtains speech style attributes from the synthesized speech to evaluate the accuracy of style attribute recognition. Traditional objective evaluation indicators, namely spectral convergence score (SECS) and Melcepstral distortion (MCD), are used to evaluate the similarity of speaker and MFCC features between the synthesized speech and the original speech. This evaluation is performed using a small part of the GigaSpeech-s corpus. For user studies, the mean opinion score (MOS) was calculated for the overall naturalness of the audio and its consistency with the style cues, with a score range of 1 to 5.
[0091] Figure 6: is a schematic diagram of the experimental results of the controllable speech synthesis based on natural language description on the TextrolSpeech test set provided by the present invention, such as Figure 6 As shown in Figure 3, SpeechCraft outperforms TextrolSpeech on the English subset in all aspects. However, SpeechCraft's accuracy in pitch, volume, and speaking rate is relatively low.
[0092] 2) Accurate Speech Stress Control. This example compares the speech stress performance of the description and prompt versions of SpeechCraft. The stress accuracy of the synthesized English and Chinese speech was evaluated on a word-by-word basis. Word-level accuracy (Acc_w) indicates the accuracy of stress prediction for all word segments segmented from a sentence. Sentence-level accuracy (Acc_s) indicates the accuracy of correctly predicting stressed words based on the complete sentence, and is considered correct only when there are no misidentified stressed words. The results show that the prompt version outperforms the description version in all metrics, achieving an accuracy of 95.43% for Chinese sentences and 90.96% for English sentences. This demonstrates that the SpeechCraft dataset, enriched with specific features of stressed word instructions and stressed pronunciation, incorporates precise speech stress control, achieving significant results.
[0093] 3) Automatic Speech Style Description. Automatic speech style description goes beyond sentiment description, providing a comprehensive description that encompasses not only emotional tone but also stylistic nuances such as acoustic characteristics and speaker identity. This example replicates the state-of-the-art automatic sentiment description model, SECap, and retrains it on the description version of SpeechCraft. Leveraging semantic features extracted by the pre-trained audio encoder in SECap, the model achieves a certain degree of inter-translation of overall speech style. It is able to capture descriptive sentences that encompass acoustic characteristics, speaker identity, and emotional tone.
[0094] In summary, this paper proposes a speech annotation system for expressive interpretation. This system utilizes multiple speech style recognition and LLMs transcription methods to produce detailed and personalized descriptions for each text. Furthermore, the SpeechCraft bilingual dataset, generated by the speech annotation system, was created. This dataset contains natural language descriptions generated by the speech annotation system and has great potential for training large language models, significantly improving the performance of text-to-speech and speech-to-text.
[0095] The following describes a speech annotation device for speech feature description provided by the present invention. The speech annotation device for speech feature description described below and the speech annotation method for speech feature description described above can be referred to in correspondence with each other.
[0096] Figure 7 FIG. 1 is a structural diagram of a speech annotation device for describing speech features provided by the present invention. Figure 7 As shown, the speech annotation device for speech feature description provided by the present invention includes:
[0097] Acquisition module 701, used to acquire original audio data;
[0098] A speech style recognition module 702 is configured to input the raw audio data into a pre-trained speech style recognition model to obtain speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is configured to identify the pitch, volume, and speaking rate of the raw audio data; the speaker identification sub-model is configured to identify the speaker's age and gender of the raw audio data; the emotion labeling sub-model is configured to identify the emotional tone of the raw audio data; and the prosody detection sub-model is configured to identify the stress of the raw audio data;
[0099] The natural language description module 703 is used to input the speech style attributes and speech recognition text into a pre-trained natural language model to obtain the natural language description text corresponding to the original audio data; wherein, the speech recognition text is: obtained by performing speech recognition based on the original audio data; the natural language description text is: text that describes the speech features of the original audio data.
[0100] The present invention provides a speech annotation device for describing speech features, which obtains raw audio data; inputs the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion annotation sub-model, and a prosody detection sub-model; the signal processing sub-model is used to identify the pitch, volume, and speaking rate of the raw audio data; the speaker identification sub-model is used to identify the speaker age and gender of the raw audio data; the emotion annotation sub-model is used to identify the emotional tone of the raw audio data; and the prosody detection sub-model is used to identify the stress of the raw audio data; the speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the raw audio data; wherein the speech recognition text is obtained by performing speech recognition based on the raw audio data; and the natural language description text is a text that describes the speech features of the raw audio data. As can be seen from this, the present invention proposes a speech annotation system, including a speech style recognition model and a natural language model, which respectively realize multiple speech style recognition and transcription based on multiple speech styles for the raw audio data, thereby forming a detailed and personalized natural language description text for the raw audio data.
[0101] Based on the above embodiment, in this embodiment, the original audio data includes: original audio;
[0102] The speech style recognition module 702 is specifically configured to:
[0103] The original audio is subjected to speech quality enhancement processing to obtain a denoised audio frequency, and the denoised audio frequency is input into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data.
[0104] Based on the above embodiment, in this embodiment, the speech style recognition module 702 is specifically configured to:
[0105] Inputting the denoised audio data into a pre-trained signal processing sub-model to obtain the pitch, volume and speaking rate of the original audio data;
[0106] Inputting the denoised audio data into a pre-trained speaker identification sub-model to obtain the speaker age and speaker gender of the original audio data;
[0107] Inputting the denoised audio data into a pre-trained emotion annotation sub-model to obtain the emotional tone of the original audio data;
[0108] The denoised audio data is input into a pre-trained prosody detection sub-model to obtain the accent of the original audio data.
[0109] Based on the above embodiment, in this embodiment, the speech style recognition model further includes: a topic recognition sub-model; the original audio data further includes: a description text of the original audio;
[0110] The speech style recognition module 702 is specifically configured to:
[0111] The description text of the original audio is input into a pre-trained topic recognition sub-model to obtain the topic of the original audio data.
[0112] Based on the above embodiment, in this embodiment, the device further includes a data set expansion module, which is specifically configured to:
[0113] After inputting the speech style attributes and speech recognition text into a pre-trained natural language model to obtain natural language description text corresponding to the original audio data, multiple basic speech data sets are obtained;
[0114] The multiple basic speech data sets are input into a speech annotation system to obtain an extended speech data set; wherein the speech annotation system includes: the speech style recognition model and the natural language model, and the speech annotation system is used to expand the speech style attributes of the multiple basic speech data sets.
[0115] Based on the above embodiment, in this embodiment, the device further includes an evaluation module, which is specifically configured to:
[0116] After the multiple basic speech data sets are input into the speech annotation system to obtain an extended speech data set, the speech annotation system is evaluated based on the extended speech data set to verify the attribute recognition accuracy of the speech style recognition model and the transcription ability of the natural language model.
[0117] Figure 8 An example of a physical structure diagram of an electronic device is shown below. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a speech annotation method for speech feature description, which includes:
[0118] Get the original audio data;
[0119] Inputting the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is used to identify the pitch, volume, and speaking rate of the raw audio data, the speaker identification sub-model is used to identify the speaker age and gender of the raw audio data, the emotion labeling sub-model is used to identify the emotional tone of the raw audio data, and the prosody detection sub-model is used to identify the stress of the raw audio data;
[0120] The speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0121] Furthermore, the logic instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0122] On the other hand, the present invention further provides a computer program product, comprising a computer program, which may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the speech annotation method for speech feature description provided by the above methods, the method comprising:
[0123] Get the original audio data;
[0124] Inputting the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is used to identify the pitch, volume, and speaking rate of the raw audio data, the speaker identification sub-model is used to identify the speaker age and gender of the raw audio data, the emotion labeling sub-model is used to identify the emotional tone of the raw audio data, and the prosody detection sub-model is used to identify the stress of the raw audio data;
[0125] The speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0126] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the speech annotation method for speech feature description provided by the above methods, the method comprising:
[0127] Get the original audio data;
[0128] Inputting the raw audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the raw audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model, and a prosody detection sub-model; the signal processing sub-model is used to identify the pitch, volume, and speaking rate of the raw audio data, the speaker identification sub-model is used to identify the speaker age and gender of the raw audio data, the emotion labeling sub-model is used to identify the emotional tone of the raw audio data, and the prosody detection sub-model is used to identify the stress of the raw audio data;
[0129] The speech style attributes and speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein, the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text that describes the speech features of the original audio data.
[0130] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0131] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion 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, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A speech annotation method for speech feature description, characterized in that: include: Get the original audio data; Input the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model and a rhythm detection sub-model; the signal processing sub-model is used to identify the pitch, volume and speaking speed of the original audio data, the speaker identification sub-model is used to identify the speaker age and speaker gender of the original audio data, the emotion labeling sub-model is used to identify the emotional tone of the original audio data, and the rhythm detection sub-model is used to identify the stress of the original audio data; The speech style attribute and the speech recognition text are input into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein the speech recognition text is obtained by performing speech recognition based on the original audio data; the natural language description text is a text describing the speech features of the original audio data; the original audio data includes: the original audio; The step of inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data includes: Performing speech quality enhancement processing on the original audio to obtain a denoised audio data, and inputting the denoised audio data into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data; inputting the original audio data into the pre-trained speech style recognition model to obtain the speech style attribute of the original audio data, comprises: Inputting the denoised audio data into a pre-trained signal processing sub-model to obtain the pitch, volume and speech rate of the original audio data; Inputting the denoised audio data into a pre-trained speaker identification sub-model to obtain the speaker age and speaker gender of the original audio data; Inputting the denoised audio data into a pre-trained emotion annotation sub-model to obtain the emotional tone of the original audio data; The denoised audio data is input into a pre-trained prosody detection sub-model to obtain the accent of the original audio data; the speech style recognition model further includes: a topic recognition sub-model; the original audio data further includes: a description text of the original audio; The step of inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data includes: Inputting the description text of the original audio into a pre-trained topic recognition sub-model to obtain the topic of the original audio data; after inputting the speech style attribute and the speech recognition text into a pre-trained natural language model to obtain the natural language description text corresponding to the original audio data, the method further includes: Obtain multiple basic speech data sets; Inputting the multiple basic speech data sets into a speech annotation system to obtain an extended speech data set; wherein the speech annotation system includes: the speech style recognition model and the natural language model, and the speech annotation system is used to extend the speech style attributes of the multiple basic speech data sets; after inputting the multiple basic speech data sets into the speech annotation system to obtain the extended speech data set, the method further includes: The speech annotation system is evaluated based on the extended speech data set to verify the attribute recognition accuracy of the speech style recognition model and the transcription ability of the natural language model.
2. A speech annotation device for describing speech features, characterized in that: include: An acquisition module, used to acquire original audio data; A speech style recognition module, used for inputting the original audio data into a pre-trained speech style recognition model to obtain the speech style attributes of the original audio data; wherein the speech style recognition model includes a signal processing sub-model, a speaker identification sub-model, an emotion labeling sub-model and a rhythm detection sub-model; the signal processing sub-model is used to identify the pitch, volume and speech speed of the original audio data, the speaker identification sub-model is used to identify the speaker age and speaker gender of the original audio data, the emotion labeling sub-model is used to identify the emotional tone of the original audio data, and the rhythm detection sub-model is used to identify the stress of the original audio data; A natural language description module is used to input the speech style attributes and speech recognition text into a pre-trained natural language model to obtain a natural language description text corresponding to the original audio data; wherein the speech recognition text is obtained by performing speech recognition based on the original audio data; and the natural language description text is a text describing the speech features of the original audio data; The original audio data includes: original audio; The speech style recognition module is specifically used for: Performing speech quality enhancement processing on the original audio to obtain a denoised audio data, and inputting the denoised audio data into a pre-trained speech style recognition model to obtain the speech style attribute of the original audio data; The speech style recognition module is specifically used for: Inputting the denoised audio data into a pre-trained signal processing sub-model to obtain the pitch, volume and speech rate of the original audio data; Inputting the denoised audio data into a pre-trained speaker identification sub-model to obtain the speaker age and speaker gender of the original audio data; Inputting the denoised audio data into a pre-trained emotion annotation sub-model to obtain the emotional tone of the original audio data; Inputting the denoised audio data into a pre-trained prosody detection sub-model to obtain the accent of the original audio data; The speech style recognition model further includes: a topic recognition sub-model; the original audio data further includes: a description text of the original audio; The speech style recognition module is specifically used for: Inputting the description text of the original audio into a pre-trained topic recognition sub-model to obtain the topic of the original audio data; The device also includes a data set expansion module, which is specifically used to: After inputting the speech style attributes and the speech recognition text into a pre-trained natural language model to obtain the natural language description text corresponding to the original audio data, a plurality of basic speech data sets are obtained; Inputting the multiple basic speech data sets into a speech annotation system to obtain an extended speech data set; wherein the speech annotation system includes: the speech style recognition model and the natural language model, and the speech annotation system is used to extend the speech style attributes of the multiple basic speech data sets; The device also includes an evaluation module, which is specifically used for: After the multiple basic speech data sets are input into the speech annotation system to obtain the extended speech data set, the speech annotation system is evaluated based on the extended speech data set to verify the attribute recognition accuracy of the speech style recognition model and the transcription ability of the natural language model.
3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the speech annotation method for speech feature description as claimed in claim 1 is implemented.
4. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the speech annotation method for speech feature description as claimed in claim 1 is implemented.
5. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the speech annotation method for speech feature description as claimed in claim 1 is implemented.
Citation Information
Patent Citations
Land-air communication speaker identity recognition method and device
CN113066499A
Speech generation method and device based on pre-training language model, equipment and medium
CN116364055A
