eSpeakActivity.java: support speaking specified text in the activity.

This commit is contained in:
Reece H. Dunn
2013-03-14 16:30:34 +00:00
parent 36b86799b3
commit 1ac6d04c48
3 changed files with 63 additions and 1 deletions
+38 -1
View File
@@ -35,9 +35,46 @@
<ListView
android:id="@+id/properties"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
android:layout_height="0dp"
android:layout_weight="1" >
</ListView>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/synthesis_demo"
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:inputType="textMultiLine" >
</EditText>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/speak"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/speak" />
<Button
android:id="@+id/ssml"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ssml" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
+3
View File
@@ -129,5 +129,8 @@
</string-array>
<string name="status">Status</string>
<string name="tts_version">eSpeak version</string>
<string name="speak">Speak</string>
<string name="ssml">Load SSML Template</string>
<string name="synthesis_demo">Enter text to speak:</string>
</resources>