From: Craig S. <cso...@us...> - 2006-04-30 13:49:44
|
Update of /cvsroot/openh323/opal/include/opal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/include/opal Modified Files: Tag: PluginBranch ivr.h Log Message: Add ability to set TextToSpeech driver Add useful defaults for VXML handling Index: ivr.h =================================================================== RCS file: /cvsroot/openh323/opal/include/opal/ivr.h,v retrieving revision 2.9 retrieving revision 2.9.4.1 diff -C2 -d -r2.9 -r2.9.4.1 *** ivr.h 30 Nov 2005 13:35:26 -0000 2.9 --- ivr.h 30 Apr 2006 13:49:34 -0000 2.9.4.1 *************** *** 26,29 **** --- 26,33 ---- * * $Log$ + * Revision 2.9.4.1 2006/04/30 13:49:34 csoutheren + * Add ability to set TextToSpeech driver + * Add useful defaults for VXML handling + * * Revision 2.9 2005/11/30 13:35:26 csoutheren * Changed tags for Doxygen *************** *** 181,189 **** ); ! /**Set the default emdia formats for all connections using VXML. */ void SetDefaultMediaFormats( const OpalMediaFormatList & formats ); //@} --- 185,207 ---- ); ! /**Set the default media formats for all connections using VXML. */ void SetDefaultMediaFormats( const OpalMediaFormatList & formats ); + + /** Called when a call needs to start the outgoing VXML. + This can be used to do different behaviour + */ + virtual BOOL StartVXML(); + + /** Set/get the default text to speech engine used by the IVR + */ + void SetDefaultTextToSpeech(const PString & tts) + { defaultTts = tts; } + + PString GetDefaultTextToSpeech() const + { return defaultTts; } + //@} *************** *** 192,195 **** --- 210,214 ---- PString defaultVXML; OpalMediaFormatList defaultMediaFormats; + PString defaultTts; }; *************** *** 294,297 **** --- 313,330 ---- virtual void InitiateCall(); + /** Called when a call needs to start the outgoing VXML. + This can be used to do different behaviour + */ + virtual BOOL StartVXML(); + + PTextToSpeech * SetTextToSpeech(PTextToSpeech * _tts, BOOL autoDelete = FALSE) + { return vxmlSession.SetTextToSpeech(_tts, autoDelete); } + + PTextToSpeech * SetTextToSpeech(const PString & ttsName) + { return vxmlSession.SetTextToSpeech(ttsName); } + + PTextToSpeech * GetTextToSpeech() + { return vxmlSession.GetTextToSpeech(); } + protected: OpalIVREndPoint & endpoint; |