-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainsyn.py
178 lines (171 loc) · 9.19 KB
/
mainsyn.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\mainsyn.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(711, 383)
MainWindow.setIconSize(QtCore.QSize(20, 20))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.plainTextEdit = QtWidgets.QPlainTextEdit(self.centralwidget)
self.plainTextEdit.setGeometry(QtCore.QRect(10, 10, 501, 231))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(10)
self.plainTextEdit.setFont(font)
self.plainTextEdit.setObjectName("plainTextEdit")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(524, 10, 171, 171))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(10)
self.tabWidget.setFont(font)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.onlie_emph = QtWidgets.QCheckBox(self.tab)
self.onlie_emph.setGeometry(QtCore.QRect(0, 70, 91, 20))
self.onlie_emph.setObjectName("onlie_emph")
self.role_online = QtWidgets.QComboBox(self.tab)
self.role_online.setGeometry(QtCore.QRect(0, 20, 161, 23))
self.role_online.setEditable(True)
self.role_online.setObjectName("role_online")
self.role_online.addItem("")
self.role_online.addItem("")
self.role_online.addItem("")
self.role_online.addItem("")
self.online_denoise = QtWidgets.QCheckBox(self.tab)
self.online_denoise.setGeometry(QtCore.QRect(0, 100, 70, 20))
self.online_denoise.setObjectName("online_denoise")
self.tabWidget.addTab(self.tab, "")
self.Basic = QtWidgets.QWidget()
self.Basic.setAccessibleName("")
self.Basic.setAutoFillBackground(False)
self.Basic.setObjectName("Basic")
self.modbasic = QtWidgets.QComboBox(self.Basic)
self.modbasic.setGeometry(QtCore.QRect(0, 20, 91, 23))
self.modbasic.setEditable(True)
self.modbasic.setObjectName("modbasic")
self.modbasic.addItem("")
self.modbasic.addItem("")
self.modbasic.addItem("")
self.modbasic.addItem("")
self.basic_emph = QtWidgets.QCheckBox(self.Basic)
self.basic_emph.setGeometry(QtCore.QRect(0, 70, 101, 20))
self.basic_emph.setObjectName("basic_emph")
self.basic_denoise = QtWidgets.QCheckBox(self.Basic)
self.basic_denoise.setGeometry(QtCore.QRect(0, 100, 80, 20))
self.basic_denoise.setObjectName("basic_denoise")
self.tabWidget.addTab(self.Basic, "")
self.Pro = QtWidgets.QWidget()
self.Pro.setObjectName("Pro")
self.selectaudio = QtWidgets.QPushButton(self.Pro)
self.selectaudio.setGeometry(QtCore.QRect(0, 80, 111, 31))
self.selectaudio.setObjectName("selectaudio")
self.refaudio = QtWidgets.QLabel(self.Pro)
self.refaudio.setGeometry(QtCore.QRect(0, 110, 151, 31))
self.refaudio.setObjectName("refaudio")
self.emph_check = QtWidgets.QCheckBox(self.Pro)
self.emph_check.setGeometry(QtCore.QRect(0, 10, 91, 20))
self.emph_check.setObjectName("emph_check")
self.denoise_check = QtWidgets.QCheckBox(self.Pro)
self.denoise_check.setGeometry(QtCore.QRect(0, 40, 80, 20))
self.denoise_check.setObjectName("denoise_check")
self.tabWidget.addTab(self.Pro, "")
self.synthbut = QtWidgets.QPushButton(self.centralwidget)
self.synthbut.setGeometry(QtCore.QRect(530, 200, 121, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(12)
font.setBold(True)
self.synthbut.setFont(font)
self.synthbut.setStyleSheet("")
self.synthbut.setDefault(False)
self.synthbut.setFlat(False)
self.synthbut.setObjectName("synthbut")
self.line = QtWidgets.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(10, 270, 661, 16))
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.horizontalSlider = QtWidgets.QSlider(self.centralwidget)
self.horizontalSlider.setGeometry(QtCore.QRect(70, 300, 421, 22))
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setObjectName("horizontalSlider")
self.audiolen = QtWidgets.QLabel(self.centralwidget)
self.audiolen.setGeometry(QtCore.QRect(513, 302, 81, 20))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(10)
self.audiolen.setFont(font)
self.audiolen.setObjectName("audiolen")
self.playBut = QtWidgets.QPushButton(self.centralwidget)
self.playBut.setGeometry(QtCore.QRect(30, 290, 31, 41))
self.playBut.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(".\\../../feather/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.playBut.setIcon(icon)
self.playBut.setIconSize(QtCore.QSize(32, 32))
self.playBut.setDefault(False)
self.playBut.setFlat(True)
self.playBut.setObjectName("playBut")
self.downbut = QtWidgets.QPushButton(self.centralwidget)
self.downbut.setGeometry(QtCore.QRect(610, 290, 41, 31))
self.downbut.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(".\\../../feather/download.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.downbut.setIcon(icon1)
self.downbut.setIconSize(QtCore.QSize(32, 32))
self.downbut.setFlat(True)
self.downbut.setObjectName("downbut")
self.wordcnt = QtWidgets.QLabel(self.centralwidget)
self.wordcnt.setGeometry(QtCore.QRect(450, 240, 61, 21))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
self.wordcnt.setFont(font)
self.wordcnt.setObjectName("wordcnt")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 711, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "SynthereTTS"))
self.plainTextEdit.setPlainText(_translate("MainWindow", "Input your text here"))
self.onlie_emph.setText(_translate("MainWindow", "Emphasize"))
self.role_online.setCurrentText(_translate("MainWindow", "zh-CN-YunxiNeural"))
self.role_online.setItemText(0, _translate("MainWindow", "zh-CN-YunxiNeural"))
self.role_online.setItemText(1, _translate("MainWindow", "zh-CN-YunjianNeural"))
self.role_online.setItemText(2, _translate("MainWindow", "zh-CN-XiaoxiaoNeural"))
self.role_online.setItemText(3, _translate("MainWindow", "zh-CN-XiaoyiNeural"))
self.online_denoise.setText(_translate("MainWindow", "Denoise"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Online"))
self.modbasic.setCurrentText(_translate("MainWindow", "Amy-en"))
self.modbasic.setItemText(0, _translate("MainWindow", "Amy-en"))
self.modbasic.setItemText(1, _translate("MainWindow", "Danny-en"))
self.modbasic.setItemText(2, _translate("MainWindow", "Lily-zh"))
self.modbasic.setItemText(3, _translate("MainWindow", "John-zh"))
self.basic_emph.setText(_translate("MainWindow", "Emphasize"))
self.basic_denoise.setText(_translate("MainWindow", "Denoise"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Basic), _translate("MainWindow", "Basic"))
self.selectaudio.setText(_translate("MainWindow", "Select Audio"))
self.refaudio.setText(_translate("MainWindow", ": xxx.wav"))
self.emph_check.setText(_translate("MainWindow", "Emphasize"))
self.denoise_check.setText(_translate("MainWindow", "Denoise"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Pro), _translate("MainWindow", "Pro"))
self.synthbut.setText(_translate("MainWindow", "Generate"))
self.audiolen.setText(_translate("MainWindow", " 0:00/0:00"))
self.wordcnt.setText(_translate("MainWindow", "0/500"))