ptts.h

Go to the documentation of this file.
00001 /*
00002  * ptts.h
00003  *
00004  * Text To Speech classes
00005  *
00006  * Portable Windows Library
00007  *
00008  * Copyright (c) 2002 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Portable Windows Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Contributor(s): ______________________________________.
00025  *
00026  * $Revision: 21788 $
00027  * $Author: rjongbloed $
00028  * $Date: 2008-12-11 23:42:13 -0600 (Thu, 11 Dec 2008) $
00029  */
00030 
00031 #ifndef PTLIB_PTTS_H
00032 #define PTLIB_PTTS_H
00033 
00034 #ifdef P_USE_PRAGMA
00035 #pragma interface
00036 #endif
00037 
00038 #include <ptlib.h>
00039 
00040 
00041 #include <ptclib/ptts.h>
00042 
00043 class PTextToSpeech : public PObject
00044 {
00045   PCLASSINFO(PTextToSpeech, PObject);
00046   public:
00047     enum TextType {
00048       Default,
00049       Literal,
00050       Digits,
00051       Number,
00052       Currency,
00053       Time,
00054       Date,
00055       DateAndTime,
00056       Phone,
00057       IPAddress,
00058       Duration,
00059       Spell
00060     };
00061 
00062     virtual PStringArray GetVoiceList() = 0;
00063     virtual PBoolean SetVoice(const PString & voice) = 0;
00064 
00065     virtual PBoolean SetRate(unsigned rate) = 0;
00066     virtual unsigned GetRate() = 0;
00067 
00068     virtual PBoolean SetVolume(unsigned volume) = 0;
00069     virtual unsigned GetVolume() = 0;
00070 
00071     virtual PBoolean OpenFile   (const PFilePath & fn) = 0;
00072     virtual PBoolean OpenChannel(PChannel * chanel) = 0;
00073     virtual PBoolean IsOpen() = 0;
00074 
00075     virtual PBoolean Close      () = 0;
00076     virtual PBoolean Speak      (const PString & text, TextType hint = Default) = 0;
00077 };
00078 
00079 
00080 #endif // PTLIB_PTTS_H
00081 
00082 
00083 // End Of File ///////////////////////////////////////////////////////////////

Generated on Thu May 27 01:36:48 2010 for PTLib by  doxygen 1.4.7