Output Class Reference

The class with complete information about valid and ready to use output. More...

List of all members.

Classes

struct  FloatValueFormat

Public Member Functions

void addCapMapItem (wchar_t c, const std::wstring &value)
 Adds new replacement to mark capitalized letter.
std::string getFamily () const
 Returns the voice family of this output.
const LanggetLang () const
 Sets new pointer to language object.
LangId getLangId () const
 Returns the language ID this output is processing.
std::string getName () const
 Returns the name of this output.
 Output ()
 The constructor.
std::string prepareAlsaPlayerCommand (const TextItem &textItem) const
 Generates the command line to execute ALSA player.
std::string preparePcspeakerPlayerCommand (const TextItem &textItem) const
 Generates the command line to execute PC speaker player.
std::string preparePulseaudioPlayerCommand (const TextItem &textItem) const
 Generates the command line to execute PulseAudio player.
std::string prepareSynthCommand (const TextItem &textItem) const
 Generates the command line to execute speech synthesizer.
std::string prepareText (const TextItem &textItem) const
 Prepares text to send to speech synthesizer.
void setAlsaPlayerCommand (const std::string &cmdLine)
 Sets new command line template to run ALSA player.
void setFamily (const std::string &family)
 Sets new voice family of this output.
void setLang (const Lang *lang)
 Sets new pointer to language object.
void setLangId (LangId langId)
 Sets new language IDthis output is processing.
void setName (const std::string &name)
 Sets new name for this output.
void setPcspeakerPlayerCommand (const std::string &cmdLine)
 Sets new command line template to run PC speaker player.
void setPitchFormat (size_t digits, double min, double aver, double max)
 Sets the format of pitch value used in command lines.
void setPulseaudioPlayerCommand (const std::string &cmdLine)
 Sets new command line template to run PulseAudio player.
void setRateFormat (size_t digits, double min, double aver, double max)
 Sets the format of rate value used in command lines.
void setSynthCommand (const std::string &cmdLine)
 Sets new command line template to run synthesizer.
void setVolumeFormat (size_t digits, double min, double aver, double max)
 Sets the format of volume value used in command lines.
virtual ~Output ()
 The destructor.


Detailed Description

The output in VoiceMan terminology means one available speech synthesizer with all its corresponding settings, required to invoke it and make speech generation. One available in your system synthesizer must not be represented exactly by one output, there can be several outputs for each TTS witrh different parameters. This class does not perform synthesizer execution, it only stores information about it and makes some data preprocessing. External synthesizer calls are made by separate process, called executor. It is managed by ExecutorInterface class.

Member Function Documentation

void Output::addCapMapItem ( wchar_t  c,
const std::wstring &  value 
)

Parameters:
[in] c The letter being marked
[in] value The text string to replace with

const Lang* Output::getLang (  )  const [inline]

Language object is used by Output class for miscellaneous text processing before sending to executor. This method allows you get current stored value of Lang pointer.

Returns:
The pointer to used language object

std::string Output::prepareAlsaPlayerCommand ( const TextItem textItem  )  const

Parameters:
[in] textItem The part of text data to generate command line for

std::string Output::preparePcspeakerPlayerCommand ( const TextItem textItem  )  const

Parameters:
[in] textItem The part of text data to generate command line for

std::string Output::preparePulseaudioPlayerCommand ( const TextItem textItem  )  const

Parameters:
[in] textItem The part of text data to generate command line for

std::string Output::prepareSynthCommand ( const TextItem textItem  )  const

Parameters:
[in] textItem The part of text data to generate command line for

std::string Output::prepareText ( const TextItem textItem  )  const

Parameters:
[in] textItem The text item to prepare text of

void Output::setAlsaPlayerCommand ( const std::string &  cmdLine  )  [inline]

Parameters:
[in] cmdLine The command line pattern to set

void Output::setFamily ( const std::string &  family  )  [inline]

Parameters:
[in] family The new voice family to set

void Output::setLang ( const Lang lang  )  [inline]

Language object is used by Output class for miscellaneous text processing before sending to executor. This method allows you set current stored value of Lang pointer.

Parameters:
[in] lang The pointer to language object to set

void Output::setLangId ( LangId  langId  )  [inline]

Parameters:
[in] langId The ID of the language to set

void Output::setName ( const std::string &  name  )  [inline]

Parameters:
[in] name The new name to set

void Output::setPcspeakerPlayerCommand ( const std::string &  cmdLine  )  [inline]

Parameters:
[in] cmdLine The command line pattern to set

void Output::setPitchFormat ( size_t  digits,
double  min,
double  aver,
double  max 
)

This value will be used in synthesizer and player calls during speech generation. Purpose of each parameter is describe in TextParam documentation. If different players require different form of some parameter, you should avoid it specification in players command line and use it only in command line of synthesizer.

Parameters:
[in] digits Number of digits after decimal dot
[in] min The number to translate minimal parameter value into
[in] aver The number to translate average parameter value into
[in] max The number to translate maximum parameter value into

void Output::setPulseaudioPlayerCommand ( const std::string &  cmdLine  )  [inline]

Parameters:
[in] cmdLine The command line pattern to set

void Output::setRateFormat ( size_t  digits,
double  min,
double  aver,
double  max 
)

This value will be used in synthesizer and player calls during speech generation. Purpose of each parameter is describe in TextParam documentation. If different players require different form of some parameter, you should avoid it specification in players command line and use it only in command line of synthesizer.

Parameters:
[in] digits Number of digits after decimal dot
[in] min The number to translate minimal parameter value into
[in] aver The number to translate average parameter value into
[in] max The number to translate maximum parameter value into

void Output::setSynthCommand ( const std::string &  cmdLine  )  [inline]

Parameters:
[in] cmdLine The command line pattern to set

void Output::setVolumeFormat ( size_t  digits,
double  min,
double  aver,
double  max 
)

This value will be used in synthesizer and player calls during speech generation. Purpose of each parameter is describe in TextParam documentation. If different players require different form of some parameter, you should avoid it specification in players command line and use it only in command line of synthesizer.

Parameters:
[in] digits Number of digits after decimal dot
[in] min The number to translate minimal parameter value into
[in] aver The number to translate average parameter value into
[in] max The number to translate maximum parameter value into


Generated on Thu May 6 16:10:58 2010 for VoiceMan by  doxygen 1.5.9