Logo

alignment_result Class Reference

#include <sapi_lipsync.h>


Detailed Description

This data class contains phoneme alignment/lipsync results.

sapi_lipsync and it's subclasses generate a list of alignment_result objects.

The 'raw' form will contain the start and end time for each recognized word, along with the orthography (the text of the word) and the list of phonemes (alignment_result::m_phonemes)

alignment_result::m_phonemeEndTimes are not produced by SAPI. The actual phoneme times are estimated by this application. (see sapi_lipsync::finalize_phoneme_alignment for details).

Applications can either use the raw word results or use the finalized data.

See also:
run_sapi_textbased_lipsync for example code

run_sapi_textless_lipsync for example code

Definition at line 75 of file sapi_lipsync.h.

Data Fields

long m_msStart
 start time in milliseconds of this alignment result
long m_msEnd
 end time in milliseconds of this alignment result
std::wstring m_orthography
 the text representing this result
std::vector< std::wstring > m_phonemes
 the phonemes representing this result
std::vector< long > m_phonemeEndTimes
 the end time for each phoneme in milliseconds.


The documentation for this class was generated from the following file:

Copyright (C) 2002-2005 Annosoft LLC. All Rights Reserved.
Visit us at www.annosoft.com