A speech synthesis method and device for realizing stress coordination in combination with previous context
By obtaining the multi-dimensional features and information features of the target sentence and the above context, combined with the stress coordination model, the problem of limited information stress and fixed-length text stress in speech synthesis is solved, and the naturalness of speech and the accuracy of information transmission are improved.
Patent Information
- Application Number
- CN202110455076.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-04-26
AI Technical Summary
Existing speech synthesis technology fails to effectively consider the stress of information and the limited stress in fixed-length target texts, resulting in poor naturalness of speech, low accuracy of light and stress, and inaccurate information transmission.
By obtaining the multi-dimensional features of the target sentence and its preceding context sentences, combined with the information features, the preset stress determination model is used to output semantic stress, grammatical stress, lexical stress and information stress, and the stress coordination model is used for priority arrangement to ensure During the speech synthesis process, information stress and the number of stress points are fully considered.
It improves the naturalness of speech synthesis, the accuracy of light and emphasis, and the accuracy of information transmission, and solves the problem of limited information emphasis and fixed-length text emphasis in speech synthesis.
Smart Images

Figure CN115249472B
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech synthesis technology, and in particular to a speech synthesis method and device for realizing stress coordination in combination with the above context. Background Art
[0002] TTS is the process of converting language from text carrier to sound carrier by machine. It is a key module in systems such as human-computer dialogue and intelligent broadcasting. As related technologies become more mature, the naturalness of synthesized speech is becoming more and more a key point of competition among major manufacturers. Whether the rhythmic boundaries can be correctly predicted, whether the sound changes in speech flow can be grasped, whether the arrangement of stress is appropriate, and the level of fluency are the four key factors affecting the naturalness of speech. Compared with stressed languages (such as English), stress in Chinese, a tonal language, is a speech feature without explicit identification. Therefore, how to use this hidden speech feature seems to have become a key technology to improve the naturalness of speech.
[0003] Most of the current stress determination methods first select a suitable stress description system, create a hierarchically annotated stress corpus, then train and generate a prosodic word stress prediction model and a sentence stress prediction model, and finally generate the stress annotation result of each syllable based on the prosodic word stress model and the sentence stress prediction model. However, the above stress determination methods have the following disadvantages: 1) stress is only divided into two levels: prosodic word stress and sentence stress, without considering information stress. According to the focus stress assignment rule, the focus of information should be achieved through stress. In addition, communication is the most essential function of language, and information stress should be the most important stress among all stresses; 2) although the stress annotation result of each syllable is generated based on prosodic word stress and sentence stress, the stress changes caused by the context (the context of the sentence that needs to predict stress is called context) are not considered, such as the addition and disappearance of stress, stress transfer, and the rise and fall of stress priority; 3) the situation of limited stress in the fixed-length target text is not considered. At the syntactic and semantic levels, the function of stress is to emphasize. Too much stress in a text will not play the role of emphasis. Therefore, the number of stress points in a text should be controlled within a certain range.
[0004] In addition, most of the current text-to-speech conversion systems include: 1) a text analysis module, which is used to perform special symbol and sentence analysis on the text information in the mobile phone, divide the text according to the punctuation and paragraph marks in the text, and then segment the sentences in the text into words, so as to convert the text information to be converted into corresponding context information; 2) a rhythm generation module, which is used to convert the "character code" in the context information obtained by the text analysis module into a corresponding "sound code" to obtain rhythm information that follows the speech rhythm rules and has accurate pitch, sound length, sound intensity, and pause size between syllables; 3) an acoustic module, which is used to convert the rhythm information obtained by the rhythm generation module into voice format information, and transmit it to the user through the player. However, the above text-to-speech conversion system has the following disadvantages: 1) although the context information is mentioned, the essence of the context information is the voice information of the text to be synthesized (target text) itself, which is the information before and after from a smaller granularity (character / word), and is not the context information at the sentence level of the target text as a whole; 2) the influence of the context text content, that is, the semantics of the context, on the rhythm of the target sentence is ignored.
[0005] Currently, no effective solution has been proposed to the technical problems that the information stress is not taken into account in the speech synthesis process of the above-mentioned prior art, and the limited stress in the fixed-length target text is not taken into account, resulting in poor naturalness of the synthesized speech, low accuracy of stress, and low precision of information transmission. Summary of the invention
[0006] The embodiments of the present disclosure provide a speech synthesis method and device that realizes stress coordination in combination with the above context, so as to at least solve the technical problems existing in the prior art that information stress is not taken into account in the speech synthesis process and the limited stress in the fixed-length target text is not taken into account, resulting in poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission.
[0007] According to one aspect of an embodiment of the present disclosure, there is provided a speech synthesis method for realizing stress coordination in combination with a context of a preceding text, comprising: obtaining a target sentence of speech to be synthesized and a context sentence of the target sentence of the preceding text; determining multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features; determining information features of the target sentence according to text information of the context sentence of the preceding text, wherein the information features are used to indicate an information focus of stress to be assigned in the target sentence; inputting the multidimensional features and the information features into a preset stress determination model, outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress, and lexical stress; and determining a target speech corresponding to the target sentence according to the multidimensional stress and the information stress.
[0008] According to another aspect of an embodiment of the present disclosure, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, a processor executes any one of the methods described above.
[0009] According to another aspect of the embodiments of the present disclosure, there is also provided a speech synthesis device for realizing stress coordination in combination with the context of a preceding text, comprising: an acquisition module for acquiring a target sentence of the speech to be synthesized and a preceding context sentence of the target sentence; a multidimensional feature determination module for determining the multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features and lexical features; an information feature determination module for determining the information features of the target sentence according to the text information of the preceding context sentence, wherein the information features are used to indicate the information focus of the stress to be assigned in the target sentence; a stress determination module for inputting the multidimensional features and the information features into a preset stress determination model, and outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress; and a target speech determination module for determining the target speech corresponding to the target sentence according to the multidimensional stress and the information stress.
[0010] According to another aspect of an embodiment of the present disclosure, there is also provided a speech synthesis device for realizing stress coordination in combination with a context of a preceding text, comprising: a processor; and a memory connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining a target sentence of speech to be synthesized and a context sentence of the target sentence of the preceding text; determining multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features; determining information features of the target sentence according to text information of the context sentence of the preceding text, wherein the information features are used to indicate an information focus of stress to be assigned in the target sentence; inputting the multidimensional features and the information features into a preset stress determination model, outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress, and lexical stress; and determining a target speech corresponding to the target sentence according to the multidimensional stress and the information stress.
[0011] In the disclosed embodiment, when the target sentence is subjected to stress analysis, the text information of the preceding context sentence is combined to assist in analyzing the information stress of the target sentence, thereby incorporating the information stress used for communication dialogue into the stress system, combining the information stress with the stress of the semantic stress, grammatical stress, and lexical stress levels, and forming a multi-level fusion consideration of stress. Specifically, first, through a comprehensive analysis of the target sentence and its preceding context sentence, the semantic features, grammatical features, lexical features, and information features are determined. Then, through a preset stress determination model, the semantic stress, grammatical stress, lexical stress, and information stress are determined, thereby determining the multi-level stress positions. Finally, based on the semantic stress, grammatical stress, lexical stress, and information stress, the target speech corresponding to the target sentence is determined. Moreover, the present application, taking into account the limited number of stress points in the target sentence of fixed length, selects to input the sentence length (text length), semantic stress, grammatical stress, lexical stress and information stress of the target sentence into the trained stress coordination model, and the stress coordination model analyzes the number of stress points of the target sentence according to the sentence length, and then comprehensively considers the stress priority, and coordinates the semantic stress, grammatical stress, lexical stress and information stress. Thus, in this way, the information stress is fully considered in the process of speech synthesis, and the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted are effectively improved. Moreover, in the process of speech synthesis, the limited stress in the target text of fixed length is fully considered, and the stress priority is comprehensively considered by the pre-trained stress coordination model, and stress coordination is performed, which effectively improves the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted. This solves the technical problems existing in the prior art of not taking information stress into account during speech synthesis and not taking into account the limited stress in a fixed-length target text, which leads to poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0013] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to Embodiment 1 of the present disclosure;
[0014] Figure 2 is a flowchart of a speech synthesis method for realizing stress coordination in combination with the above context according to the first aspect of Embodiment 1 of the present disclosure;
[0015] Figure 3 It is a schematic diagram of the overall process of the speech synthesis method for realizing stress coordination in combination with the above context according to Embodiment 1 of the present disclosure;
[0016] Figure 4a is a flow chart of training an accent determination model according to Embodiment 1 of the present disclosure;
[0017] Figure 4b is a schematic diagram of a process of training a stress coordination model according to Embodiment 1 of the present disclosure;
[0018] Figure 5 is a schematic diagram of a speech synthesis device for realizing stress coordination in combination with the above context according to Embodiment 2 of the present disclosure; and
[0019] Figure 6 It is a schematic diagram of a speech synthesis device for realizing stress coordination in combination with the above context according to Embodiment 3 of the present disclosure. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0022] First, some nouns or terms that appear in the process of describing the embodiments of the present disclosure are subject to the following explanations:
[0023] Term 1: TTS technology (text to speech), text-to-speech technology, also known as speech synthesis and text-to-speech conversion technology.
[0024] Term 2: SVM (support vector machines) is a binary classification model whose basic model is a linear classifier with the largest interval defined in the feature space.
[0025] Term 3: Information stress principle. Every language has sentence stress and they all follow the same principle, namely the "information stress principle". Words with large amounts of information should be stressed, while words with small amounts of information should not be stressed. This principle can explain a series of stress phenomena, including Mandarin sentence stress, focal stress, contrastive stress, the relationship between stress and grammar, and the relationship between stress and word frequency. Stress can be divided into: word stress, phrase stress, and sentence stress. The latter two can be collectively referred to as sentence stress. Word stress is generally more stable, while sentence stress is very variable. In a sentence, in fact, any word can be stressed to express different emphasis, and the same word may be stressed differently depending on whether it is often used by different people.
[0026] Term 4: Morpheme, a linguistic term, refers to the smallest combination of sound and meaning in a language;
[0027] Term 5: Simple word. In Chinese, a word consisting of one morpheme is called a simple word.
[0028] Term 6: Prosodic boundaries are the product of prosodic segmentation, i.e. the boundaries between prosodic units when speech chunks are separated or combined. Prosodic boundaries play an important role in speech communication, syntactic disambiguation, and improving the naturalness and intelligibility of speech synthesis.
[0029] Example 1
[0030] According to this embodiment, an embodiment of a speech synthesis method for realizing stress coordination in combination with the above context is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] The method embodiment provided in this embodiment can be executed in a server or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computing device for implementing a speech synthesis method for realizing stress coordination in combination with the above context. Figure 1As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0032] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components of the computing device. As involved in the embodiments of the present disclosure, the data processing circuitry acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0033] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the speech synthesis method for realizing stress coordination in combination with the above context in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the speech synthesis method for realizing stress coordination in combination with the above context of the above application program is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
[0035] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.
[0036] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.
[0037] In the above operating environment, according to the first aspect of this embodiment, a speech synthesis method is provided that realizes stress coordination in combination with the above context. Figure 2 A schematic diagram showing the process of the method is shown in FIG. Figure 2 As shown, the method includes:
[0038] S201: Obtaining a target sentence of speech to be synthesized and a context sentence above the target sentence;
[0039] S202: determining the multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features;
[0040] S203: determining information features of the target sentence according to the text information of the previous context sentence, wherein the information features are used to indicate the information focus to be assigned stress in the target sentence;
[0041] S204: inputting the multidimensional features and the information features into a preset stress determination model, and outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress, and lexical stress; and
[0042] S205: Determine a target speech corresponding to the target sentence according to the multi-dimensional stress and the information stress.
[0043] As described in the above background technology, the existing stress determination method only divides stress into two levels: prosodic word stress and sentence stress, without considering information stress. According to the Focus Stress Assignment rule, the focus of information should be achieved through stress means. Although it is considered that the stress annotation result of each syllable is generated based on the prosodic word stress and sentence stress, the stress changes caused by the context (the context of the sentence that needs to predict the stress is called the context) are not considered, such as the addition and disappearance of stress, stress transfer, and the rise and fall of stress priority. In addition, although some speech synthesis systems mention context information, the essence of context information is the speech information of the text to be synthesized (target text) itself, which is the information before and after from a smaller granularity (word / character), not the context information of the sentence level of the target text as a whole, and ignores the influence of the context text content, that is, the semantics of the context on the rhythm of the target sentence.
[0044] In view of this, refer to Figure 3 As shown, the speech synthesis method proposed in this embodiment first obtains the target sentence of the speech to be synthesized and the previous context sentence of the target sentence during the speech synthesis process of the target sentence. For example, in the intelligent customer service system, the target sentence in the dialogue system and the previous sentence of the target sentence (corresponding to the previous context sentence) are obtained. Then, according to the preset prediction algorithm, the semantic features, grammatical features and lexical features of the target sentence are determined. Among them, the semantic features mainly highlight the semantic relationship of the target sentence, including: the number of arguments in the sentence, whether the argument is the agent, whether it is the patient, whether it is a tool, whether it is a method, and whether it is a purpose. For example, in the case where the target sentence is "I eat apples", the number of arguments in the sentence is two, including the argument "I" and the argument "apple". Grammatical features mainly highlight the relationship between sentence patterns (such as subject-predicate sentences, non-subject-predicate sentences, etc.) and various grammatical components (words, phrases) in the sentence (subject-predicate relationship, parallel relationship, modification relationship, complement relationship, etc.). Lexical features mainly highlight lexical structure, including the following sub-features: the number of characters in a word, the number of morphemes (monomorpheme-constituent words / bimorpheme-constituent words), whether it is a simple word ("mahu", "grape"), whether it contains affixes ("lao xu", "shou zi"), whether it is a compound word, whether the morphemes within the word are in a parallel relationship ("hands and feet"), whether it is a subject-predicate relationship ("earthquake"), whether it is a modification relationship ("white snow", "run fast"), whether it is a complement relationship ("write finished"), etc.
[0045] Furthermore, the information features of the target sentence are determined based on the text information of the previous context sentence, wherein the information features are used to indicate the information focus to be assigned stress in the target sentence. Specifically, the information focus of the target sentence is determined based on the text information of the previous context sentence and combined with the semantics of the target sentence. For example: in a dialogue system, the previous context sentence is "Who told you that you don't have to pay back the money?", then it can be inferred that the expected information focus of the target sentence is the implementer of the information "Telling you that you don't have to pay back the money", and combined with the target sentence: "The one who told me this information was your leader", at this time it can be inferred that "your leader" in the target sentence is the information focus and needs to be assigned a stress point.
[0046] Thus, the multidimensional features and information features are input into the preset stress determination model, and the multidimensional stress and information stress are output, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress. Among them, the preset stress determination model is composed of four SVM models, which respectively predict the stress of the semantic level, grammatical level, lexical level and information level, and output semantic stress, grammatical stress, lexical stress and information stress. Finally, according to the semantic stress, grammatical stress, lexical stress and information stress, the target speech corresponding to the target sentence is determined.
[0047] Thus, in this way, when the present embodiment performs stress analysis on the target sentence, the text information of the context sentence above is combined to assist in analyzing the information stress of the target sentence, thereby incorporating the information stress used for communication dialogue into the stress system, combining the information stress with the stress of the semantic stress, grammatical stress and lexical stress, and forming a multi-level fusion consideration of stress. Specifically, firstly, the semantic features, grammatical features, lexical features and information features are determined by comprehensive analysis of the target sentence and its context sentence above. Then, the semantic stress, grammatical stress, lexical stress and information stress are determined by a preset stress determination model, thereby determining the multi-level stress position. Finally, the target speech corresponding to the target sentence is determined according to the semantic stress, grammatical stress, lexical stress and information stress. Thus, the information stress is fully considered in the process of speech synthesis, and the naturalness of the synthesized target speech, the accuracy of the light and light stress and the accuracy of the information transmitted are effectively improved. This solves the technical problem in the prior art that information stress is not taken into account during speech synthesis, resulting in poor naturalness of the synthesized speech, low accuracy of stress, and low precision of information transmission.
[0048] Optionally, the preset stress determination model includes a semantic stress determination model, a grammatical stress determination model, a lexical stress determination model and an information stress determination model, and the operations of inputting multidimensional features and information features into the preset stress determination model and outputting multidimensional stress and information stress include: inputting semantic features into the semantic stress determination model and outputting semantic stress; inputting grammatical features into the grammatical stress determination model and outputting grammatical stress; inputting lexical features into the semantic stress determination model and outputting lexical stress; and inputting information features into the semantic stress determination model and outputting information stress.
[0049] Specifically, the preset stress determination model can be designed as a multi-layer independent stress determination model, including semantic stress determination model, grammatical stress determination model, lexical stress determination model and information stress determination model.Wherein, the semantic stress determination model, grammatical stress determination model, lexical stress determination model and information stress determination model can all be a binary classification model (such as SVM, support vector machine), for predicting the stress of each dimensional feature.Specifically, after each dimensional feature is vectorized, normalization is performed, and the semantic features, grammatical features, lexical features and information features after the normalization are respectively input into the semantic stress determination model, grammatical stress determination model, lexical stress determination model and information stress determination model, and the stress determination model is independently predicted at the semantic level, grammatical level, lexical level and information level successively through each corresponding stress, thereby efficiently and accurately outputting the semantic stress, grammatical stress, lexical stress and information stress of the target sentence.
[0050] Optionally, the operation of determining a target speech corresponding to a target sentence based on multidimensional stress and information stress includes: inputting the sentence length, multidimensional stress and information stress of the target sentence into a preset stress coordination model, and determining a stress point planning result corresponding to the target sentence, wherein the preset stress coordination model is trained based on the sentence length, sample multidimensional stress and sample information stress of a sample sentence; determining the acoustic features of the target sentence based on the stress point planning result; and determining the target speech corresponding to the target sentence based on the acoustic features.
[0051] As described in the background technology above, at the syntactic and semantic levels, stress serves to emphasize. Too many stresses in a text cannot serve to emphasize the text, so the number of stress points in a text should be controlled within a certain range. However, existing speech synthesis methods do not take into account the limited stress in a fixed-length target text, resulting in poor naturalness of the synthesized speech, low accuracy of stress, and low accuracy of information transmission.
[0052] In view of this, refer to Figure 3As shown, the present embodiment also provides a stress coordination model specifically for stress coordination. In a preferred embodiment, since the sentence length affects the number of stress points finally determined in the text to be synthesized (for example, the longer the sentence, the more stress points the sentence has), in the process of training the stress coordination model, reference is made to the stress coordination model. Figure 4b As shown, the sentence length of the sample sentence (directly calculate the text length), information stress, semantic stress, grammatical stress and lexical stress can be taken as input x, and the final stress point planning result of manual annotation (this annotation needs to be completed at the first annotation, and the manual stress annotation includes not only independent semantic stress, grammatical stress, lexical stress and information stress annotation, but also the final stress annotation result of the text) can be taken as output y to train the stress coordination model under stress conditions.
[0053] Thus, in this embodiment, considering the limited number of stress points in the target sentence of fixed length, the sentence length (text length), semantic stress, grammatical stress, lexical stress and information stress of the target sentence are selected to be input into the trained stress coordination model, and the stress coordination model analyzes the number of stress points of the target sentence according to the sentence length, and then comprehensively considers the stress priority, and coordinates the semantic stress, grammatical stress, lexical stress and information stress. In particular, when multiple levels of stress send contradictions, the priority of information stress should be higher than other stresses. Thus, in this way, when the number of stress points (i.e., stress positions) of the target sentence is limited, the stress priority can be comprehensively considered by the pre-trained stress coordination model, and stress coordination can be performed, thereby outputting a reasonable and accurate stress point planning result, and then according to the stress point planning result, the acoustic features of the target sentence are determined, and finally according to the acoustic features, the target speech corresponding to the target sentence is determined. Therefore, in the process of speech synthesis, the limited stress in the fixed-length target text is fully considered, and the stress priority is comprehensively considered by using the pre-trained stress coordination model to coordinate the stress, which effectively improves the naturalness of the synthesized target speech, the accuracy of the stress, and the accuracy of the information transmitted. This solves the technical problem that the limited stress in the fixed-length target text is not considered in the speech synthesis process in the prior art, resulting in poor naturalness of the synthesized speech, low accuracy of the stress, and low accuracy of the information transmitted.
[0054] Optionally, the operation of determining the multidimensional features of the target sentence according to a preset prediction algorithm includes: predicting the rhythmic boundaries of the target sentence, determining the rhythmic units of each level of the target sentence, wherein the rhythmic units of each level include metrical words, rhythmic phrases and intonation phrases; and determining the multidimensional features of the target sentence according to the rhythmic units of each level.
[0055] Specifically, refer to Figure 3As shown, according to the preset prediction algorithm, in the operation process of determining the multi-dimensional features of the target sentence, the prosodic boundary of the target sentence is first predicted, so as to determine the prosodic units of the target sentence at all levels. Among them, the prosodic units at all levels mainly include: prosodic words, prosodic phrases and intonation phrases. Prosodic units are language segments separated by prosodic boundaries. For example, if the target sentence is "He bought a pound of peaches", then the prosodic boundaries are located after "he", after "le", and after "jin". The sentences separated by prosodic boundaries are in the following form: he|bought|a pound|peaches, so the prosodic units are: he, bought, a pound, peaches. Prosodic units can be divided into three levels from small to large: prosodic words, prosodic phrases and intonation phrases. Since semantic features, grammatical features and lexical features are required when predicting the stress of prosodic units at three levels, it is necessary to analyze the multi-dimensional features of the target sentence according to the prosodic units at all levels, so as to determine the multi-dimensional features of the target sentence. Among them, the multi-dimensional features include semantic features, grammatical features and lexical features. In this way, the semantic, grammatical, and lexical features of the target sentence can be determined quickly and accurately.
[0056] Optionally, the operation of determining a target speech corresponding to a target sentence based on multidimensional stress and information stress also includes: determining and selecting multidimensional stress and information stress using preset stress priority determination rules in combination with the length of the target sentence; determining the acoustic features of the target sentence based on the results of the determination and selection; and determining a target speech corresponding to the target sentence based on the acoustic features.
[0057] Specifically, in the operation process of determining the target speech corresponding to the target sentence according to the multidimensional stress and information stress, the present embodiment can also use the preset stress priority determination rule and combine the sentence length of the target sentence to determine and choose the multidimensional stress and information stress. In other words, when coordinating the stress of each layer, the stress priority determination rule can also be given in advance, that is, the stress coordination model can be replaced by the priority determination and selection rule, so as to achieve the coordination of multiple stresses. Then, according to the result of the determination and selection (that is, the stress coordination result), the acoustic features of the target sentence are determined. Finally, according to the acoustic features, the target speech corresponding to the target sentence is determined. Thus, in the process of speech synthesis, the situation of limited stress in the target text of fixed length is fully taken into account, and the stress priority is comprehensively considered by using the pre-given stress priority determination rule, and the stress coordination is carried out, which effectively improves the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted. This solves the technical problems existing in the prior art of not taking information stress into account during speech synthesis and not taking into account the limited stress in a fixed-length target text, which leads to poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission.
[0058] Optionally, the method further includes: using the features of each dimension of the sample sentence as the input x, and using the manually marked stress result of the sample sentence as the output y, respectively training a semantic stress determination model, a syntactic stress determination model, a lexical stress determination model, and an information stress determination model, where the features of each dimension of the sample sentence include sample semantic features, sample syntactic features, sample lexical features, and sample information features.
[0059] Specifically, referring to Figure 4a As shown, during the process of training the stress determination model, the features of each dimension of the sample sentence (semantic features, syntactic features, lexical features, and information features, where the information features are used to display non-stress features and stress features) can be used as the input x, and the manually marked stress result of the sample sentence (including information stress, semantic stress, syntactic stress, and lexical stress) can be used as the output y to independently predict stresses at each level, thereby realizing the independent training of the semantic stress determination model, the syntactic stress determination model, the lexical stress determination model, and the information stress determination model.
[0060] In addition, this embodiment can also be based on the speech synthesis process of stress coordination of the above context sentence, visualize the stress coordination result, and draw a speech flow stress transfer diagram.
[0061] It should be particularly noted that although this application is described by taking the stress prediction of Mandarin Chinese as an example, the process of stress coordination based on the context is not limited to language types. As for some special language types, in addition to the stress dimensions mentioned in this application, which other dimensions are needed will be the focus of our future research. For example: Compared with Mandarin Chinese, the minimum stress difference pair in Beijing dialect is more strict. As shown in the following figure: In the word "huí xiāng", the second syllable "xiāng" is a semi-light tone, with a shorter sound length than one syllable, and "huí" is relatively a semi-heavy tone, with a longer sound length than one syllable. However, in the word "huí xiāng", both syllables are equally stressed, with equal sound lengths.
[0062] This application is mainly used in a dialogue system and can also be a single-role voice broadcast. The difference in context in the two scenarios lies in whether it is the same role or different roles, but there is context in both cases, and context is crucial for the determination of information stress.
[0063] Thus, when the present application performs stress analysis on the target sentence, the text information of the context sentence above is combined to assist in analyzing the information stress of the target sentence, thereby incorporating the information stress used for communication dialogue into the stress system, combining the information stress with the stress of the semantic stress, grammatical stress and lexical stress, and forming a multi-level fusion consideration of stress. Specifically, first, through a comprehensive analysis of the target sentence and its context sentence above, the semantic features, grammatical features, lexical features and information features are determined. Then, through a preset stress determination model, the semantic stress, grammatical stress, lexical stress and information stress are determined, thereby determining the multi-level stress positions. Finally, according to the semantic stress, grammatical stress, lexical stress and information stress, the target voice corresponding to the target sentence is determined. Moreover, the present application, taking into account the limited number of stress points in the target sentence of fixed length, selects to input the sentence length (text length), semantic stress, grammatical stress, lexical stress and information stress of the target sentence into the trained stress coordination model, and the stress coordination model analyzes the number of stress points of the target sentence according to the sentence length, and then comprehensively considers the stress priority, and coordinates the semantic stress, grammatical stress, lexical stress and information stress. Thus, in this way, the information stress is fully considered in the process of speech synthesis, and the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted are effectively improved. Moreover, in the process of speech synthesis, the limited stress in the target text of fixed length is fully considered, and the stress priority is comprehensively considered by the pre-trained stress coordination model, and stress coordination is performed, which effectively improves the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted. This solves the technical problems existing in the prior art of not taking information stress into account during speech synthesis and not taking into account the limited stress in a fixed-length target text, which leads to poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission.
[0064] In addition, reference Figure 1 As shown, according to the second aspect of this embodiment, a storage medium is provided. The storage medium includes a stored program, wherein when the program is running, a processor executes any one of the above methods.
[0065] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0066] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0067] Example 2
[0068] Figure 5 The device 500 for synthesizing speech according to this embodiment for implementing stress coordination in combination with the above context is shown. The device 500 corresponds to the method according to the first aspect of embodiment 1. Figure 5 As shown, the device 500 includes: an acquisition module 510, which is used to acquire a target sentence of speech to be synthesized and a previous context sentence of the target sentence; a multidimensional feature determination module 520, which is used to determine the multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features and lexical features; an information feature determination module 530, which is used to determine the information features of the target sentence according to the text information of the previous context sentence, wherein the information features are used to indicate the information focus of the target sentence to be assigned stress; a stress determination module 540, which is used to input the multidimensional features and the information features into a preset stress determination model, and output multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress; and a target speech determination module 550, which is used to determine the target speech corresponding to the target sentence according to the multidimensional stress and the information stress.
[0069] Optionally, the preset stress determination model includes a semantic stress determination model, a grammatical stress determination model, a lexical stress determination model and an information stress determination model, and the stress determination module 540 includes: a semantic stress determination submodule, used to input semantic features into the semantic stress determination model and output semantic stress; a grammatical stress determination submodule, used to input grammatical features into the grammatical stress determination model and output grammatical stress; a lexical stress determination submodule, used to input lexical features into the semantic stress determination model and output lexical stress; and an information stress determination submodule, used to input information features into the semantic stress determination model and output information stress.
[0070] Optionally, the target speech determination module 550 includes: a stress coordination submodule, which is used to input the sentence length, multi-dimensional stress and information stress of the target sentence into a preset stress coordination model to determine the stress point planning result corresponding to the target sentence, wherein the preset stress coordination model is trained based on the sentence length, sample multi-dimensional stress and sample information stress of the sample sentence; a first acoustic feature determination submodule, which is used to determine the acoustic features of the target sentence according to the stress point planning result; and a first target speech determination submodule, which is used to determine the target speech corresponding to the target sentence according to the acoustic features.
[0071] Optionally, the multidimensional feature determination module 520 includes: a rhythmic boundary prediction submodule, which is used to predict the rhythmic boundaries of the target sentence and determine the rhythmic units of each level of the target sentence, wherein the rhythmic units at each level include metrical words, rhythmic phrases and intonation phrases; and a multidimensional feature determination submodule, which is used to determine the multidimensional features of the target sentence according to the rhythmic units at each level.
[0072] Optionally, the target speech determination module 550 also includes: a stress priority determination submodule, which is used to determine and select multidimensional stress and information stress by using preset stress priority determination rules and combining the sentence length of the target sentence; a second acoustic feature determination submodule, which is used to determine the acoustic features of the target sentence based on the results of the determination and selection; and a second target speech determination submodule, which is used to determine the target speech corresponding to the target sentence based on the acoustic features.
[0073] Optionally, the device 500 also includes: a stress determination model training module, which is used to take the various dimensional features of the sample sentence as input x, and the manually marked stress results of the sample sentence as output y, and train the semantic stress determination model, the grammatical stress determination model, the lexical stress determination model and the information stress determination model respectively, wherein the various dimensional features of the sample sentence include sample semantic features, sample grammatical features, sample lexical features, and sample information features.
[0074] Optionally, the device 500 also includes: a stress coordination model training module, which is used to take the sentence length of the sample sentence and the information stress, semantic stress, grammatical stress, and lexical stress of the sample sentence as input x, and take the manually marked stress planning result of the sample sentence as output y, to train the stress coordination model, wherein the manually marked stress planning result includes the manually marked semantic stress, grammatical stress, lexical stress and the final stress marking result of the sample sentence.
[0075] Thus, according to the present embodiment, when the target sentence is subjected to stress analysis, the text information of the preceding context sentence is combined to assist in analyzing the information stress of the target sentence, thereby incorporating the information stress used for communication dialogue into the stress system, combining the information stress with the stress of the semantic stress, grammatical stress, and lexical stress levels, and forming a multi-level fusion consideration of stress. Specifically, first, through a comprehensive analysis of the target sentence and its preceding context sentence, the semantic features, grammatical features, lexical features, and information features are determined. Then, through a preset stress determination model, the semantic stress, grammatical stress, lexical stress, and information stress are determined, thereby determining the multi-level stress positions. Finally, according to the semantic stress, grammatical stress, lexical stress, and information stress, the target speech corresponding to the target sentence is determined. Moreover, the present application, taking into account the limited number of stress points in the target sentence of fixed length, selects to input the sentence length (text length), semantic stress, grammatical stress, lexical stress and information stress of the target sentence into the trained stress coordination model, and the stress coordination model analyzes the number of stress points of the target sentence according to the sentence length, and then comprehensively considers the stress priority, and coordinates the semantic stress, grammatical stress, lexical stress and information stress. Thus, in this way, the information stress is fully considered in the process of speech synthesis, and the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted are effectively improved. Moreover, in the process of speech synthesis, the limited stress in the target text of fixed length is fully considered, and the stress priority is comprehensively considered by the pre-trained stress coordination model, and stress coordination is performed, which effectively improves the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted. This solves the technical problems existing in the prior art of not taking information stress into account during speech synthesis and not taking into account the limited stress in a fixed-length target text, which leads to poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission.
[0076] Example 3
[0077] Figure 6 The device 600 for synthesizing speech according to this embodiment for implementing stress coordination in combination with the above context is shown. The device 600 corresponds to the method according to the first aspect of the embodiment 1. Figure 6As shown, the device 600 includes: a processor 610; and a memory 620, which is connected to the processor 610 and is used to provide the processor 610 with instructions for processing the following processing steps: obtaining a target sentence of speech to be synthesized and a context sentence above the target sentence; determining multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features; determining information features of the target sentence according to text information of the context sentence above, wherein the information features are used to indicate an information focus of stress to be assigned in the target sentence; inputting the multidimensional features and the information features into a preset stress determination model, outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress, and lexical stress; and determining a target speech corresponding to the target sentence according to the multidimensional stress and the information stress.
[0078] Optionally, the preset stress determination model includes a semantic stress determination model, a grammatical stress determination model, a lexical stress determination model and an information stress determination model, and the operations of inputting multidimensional features and information features into the preset stress determination model and outputting multidimensional stress and information stress include: inputting semantic features into the semantic stress determination model and outputting semantic stress; inputting grammatical features into the grammatical stress determination model and outputting grammatical stress; inputting lexical features into the semantic stress determination model and outputting lexical stress; and inputting information features into the semantic stress determination model and outputting information stress.
[0079] Optionally, the operation of determining a target speech corresponding to a target sentence based on multidimensional stress and information stress includes: inputting the sentence length, multidimensional stress and information stress of the target sentence into a preset stress coordination model, and determining a stress point planning result corresponding to the target sentence, wherein the preset stress coordination model is trained based on the sentence length, sample multidimensional stress and sample information stress of a sample sentence; determining the acoustic features of the target sentence based on the stress point planning result; and determining the target speech corresponding to the target sentence based on the acoustic features.
[0080] Optionally, the operation of determining the multidimensional features of the target sentence according to a preset prediction algorithm includes: predicting the rhythmic boundaries of the target sentence, determining the rhythmic units of each level of the target sentence, wherein the rhythmic units of each level include metrical words, rhythmic phrases and intonation phrases; and determining the multidimensional features of the target sentence according to the rhythmic units of each level.
[0081] Optionally, the operation of determining a target speech corresponding to a target sentence based on multidimensional stress and information stress also includes: determining and selecting multidimensional stress and information stress using preset stress priority determination rules in combination with the length of the target sentence; determining the acoustic features of the target sentence based on the results of the determination and selection; and determining a target speech corresponding to the target sentence based on the acoustic features.
[0082] Optionally, the memory 620 is also used to provide instructions for the processor 610 to process the following processing steps: taking the various dimensional features of the sample sentence as input x, taking the manually marked stress results of the sample sentence as output y, and training a semantic stress determination model, a grammatical stress determination model, a lexical stress determination model, and an information stress determination model respectively, wherein the various dimensional features of the sample sentence include sample semantic features, sample grammatical features, sample lexical features, and sample information features.
[0083] Optionally, the memory 620 is further configured to provide the processor 610 with instructions for processing the following processing steps:
[0084] The sentence length of the sample sentence and the information stress, semantic stress, grammatical stress, and lexical stress of the sample sentence are taken as input x, and the manually marked stress planning results of the sample sentence are taken as output y to train the stress coordination model, where the manually marked stress planning results include the manually marked semantic stress, grammatical stress, lexical stress and the final stress marking results of the sample sentence.
[0085] Thus, according to the present embodiment, when the target sentence is subjected to stress analysis, the text information of the preceding context sentence is combined to assist in analyzing the information stress of the target sentence, thereby incorporating the information stress used for communication dialogue into the stress system, combining the information stress with the stress of the semantic stress, grammatical stress, and lexical stress levels, and forming a multi-level fusion consideration of stress. Specifically, first, through a comprehensive analysis of the target sentence and its preceding context sentence, the semantic features, grammatical features, lexical features, and information features are determined. Then, through a preset stress determination model, the semantic stress, grammatical stress, lexical stress, and information stress are determined, thereby determining the multi-level stress positions. Finally, according to the semantic stress, grammatical stress, lexical stress, and information stress, the target speech corresponding to the target sentence is determined. Moreover, the present application, taking into account the limited number of stress points in the target sentence of fixed length, selects to input the sentence length (text length), semantic stress, grammatical stress, lexical stress and information stress of the target sentence into the trained stress coordination model, and the stress coordination model analyzes the number of stress points of the target sentence according to the sentence length, and then comprehensively considers the stress priority, and coordinates the semantic stress, grammatical stress, lexical stress and information stress. Thus, in this way, the information stress is fully considered in the process of speech synthesis, and the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted are effectively improved. Moreover, in the process of speech synthesis, the limited stress in the target text of fixed length is fully considered, and the stress priority is comprehensively considered by the pre-trained stress coordination model, and stress coordination is performed, which effectively improves the naturalness of the synthesized target speech, the accuracy of the light and light stress, and the accuracy of the information transmitted. This solves the technical problems existing in the prior art of not taking information stress into account during speech synthesis and not taking into account the limited stress in a fixed-length target text, which leads to poor naturalness of the synthesized speech, low accuracy of stress and low precision of information transmission.
[0086] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0087] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0088] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0092] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A speech synthesis method for realizing stress coordination in combination with the context of the preceding text, characterized in that: include: Acquire a target sentence of speech to be synthesized and a context sentence above the target sentence; Determining the multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features; Determining information features of the target sentence based on text information of the preceding context sentence, wherein the information features are used to indicate an information focus in the target sentence to which stress is to be assigned; Inputting the multidimensional features and the information features into a preset stress determination model, and outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress; as well as A target speech corresponding to the target sentence is determined according to the multi-dimensional stress and the information stress.
2. The method according to claim 1, characterized in that: The preset stress determination model includes a semantic stress determination model, a grammatical stress determination model, a lexical stress determination model, and an information stress determination model, and the multidimensional features and the information features are input into the preset stress determination model, and the operation of outputting the multidimensional stress and the information stress includes: Inputting the semantic feature into the semantic stress determination model, and outputting the semantic stress; Inputting the grammatical feature into the grammatical stress determination model and outputting the grammatical stress; Inputting the lexical features into the semantic stress determination model and outputting the lexical stress; and The information feature is input into the semantic stress determination model, and the information stress is output.
3. The method according to claim 1, characterized in that The operation of determining a target speech corresponding to the target sentence according to the multi-dimensional stress and the information stress includes: Inputting the sentence length of the target sentence, the multidimensional stress, and the information stress into a preset stress coordination model to determine a stress point planning result corresponding to the target sentence, wherein the preset stress coordination model is obtained based on the sentence length of a sample sentence, the sample multidimensional stress, and the sample information stress training; Determining the acoustic features of the target sentence according to the stress point planning result; and According to the acoustic features, a target speech corresponding to the target sentence is determined.
4. The method according to claim 1, characterized in that: The operation of determining the multi-dimensional features of the target sentence according to a preset prediction algorithm includes: Predicting the prosodic boundaries of the target sentence to determine prosodic units of each level of the target sentence, wherein the prosodic units of each level include prosodic words, prosodic phrases, and intonation phrases; and The multi-dimensional features of the target sentence are determined according to the prosodic units at each level.
5. The method according to claim 1, characterized in that The operation of determining a target speech corresponding to the target sentence according to the multi-dimensional stress and the information stress further includes: Using a preset stress priority determination rule and combining the length of the target sentence, the multi-dimensional stress and the information stress are determined and selected; Determining the acoustic features of the target sentence according to the results of the determination and selection; and According to the acoustic features, a target speech corresponding to the target sentence is determined.
6. The method according to claim 2, characterized in that Also includes: The various dimensional features of the sample sentence are taken as input x, and the manually marked stress results of the sample sentence are taken as output y, and the semantic stress determination model, the grammatical stress determination model, the lexical stress determination model and the information stress determination model are trained respectively, wherein the various dimensional features of the sample sentence include sample semantic features, sample grammatical features, sample lexical features and sample information features.
7. The method according to claim 3, characterized in that Also includes: The sentence length of a sample sentence and the information stress, semantic stress, grammatical stress and lexical stress of the sample sentence are taken as input x, and the manually marked stress planning result of the sample sentence is taken as output y, to train the stress coordination model, wherein the manually marked stress planning result includes the manually marked semantic stress, grammatical stress, lexical stress and the final stress marking result of the sample sentence.
8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the processor executes the method according to any one of claims 1 to 7.
9. A speech synthesis device for realizing stress coordination in combination with the context of the preceding text, characterized in that: include: An acquisition module, used to acquire a target sentence of speech to be synthesized and a context sentence above the target sentence; A multi-dimensional feature determination module, used to determine the multi-dimensional features of the target sentence according to a preset prediction algorithm, wherein the multi-dimensional features include semantic features, grammatical features and lexical features; An information feature determination module, used to determine the information feature of the target sentence according to the text information of the previous context sentence, wherein the information feature is used to indicate the information focus to be assigned stress in the target sentence; A stress determination module, used for inputting the multidimensional features and the information features into a preset stress determination model, and outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress; as well as The target speech determination module is used to determine the target speech corresponding to the target sentence according to the multi-dimensional stress and the information stress.
10. A speech synthesis device for realizing stress coordination in combination with the context of the preceding text, characterized in that: include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: Acquire a target sentence of speech to be synthesized and a context sentence above the target sentence; Determining the multidimensional features of the target sentence according to a preset prediction algorithm, wherein the multidimensional features include semantic features, grammatical features, and lexical features; Determining information features of the target sentence based on text information of the preceding context sentence, wherein the information features are used to indicate an information focus in the target sentence to which stress is to be assigned; Inputting the multidimensional features and the information features into a preset stress determination model, and outputting multidimensional stress and information stress, wherein the multidimensional stress includes semantic stress, grammatical stress and lexical stress; as well as A target speech corresponding to the target sentence is determined according to the multi-dimensional stress and the information stress.
