/documentation/tts/com/google/tts/TTSEngine.html

http://eyes-free.googlecode.com/ · HTML · 370 lines · 306 code · 42 blank · 22 comment · 0 complexity · c154de83a4efd1369ba367bfccdbb6de MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_16) on Fri Oct 09 19:06:10 PDT 2009 -->
  6. <TITLE>
  7. TTSEngine
  8. </TITLE>
  9. <META NAME="date" CONTENT="2009-10-09">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="TTSEngine";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/google/tts/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  39. </TR>
  40. </TABLE>
  41. </TD>
  42. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  43. </EM>
  44. </TD>
  45. </TR>
  46. <TR>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. &nbsp;<A HREF="../../../com/google/tts/TTSEarcon.html" title="enum in com.google.tts"><B>PREV CLASS</B></A>&nbsp;
  49. &nbsp;<A HREF="../../../com/google/tts/TTSParams.html" title="enum in com.google.tts"><B>NEXT CLASS</B></A></FONT></TD>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. <A HREF="../../../index.html?com/google/tts/TTSEngine.html" target="_top"><B>FRAMES</B></A> &nbsp;
  52. &nbsp;<A HREF="TTSEngine.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  53. &nbsp;<SCRIPT type="text/javascript">
  54. <!--
  55. if(window==top) {
  56. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  57. }
  58. //-->
  59. </SCRIPT>
  60. <NOSCRIPT>
  61. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  62. </NOSCRIPT>
  63. </FONT></TD>
  64. </TR>
  65. <TR>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  68. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  69. DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  70. </TR>
  71. </TABLE>
  72. <A NAME="skip-navbar_top"></A>
  73. <!-- ========= END OF TOP NAVBAR ========= -->
  74. <HR>
  75. <!-- ======== START OF CLASS DATA ======== -->
  76. <H2>
  77. <FONT SIZE="-1">
  78. com.google.tts</FONT>
  79. <BR>
  80. Enum TTSEngine</H2>
  81. <PRE>
  82. java.lang.Object
  83. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.Enum&lt;<A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A>&gt;
  84. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.google.tts.TTSEngine</B>
  85. </PRE>
  86. <DL>
  87. <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Comparable&lt;<A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A>&gt;</DD>
  88. </DL>
  89. <HR>
  90. <DL>
  91. <DT><PRE>public enum <B>TTSEngine</B><DT>extends java.lang.Enum&lt;<A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A>&gt;</DL>
  92. </PRE>
  93. <P>
  94. Enumerates the possible TTS engines to pass to the TTS.
  95. <P>
  96. <P>
  97. <HR>
  98. <P>
  99. <!-- =========== ENUM CONSTANT SUMMARY =========== -->
  100. <A NAME="enum_constant_summary"><!-- --></A>
  101. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  102. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  103. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  104. <B>Enum Constant Summary</B></FONT></TH>
  105. </TR>
  106. <TR BGCOLOR="white" CLASS="TableRowColor">
  107. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#ESPEAK">ESPEAK</A></B></CODE>
  108. <BR>
  109. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  110. </TR>
  111. <TR BGCOLOR="white" CLASS="TableRowColor">
  112. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#PICO">PICO</A></B></CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#PRERECORDED_ONLY">PRERECORDED_ONLY</A></B></CODE>
  118. <BR>
  119. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  120. </TR>
  121. <TR BGCOLOR="white" CLASS="TableRowColor">
  122. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#PRERECORDED_WITH_TTS">PRERECORDED_WITH_TTS</A></B></CODE>
  123. <BR>
  124. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  125. </TR>
  126. <TR BGCOLOR="white" CLASS="TableRowColor">
  127. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#TTS_ONLY">TTS_ONLY</A></B></CODE>
  128. <BR>
  129. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;
  133. <!-- ========== METHOD SUMMARY =========== -->
  134. <A NAME="method_summary"><!-- --></A>
  135. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  136. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  137. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  138. <B>Method Summary</B></FONT></TH>
  139. </TR>
  140. <TR BGCOLOR="white" CLASS="TableRowColor">
  141. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  142. <CODE>static&nbsp;<A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A></CODE></FONT></TD>
  143. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#valueOf(java.lang.String)">valueOf</A></B>(java.lang.String&nbsp;name)</CODE>
  144. <BR>
  145. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enum constant of this type with the specified name.</TD>
  146. </TR>
  147. <TR BGCOLOR="white" CLASS="TableRowColor">
  148. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  149. <CODE>static&nbsp;<A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A>[]</CODE></FONT></TD>
  150. <TD><CODE><B><A HREF="../../../com/google/tts/TTSEngine.html#values()">values</A></B>()</CODE>
  151. <BR>
  152. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array containing the constants of this enum type, in
  153. the order they are declared.</TD>
  154. </TR>
  155. </TABLE>
  156. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  159. <TH ALIGN="left"><B>Methods inherited from class java.lang.Enum</B></TH>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD><CODE>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</CODE></TD>
  163. </TR>
  164. </TABLE>
  165. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  166. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  167. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  168. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  169. </TR>
  170. <TR BGCOLOR="white" CLASS="TableRowColor">
  171. <TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  172. </TR>
  173. </TABLE>
  174. &nbsp;
  175. <P>
  176. <!-- ============ ENUM CONSTANT DETAIL =========== -->
  177. <A NAME="enum_constant_detail"><!-- --></A>
  178. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  179. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  180. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  181. <B>Enum Constant Detail</B></FONT></TH>
  182. </TR>
  183. </TABLE>
  184. <A NAME="PRERECORDED_ONLY"><!-- --></A><H3>
  185. PRERECORDED_ONLY</H3>
  186. <PRE>
  187. public static final <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>PRERECORDED_ONLY</B></PRE>
  188. <DL>
  189. <DL>
  190. </DL>
  191. </DL>
  192. <HR>
  193. <A NAME="PRERECORDED_WITH_TTS"><!-- --></A><H3>
  194. PRERECORDED_WITH_TTS</H3>
  195. <PRE>
  196. public static final <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>PRERECORDED_WITH_TTS</B></PRE>
  197. <DL>
  198. <DL>
  199. </DL>
  200. </DL>
  201. <HR>
  202. <A NAME="TTS_ONLY"><!-- --></A><H3>
  203. TTS_ONLY</H3>
  204. <PRE>
  205. public static final <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>TTS_ONLY</B></PRE>
  206. <DL>
  207. <DL>
  208. </DL>
  209. </DL>
  210. <HR>
  211. <A NAME="ESPEAK"><!-- --></A><H3>
  212. ESPEAK</H3>
  213. <PRE>
  214. public static final <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>ESPEAK</B></PRE>
  215. <DL>
  216. <DL>
  217. </DL>
  218. </DL>
  219. <HR>
  220. <A NAME="PICO"><!-- --></A><H3>
  221. PICO</H3>
  222. <PRE>
  223. public static final <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>PICO</B></PRE>
  224. <DL>
  225. <DL>
  226. </DL>
  227. </DL>
  228. <!-- ============ METHOD DETAIL ========== -->
  229. <A NAME="method_detail"><!-- --></A>
  230. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  231. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  232. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  233. <B>Method Detail</B></FONT></TH>
  234. </TR>
  235. </TABLE>
  236. <A NAME="values()"><!-- --></A><H3>
  237. values</H3>
  238. <PRE>
  239. public static <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A>[] <B>values</B>()</PRE>
  240. <DL>
  241. <DD>Returns an array containing the constants of this enum type, in
  242. the order they are declared. This method may be used to iterate
  243. over the constants as follows:
  244. <pre>
  245. for (TTSEngine c : TTSEngine.values())
  246. &nbsp; System.out.println(c);
  247. </pre>
  248. <P>
  249. <DD><DL>
  250. <DT><B>Returns:</B><DD>an array containing the constants of this enum type, in
  251. the order they are declared</DL>
  252. </DD>
  253. </DL>
  254. <HR>
  255. <A NAME="valueOf(java.lang.String)"><!-- --></A><H3>
  256. valueOf</H3>
  257. <PRE>
  258. public static <A HREF="../../../com/google/tts/TTSEngine.html" title="enum in com.google.tts">TTSEngine</A> <B>valueOf</B>(java.lang.String&nbsp;name)</PRE>
  259. <DL>
  260. <DD>Returns the enum constant of this type with the specified name.
  261. The string must match <I>exactly</I> an identifier used to declare an
  262. enum constant in this type. (Extraneous whitespace characters are
  263. not permitted.)
  264. <P>
  265. <DD><DL>
  266. <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.
  267. <DT><B>Returns:</B><DD>the enum constant with the specified name
  268. <DT><B>Throws:</B>
  269. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if this enum type has no constant
  270. with the specified name
  271. <DD><CODE>java.lang.NullPointerException</CODE> - if the argument is null</DL>
  272. </DD>
  273. </DL>
  274. <!-- ========= END OF CLASS DATA ========= -->
  275. <HR>
  276. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  277. <A NAME="navbar_bottom"><!-- --></A>
  278. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  279. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  280. <TR>
  281. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  282. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  283. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  284. <TR ALIGN="center" VALIGN="top">
  285. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/google/tts/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  286. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  287. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  288. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  289. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  290. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  291. </TR>
  292. </TABLE>
  293. </TD>
  294. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  295. </EM>
  296. </TD>
  297. </TR>
  298. <TR>
  299. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  300. &nbsp;<A HREF="../../../com/google/tts/TTSEarcon.html" title="enum in com.google.tts"><B>PREV CLASS</B></A>&nbsp;
  301. &nbsp;<A HREF="../../../com/google/tts/TTSParams.html" title="enum in com.google.tts"><B>NEXT CLASS</B></A></FONT></TD>
  302. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  303. <A HREF="../../../index.html?com/google/tts/TTSEngine.html" target="_top"><B>FRAMES</B></A> &nbsp;
  304. &nbsp;<A HREF="TTSEngine.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  305. &nbsp;<SCRIPT type="text/javascript">
  306. <!--
  307. if(window==top) {
  308. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  309. }
  310. //-->
  311. </SCRIPT>
  312. <NOSCRIPT>
  313. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  314. </NOSCRIPT>
  315. </FONT></TD>
  316. </TR>
  317. <TR>
  318. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  319. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  320. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  321. DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  322. </TR>
  323. </TABLE>
  324. <A NAME="skip-navbar_bottom"></A>
  325. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  326. <HR>
  327. </BODY>
  328. </HTML>