Reeti
 All Classes Functions Variables Groups Pages
Public Member Functions | Public Attributes | List of all members
UTTS Class Reference

Text to speech. More...

#include <UTTS.h>

Inherits UObject.

Public Member Functions

double say (string str)
 Function that says the string contained as parameter. This function will set the UVAR isSpeaking to true, then return immediately. When finished, it well set isSpeaking to false. This function shouldn't be called when the reeti is already speaking (isSpeaking == true) More...
 
double sayWithSynchro (string str)
 Same as say but also moves the lip to simulate speech. More...
 
double saySynchrone (string str)
 Function that says the string contained as parameter in synchronous mode. The function will block until the TTS has finished. More...
 
void stopSpeech ()
 Stop the current speaking. More...
 

Public Attributes

UVar isSpeaking
 boolean UVar to know when Reeti is speaking (used by say() and sayWithSynchro())
 

Detailed Description

Text to speech.

This class contains all the information for text to speech purpose.

Date
August, 22 2011
Author
JBR
Version
1.2

Use

This is how the UTTS class is instantiated by Reeti launcher system :

Member Function Documentation

double UTTS::say ( string  str)

Function that says the string contained as parameter. This function will set the UVAR isSpeaking to true, then return immediately. When finished, it well set isSpeaking to false. This function shouldn't be called when the reeti is already speaking (isSpeaking == true)

Parameters
strString to be sayed by tts engine

Use

Global.tts.say("Bonjour, je m'appelle Reeti"),

Returns
0 for success
1 on failure
double UTTS::sayWithSynchro ( string  str)

Same as say but also moves the lip to simulate speech.

Parameters
strString to be said by tts engine

Use

Global.tts.sayWithSynchro("Bonjour, je m'appelle Reeti"),

Returns
0 for success
1 on failure
double UTTS::saySynchrone ( string  str)

Function that says the string contained as parameter in synchronous mode. The function will block until the TTS has finished.

Parameters
strString to be sayed by tts engine

Use

Global.tts.saySynchrone("Bonjour, je m'appelle Reeti"),

Returns
0 for success
1 on failure
void UTTS::stopSpeech ( )

Stop the current speaking.

Use

Global.tts.stopSpeech(),