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 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. <RelativeLayout
  25. android:id="@+id/success"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:visibility="visible" >
  29. <LinearLayout
  30. android:id="@+id/properties"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:orientation="vertical" >
  34. <LinearLayout
  35. android:id="@+id/currentLocaleLayout"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:layout_marginBottom="4dp" >
  39. <TextView
  40. android:id="@+id/currentLocaleLabel"
  41. android:layout_width="0dp"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="0.6"
  44. android:text="@string/current_tts_locale"
  45. android:textAppearance="?android:attr/textAppearanceLarge" />
  46. <TextView
  47. android:id="@+id/currentLocale"
  48. style="@android:style/TextAppearance.Large"
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="0.4" />
  52. </LinearLayout>
  53. <LinearLayout
  54. android:id="@+id/availableVoicesLayout"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginBottom="4dp" >
  58. <TextView
  59. android:id="@+id/availableVoicesLabel"
  60. android:layout_width="0dp"
  61. android:layout_height="wrap_content"
  62. android:layout_weight="0.6"
  63. android:text="@string/available_voices"
  64. android:textAppearance="?android:attr/textAppearanceLarge" />
  65. <TextView
  66. android:id="@+id/availableVoices"
  67. style="@android:style/TextAppearance.Large"
  68. android:layout_width="0dp"
  69. android:layout_height="wrap_content"
  70. android:layout_marginBottom="16dp"
  71. android:layout_weight="0.4" />
  72. </LinearLayout>
  73. </LinearLayout>
  74. <LinearLayout
  75. android:id="@+id/settings"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_alignParentBottom="true"
  79. android:layout_marginLeft="-4dp"
  80. android:orientation="vertical" >
  81. <LinearLayout
  82. android:id="@+id/updateVoicesLayout"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content" >
  85. <Button
  86. android:id="@+id/updateVoices"
  87. android:layout_width="0dp"
  88. android:layout_height="wrap_content"
  89. android:layout_weight="1"
  90. android:text="@string/update_voices" />
  91. <TextView
  92. android:id="@+id/textView3"
  93. android:layout_width="0dp"
  94. android:layout_height="wrap_content"
  95. android:layout_weight="1"
  96. android:textAppearance="?android:attr/textAppearanceLarge" />
  97. </LinearLayout>
  98. <LinearLayout
  99. android:id="@+id/engineSettingsLayout"
  100. android:layout_width="match_parent"
  101. android:layout_height="wrap_content" >
  102. <Button
  103. android:id="@+id/engineSettings"
  104. android:layout_width="0dp"
  105. android:layout_height="wrap_content"
  106. android:layout_weight="0.5"
  107. android:text="@string/engine_settings" />
  108. <TextView
  109. android:id="@+id/textView1"
  110. android:layout_width="0dp"
  111. android:layout_height="wrap_content"
  112. android:layout_weight="0.5"
  113. android:textAppearance="?android:attr/textAppearanceMedium" />
  114. </LinearLayout>
  115. <LinearLayout
  116. android:id="@+id/ttsSettingsLayout"
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content" >
  119. <Button
  120. android:id="@+id/ttsSettings"
  121. android:layout_width="0dp"
  122. android:layout_height="wrap_content"
  123. android:layout_weight="0.5"
  124. android:text="@string/tts_settings" />
  125. <TextView
  126. android:id="@+id/textView2"
  127. android:layout_width="0dp"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="0.5"
  130. android:textAppearance="?android:attr/textAppearanceMedium" />
  131. </LinearLayout>
  132. </LinearLayout>
  133. </RelativeLayout>
  134. <LinearLayout
  135. android:id="@+id/failure"
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content"
  138. android:orientation="vertical"
  139. android:visibility="gone" >
  140. <TextView
  141. style="@android:style/TextAppearance.Large"
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:text="@string/loading_failed" />
  145. </LinearLayout>
  146. </LinearLayout>