Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tts-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周亚武
tts-client
Commits
cf0fd371
Commit
cf0fd371
authored
Jul 26, 2024
by
周亚武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
双语叫号
parent
706e3cb7
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
280 additions
and
86 deletions
+280
-86
src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
...als/xhx/daemon/applicationservice/DemoStartedService.java
+2
-1
src/main/java/com/mortals/xhx/tts/UI/MainWindow.java
src/main/java/com/mortals/xhx/tts/UI/MainWindow.java
+264
-73
src/main/java/com/mortals/xhx/tts/UI/SettingWindow.java
src/main/java/com/mortals/xhx/tts/UI/SettingWindow.java
+10
-10
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
+4
-2
src/main/resources/img/icon.png
src/main/resources/img/icon.png
+0
-0
No files found.
src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
View file @
cf0fd371
...
@@ -41,8 +41,9 @@ public class DemoStartedService implements IApplicationStartedService {
...
@@ -41,8 +41,9 @@ public class DemoStartedService implements IApplicationStartedService {
log
.
info
(
"configPath:{}"
,
configPath
);
log
.
info
(
"configPath:{}"
,
configPath
);
log
.
info
(
"host:{}"
,
host
);
log
.
info
(
"host:{}"
,
host
);
log
.
info
(
"version:{}"
,
version
);
log
.
info
(
"version:{}"
,
version
);
MainWindow
.
getInstance
().
initWindow
(
configPath
,
host
,
version
);
SettingWindow
.
getInstance
().
initWindow
(
configPath
,
host
);
SettingWindow
.
getInstance
().
initWindow
(
configPath
,
host
);
MainWindow
.
getInstance
().
initWindow
(
configPath
,
host
,
version
);
log
.
info
(
"初始化托盘完成!"
);
log
.
info
(
"初始化托盘完成!"
);
...
...
src/main/java/com/mortals/xhx/tts/UI/MainWindow.java
View file @
cf0fd371
This diff is collapsed.
Click to expand it.
src/main/java/com/mortals/xhx/tts/UI/SettingWindow.java
View file @
cf0fd371
...
@@ -355,28 +355,28 @@ public class SettingWindow {
...
@@ -355,28 +355,28 @@ public class SettingWindow {
jComboBox3
.
addItem
(
"xy"
);
jComboBox3
.
addItem
(
"xy"
);
jComboBox3
.
addItem
(
"yy"
);
jComboBox3
.
addItem
(
"yy"
);
jComboBox3
.
addItem
(
"zang"
);
jComboBox3
.
addItem
(
"zang"
);
if
(
speaker
==
"en"
){
if
(
speaker
.
equals
(
"en"
)
){
jComboBox3
.
setSelectedIndex
(
0
);
jComboBox3
.
setSelectedIndex
(
0
);
}
}
if
(
speaker
==
"tb"
){
if
(
speaker
.
equals
(
"tb"
)
){
jComboBox3
.
setSelectedIndex
(
1
);
jComboBox3
.
setSelectedIndex
(
1
);
}
}
if
(
speaker
==
"xr"
){
if
(
speaker
.
equals
(
"xr"
)
){
jComboBox3
.
setSelectedIndex
(
2
);
jComboBox3
.
setSelectedIndex
(
2
);
}
}
if
(
speaker
==
"xx"
){
if
(
speaker
.
equals
(
"xx"
)
){
jComboBox3
.
setSelectedIndex
(
3
);
jComboBox3
.
setSelectedIndex
(
3
);
}
}
if
(
speaker
==
"xy"
){
if
(
speaker
.
equals
(
"xy"
)
){
jComboBox3
.
setSelectedIndex
(
4
);
jComboBox3
.
setSelectedIndex
(
4
);
}
}
if
(
speaker
==
"yy"
){
if
(
speaker
.
equals
(
"yy"
)
){
jComboBox3
.
setSelectedIndex
(
5
);
jComboBox3
.
setSelectedIndex
(
5
);
}
}
if
(
speaker
==
"zang"
){
if
(
speaker
.
equals
(
"zang"
)
){
jComboBox3
.
setSelectedIndex
(
6
);
jComboBox3
.
setSelectedIndex
(
6
);
}
}
jComboBox
2
.
addItemListener
(
new
ItemListener
()
{
jComboBox
3
.
addItemListener
(
new
ItemListener
()
{
@Override
@Override
public
void
itemStateChanged
(
ItemEvent
e
)
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
if
(
jComboBox3
.
getSelectedIndex
()
==
0
){
if
(
jComboBox3
.
getSelectedIndex
()
==
0
){
...
@@ -408,7 +408,7 @@ public class SettingWindow {
...
@@ -408,7 +408,7 @@ public class SettingWindow {
//保存本地配置按钮
//保存本地配置按钮
JButton
jb1
=
new
JButton
(
"保存"
);
JButton
jb1
=
new
JButton
(
"保存
本地配置
"
);
jb1
.
setPreferredSize
(
new
Dimension
(
460
,
30
));
jb1
.
setPreferredSize
(
new
Dimension
(
460
,
30
));
jb1
.
addActionListener
(
new
ActionListener
()
{
jb1
.
addActionListener
(
new
ActionListener
()
{
@Override
@Override
...
@@ -507,7 +507,7 @@ public class SettingWindow {
...
@@ -507,7 +507,7 @@ public class SettingWindow {
frame
.
add
(
jPanel7
);
frame
.
add
(
jPanel7
);
//上传站点信息
//上传站点信息
JButton
jb2
=
new
JButton
(
"上传"
);
JButton
jb2
=
new
JButton
(
"上传
站点信息
"
);
jb2
.
setPreferredSize
(
new
Dimension
(
460
,
30
));
jb2
.
setPreferredSize
(
new
Dimension
(
460
,
30
));
jb2
.
addActionListener
(
new
ActionListener
()
{
jb2
.
addActionListener
(
new
ActionListener
()
{
@Override
@Override
...
...
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
View file @
cf0fd371
...
@@ -201,8 +201,10 @@ public class SpliceMp3Util {
...
@@ -201,8 +201,10 @@ public class SpliceMp3Util {
* @throws IOException
* @throws IOException
*/
*/
public
static
String
heBingMp3
(
List
<
String
>
pathList
)
throws
IOException
{
public
static
String
heBingMp3
(
List
<
String
>
pathList
)
throws
IOException
{
// String luJing= "/tmp/";
String
luJing
=
"/tmp/"
;
String
luJing
=
"F:\\\\"
;
if
(
System
.
getProperty
(
"os.name"
).
startsWith
(
"Windows"
)){
//windows电脑测试路径
luJing
=
"F:\\\\"
;
}
File
f
=
new
File
(
luJing
);
File
f
=
new
File
(
luJing
);
f
.
mkdirs
();
f
.
mkdirs
();
//生成处理后的文件
//生成处理后的文件
...
...
src/main/resources/img/icon.png
0 → 100644
View file @
cf0fd371
2.52 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment