blob: 85c3f22e506103dc9fb118ba8c4ad8eb73e983c1 [file] [log] [blame]
Narayan Kamathb6887612011-03-11 16:51:56 +00001<p>This sample demonstrates how to create a text to speech engine
2that users can install on their devices.</p>
3
4<p>The application includes a service and two activities:</p>
5<ul>
6 <li><a
Trevor Johns697914d2012-03-28 19:39:31 -07007 href="src/com/example/android/ttsengine/RobotSpeakTtsService.html"><code>RobotSpeakTtsService</code></a>,
Narayan Kamathb6887612011-03-11 16:51:56 +00008 a simple text to speech engine that converts sentences into audio by
9 generating a square wave of a given frequency for each alphabet of a
10 given language. Though this doesn't qualify as speech (except for robots)
11 it exercises all aspects of the new text to speech API
12 by subclassing the
13 <a href="../../../reference/android/speech/tts/TextToSpeechService.html"><code>TextToSpeechService</code></a>
14 framework class.
15 </li>
16 <li><a
17 href="src/com/example/android/ttsengine/CheckVoiceData.html"><code>CheckVoiceData</code></a>,
18 an activity that checks that all voice related data is installed and
19 available.</li>
20 <li><a
21 href="src/com/example/android/ttsengine/RobotSpeakSettings.html"><code>RobotSpeakSettings</code></a>,
22 a settings screen for users to set various engine parameters. This is
23 usually accessed by users from the system wide settings app. This must be
24 declared in the <code>AndroidManifest.xml</code> file as a
25 <code>meta-data</code> element.</li>
26
27<!-- TODO: Fix this when the API level for ICS is finalized -->
28<p>Note that this API is supported only on Android 4.0 (API level 13)
29and higher versions of the platform.</p>
30