eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.xml 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical"
  6. android:padding="8dp" >
  7. <LinearLayout
  8. android:id="@+id/loading"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:gravity="center"
  12. android:orientation="vertical"
  13. android:visibility="gone" >
  14. <ProgressBar
  15. style="?android:attr/progressBarStyleLarge"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_marginBottom="16dp" />
  19. <TextView
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:text="@string/loading" />
  23. </LinearLayout>
  24. <LinearLayout
  25. android:id="@+id/success"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="vertical"
  29. android:visibility="visible" >
  30. <ListView
  31. android:id="@+id/properties"
  32. android:layout_width="match_parent"
  33. android:layout_height="0dp"
  34. android:layout_weight="1" >
  35. </ListView>
  36. <TextView
  37. android:id="@+id/textView1"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:text="@string/synthesis_demo"
  41. android:textAppearance="?android:attr/textAppearanceLarge" />
  42. <EditText
  43. android:id="@+id/editText1"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_weight="1"
  47. android:ems="10"
  48. android:inputType="textMultiLine" >
  49. </EditText>
  50. <LinearLayout
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content" >
  53. <Button
  54. android:id="@+id/speak"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="@string/speak" />
  58. <Button
  59. android:id="@+id/ssml"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:text="@string/ssml" />
  63. </LinearLayout>
  64. </LinearLayout>
  65. </LinearLayout>