⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ptts_8h-source.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ptts.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>ptts.h</h1><a href="ptts_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * ptts.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Text To Speech classes</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: ptts.h,v $</span>00027 <span class="comment"> * Revision 1.6  2004/07/07 07:18:43  csoutheren</span>00028 <span class="comment"> * Removed warnings on Linux from Windows static global hacks</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.5  2004/07/06 10:12:51  csoutheren</span>00031 <span class="comment"> * Added static integer o factory template to assist in ensuring factories are instantiated</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.4  2004/06/19 07:18:58  csoutheren</span>00034 <span class="comment"> * Change TTS engine registration to use abstract factory code</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.3  2002/11/06 22:47:24  robertj</span>00037 <span class="comment"> * Fixed header comment (copyright etc)</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.2  2002/09/16 01:08:59  robertj</span>00040 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00041 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.1  2002/08/06 04:45:38  craigs</span>00044 <span class="comment"> * Initial version</span>00045 <span class="comment"> *</span>00046 <span class="comment"> */</span>00047 00048 <span class="preprocessor">#ifndef _PTEXTTOSPEECH</span>00049 <span class="preprocessor"></span><span class="preprocessor">#define _PTEXTTOSPEECH</span>00050 <span class="preprocessor"></span>00051 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00052 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00053 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00054 <span class="preprocessor"></span>00055 <span class="preprocessor">#include &lt;ptlib.h&gt;</span>00056 <span class="preprocessor">#include &lt;<a class="code" href="ptts_8h.html">ptclib/ptts.h</a>&gt;</span>00057 <a name="l00058"></a><a class="code" href="classPTextToSpeech.html">00058</a> <span class="keyword">class </span><a class="code" href="classPTextToSpeech.html">PTextToSpeech</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00059 {00060   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPTextToSpeech.html">PTextToSpeech</a>, <a class="code" href="classPObject.html">PObject</a>);00061   <span class="keyword">public</span>:<a name="l00062"></a><a class="code" href="classPTextToSpeech.html#s10">00062</a>     <span class="keyword">enum</span> <a class="code" href="classPTextToSpeech.html#s10">TextType</a> {00063       <a class="code" href="classPTextToSpeech.html#s10s0">Default</a>,00064       <a class="code" href="classPTextToSpeech.html#s10s1">Literal</a>,00065       <a class="code" href="classPTextToSpeech.html#s10s2">Digits</a>,00066       <a class="code" href="classPTextToSpeech.html#s10s3">Number</a>,00067       <a class="code" href="classPTextToSpeech.html#s10s4">Currency</a>,00068       <a class="code" href="classPTextToSpeech.html#s10s5">Time</a>,00069       <a class="code" href="classPTextToSpeech.html#s10s6">Date</a>,00070       <a class="code" href="classPTextToSpeech.html#s10s7">Phone</a>,00071       <a class="code" href="classPTextToSpeech.html#s10s8">IPAddress</a>,00072       <a class="code" href="classPTextToSpeech.html#s10s9">Duration</a>00073     };00074 00075     <span class="keyword">virtual</span> <a class="code" href="classPStringArray.html">PStringArray</a> <a class="code" href="classPTextToSpeech.html#a0">GetVoiceList</a>() = 0;00076     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a1">SetVoice</a>(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; voice) = 0;00077 00078     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a2">SetRate</a>(<span class="keywordtype">unsigned</span> rate) = 0;00079     <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classPTextToSpeech.html#a3">GetRate</a>() = 0;00080 00081     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a4">SetVolume</a>(<span class="keywordtype">unsigned</span> volume) = 0;00082     <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classPTextToSpeech.html#a5">GetVolume</a>() = 0;00083 00084     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a6">OpenFile</a>   (<span class="keyword">const</span> <a class="code" href="classPFilePath.html">PFilePath</a> &amp; fn) = 0;00085     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a7">OpenChannel</a>(<a class="code" href="classPChannel.html">PChannel</a> * chanel) = 0;00086     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a8">IsOpen</a>() = 0;00087 00088     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a9">Close</a>      () = 0;00089     <span class="keyword">virtual</span> BOOL <a class="code" href="classPTextToSpeech.html#a10">Speak</a>      (<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; text, <a class="code" href="classPTextToSpeech.html#s10">TextType</a> hint = <a class="code" href="classPTextToSpeech.html#s10s0">Default</a>) = 0;00090 };00091 00092 <span class="preprocessor">#ifdef _WIN32</span>00093 <span class="preprocessor"></span><span class="preprocessor">#  ifndef P_DISABLE_FACTORY_INSTANCES</span>00094 <span class="preprocessor"></span><span class="preprocessor">#    ifndef  P_FACTORY_INSTANCE_PTextToSpeech</span>00095 <span class="preprocessor"></span><span class="preprocessor">#      define P_FACTORY_INSTANCE_PTextToSpeech 1</span>00096 <span class="preprocessor"></span><span class="preprocessor">#      pragma message("Including PTextToSpeech factory loader")</span>00097 <span class="preprocessor"></span>       PLOAD_FACTORY(<a class="code" href="classPTextToSpeech.html">PTextToSpeech</a>, <a class="code" href="classPString.html">PString</a>)00098 #    endif00099 <span class="preprocessor">#  endif</span>00100 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00101 <span class="preprocessor"></span>00102 <span class="preprocessor">#endif</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:11 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -