mainwindow.ui 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>600</width>
  10. <height>500</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>TTS Client - Qwen3-TTS</string>
  15. </property>
  16. <widget class="QWidget" name="centralwidget">
  17. <layout class="QVBoxLayout" name="verticalLayout">
  18. <item>
  19. <widget class="QGroupBox" name="groupConnection">
  20. <property name="title">
  21. <string>Connection</string>
  22. </property>
  23. <layout class="QGridLayout" name="gridLayout">
  24. <item row="0" column="0">
  25. <widget class="QLabel" name="labelHost">
  26. <property name="text">
  27. <string>Host:</string>
  28. </property>
  29. </widget>
  30. </item>
  31. <item row="0" column="1">
  32. <widget class="QLineEdit" name="lineEditHost">
  33. <property name="text">
  34. <string>localhost</string>
  35. </property>
  36. </widget>
  37. </item>
  38. <item row="0" column="2">
  39. <widget class="QLabel" name="labelPort">
  40. <property name="text">
  41. <string>Port:</string>
  42. </property>
  43. </widget>
  44. </item>
  45. <item row="0" column="3">
  46. <widget class="QLineEdit" name="lineEditPort">
  47. <property name="text">
  48. <string>8766</string>
  49. </property>
  50. </widget>
  51. </item>
  52. <item row="0" column="4">
  53. <widget class="QPushButton" name="btnConnect">
  54. <property name="text">
  55. <string>Connect</string>
  56. </property>
  57. </widget>
  58. </item>
  59. <item row="1" column="0" colspan="5">
  60. <widget class="QLabel" name="labelStatus">
  61. <property name="text">
  62. <string>Disconnected</string>
  63. </property>
  64. <property name="alignment">
  65. <set>Qt::AlignCenter</set>
  66. </property>
  67. </widget>
  68. </item>
  69. </layout>
  70. </widget>
  71. </item>
  72. <item>
  73. <widget class="QGroupBox" name="groupRefAudio">
  74. <property name="title">
  75. <string>Reference Audio (for voice cloning)</string>
  76. </property>
  77. <layout class="QHBoxLayout" name="horizontalLayout_2">
  78. <item>
  79. <widget class="QLineEdit" name="lineEditRefAudio">
  80. <property name="placeholderText">
  81. <string>Path to reference audio file...</string>
  82. </property>
  83. </widget>
  84. </item>
  85. <item>
  86. <widget class="QPushButton" name="btnBrowseRefAudio">
  87. <property name="text">
  88. <string>Browse...</string>
  89. </property>
  90. </widget>
  91. </item>
  92. </layout>
  93. </widget>
  94. </item>
  95. <item>
  96. <widget class="QGroupBox" name="groupInput">
  97. <property name="title">
  98. <string>Text Input</string>
  99. </property>
  100. <layout class="QVBoxLayout" name="verticalLayout_2">
  101. <item>
  102. <widget class="QTextEdit" name="textEditInput">
  103. <property name="placeholderText">
  104. <string>Enter text to synthesize...</string>
  105. </property>
  106. </widget>
  107. </item>
  108. <item>
  109. <layout class="QHBoxLayout" name="horizontalLayout">
  110. <item>
  111. <spacer name="horizontalSpacer">
  112. <property name="orientation">
  113. <enum>Qt::Horizontal</enum>
  114. </property>
  115. <property name="sizeHint" stdset="0">
  116. <size>
  117. <width>40</width>
  118. <height>20</height>
  119. </size>
  120. </property>
  121. </spacer>
  122. </item>
  123. <item>
  124. <widget class="QPushButton" name="btnSynthesize">
  125. <property name="enabled">
  126. <bool>false</bool>
  127. </property>
  128. <property name="text">
  129. <string>Synthesize</string>
  130. </property>
  131. </widget>
  132. </item>
  133. </layout>
  134. </item>
  135. </layout>
  136. </widget>
  137. </item>
  138. </layout>
  139. </widget>
  140. <widget class="QMenuBar" name="menubar">
  141. <property name="geometry">
  142. <rect>
  143. <x>0</x>
  144. <y>0</y>
  145. <width>600</width>
  146. <height>24</height>
  147. </rect>
  148. </property>
  149. <widget class="QMenu" name="menuFile">
  150. <property name="title">
  151. <string>File</string>
  152. </property>
  153. <addaction name="actionExit"/>
  154. </widget>
  155. <widget class="QMenu" name="menuHelp">
  156. <property name="title">
  157. <string>Help</string>
  158. </property>
  159. <addaction name="actionAbout"/>
  160. </widget>
  161. <addaction name="menuFile"/>
  162. <addaction name="menuHelp"/>
  163. </widget>
  164. <widget class="QStatusBar" name="statusbar"/>
  165. <action name="actionExit">
  166. <property name="text">
  167. <string>Exit</string>
  168. </property>
  169. </action>
  170. <action name="actionAbout">
  171. <property name="text">
  172. <string>About</string>
  173. </property>
  174. </action>
  175. </widget>
  176. <resources/>
  177. <connections/>
  178. </ui>