Information
-
Patent Grant
-
6466903
-
Patent Number
6,466,903
-
Date Filed
Thursday, May 4, 200024 years ago
-
Date Issued
Tuesday, October 15, 200222 years ago
-
Inventors
-
Original Assignees
-
Examiners
Agents
-
CPC
-
US Classifications
Field of Search
US
- 704 207
- 704 200
- 704 201
- 704 205
- 704 209
-
International Classifications
-
Abstract
A fast and accurate method for generating a sampled version of the signal h(t)=∑k=1KAkcos(k ωot+φk),is achieved by retrieving from memory a pre-computed phase delay value corresponding to φk for a given fundamental frequency, expressed in numbers of samples, for a running value of the index k, subtracting it from a sample time index, t, that is multiplied by the value of k, and employing the subtraction result, expressed in a modulus related to the fundamental frequency, to retrieve a pre-computed sample value of cosine cos(kωot) for the given fundamental frequency. The retrieved sample is multiplied by a retrieved coefficient Ak corresponding to the value of k and to the given fundamental frequency, and placed in an accumulator. The value of k is incremented, and the process for the sample value corresponding to the value of time sample t is repeated until the process completes for k=K.
Description
BACKGROUND OF THE INVENTION
This invention related to speech, and more particularly, to speech synthesis.
Harmonic models were found to be very good candidates for concatenative speech synthesis systems. These models are required to compress the speech database and to perform prosodic modifications where necessary and, finally, to ensure that the concatenation of selected acoustic units results in a smooth transition from one acoustic unit to the next. The main drawback of harmonic models is their complexity. High complexity is a significant disadvantage in real applications of a TTS system where it is desirable to run as many parallel channels are possible on inexpensive hardware. More than 80% of the execution time of synthesis that is based on harmonic models is spent on generating a synthetic (harmonic) signal of the form
where
is the sampling frequency, f
0
is the fundamental frequency of the desired harmonic signal in Hz., ω
o
the fundamental frequency of the desired harmonic signal in radians, k is the harmonic number, amplitude coefficients A
k
for fundamental ω
o
are given, and so are the phase φ
k
for fundamental ω
o
.
There are a number of prior art approaches for generating the signal of equation (1). The straight-forward approach directly synthesizes each of the harmonics, multiplies the synthesized signal by the appropriate coefficient, shifts the appropriate phase offset, and adds the created signal to an accumulated sum. Although modern computers have programs for quickly evaluating trigonometric functions, creating the equation (1) signal is nevertheless quite expensive.
Another approach that can be taken employs an FFT. The FFT, however, creates a number of frequency bins that is a power of 2, but the number of harmonics may not be such a number. In such a case, the frequency bin that is closest to the desired frequency can be assigned but, of course, an error is generated. The bigger the size of the FFT, the smaller the error, but the bigger the size of the FFT the more processing is required (which takes resources; e.g., time).
Still another approach that can be taken is to employ recurrence equations. Trigonometric functions whose arguments form a linear sequence of the form
θ=θ
0
+n
δ with
n
=0, 1, 2, . . . ,
are efficiently calculated by the following recurrence:
cos(θ+δ)=cos θ−[α cos θ+β sin θ]
sin(θ+δ)=sin θ+[α sin θ−β cos θ]
where α and β are the pre-computed coefficients
β=sin δ.
For each harmonic, k, the coefficients α
k
and δ
k
have to be computed, where δ
k
=kω
o
. The above works adequately only when the increment δ is small.
SUMMARY OF THE INVENTION
A fast and accurate method for generating a sampled version of the signal
is achieved by pre-computing, for each harmonic k a phase delay corresponding to φ
k
, expressed in a number of sample delays, for each fundamental frequency ω
o
, of interest, and storing the pre-computed values in memory. Also pre-computed and stored in memory are sample values of cos(kω
o
t) and coefficients A
k
for each fundamental frequency ω
o
of interest. In operation, a sample of h(t) is generated for a given a fundamental frequency by first setting an index k to 1, retrieving the phase delay value corresponding to the value of k and to the given fundamental frequency, subtracting it from a sample time index, t, that is multiplied by the value of k, and employing the subtraction result, expressed in a modulus related to the fundamental frequency, to retrieve a sample value of cosine cos(kω
o
t) for the given fundamental frequency. The retrieved sample is multiplied by a retrieved coefficient A
k
corresponding to the value of k and to the given fundamental frequency, and placed in an accumulator. The value of k is incremented, and the process is repeated until the process completes for k=K.
BRIEF DESCRIPTION OF THE DRAWING
The sole FIGURE depicts a block of an arrangement for efficiently generating a signal for Concatenative speech synthesis systems.
DETAILED DESCRIPTION
Considering equation (1), the phase information can be converted to a phase delay. Specifically, the phase delay, τ
k
, of the k
th
harmonic is
τ
k
=−φ(kω
o
)/kω
o
(2)
where φ(kω
o
) corresponds to φ
k
of equation (1). The phase delay τ
k
is expressed in terms of a number of samples, rounded to the nearest integer, and therefore, is less sensitive to quantization errors. For example, with a sampling frequency of 16 KHz and with a fundamental frequency of 100 Hz, a phase of 3π/4 radians corresponds to
samples.
Based on the equation (2) transformation, equation (1) can be replaced by the following:
where “mod” stands for modulo, T
ω
0
is the integer pitch period of fundamental frequency ω
o
(in samples), and X denotes the sampled cosine function
X
(
t
)=cos(
tω
o
),
t
=0, 1, 2, . . .
T
ω
0
−1 (4)
The sole presented Figure depicts a block diagram of an arrangement for efficiently creating the equation (1) signal for any fundamental frequency. At the heart of the embodiment is memory
10
, which stores a matrix of cosine samples
for a selected number of fundamental frequencies, for example, from 40 Hz to 500 Hz. Each vector X
ω
0
(t) has one pitch period's worth of samples, which means that each vector X
ω
o
(t) has a different number of elements. For example, when the sampling frequency is 16,000 Hz, the vector X
40 Hz
(t) has 400 samples. Viewed differently, memory 10 stores values of the X
ω
0
(t) samples in an array X(a,t), where a is the index that points to a selected value of ω
o
. For example, a=0 may point to the array that corresponds to ω
o
=40 Hz, a=1 may point to the array that corresponds to ω
o
=41 Hz, etc. The index t corresponds to sample number of the developed signal h(t), and in connection with array X(a,t), the index t, employed in modulo T
ω
0
form, corresponds to sample number of the sampled cosine signal.
In addition to memory
10
, there is memory
20
, which stores signal vectors T(ω
i
,k) and A(ω
i
,k) in arrays T(a,b) and A(a,k), respectively, and memory
30
, is which stores pre-computed values of ω
i
/ω
o
. With respect to memory
20
, as with the X
ω
i
(t) vectors, the number of elements in each vector differs. Specifically, the k
th
element of the i
th
vector in T(ω
i
,k) corresponds to τ
k
for fundamental frequency ω
i
and the number of elements, K
i
, is as indicated above; that is,
Similarly, the k
th
element of the i
th
vector in A(ω
i
,k) corresponds to A
k
for fundamental frequency ω
i
.
To develop the equation (3) signal for a given fundamental frequency, ω
j
, controller
100
of the presented Figure outputs an index a signal that is set to j. This index signal, corresponding to the desired fundamental frequency, is applied to memories
10
and
20
. In memory
10
, the index causes the vector X
ω
j
(t) to be selected, and in memory
20
the index causes the vectors A
k
and τ
k
for frequency ω
j
to be selected. Controller
100
also outputs a time-sequence signal on lead
101
that corresponds to ck, where c=1, 2, 3 . . . .
This signal continually increments in multiples of the harmonic index b. That is, as index b is stepped by controller 100 from 0 to K
i
, summer
35
adds the value of τ
k
to index b and applies the sum b′=b+τ
k
to multiplier 36. Multiplier
36
multiplies b′ by
j
th
row in the arrays of memories
20
and
30
to be accessed, as well as the j
th
entry in memory
40
, which contains the pre-computed value ω
j
/ω
o
. Controller
10
also outputs a sequence of harmonic signals, index b, where b=0, 1,2, 3 . . . K
i
, which signals are applied to memories
20
and
30
and to summer
35
wherein the value of τ
k
is added, yielding an index value b′=b+τ
k
. The output of summer
35
is applied to multiplier
36
, as is the output of memory
40
, yielding the product
Claims
- 1. A method executed in a computing apparatus for generating a time sample of a signal h(t) for sample time t, where h(t)=∑k=1KAkcos(k ωot+φk),for a given fundamental frequency ωo, when the set Ak, k=1, 2, . . . K is given for said fundamental frequency, and the set τk, k=1, 2, . . . K is given for said fundamental frequency, where τk is related to φk through said fundamental frequency, comprising the steps of:setting index k to 1; retrieving from memory the value of τk corresponding to index k; developing a number corresponding to [tk−τk]modT where T is related to said fundamental frequency; employing said number to develop a cosine sample at said fundamental frequency; multiplying said cosine sample by a coefficient Ak corresponding to index k that is retrieved from memory; accumulating results of said step of multiplying; while k is less than K−1, incrementing k and returning to said step of retrieving; when k is equal to K, assigning results of said accumulating to said h(t).
- 2. The method of claim 1 where said step of developing a cosine sample from said number comprises retrieving a pre-computed cosine sample from memory.
- 3. The method of claim 1 further comprising a step of selecting a fundamental frequency.
- 4. The method of claim 3 where said step of selecting a fundamental frequency is effected by focusing said retrieving of τk from memory, retrieving of Ak from memory and retrieving sad cosine sample from memory on sections of memory that contain information related to said fundamental frequency.
- 5. The method of claim 1 further comprising incrementing the value of t and repeating said steps of setting index k to 1 through assigning results of said accumulating to said h(t).
- 6. The method of claim 1 further comprising computing, and storing in memory, values of τk from given values of φk, where τk=−φ(kωo)/kωo, rounded to the nearest integer.
- 7. Apparatus comprising:a controller for developing an index signal t and an index signal k; a memory for storing coefficients Ak for a selected fundamental frequency ωo, responsive to said index signal k; a memory for storing delay values τk for said fundamental frequency ωo, responsive to said index signal k; a computing circuit responsive to said index signal t, said index signal k, and to output signal of said memory for storing delay values; a memory for storing sample values of cosine for said selected fundamental frequency; a multiplier responsive to output signal of said memory for storing coefficients and to output signal of said memory for storing sample values of cosine; and an accumulator responsive to said multiplier.
- 8. The apparatus of claim 7 where said computing circuit develops a number corresponding to [tk−τk]modT where T is related to said fundamental frequency.
- 9. The apparatus of claim 7 where said computing circuit comprises a multiplier responsive to said index signal t and said index signal k, a subtractor responsive to said multiplier of said computing circuit and to said output signal of said memory for storing delay values, and a circuit for developing a remainder of the number developed by said subtractor, when that number is divided by T, where T is related to said fundamental frequency.
- 10. The apparatus of claim 7 wherein said controller develops a signal corresponding to said fundamental frequency, and said memory for storing coefficients Ak, said memory for storing delay values τk, said computing circuit responsive, and said memory for storing sample values of cosine are all responsive to said signal corresponding to said fundamental frequency.
US Referenced Citations (6)