-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextToSpeech.fxml
100 lines (98 loc) · 7.17 KB
/
TextToSpeech.fxml
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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<AnchorPane prefHeight="700.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="AuthTool.TextToSpeechController">
<children>
<Label layoutX="59.0" layoutY="36.0" prefHeight="17.0" prefWidth="273.0" text="Tạo dữ liệu âm thanh cho nội dung thuyết minh:" AnchorPane.leftAnchor="20.0" AnchorPane.topAnchor="20.0" />
<TextArea fx:id="TextTa" editable="false" layoutX="14.0" layoutY="22.0" prefHeight="113.0" prefWidth="660.0" wrapText="true" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="40.0" />
<ButtonBar layoutX="286.0" layoutY="254.0" prefHeight="40.0" prefWidth="200.0" AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="20.0">
<buttons>
<Button layoutX="131.0" layoutY="18.0" mnemonicParsing="false" onAction="#CompleteBtClicked" text="Kết thúc" />
</buttons>
</ButtonBar>
<TabPane layoutX="20.0" layoutY="95.0" prefHeight="159.0" prefWidth="460.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="60.0" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="170.0">
<tabs>
<Tab text="File âm thanh">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label fx:id="AudioFileLb" layoutX="36.0" layoutY="30.0" prefHeight="17.0" prefWidth="920.0" text="File âm thanh: " AnchorPane.leftAnchor="20.0" AnchorPane.topAnchor="20.0" />
<Button fx:id="SelectFileBt" layoutX="66.0" layoutY="51.0" mnemonicParsing="false" onAction="#SelectFileBtClicked" text="Chọn file khác" />
<Button fx:id="PlayBt" layoutX="173.0" layoutY="51.0" mnemonicParsing="false" onAction="#PlayBtClicked" text="Nghe thử" />
<ImageView fx:id="PlayingImg" fitHeight="25.0" fitWidth="65.0" layoutX="256.0" layoutY="51.0" pickOnBounds="true" preserveRatio="true" visible="false">
<image>
<Image url="@../img/playing.gif" />
</image>
</ImageView>
</children></AnchorPane>
</content>
</Tab>
<Tab text="Vbee">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane hgap="5.0" layoutX="34.0" layoutY="27.0" vgap="5.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="50.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="315.0" minWidth="10.0" prefWidth="169.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="746.0" minWidth="10.0" prefWidth="746.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints />
</rowConstraints>
<children>
<Label text="Authorization" />
<Label text="app_id" GridPane.rowIndex="1" />
<Label text="callback_url" GridPane.rowIndex="2" />
<Label text="voice_code" GridPane.rowIndex="3" />
<Label text="speed_rate" GridPane.rowIndex="4" />
<TextField fx:id="AuthorizationTf" text="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTgxMzMwMjl9.mXlTv4WfK9C1rUFcUUgxfx_1QYjZg7UHrhM0FpOeVkc" GridPane.columnIndex="1" />
<TextField fx:id="app_idTf" layoutX="137.0" layoutY="17.0" text="985eefdc-3a15-4949-a803-8979172fc6ca" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField fx:id="callback_urlTf" layoutX="137.0" layoutY="56.0" text="http://daotao.ai:8080/vbee/api" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<ChoiceBox fx:id="voice_codeCbx" prefHeight="25.0" prefWidth="805.0" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<ChoiceBox fx:id="speed_rateCbx" prefWidth="50.0" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Button fx:id="TextToSpeechBt" alignment="TOP_LEFT" contentDisplay="CENTER" mnemonicParsing="false" onAction="#TextToSpeechBtnClicked" text="Tạo file âm thanh" GridPane.rowIndex="5" GridPane.valignment="TOP" />
<TextArea fx:id="LogTa" editable="false" prefHeight="201.0" prefWidth="568.0" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="5" GridPane.rowSpan="2" />
<CheckBox fx:id="ProgressCk" mnemonicParsing="false" selected="true" text="Theo dõi tiến độ xử lý" GridPane.rowIndex="5" GridPane.valignment="TOP">
<GridPane.margin>
<Insets left="20.0" top="40.0" />
</GridPane.margin>
</CheckBox>
</children>
</GridPane>
<Label layoutX="14.0" layoutY="21.0" text="Hãy lựa chọn các thông số và bấm nút "Tạo file âm thanh"" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="20.0" />
</children>
</AnchorPane>
</content>
</Tab>
<Tab text="Google">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content>
</Tab>
</tabs>
<opaqueInsets>
<Insets />
</opaqueInsets>
</TabPane>
</children>
</AnchorPane>