File: _index.html

package info (click to toggle)
android-platform-development 10.0.0%2Br36-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 135,564 kB
  • sloc: java: 160,253; xml: 127,434; python: 40,579; cpp: 17,579; sh: 2,569; javascript: 1,612; ansic: 879; lisp: 261; ruby: 183; makefile: 172; sql: 140; perl: 88
file content (30 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<p>This sample demonstrates how to create a text to speech engine
that users can install on their devices.</p>

<p>The application includes a service and two activities:</p>
<ul>
  <li><a
    href="src/com/example/android/ttsengine/RobotSpeakTtsService.html"><code>RobotSpeakTtsService</code></a>,
    a simple text to speech engine that converts sentences into audio by
    generating a square wave of a given frequency for each alphabet of a
    given language. Though this doesn't qualify as speech (except for robots)
    it exercises all aspects of the new text to speech API
    by subclassing the
    <a href="../../../reference/android/speech/tts/TextToSpeechService.html"><code>TextToSpeechService</code></a>
    framework class.
  </li>
  <li><a
    href="src/com/example/android/ttsengine/CheckVoiceData.html"><code>CheckVoiceData</code></a>,
  an activity that checks that all voice related data is installed and
  available.</li>
  <li><a
    href="src/com/example/android/ttsengine/RobotSpeakSettings.html"><code>RobotSpeakSettings</code></a>,
    a settings screen for users to set various engine parameters. This is
    usually accessed by users from the system wide settings app. This must be
    declared in the <code>AndroidManifest.xml</code> file as a
    <code>meta-data</code> element.</li>

<!-- TODO: Fix this when the API level for ICS is finalized -->
<p>Note that this API is supported only on Android 4.0 (API level 13)
and higher versions of the platform.</p>