#include <ax/ax_speech.h>
Public Member Functions | |
AxSpeechEventHandler () | |
virtual bool | ProcessSpeechEvent (AxSpeech *speech, AxSpeechEvent &event)=0 |
AxSpeechEventHandler * | GetNextHandler () const |
void | SetNextHandler (AxSpeechEventHandler *handler) |
Static Public Member Functions | |
static bool | IsPunctuation (const wxChar &ch) |
Is this punctuation? | |
static bool | RemoveTrailingPunctuation (wxString &str) |
Remove trailing punctuation. | |
static bool | AddStop (wxString &str, const wxString &punct=wxT(".")) |
Add a full stop to the string, unless there's already one there. | |
static bool | AddPause (wxString &str, const wxString &punct=wxT(";")) |
Add a semicolon to the string to create a pause, unless there's already one there. | |
Protected Attributes | |
AxSpeechEventHandler * | m_nextHandler |
AxSpeechEventHandler::AxSpeechEventHandler | ( | ) | [inline] |
bool AxSpeechEventHandler::AddPause | ( | wxString & | str, | |
const wxString & | punct = wxT(";") | |||
) | [static] |
Add a semicolon to the string to create a pause, unless there's already one there.
Remove extra punctuation.
bool AxSpeechEventHandler::AddStop | ( | wxString & | str, | |
const wxString & | punct = wxT(".") | |||
) | [static] |
Add a full stop to the string, unless there's already one there.
Remove extra punctuation, e.g. semicolon.
AxSpeechEventHandler* AxSpeechEventHandler::GetNextHandler | ( | ) | const [inline] |
bool AxSpeechEventHandler::IsPunctuation | ( | const wxChar & | ch | ) | [static] |
Is this punctuation?
virtual bool AxSpeechEventHandler::ProcessSpeechEvent | ( | AxSpeech * | speech, | |
AxSpeechEvent & | event | |||
) | [pure virtual] |
Implemented in AxStandardSpeechEventHandler.
bool AxSpeechEventHandler::RemoveTrailingPunctuation | ( | wxString & | str | ) | [static] |
Remove trailing punctuation.
void AxSpeechEventHandler::SetNextHandler | ( | AxSpeechEventHandler * | handler | ) | [inline] |
AxSpeechEventHandler* AxSpeechEventHandler::m_nextHandler [protected] |