The present invention generally relates to telecommunications systems and methods, as well as speech synthesis. More particularly, the present invention pertains to the formation of the excitation signal in a Hidden Markov Model based statistical parametric speech synthesis system.
A method is presented for forming the excitation signal for a glottal pulse model based parametric speech synthesis system. In one embodiment, fundamental frequency values are used to form the excitation signal. The excitation is modeled using a voice source pulse selected from a database of a given speaker. The voice source signal is segmented into glottal segments, which are used in vector representation to identify the glottal pulse used for formation of the excitation signal. Use of a novel distance metric and preserving the original signals extracted from the speakers voice samples helps capture low frequency information of the excitation signal. In addition, segment edge artifacts are removed by applying a unique segment joining method to improve the quality of synthetic speech while creating a true representation of the voice quality of a speaker.
In one embodiment, a method is presented to create a glottal pulse database from a speech signal, comprising the steps of: performing pre-filtering on the speech signal to obtain a pre-filtered signal; analyzing the pre-filtered signal to obtain inverse filtering parameters; performing inverse filtering of the speech signal using the inverse filtering parameters; computing an integrated linear prediction residual signal using the inversely filtered speech signal; identifying glottal segment boundaries in the speech signal; segmenting the integrated linear prediction residual signal into glottal pulses using the identified glottal segment boundaries from the speech signal; performing normalization of the glottal pulses; and forming the glottal pulse database by collecting all normalized glottal pulses obtained for the speech signal.
In another embodiment, a method is presented to form parametric models, comprising the steps of: computing a glottal pulse distance metric between a number of glottal pulses; clustering the glottal pulse database into a number of clusters to determine centroid glottal pulses; forming a corresponding vector database by associating a vector with each glottal pulse in the glottal pulse database, wherein the centroid glottal pulses and the distance metric is defined mathematically to determine association; determining Eigenvectors of the vector database; and forming parametric models by associating a glottal pulse from the glottal pulse database to each determined Eigenvector.
In yet another embodiment, a method is presented to synthesize speech using input text, comprising the steps of: a) converting the input text into context dependent phone labels; b) processing the phone labels created in step (a) using trained parametric models to predict fundamental frequency values, duration of the speech synthesized, and spectral features of the phone labels; c) creating an excitation signal using an Eigen glottal pulse and said predicted one or more of: fundamental frequency values, spectral features of phone labels, and duration of the speech synthesized; and d) combining the excitation signal with the spectral features of the phone labels using a filter to create synthetic speech output.
For the purposes of promoting an understanding of the principles of the invention, reference will now be made to the embodiment illustrated in the drawings and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope of the invention is thereby intended. Any alterations and further modifications in the described embodiments, and any further applications of the principles of the invention as described herein are contemplated as would normally occur to one skilled in the art to which the invention relates.
Excitation is generally assumed to be a quasi-periodic sequence of impulses for voiced regions. Each sequence is separated from the previous sequence by some duration, such as T0=1/F0, where T0 represents pitch period and F0 represents fundamental frequency. The excitation, in unvoiced regions, is modeled as white noise. In voiced regions, the excitation is not actually impulse sequences. The excitation is instead a sequence of voice source pulses which occur due to vibration of the vocal folds. The pulses' shapes may vary depending on various factors such as the speaker, the mood of the speaker, the linguistic context, emotions, etc.
Source pulses have been treated mathematically as vectors by length normalization (through resampling) and impulse alignment, as described in European Patent EP 2242045 (granted Jun. 27, 2012, inventors Thomas Drugman, et al.) The final length of normalized source pulse signal is resampled to meet the target pitch. The source pulse is not chosen from a database, but obtained over a series of calculations which compromise the pulse characteristics in the frequency domain. In addition, the approximate excitation signal used for creating a pulse database does not capture low frequency source content as there is no pre-filtering done while determining the Linear Prediction (LP) coefficients, which are used for inverse filtering.
In statistical parametric speech synthesis, speech unit signals are represented by a set of parameters which can be used to synthesize speech. The parameters may be learned by statistical models, such as HMMs, for example. In an embodiment, speech may be represented as a source-filter model, wherein source/excitation is a signal which when passed through an appropriate filter produces a given sound.
The Speech Database 105 may contain an amount of speech data for use in speech synthesis. During the training phase, a speech signal 106 is converted into parameters. The parameters may be comprised of excitation parameters and spectral parameters. Excitation Parameter Extraction 110 and Spectral Parameter Extraction 115 occurs from the speech signal 106 which travels from the Speech Database 105. A Hidden Markov Model 120 may be trained using these extracted parameters and the Labels 107 from the Speech Database 105. Any number of HMM models may result from the training and these context dependent HMMs are stored in a database 125.
The synthesis phase begins as the context dependent HMMs 125 are used to generate parameters 140. The parameter generation 140 may utilize input from a corpus of text 130 from which speech is to be synthesized from. The text 130 may undergo analysis 135 and the extracted labels 136 are used in the generation of parameters 140. In one embodiment, excitation and spectral parameters may be generated in 140.
The excitation parameters may be used to generate the excitation signal 145, which is input, along with the spectral parameters, into a synthesis filter 150. Filter parameters are generally Mel frequency cepstral coefficients (MFCC) and are often modeled by a statistical time series by using HMMs. The predicted values of the filter and the fundamental frequency as time series values may be used to synthesize the filter by creating an excitation signal from the fundamental frequency values and the MFCC values used to form the filter.
Synthesized speech 155 is produced when the excitation signal passes through the filter. The formation of the excitation signal 145 is integral to the quality of the output, or synthesized, speech 155. Low frequency information of the excitation is not captured. It will thus be appreciated that an approach is needed to capture the low frequency source content of the excitation signal and to improve the quality of synthetic speech.
An excitation signal 320 is created for unvoiced and pause segments. Where pauses occur, zeros (0) are placed in the excitation signal. In unvoiced regions, white noise of appropriate energy (in one embodiment, this may be determined empirically by listening tests) is used as the excitation signal.
The signal regions, 305, along with the Glottal Pulse 310 are used for excitation generation 315 and subsequent generation of the excitation signal 320. The Glottal Pulse 310 comprises an Eigen glottal pulse that has been identified from the glottal pulse database, the creation of which is described in further detail in
F
0(n)=fs*Nf*5/1000.
Where fs represents the sampling frequency of the signal. In a non-limiting example, the value of 5/1000 represents the interval of 5 ms durations that the F0 values are determined for. It should be noted that any interval of a designated duration of a unit time may be used. Another array, designated as F′0(n), is obtained by linearly interpolating the F0 array.
From the F0 values, glottal boundaries are created, 410, which mark the pitch boundaries of the excitation signal of the voiced segments in the signal region 405. The pitch period array may be computed using the following mathematical equation:
Pitch boundaries may then be computed using the determined pitch period array as follows:
P
0(i)=Σj=0i T0(P0(i−1)
Where P0(0)=1, i=1, 2, 3, . . . K, and where P(K+1) just crosses length of the array T0(n).
The glottal pulse 415 is used along with the identified glottal boundaries 410 in the overlap adding 420 of a glottal pulse beginning at each glottal boundary. The excitation signal 425 is then created through the process of “stitching”, or segment joining, to avoid boundary effects which are further described in
P
m(i)=P0(i)+m*w
Where w is generally taken as 1 msec or, in terms of samples,
For a sampling frequency of fs=16,000, w=16, for example. The highest pitch period present in the given voice segment is represented as m*w. Glottal pulses are created and associated with each pitch boundary array Pm. The glottal pulses 620 may be obtained from the glottal pulse signal of some length N by first zero extending it to the pitch period and then circularly left shifting it by m*w samples.
For each set of frame boundaries, an excitation signal 635 is formed by initializing the glottal pulses to zero (0). Overlap add 610 is used to add the glottal pulse 620 to the first N samples of the excitation, starting from each pitch boundary value of the array Pm(i), i=1, 2, . . . K. The formed signal is as a single stitched excitation, corresponding to the shift, m.
In an embodiment, the arithmetic mean of all of the single stitched excitation signals is then computed 640, which represents the final excitation signal for the voiced segment 645.
The sub-band distance metric is then computed between corresponding sub-band components of each glottal pulses, denoted as ds(xi(1), yi(1)). The sub-band metric, which may be represented as ds(f, g), where ds represents the distance between the two sub-band components f and g, may be computed as described in the following paragraphs.
The normalized circular cross correlation function between f and g is computed. In one embodiment, this may be denoted as Rf, g(n)=f★g, where ‘★’ denotes normalized circular cross correlation operation between two signals. The period for circular cross correlation is taken to be the highest of lengths of the two signals f and g. The shorter signal is zero extended. The Discrete Hilbert Transform of normalized circular cross correlation is computed and denoted as Rf, gh(n). Using the normalized circular cross correlation and the Discrete Hilbert Transform of the normalized circular cross correlation, the signal may be determined as:
H
f, g(n)=√{square root over (Rf, g(n)2+Rf, gh(n)2)}{square root over (Rf, g(n)2+Rf, gh(n)2)}.
The cosine of the angle between the two signals f and g may be determined using the mathematical equation:
cos θ(f, g)=maximum value of the signal Hf, g(n) over all n.
The sub-band metric, ds(f, g), between the two sub-band components f and g may be determined as:
d
s(f, g)=√{square root over (2(1−cos θ(f, g))}.
The distance metric between the glottal pulses is finally determined mathematically as:
The glottal pulse database 840 may be clustered into a number of clusters, for example 256 (or M), using a modified k-means algorithm 705. Instead of using the Euclidean distance metric, the distance metric defined above is used. The centroids of a cluster are then updated with that element of the cluster whose sum of squares of distances from all other elements of that cluster is minimum such that:
D
m
=Σ
i=1
N
d
2(gi, gm) is minimum for m=c, the cluster centroid.
In an embodiment, the clustering iterations are terminated when there is no shift in any of the centroids of the k clusters.
A vector, a set of N real numbers, for example 256, is associated with every glottal pulse 710 in the glottal pulse database 840 to form a corresponding vector database 715. In one embodiment, the associating is performed for a given glottal pulse xi, a vector Vi=[ψ1(xi), ψ2(xi), ψ3(xi), . . . ψj(xi)], where ψj(xi)=d2(xi, cj)−d2(xi, x0)−d2(cj, x0) and, x0 is a fixed glottal pulse picked from the database and d2(xi, cj) represents the square of the distance metric defined above between two glottal pulses xi and cj and assuming that c1, c2, . . . ci, . . . c256 are the centroid glottal pulses determined by clustering.
Thus, the vector associated with the given glottal pulse xi may be computed with the mathematical equation:
V
i=[ψ1(xi), ψ2(xi), ψ3(xi), . . . ψj(xi), . . . ψ256(xi)]
In step 720, Principal Component Analysis (PCA) is performed to compute Eigenvectors of the vector database 715. In one embodiment, any one Eigenvector may be chosen 725. The closest matching vector 730 to the chosen Eigenvector from the vector database 715 is then determined in the sense of Euclidean distance. The glottal pulse from the pulse database 840 which corresponds to the closest matching vector 730 is regarded as the resulting Eigen glottal pulse 735 associated with an Eigenvector.
While the invention has been illustrated and described in detail in the drawings and foregoing description, the same is to be considered as illustrative and not restrictive in character, it being understood that only the preferred embodiment has been shown and described and that all equivalents, changes, and modifications that come within the spirit of the invention as described herein and/or by the following claims are desired to be protected.
Hence, the proper scope of the present invention should be determined only by the broadest interpretation of the appended claims so as to encompass all such modifications as well as all relationships equivalent to those illustrated in the drawings and described in the specification.