This application is based on and hereby claims priority to German Application No. 100 18 134.1 filed on Apr. 12, 2000, the contents of which are hereby incorporated by reference.
1. Field of the Invention
The present invention relates to a method for determining prosodic markers and a device for implementing the method.
2. Description of the Related Art
In the conditioning of unknown text for speech synthesis in a TTS system (“text to speech” systems) or text/speech conversion systems, an essential step is the conditioning and structuring of the text for the subsequent generation of the prosody. In order to generate prosodic parameters for speech synthesis systems, a two-stage approach is followed. In this case, firstly prosodic markers are generated in the first stage, which markers are then converted into physical parameters in the second stage.
In particular, phrase boundaries and word accents (pitch-accent) may serve as prosodic markers. Phrases are understood to be groupings of words which are generally spoken together within a text, that is to say without intervening pauses in speaking. Pauses in speaking are present only at the respective ends of the phrases, the phrase boundaries. Inserting such pauses at the phrase boundaries of the synthesized speech significantly increases the comprehensibility and naturalness thereof.
In stage 1 of such a two-stage approach, both the stable prediction or determination of phrase boundaries and that of accents pose problems.
A publication entitled “A hierarchical stochastic model for automatic prediction of prosodic boundary location” by M. Ostendorf and N. Veilleux in computational linguistics, 1994, disclosed a method in which “Classification and Regression Trees” (CART) are used for determining phrase boundaries. The initialization of such a method requires a high degree of expert knowledge. In the case of this method, the complexity rises more than proportionally with the accuracy sought.
At the Eurospeech 1997 conference, a method was published entitled “Assigning phase breaks from part-of-speech sequences” by Alan W. Black and Paul Taylor, in which method the phrase boundaries are determined using a “Hidden Markov Model” (HMM). Obtaining a good prediction accuracy for a phrase boundary requires a training text with considerable scope. These training texts are expensive to create, since this necessitates expert knowledge.
Accordingly, an object of the present invention is to provide a method for conditioning and structuring an unknown spoken text which can be trained with a smaller training text and achieves recognition rates approximately similar to those of known methods which are trained with larger texts.
Accordingly, in a method according to the invention, prosodic markers are determined by a neural network on the basis of linguistic categories. Subdivisions of the words into different linguistic categories are known depending on the respective language of a text. In the context of this invention, 14 categories, for example, are provided in the case of the German language, and e.g. 23 categories are provided for the English language. With knowledge of these categories, a neural network is trained in such a way that it can recognize structures and thus predicts or determines a prosodic marker on the basis of groupings of e.g. 3 to 15 successive words.
In a highly advantageous development of the invention, a two-stage approach is chosen for a method according to the invention, this approach involves acquisition of the properties of each prosodic marker by neural autoassociators and the evaluation of the detailed output information output by each of the autoassociators, which is present as a so-called error vector, in a neural classifier.
The invention's application of neural networks enables phrase boundaries to be accurately predicted during the generation of prosodic parameters for speech synthesis systems.
The neural network according to the invention is robust with respect to sparse training material.
The use of neural networks allows time- and cost-saving training methods and a flexible application of a method according to the invention and a corresponding device to any desired languages. Little additionally conditioned information and little expert knowledge are required for initializing such a system for a specific language. The neural network according to the invention is therefore highly suited to synthesizing texts in a plurality of languages with a multilingual TTS system. Since the neural networks according to the invention can be trained without expert knowledge, they can be initialized more cost-effectively than known methods for determining phrase boundaries.
In one development, the two-stage structure includes a plurality of autoassociators which are each trained to a phrasing strength for all linguistic classes to be evaluated.
Thus, parts of the neural network are of class-specific design. The training material is generally designed statistically asymmetrically, that is to say that many words without phrase boundaries are present, but only few with phrase boundaries. In contrast to methods according to the prior art, a dominance within a neural network is avoided by carrying out a class-specific training of the respective autoassociators.
These and other objects and advantages of the present invention will become more apparent and more readily appreciated from the following description of the preferred embodiments, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
The output 4 is formed by a neuron with a continuous profile, that is to say the output values can all assume values of a specific range of numbers, which encompasses, e.g., all real numbers between 0 and 1.
Nine input groups 5 for inputting the categories of the individual words are provided in the exemplary embodiment shown in
During the evaluation, the category of the word to be examined is applied to the input group 5a, that is to say that the value +1 is applied to the neuron 6 which corresponds to the category of the word, and the value −1 is applied to the remaining neurons 6 of the input group 5a. In a corresponding manner, the categories of the four words preceding or succeeding the word to be examined are applied to the input groups 5b or 5c, respectively. If no corresponding predecessors or successors are present, as is the case e.g. at the start and at the end of a text, the value 0 is applied to the neurons 6 of the corresponding input groups 5b, 5c.
A further input group 5d is provided for inputting the preceding phrase boundaries. The last nine phrase boundaries can be input at this input group 5d.
For the German language—with 14 linguistic categories—the input space has a considerable dimension m of 135 (m=9*14+9). An expedient subdivision of the linguistic categories of the English language has 23 categories, so that the dimension of the input space is 216. The input data form an input vector x with the dimension m.
The neural network according to the invention is trained with a training file containing a text and the information on the phrase boundaries of the text. These phrase boundaries may contain purely binary values, that is to say only information as to whether a phrase boundary is present or whether no phrase boundary is present. If the neural network is trained with such a training file, then the output is binary at the output 4. The output 4 generates inherently continuous output values which, however, are assigned to discrete values by a threshold value decision.
For specific applications, it is advantageous if the output contains not just binary values but multistage values, that is to say that information about the strength of the phrase boundary is taken into account. For this purpose, the neural network must be trained with a training file containing multistage information on the phrase boundaries. The gradation may have from two stages to inherently as many stages as desired, so that a quasi continuous output can be obtained.
The exemplary embodiment shown in
Each autoassociator is trained with the data of the class which it represents. That is to say that each autoassociator is trained with the data belonging to the phrasing strength represented by it.
The autoassociators map the m-dimensional input vector x onto an n-dimensional vector z, where n<<m. The vector z is mapped onto an output vector x′. The mappings are effected by matrices w1εRn×m and w2εRn×m. The entire mapping performed in the autoassociators can be represented by the following formula:
x′=w2 tan h(w1·x),
where tan h is applied element by element.
The autoassociators are trained in such a way that their output vectors x′ correspond as exactly as possible to the input vectors x (
During training, only the input vectors x which correspond to the states in which the phrase boundaries assigned to the respective autoassociators occur are applied to the input and output sides of the individual autoassociators.
During operation, an error vector erec=(x−x′)2 is calculated for each autoassociator (
The complete neural network including the autoassociators and the classifier is illustrated diagrammatically in
The elements pi of the output vector p are calculated according to the following formula:
where Ai(X)=w2(i) tan h(w1(i)x) and tan h is performed as an element-by-element operation and diag(w1(i), . . . , wm(i))εRm×m represents a diagonal matrix with the elements (w1(i), . . . , wm(i)).
The individual elements pi of the output vector p specify the probability with which a phrase boundary was detected at the autoassociator i.
If the probability pi is greater than 0.5, this is assessed as the presence of a corresponding phrase boundary i. If the probability pi is less than 0.5, then this means that the phrase boundary i is not present in this case.
If the output vector p has more than two elements pi, then it is expedient to assess the output vector p in such a way that that phrase boundary is present whose probability pi is greatest in comparison with the remaining probabilities pi of the output vector P.
In a development of the invention, it may be expedient, if a phrase boundary is determined whose probability pi lies in the region around 0.5, e.g. in the range from 0.4 to 0.6, to carry out a further routine which checks the presence of the phrase boundary. This further routine can be based on a rule-driven and on a data-driven approach.
During training with a training file which includes corresponding phrasing information, the individual autoassociators 7 are in each case trained to their predetermined phrasing strength in a first training phase. As is specified above, in this case the input vectors x which correspond to the phrase boundary which is assigned to the respective autoassociator are applied to the input and output sides of the individual autoassociators 7.
In a second training phase, the weighting elements of the autoassociators 7 are established and the classifier 8 is trained. The error vectors erec of the autoassociators are applied to the input side of the classifier 8 and the vectors which contain the values for the different phrase boundaries are applied to the output side. In this training phase, the classifier learns to determine the output vectors p from the error vectors.
In a third training phase, a fine setting of all the weighting elements of the entire neural network (the k autoassociators and the classifier) is carried out.
The above-described architecture of a neural network with a plurality of models (in this case: the autoassociators) each trained to a specific class and a superordinate classifier makes it possible to reliably correctly map an input vector with a very large dimension onto an output vector with a small dimension or a scalar. This network architecture can also advantageously be used in other applications in which elements of different classes have to be dealt with. Thus, it may be expedient e.g. to use this network architecture also in speech recognition for the detection of word and/or sentence boundaries. The input data must be correspondingly adapted for this.
The classifier 8 shown in
The remaining elements of the matrix are equal to zero. The number of weighting factors wn corresponds to the dimension of the input vector, a weighting element wn in each case being related to a component of the input vector. If one weighting element wn has a larger value than the remaining weighting elements wn of the matrix, then this means that the corresponding component of the input vector is of great importance for the determination of the phrase boundary which is determined by the autoassociator to which the corresponding weighting matrix GW is assigned.
In a preferred embodiment, extended autoassociators are used (
x′=w2 tan h(•)+w3(tan h(•))2,
where (•):=(w1·x) holds true, and the squaring (•)2 and tan h are performed element by element.
In experiments, a neural network according to the invention was trained with a predetermined English text. The same text was used to train an HMM recognition unit. What were determined as performance criteria were, during operation, the percentage of correctly recognized phrase boundaries (B-corr), of correctly assessed words overall, irrespective of whether or not a phrase boundary follows (overall), and of incorrectly recognized words without a phrase boundary (NB-ncorr). A neural network with the autoassociators according to
The results presented in the table show that neural networks according to the invention yield approximately the same results as an HMM recognition unit with regard to the correctly recognized phrase boundaries and the correctly recognized words overall. However, the neural networks according to the invention are significantly better than the HMM recognition unit with regard to the erroneously detected phrase boundaries, at places where there is inherently no phrase boundary. This type of error is particularly serious in speech-to-text conversion, since these errors generate an incorrect stress that is immediately noticeable to the listener.
In further experiments, one of the neural networks according to the invention was trained with a fraction of the training text used in the above experiments (5%, 10%, 30%, 50%). The following results were obtained in this case:
Excellent recognition rates were obtained with fractions of 30% and 50% of the training text. Satisfactory recognition rates were obtained with a fraction of 10% and 5% of the original training text. This shows that the neural networks according to the invention yield good recognition rates even with sparse training. This represents a significant advance compared with known phrase boundary recognition methods, since the conditioning of training material is cost-intensive since expert knowledge must be used here.
The exemplary embodiment described above has k autoassociators. For precise assessment of the phrase boundaries, it may be expedient to use a large number of autoassociators, in which case up 20 autoassociators may be expedient. This results in a quasi continuous profile of the output values.
The neural networks described above are realized as computer programs which run independently on a computer for converting the linguistic category of a text into prosodic markers thereof. They thus represent a method which can be executed automatically.
The computer program can also be stored on an electronically readable data carrier and thus be transmitted to a different computer system.
A computer system which is suitable for application of the method according to the invention is shown in
Only an application of the method to the prediction of phrase boundaries has been described in the examples illustrated here. However, with similar construction of a device and an adapted training, the method can also be utilized for the evaluation of an unknown text with regard to a prediction of stresses, e.g. in accordance with the internationally standardized ToBI labels (tones and breaks indices), and/or the intonation. These adaptations have to be effected depending on the respective language of the text to be processed, since prosody is always language-specific.
The invention has been described in detail with particular reference to preferred embodiments thereof and examples; but it will be understood that variations and modifications can be effected within the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
100 18 134 | Apr 2000 | DE | national |
Number | Name | Date | Kind |
---|---|---|---|
5479563 | Yamaguchi | Dec 1995 | A |
5668926 | Karaali et al. | Sep 1997 | A |
5704006 | Iwahashi | Dec 1997 | A |
5758023 | Bordeaux | May 1998 | A |
6134528 | Miller et al. | Oct 2000 | A |
Number | Date | Country |
---|---|---|
2 325 599 | Nov 1998 | GB |
9819297 | May 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20030149558 A1 | Aug 2003 | US |