#include <SpeechFlex.h>
Inheritance diagram for SpeechFlex:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
SpeechFlex (IDataSource *ds) | |
virtual | ~SpeechFlex (void) |
int | getIndexForPhrase (const std::string &phrase, uint32 start, uint32 &end) const |
uint32 | getSpeechLength (const std::string &phrase) |
Private Attributes | |
std::vector< Pentagram::istring > | phrases |
Definition at line 25 of file SpeechFlex.h.
SpeechFlex::SpeechFlex | ( | IDataSource * | ds | ) |
Definition at line 26 of file SpeechFlex.cpp.
References Pentagram::Archive::getRawObject(), Pentagram::Archive::getRawSize(), phrases, Pentagram::SplitString(), Pentagram::TabsToSpaces(), and Pentagram::TrimSpaces().
SpeechFlex::~SpeechFlex | ( | void | ) | [virtual] |
Definition at line 48 of file SpeechFlex.cpp.
SpeechFlex::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from SoundFlex.
Definition at line 52 of file SpeechFlex.cpp.
References phrases, and Pentagram::TabsToSpaces().
Referenced by AudioProcess::continueSpeech(), getSpeechLength(), and AudioProcess::playSpeech().
uint32 SpeechFlex::getSpeechLength | ( | const std::string & | phrase | ) |
get total length (in milliseconds) of speech for a phrase
Definition at line 86 of file SpeechFlex.cpp.
References getIndexForPhrase(), Pentagram::AudioSample::getLength(), Pentagram::AudioSample::getRate(), SoundFlex::getSample(), Pentagram::AudioSample::isStereo(), and SoundFlex::samples.
Referenced by AudioProcess::getSpeechLength().
std::vector<Pentagram::istring> SpeechFlex::phrases [private] |