SpeechFlex Class Reference

#include <SpeechFlex.h>

Inheritance diagram for SpeechFlex:

SoundFlex Pentagram::Archive List of all members.

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::istringphrases

Detailed Description

Definition at line 25 of file SpeechFlex.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

SpeechFlex::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from SoundFlex.

int SpeechFlex::getIndexForPhrase ( const std::string &  phrase,
uint32  start,
uint32 end 
) const

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().


Member Data Documentation

std::vector<Pentagram::istring> SpeechFlex::phrases [private]

Definition at line 27 of file SpeechFlex.h.

Referenced by getIndexForPhrase(), and SpeechFlex().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:58 2007 for pentagram by  doxygen 1.4.7