A study on the consistency analysis of energy parameter for Mandarin speech

In this study, a consistency analysis of energy parameter for Mandarin speech is presented. Identified as a result of inspection of the human pronunciation process, the consistency can be interpreted as a high correlation of a warping curve between the spectrum and the prosody intra a syllable. Through three steps in the procedure of the consistency analysis, the hidden Markov model (HMM) algorithm is used first to decode HMM-state sequences within a syllable at the same time as to divide them into three segments. Second, based on a designated syllable, the vector quantization (VQ) with the Linde–Buzo–Gray algorithm is used to train the VQ codebooks of each segment. Third, the energy vector of each segment is encoded as an index by VQ codebooks, and then the probability of each possible path is evaluated as a prerequisite to analyze the consistency. It is demonstrated experimentally that a consistency is definitely acquired in case the syllable is located exactly in the same word. These results offer a research direction that the energy warping process intra a syllable must be considered in a text-to-speech system to improve the synthesized speech quality.


Introduction
A text-to-speech (TTS) system [1][2][3][4][5][6] is a system converting a text input into a speech output, and applied to smart human computer interfaces and auxiliary speech systems for the visual impaired. In the era of multimedia communications, the growing significance of TTS is seen definitely for the reason that it can be found in a wide variety of applications such as general consumer electronics, robots, virtual anchors, text messages of cell phone, and smart speech service systems.
Moreover, due to the growing demand of embedded systems, a wide range of portable devices, e.g., mobile phones, smartphones, e-books, and relevant products, have been popularized in the market, and extended developments look promising. Consequently, integration of TTS systems into embedded systems becomes one of the hottest research issues these days [7][8][9][10]. In an attempt to implement TTS technology on an embedded system, there are two additional requirements imposed on such integrated system, namely a low-memory requirement and a low-computational complexity.
Reviewing the history of TTS technology development, the waveform-based synthesis units approach [11][12][13][14][15][16][17][18] is one of the most commonly used technology in TTS. This approach is further classified into two types in terms of the way it is synthesized. One is the corpusbased synthesis units [10][11][12][13] and the other is the small footprint synthesis units approaches [4,[14][15][16][17][18]. This corpus-based speech synthesis technique relies on a unit selection method and compilation of speech units from a large speech database. The speech database usually derives from a sufficiently large corpus where appropriately selected spoken utterances are carefully annotated to the unit level. The selection of the units aims to cover as many units as possible in different phonetic and prosodic contexts in order to provide the necessary variability in the synthetic speech output. However, this approach requires a great number of speech units, i.e., a large deal of storage space is needed to reach a superior speech quality.
In contrast, a footprint TTS adopts a small size synthesis unit, which treats a set of fundamental speech elements, e.g., phonemes, diphones, or syllables as synthesis units, then a synthesized speech is made through a prosodic modification conducted on synthesized units by pitch-synchronous overlap-add algorithms [14,15]. Accordingly, a double advantage of requiring a low memory and a low computation load is reached with an inferior but comparable speech quality relative to corpusbased methods.
However, the TTS with the waveform-based synthesis units approach necessitates a prosody model all the time to deal with the prosodic modification on synthesized units. Exploring the pronunciation process of human beings, the speech is made by an excitation source flowing through the vocal tract and emanating from the mouth and the nostrils of a speaker. The excitation source containing the airflow and the vibration of vocal cords reflects the prosodic information. Both the vocal tract, affecting the voice spectrum, and the excitation source couple to generate a natural and fluent speech. Thus, an inspection result is seen, which is the prosody and the spectrum embedded in the running speech is consistent. Definitely as one of significant issues for a TTS system, the spectrum and prosody modules are addressed separately in most cases, leading to an inconsistency between both of them. Therefore, it motivates us to demonstrate that the consistency between the prosody and the spectrum embedded in the running speech is existent.
In the case of verifying the consistency property, the definition of consistency will first be explained in this study. Subsequently, the consistency analysis between the energy parameter of prosody and the spectrum is focused and discussed. The analytic methods, procedures, and practical experiments are presented to demonstrate the proposed deduction. It is also expected to upgrade the performance of Mandarin TTS system through the research in this article.
The rest of this article is outlined as follows. The modeling of the consistency analysis in Mandarin speech is described in Section 2. Procedure of consistency analysis between the energy parameter of prosody and the spectrum is presented in Section 3. Experimental results are demonstrated and discussed in Section 4. Finally, this study ends with conclusion section.

Modeling of the consistency analysis in Mandarin speech
As referred to previously, an inspection on the pronunciation process of human beings, both the excitation source and the vocal tract, is coupled to generate a natural and fluent speech. The excitation source reflects the prosodic information, and the vocal tract affects the voice spectrum. The prosodic information usually contains the pitch contour, duration, and energy parameters. In this study, the consistency property between the energy and the spectrum is analyzed. The definition and modeling of the consistency analysis in Mandarin speech is presented.
In the Chinese language phonology, there is a total of 411 distinguishable syllables composed of an optional consonant initial and a vowel final as basic pronunciation units in a Mandarin speech. However, a Chinese word consisting of a minimum of one syllable is regarded as the smallest unit that is meaningful. Besides, the waveform and the spectrum of all the same pronunciation units are definitely not identical because the speech signal is a non-stationary signal. Thus, the consistency can be interpreted as the high correlation of a warping curve between the spectrum and the prosody intra a syllable. The warping curve means a curve that the prosodic information shifted along the spectrum within a syllable. For further explanation, the warping curves are consistent as long as the same pronunciations are located in the same Chinese word, implying that the same pronunciations located in different Chinese words brings about distinct consistency, that is, different warping curves are made. Observing the warping curve can help us to further acquire the knowledge of the detail variation between the spectrum and the prosody intra a syllable.
Subsequently, the following analysis is made on a syllabic basis, according to which the warping curve between the spectrum and the energy intra a syllable is the one of interests. The warping curve within a syllable can be obtained by exploring the energy information under a sequence of hidden Markov model (HMM) state-based spectral segments.
In the HMM state-based spectral segments, the Melfrequency cepstral coefficients (MFCCs) are used as spectral feature and the HMMs are employed to decode the state sequence within a syllable [19]. For evaluation of the MFCCs, the discrete Fourier transform is first performed to obtain its spectrum then, a filter bank with M filters according to Mel-scale is defined as where 1 ≤ m ≤ M and the boundary points f[m] are uniformly spaced in the Mel-scale: where f l and f h are the lowest and the highest frequencies of the filterbank, F s is the sampling rate, and the Mel-scale B and its inverse B −1 are given by Thus, the log-energy at the output of each filter is computed as and then MFCCs are obtained as where L is the order of MFCC, L < M. In this study, the L is set to 12, N is 512, M is 64, F s = 8000 Hz, f l = 0 Hz, and f h = 4000 Hz. On the other hand, for exploring the energy information within a spectral segment, each syllable will be divided into three spectral segments, and each spectral segment contains two to three HMM states. Based on the spectral segment, all the state energies are employed as an energy vector, and then a clustering algorithm is used to analyze the energy vector. Thus, the warping curve can be analyzed by exploring clustering result of the energy vector within a spectral segment. Figure 1 shows a flowchart of the procedure of consistency analysis. There are three steps required in the procedure. First, the feature extraction such as MFCCs, energy parameter, etc., are computed from a large speech database. Hence, the consistency analyses are made in the warping curve between the spectrum and the energy intra a syllable. Then, dividing them into three segments, the HMM decoding algorithm [19][20][21][22][23] is used to decode the state sequences within a syllable at the same time. In the decoding process, the HMM is a phone-based model.  As the second step, based on a designated syllable, the vector quantization (VQ) with the Linde-Buzo-Gray (LBG) algorithm [24] is used to train the VQ codebooks of each spectral segment with respect to the energy Table 2 Possible paths and corresponding probabilities for a segment sequence within the syllable "u-4" (number for statistic: 134)  Table 3 Possible paths and corresponding probabilities for a segment sequence within the syllable "務 (u-4)" located in the word "服務 (f-u-2, u-4)" (number for statistic: 25) vector. Thus, there is a total of three codebooks constructed in each syllable. In this article, setting each codebook to the size of 4 during the training process, the codeword dimension within the codebook is determined according to the number of HMM-states in individual spectral segment. That is, the first and the last segments hold the codebook in three dimensions, respectively, and the second segment holds the codebook in two dimensions. The forms of Eng jk representing the energy vector of the jth pattern in the kth syllabic cluster is defined as

Procedure of the consistency analysis
where e jk (s i ), 1 ≤ i ≤ 8, is the value of energy in the ith state. The k indicates one of the 411 distinguishable syllables, i.e., 1 ≤ k ≤ 411. The number of the kth syllabic cluster is referred to the N k and 1 ≤ j ≤ N k . Table 4 Possible paths and corresponding probabilities for a segment sequence within the syllable "務 (u-4)" located in the word "業務 (iɛ-4, u-4)" (number for statistic: 15) As the last step, the energy vector of each segment is encoded as an index by a VQ search algorithm. Then, the probability of each possible path, which represents the index seen all the way from the first to the last segment, is evaluated for a designated syllable. Finally, a number of consistency properties can be found and extracted from the probability of a segment sequence.

Experimental results and discussions
There are two experiments conducted in this article.

Consistency analysis for the case of Mandarin syllable " "
Taking the Mandarin syllable " (u)" as an example to analyze the consistency between the energy and the spectrum in this experiment, the trained VQ codebooks of energy for the syllable " (u)" are tabulated in Table 1.
Taking a further step to analyze the whole pronunciation with "u-4", meaning the syllable "u" with the fourth tone and a subset in the syllable "u", the possible paths and their probabilities for the segment sequences within the syllable "u-4" are tabulated in Table 2. Items "Index1", "Index2", and "Index3" represent the codebook indices in the first, the second, and the last segment, respectively. Each index, its value is set from 1 to 4, represents a corresponding codeword in the codebook. There are 134 of the whole pronunciations with "u-4" tested in Table 2, and there is a total of 64 (4*4*4) combinations found in the segment sequences, but a random-like probability distribution is seen as expected on the ground that these syllables embedded in different context bring about different prosodic information. Given a path with Index1 = 4, Index2 = 4, and Index3 = 4 as an example, it indicates that the energy vectors of all segments located in the second cluster, respectively, has 0.059701 of probability. It also means that all segments belong to the highest energies can be seen according to Table 1. Besides, the various path transitions within the syllable demonstrate the different energy contours in the same syllable.
Tabulated in Table 3 are the possible paths and associated probabilities for the segment sequence within the syllable "務 (u-4)" located in the word "服務 (f-u-2, u-4)". A total of 25 syllables are counted out of the speech database but merely 5 paths are found, which indicates a strongly non-uniform distribution among such probabilities. The largest probability is 0.52, meaning that the energy pattern for syllable "務 (u-4)" embedded in the word "服務 (f-u-2, u-4)" is consistent.
Moreover, tabulated in Table 4 are the possible paths and corresponding probabilities for the segment sequence within the syllable "務 (u-4)" embedded into the word "業務 (iε-4, u-4)". As little as four paths are found with the largest probability of 0.6 among such paths. As before, it is also indicated that the energy pattern for the syllable "務 (u-4)" located in the word "業務 (iε-4, u-4)" is consistent.
In addition, a state diagram of the best path in relation to an energy pattern distributed is made in Figure 2. There is a 0.520 probability that the best path of the syllable "務 (u-4)" is found within the word "服務 (f-u-2, u-4)", while a 0.600 probability that the best path of the syllable "務 (u-4)" is within the word "業務 (iε-4, u-4)", and a 0.187 probability for the best path in the whole syllable "u-4". There is a much higher probabilities that the best path lies in the words "服務 (f-u-2, u-4)" and "業務 (iε-4, u-4)" than there is for the whole syllable. A Figure 5 A state diagram of the best path in relation to the energy pattern distributed in the case of the syllable "tɕ-i-4".
Finally, presented in Figure 3 are energy warping curves for the best path within the whole syllable "u-4", the syllable "務 (u-4)" located in the word "服務 (f-u-2, u-4)", and the syllable "務 (u-4)" located in the word "業務 (iε-4, u-4)", respectively. Each warping curve in Figure 3 is obtained by an observation of Figure 2 and Table 1. It is evident that the same syllable in different word acquires a distinct energy warping curve. These results demonstrate that the influence of energy warping curve is not only on the global sentence, but also on the intra syllable.

Consistency analysis for the case of Mandarin syllable " "
Taking the Mandarin syllable " (tɕ-i)" as the second example to analyze the consistency between the energy and the spectrum in this experiment. The trained VQ codebooks of energy for the syllable "tɕ-i" are presented in Table 5. In this case, the waveform of syllable " (ɕ-i)" is composed of an initial part and a final part. The initial part is an unvoiced speech, while the final part is a voiced speech, dominating the syllabic waveform. Thus, the consistency analysis is made on the final part merely, including the second and the third segments.
To analyze the final part, listed in Table 6 are the path probabilities of a voiced segment concerning the energy pattern in (a) the whole syllable "tɕ-i-4", (b) the syllable "計 (tɕ-i-4)" located in the word "計畫 (tɕ-i-4, x-ua-4)", and (c) the syllable "技 (tɕ-i-4)" located in the word "技 術 (tɕ-i-4, ʂ-u-4)". Moreover, as illustrated in Figure 4, the distribution of individual segments in Table 6 is alternatively presented in graphic form as Figure 4. Presented in Figure 4a is the probability distribution of the energy pattern in the second segment. Thus, each value in Figure 4a is obtained by the summation of the probabilities of each row in Table 6, i.e., the summation of the probabilities from Index3 = 1 to Index3 = 4. Similarly, each value in Figure 4b, meaning the probability distribution of the energy pattern in the third segment, is obtained by the summation of the probabilities from Index2 = 1 to Index2 = 4. As such, a difference in consistency is seen as before between the words "計畫 (tɕ-i-4, x-ua-4)" and "技術 (tɕ-i-4, ʂ-u-4)".
In addition, Figure 5 shows a state diagram of the best path in relation to the energy pattern distributed. There is a 0.536 probability that the best path of the syllable "tɕ-i-4" is found within the word "計畫 (tɕ-i-4, x-ua-4)", while a 0.636 probability that the best path of the syllable "tɕ-i-4" is within the word "技術 (tɕ-i-4, ʂ-u-4)", and a 0.180 probability that the best path is in the whole syllable "tɕ-i-4". A strong consistency of the energy pattern is verified by these experimental results.
Finally, presented in Figure 6 are energy warping curves for the best path within the syllable "計 (tɕ-i-4)" located in the word "計畫 (tɕ-i-4, x-ua-4)" and the syllable "技 (tɕ-i-4)" located in the word "技術 (tɕ-i-4, ʂ-u-4)", respectively. Each warping curve in Figure 6 is obtained by the observation of Figure 5 and Table 5. The warping curve for the best path within the whole syllable "tɕ-i-4" is identical to which within the word "技術 (tɕ-i-4, ʂ-u-4)". The same syllable in different word acquires a distinct energy warping curve is again verified.

Conclusions
This article is proposed mainly with a focus on the consistency analysis of energy parameter for Mandarin speech. It is validated experimentally that the warping curve between the energy and the spectrum intra a syllable is of the consistency in case the syllable lies exactly in the same word. It is also concluded that various words hold various characteristics of consistency, giving rise to a research direction that the energy warping process intra a syllable must be taken into account in a TTS system as a way to improve the synthesized speech quality.