Image sequences with lip movements synchronized with speech are commonly called “talking heads.” Talking heads are useful in applications of human-machine interaction, e.g. reading emails, news or eBooks, acting as an intelligent voice agent or a computer assisted language teacher, etc. A lively talking head can attract the attention of a user, make the human/machine interface more engaging or add entertainment to an application.
Generating talking heads that look like real people is challenging. A talking head needs to be not just photo-realistic in a static appearance, but exhibit convincing plastic deformations of the lips synchronized with the corresponding speech, because the most eye-catching region of a talking face involves the “articulators” (around the mouth including lips, teeth, and tongue).
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Audiovisual data of an individual reading a known script is obtained and stored in an audio library and an image library. The audiovisual data is processed to extract feature vectors used to train a statistical model, such as a context dependent hidden Markov model, in which a single Gaussian mixture model (GMM) is used to characterize state outputs. An input audio feature vector corresponding to desired speech with which a synthesized image sequence will be synchronized is provided. This input audio feature vector may be derived from text or from a speech signal.
The statistical model is used to generate a trajectory of visual feature vectors that corresponds to the input audio feature vector. These visual feature vectors are used to identify a matching image sequence from the image library. The matching process takes into account both a target cost and a concatenation cost. The target cost represents a measure of the difference (or similarity), between feature vectors of images in the image library and the feature vectors in the trajectory. For example, the target cost may be a Euclidean distance between pairs of feature vectors. The concatenation cost represents a measure of the difference (or similarity) between adjacent images in the output image sequence. For example, the concatenation cost may be a correlation between adjacent images in the output image sequence. The resulting sequence of images, concatenated from the image library, provides a photorealistic image sequence with lip movements synchronized with the desired speech.
In the following description, reference is made to the accompanying drawings which form a part hereof, and in which are shown, by way of illustration, specific example implementations of this technique. It is understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the claimed subject matter.
The following section provides an example system environment in which photorealistic image sequence generation can be used.
Referring now to
The application 100 can use a talking head for a variety of purposes. For example, the application 100 can be a computer assisted language learning applications, a language dictionary (e.g., to demonstrate pronunciation), an email reader, a news reader, a book reader, a text-to-speech system, an intelligent voice agent, an avatar of an individual for a virtual meeting room, a virtual agent in dialogue system, video conferencing, online chatting, gaming, movie animation, or other application that provides visual and speech-based interaction with an individual.
In general, such an application 100 provides an input, such as text 110, or optionally speech 112, to a synthesis module 104, which in turn generates an image sequence 106 with lip movements synchronized with speech that matches the text or the input speech. The synthesis module 104 relies on a model 108, described in more detail below. The operation of the synthesis module also is described in more detail below.
When text is provided by the application 100, the text 110 is input to a text-to-speech conversion module 114 to generate speech 112. The application 100 also might provide a speech signal 112, in which case the text-to-speech conversion is not used and the synthesis module generates an image sequence 106 using the speech signal 112.
The speech signal 112 and the image sequence 106 are played back using a synchronized playback module 120, which generates audiovisual signals 122 that output to the end user through an audiovisual output device 102. The synchronized playback module may reside in a computing device at the end user's location, or may be in a remote computer.
Having now described the application environment in which the synthesis of image sequences may be used, how such image sequences are generated will now be described.
Referring now to
The model 204 is used by a synthesis module 206 to generate a visual feature vector sequence corresponding to an input set of feature vectors for speech with which the facial animation is to be synchronized. The input set of feature vectors for speech is derived from input 208, which may be text or speech. The visual feature vector sequence is used to select an image sample sequence from an image library (part of the model 204). This image sample sequence is processed to provide the photo-realistic image sequence 210 to be synchronized with speech signals corresponding to the input 208 of the synthesis module.
The training module, in general, would be used once for each individual for whom a model is created for generating photorealistic image sequences. The synthesis module is used each time a new text or speech sequence is provide for which a new image sequence is to be synthesized from the model. It is possible to create, store and re-use image sequences from the synthesis module instead of recomputing them each time.
Training of the statistical model will be described first in connection with
In
Because a reader typically moves his or her head naturally during recording, the images can be normalized for head position by a head pose normalization module 302. For example, the poses of each frame of the recorded audio visual content are normalized and aligned to a full-frontal view. An example implementation of head pose normalization is to use the techniques found in Q. Wang, W. Zhang, X. Tang, H. Y. Shum, “Real-time Bayesian 3-d pose tracking,” IEEE Transactions on Circuits and Systems for Video Technology 16(12) (2006), pp. 1533-1541. Next, the images of just the articulators (i.e., the mouth, lips, teeth, tongue, etc.) are cropped out with a fixed rectangle window and a library of lips sample images is made. These images also may be stored in the audiovisual database 300 and/or passed on to a visual feature extraction module 304.
Using the library of lips sample images, visual feature extraction module 304 generates visual feature vectors for each image. In one implementation, eigenvectors of each lips image are obtained by applying principal component analysis (PCA) to each image. From experiments, the top twenty eigenvectors contained about 90% of the accumulated variance. Therefore, twenty eigenvectors are used for each lips image. Thus the visual feature vector for each lips image ST is described by its PCA vector,
V
T
=S
T
W (1)
where W is the projection matrix made by the top 20 eigenvectors of the lips images.
Acoustic feature vectors for the audio data related to each of the lips sample images also are created, using conventional techniques such as by computing the Mel-frequency cepstral coefficients (MFCCs).
Next, the audio and video feature vectors 305 (which also may be stored in the audiovisual library) are used by a statistical model training module 307 to generate a statistical model 306. In one implementation, acoustic vectors At=[atT, ΔatT, ΔΔatT]T and visual vectors Vt=[vtT, ΔvtT, ΔΔvtT]T are used, which are formed by augmenting the static features and their dynamic counterparts to represent the audio and video data. Audio-visual hidden Markov models (HMMs), λ, are trained by maximizing the joint probability p(A, V|λ) over the acoustic and visual training vectors. In order to capture the contextual effects, context dependent HMMs are trained and tree-based clustering is applied to acoustic and visual feature streams separately to improve the corresponding model robustness. For each audiovisual HMM state, a single Gaussian mixture model (GMM) is used to characterize the state output. The state q has a mean vectors μq(A) and μq(V). In one implementation, the diagonal covariance matrices for Σq(AA) and Σq(VV), null covariance matrices for Σq(AV) and Σq(VA), are used by assuming the independence between audio and visual streams and between different components. Training of an HMM is described, for example, in Fundamentals of Speech Recognition by Lawrence Rabiner and Biing-Hwang Juang, Prentice-Hall, 1993.
Referring now to
Having now described how a statistical model is trained using audiovisual data, the process of synthesizing an image sequence using this model will now be described in more detail.
Referring now to
An implementation of module 500 is as follows. Given a continuous audiovisual HMM λ, and acoustic feature vectors A=[A1T, A2T, . . . , ATT]T, the module identifies a visual feature vector sequence V=[V1T, V2T, . . . , VTT]T such that the following likelihood function is maximized:
p(V|A,λ)=Σall Qp(Q|A,λ)·p(V|A,Q,λ), (2)
Equation (2) is maximized with respect to V, where Q is the state sequence. In particular, at frame t, p(Vt|At, qt, λ) are given by:
p(Vt|At,qt,λ)=N(Vt;{circumflex over (μ)}q
{circumflex over (μ)}q
{circumflex over (Σ)}q
We consider the optimal state sequence Q by maximizing the likelihood function p(Q|A,λ) with respect to the given acoustic feature vectors A and model λ. Then, the logarithm of the likelihood function is written as
The constant K is independent of V. The relationship between a sequence of the static feature vectors C=[v1T, v2T, . . . , vTT]T and a sequence of the static and dynamic feature vectors V can be represented as a linear conversion,
V=W
c
C, (9)
where Wc is a transformation matrix, such as described in K. Tokuda, H. Zen, etc., “The HMM-based speech synthesis system (HTS),” http://hts.ics.nitech.ac.jp/. By setting
{circumflex over (V)}opt mat maximizes the logarithmic likelihood function is given by
{circumflex over (V)}
opt
=W
c
C
opt
=W
c(WcTÛ(VV)
The visual feature vector sequence 506 is a compact description of articulator movements in the lower rank eigenvector space of the lips images. However, the lips image sequence to which it corresponds, if used as an output image sequence, would be blurred due to: (1) dimensionality reduction in PCA; (2) maximum likelihood (ML)-based model parameter estimation and trajectory generation. Therefore, this trajectory is used to guide selection of the real sample images, which in turn are concatenated to construct the output image sequence. In particular, an image selection module 508 receives the visual feature vector sequence 506 and searches the audiovisual database 510 for a real image sample sequence 512 in the library which is closest to the predicted trajectory as the optimal solution. Thus, the articulator movement in the visual trajectory is reproduced and photo-realistic rendering is provided by using real image samples.
An implementation of the image selection module 508 is as follows. First, the total cost for a sequence of T selected samples is the weighted sum of the target and concatenation costs:
C({circumflex over (V)}1T,Ŝ1T=Σi=1TωtCt({circumflex over (V)}i,Ŝi)+Σi=2TωcCc(Ŝi−1,Ŝi) (11)
The target cost of an image sample is measured by the Euclidean distance between their PCA vectors.
C
t({circumflex over (V)}i,Ŝi)=∥{circumflex over (V)}i−ŜiTW∥ (12)
The concatenation cost is measured by the normalized 2-D cross correlation (NCC) between two image samples Ŝi and Ŝj, as Equation 13 below shows. Since the correlation coefficient ranges in value from −1.0 to 1.0, NCC is by nature a normalized similarity score.
Assume that the corresponding samples of Ŝi and Ŝj in the sample library are Sp and Sq, i.e., Ŝi=Sp, and Ŝj=Sq, where, p and q are the sample indexes in video recording. And hence Sp and Sp+1, Sq−1 and Sq are consecutive frames in the original recording. As defined in Eq. 14, the concatenation cost between Ŝi and Ŝj is measured by the NCC of the Sp and the Sq−1 and the NCC of the Sp+1 and Sq.
Because NCC(Sp,Sp)=NCC(Sq,Sq)=1, then Cc(Sp,Sp+1)=Cc(Sq−1,Sq)=0, so that the selection of consecutive frames in the original recording is encouraged.
The sample selection procedure is the task of determining the set of image sample Ŝ1T so that the total cost defined by Equation 11 is minimized, which is represented mathematically by Equation 15:
Ŝ
1
T=argminŜ
Optimal sample selection can be performed with a Viterbi search. However, to obtain near real-time synthesis on large dataset, containing tens of thousands of samples, the search space is pruned. One example of such pruning is implemented in two parts. First, for every target frame in the trajectory, K-nearest samples are identified according to the target cost. The beam width K can be, for example, between 1 and N (the total number of images). The number K can be selected so as to provide the desired performance. Second, the remaining samples are pruned according to the concatenation cost.
The operation of a system such as shown in
As a result of this image selection technique, a set of real images closely matching the predicted trajectory and smoothly transitioning between each other provide a photorealistic image sequence with lip movements that closely match the provided audio or text.
The system for generating photorealistic image sequences is designed to operate in a computing environment. The following description is intended to provide a brief, general description of a suitable computing environment in which this system can be implemented. The system can be implemented with numerous general purpose or special purpose computing hardware configurations. Examples of well known computing devices that may be suitable include, but are not limited to, personal computers, server computers, hand-held or laptop devices (for example, media players, notebook computers, cellular phones, personal data assistants, voice recorders), multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
With reference to
Device 700 may also contain communications connection(s) 712 that allow the device to communicate with other devices. Communications connection(s) 712 is an example of communication media. Communication media typically carries computer program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal, thereby changing the configuration or state of the receiving device of the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
Device 700 may have various input device(s) 714 such as a display, a keyboard, mouse, pen, camera, touch input device, and so on. Output device(s) 716 such as speakers, a printer, and so on may also be included. All of these devices are well known in the art and need not be discussed at length here.
The system for photorealistic image sequence generation may be implemented in the general context of software, including computer-executable instructions and/or computer-interpreted instructions, such as program modules, being processed by a computing device. Generally, program modules include routines, programs, objects, components, data structures, and so on, that, when processed by the computing device, perform particular tasks or implement particular abstract data types. This system may be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Any or all of the aforementioned alternate embodiments described herein may be used in any combination desired to form additional hybrid embodiments. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. The specific features and acts described above are disclosed as example forms of implementing the claims.