#include <tts/tts_process.h>

Public Member Functions | |
| wxTTSExternalCommandHandler (const wxString &id, const wxString &displayName) | |
| ~wxTTSExternalCommandHandler () | |
| void | Init () |
| Member initialisation. | |
| virtual bool | Initialize () |
| Initialize the engine. Can call multiple times. | |
| virtual bool | Uninitialize () |
| Clean up the engine. Can call multiple times. | |
| virtual bool | IsSpeaking () const |
| Is it speaking? | |
| virtual bool | Stop () |
| Stop speaking. | |
| virtual bool | Launch (const wxString &cmd, int options) |
| Launch command. | |
| virtual bool | VoicesAreCompatible (const wxString &voice1, const wxString &voice2) const |
| The voice names can be the same. | |
| void | SetLastCommand (const wxString &command) |
| Set/get the last command. | |
| wxString | GetLastCommand () const |
| Get last command, if using external command. | |
| void | SetErrorCode (int errorCode) |
| Set/get the error code. | |
| int | GetErrorCode () const |
| void | SetPID (long pid) |
| Set/get the process id. | |
| long | GetPID () const |
| void | SetOutput (const wxArrayString &output) |
| Set/get the output from the command. | |
| const wxArrayString & | GetOutput () const |
| virtual bool | ProcessInput () |
| Process any pending input. | |
| virtual void | WriteOutput (const wxString &output) |
| Add a line of output. | |
| void | SetProcess (wxTTSExternalCommandHandlerProcess *process) |
| Set/get process. | |
| wxTTSExternalCommandHandlerProcess * | GetProcess () const |
Static Public Member Functions | |
| static bool | IsStopping () |
| Cannot safely start engine while another is in a yield loop, so test this and fail if necessary. | |
Protected Attributes | |
| wxString | m_command |
| wxArrayString | m_output |
| int | m_errorCode |
| wxTTSExternalCommandHandlerProcess * | m_process |
| long | m_pid |
Static Protected Attributes | |
| static int | sm_stopping = 0 |
| wxTTSExternalCommandHandler::wxTTSExternalCommandHandler | ( | const wxString & | id, | |
| const wxString & | displayName | |||
| ) |
| wxTTSExternalCommandHandler::~wxTTSExternalCommandHandler | ( | ) |
| int wxTTSExternalCommandHandler::GetErrorCode | ( | ) | const [inline] |
Reimplemented from wxTTSHandler.
| wxString wxTTSExternalCommandHandler::GetLastCommand | ( | ) | const [inline, virtual] |
| const wxArrayString& wxTTSExternalCommandHandler::GetOutput | ( | ) | const [inline] |
| long wxTTSExternalCommandHandler::GetPID | ( | ) | const [inline] |
| wxTTSExternalCommandHandlerProcess* wxTTSExternalCommandHandler::GetProcess | ( | ) | const [inline] |
| void wxTTSExternalCommandHandler::Init | ( | ) |
Member initialisation.
Reimplemented from wxTTSHandler.
Reimplemented in wxTTSCepstralHandler, and wxTTSEspeakHandler.
| virtual bool wxTTSExternalCommandHandler::Initialize | ( | ) | [inline, virtual] |
Initialize the engine. Can call multiple times.
Reimplemented from wxTTSHandler.
Reimplemented in wxTTSCepstralHandler, and wxTTSEspeakHandler.
| virtual bool wxTTSExternalCommandHandler::IsSpeaking | ( | ) | const [inline, virtual] |
Is it speaking?
Implements wxTTSHandler.
Reimplemented in wxTTSCepstralHandler, and wxTTSEspeakHandler.
| static bool wxTTSExternalCommandHandler::IsStopping | ( | ) | [inline, static] |
Cannot safely start engine while another is in a yield loop, so test this and fail if necessary.
| bool wxTTSExternalCommandHandler::Launch | ( | const wxString & | cmd, | |
| int | options | |||
| ) | [virtual] |
Launch command.
| bool wxTTSExternalCommandHandler::ProcessInput | ( | ) | [virtual] |
| void wxTTSExternalCommandHandler::SetErrorCode | ( | int | errorCode | ) | [inline] |
| void wxTTSExternalCommandHandler::SetLastCommand | ( | const wxString & | command | ) | [inline] |
Set/get the last command.
| void wxTTSExternalCommandHandler::SetOutput | ( | const wxArrayString & | output | ) | [inline] |
Set/get the output from the command.
| void wxTTSExternalCommandHandler::SetPID | ( | long | pid | ) | [inline] |
Set/get the process id.
| void wxTTSExternalCommandHandler::SetProcess | ( | wxTTSExternalCommandHandlerProcess * | process | ) | [inline] |
Set/get process.
| bool wxTTSExternalCommandHandler::Stop | ( | ) | [virtual] |
| virtual bool wxTTSExternalCommandHandler::Uninitialize | ( | ) | [inline, virtual] |
Clean up the engine. Can call multiple times.
Reimplemented from wxTTSHandler.
Reimplemented in wxTTSCepstralHandler, and wxTTSEspeakHandler.
| virtual bool wxTTSExternalCommandHandler::VoicesAreCompatible | ( | const wxString & | voice1, | |
| const wxString & | voice2 | |||
| ) | const [virtual] |
The voice names can be the same.
| virtual void wxTTSExternalCommandHandler::WriteOutput | ( | const wxString & | output | ) | [inline, virtual] |
Add a line of output.
wxString wxTTSExternalCommandHandler::m_command [protected] |
int wxTTSExternalCommandHandler::m_errorCode [protected] |
Reimplemented from wxTTSHandler.
wxArrayString wxTTSExternalCommandHandler::m_output [protected] |
long wxTTSExternalCommandHandler::m_pid [protected] |
int wxTTSExternalCommandHandler::sm_stopping = 0 [static, protected] |
1.5.8