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 Lang * | getLang () 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. |
void Output::addCapMapItem | ( | wchar_t | c, | |
const std::wstring & | value | |||
) |
[in] | c | The letter being marked |
[in] | value | The text string to replace with |
const Lang* Output::getLang | ( | ) | const [inline] |
std::string Output::prepareAlsaPlayerCommand | ( | const TextItem & | textItem | ) | const |
[in] | textItem | The part of text data to generate command line for |
std::string Output::preparePcspeakerPlayerCommand | ( | const TextItem & | textItem | ) | const |
[in] | textItem | The part of text data to generate command line for |
std::string Output::preparePulseaudioPlayerCommand | ( | const TextItem & | textItem | ) | const |
[in] | textItem | The part of text data to generate command line for |
std::string Output::prepareSynthCommand | ( | const TextItem & | textItem | ) | const |
[in] | textItem | The part of text data to generate command line for |
std::string Output::prepareText | ( | const TextItem & | textItem | ) | const |
[in] | textItem | The text item to prepare text of |
void Output::setAlsaPlayerCommand | ( | const std::string & | cmdLine | ) | [inline] |
[in] | cmdLine | The command line pattern to set |
void Output::setFamily | ( | const std::string & | family | ) | [inline] |
[in] | family | The new voice family to set |
void Output::setLang | ( | const Lang * | lang | ) | [inline] |
void Output::setLangId | ( | LangId | langId | ) | [inline] |
[in] | langId | The ID of the language to set |
void Output::setName | ( | const std::string & | name | ) | [inline] |
[in] | name | The new name to set |
void Output::setPcspeakerPlayerCommand | ( | const std::string & | cmdLine | ) | [inline] |
[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.
[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] |
[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.
[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] |
[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.
[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 |