0. 新增语言缓存清除功能 1. 新增语音音频文件格式选择 2. 修复语言设置不生效的问题 3. 因百度语言合成的限制,屏蔽部分语音库 4. 其他的一些小修小改与优 化 5. 第三次代码重构已在计划中(划掉)main
parent
0fd9a6dfcb
commit
08f48c055b
@ -1,4 +0,0 @@ |
|||||||
package me.lensferno.dogename.configs; |
|
||||||
|
|
||||||
public class ConfigValuesBean { |
|
||||||
} |
|
@ -1,53 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
|
|
||||||
<?import com.jfoenix.controls.JFXTextField?> |
|
||||||
<?import javafx.geometry.Insets?> |
|
||||||
<?import javafx.scene.control.Label?> |
|
||||||
<?import javafx.scene.layout.*?> |
|
||||||
<?import javafx.scene.text.*?> |
|
||||||
<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="143.0" prefWidth="546.0" spacing="5.0" type="VBox" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> |
|
||||||
<padding> |
|
||||||
<Insets left="10.0" right="10.0" top="10.0" /> |
|
||||||
</padding> |
|
||||||
<children> |
|
||||||
<Label text="您可以自定义百度语音合成的API KEY和SEC KEY,而不必使用作者提供的信息。" wrapText="true"> |
|
||||||
<font> |
|
||||||
<Font name="Microsoft YaHei" size="14.0" /> |
|
||||||
</font> |
|
||||||
</Label> |
|
||||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
|
||||||
<children> |
|
||||||
<Label text="API Key:"> |
|
||||||
<font> |
|
||||||
<Font name="Microsoft YaHei" size="14.0" /> |
|
||||||
</font> |
|
||||||
<HBox.margin> |
|
||||||
<Insets /> |
|
||||||
</HBox.margin> |
|
||||||
</Label> |
|
||||||
<JFXTextField prefHeight="29.0" prefWidth="436.0" promptText="在此输入API Key"> |
|
||||||
<font> |
|
||||||
<Font name="Microsoft YaHei" size="14.0" /> |
|
||||||
</font> |
|
||||||
</JFXTextField> |
|
||||||
</children> |
|
||||||
</HBox> |
|
||||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
|
||||||
<children> |
|
||||||
<Label text="Secret Key:"> |
|
||||||
<font> |
|
||||||
<Font name="Microsoft YaHei" size="14.0" /> |
|
||||||
</font> |
|
||||||
<HBox.margin> |
|
||||||
<Insets /> |
|
||||||
</HBox.margin> |
|
||||||
</Label> |
|
||||||
<JFXTextField prefHeight="23.0" prefWidth="418.0" promptText="在此输入Secret Key"> |
|
||||||
<font> |
|
||||||
<Font name="Microsoft YaHei" size="14.0" /> |
|
||||||
</font> |
|
||||||
</JFXTextField> |
|
||||||
</children> |
|
||||||
</HBox> |
|
||||||
</children> |
|
||||||
</fx:root> |
|
@ -1,61 +1,78 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
|
||||||
<?import com.jfoenix.controls.JFXButton?> |
<?import com.jfoenix.controls.JFXButton?> |
||||||
<?import com.jfoenix.controls.JFXComboBox?> |
<?import com.jfoenix.controls.JFXComboBox?> |
||||||
<?import com.jfoenix.controls.JFXSlider?> |
<?import com.jfoenix.controls.JFXRadioButton?> |
||||||
<?import javafx.geometry.Insets?> |
<?import com.jfoenix.controls.JFXSlider?> |
||||||
<?import javafx.scene.control.Label?> |
<?import javafx.geometry.Insets?> |
||||||
<?import javafx.scene.layout.*?> |
<?import javafx.scene.control.Label?> |
||||||
<?import javafx.scene.text.Font?> |
<?import javafx.scene.layout.HBox?> |
||||||
<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="176.0" prefWidth="487.0" type="VBox" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> |
<?import javafx.scene.layout.VBox?> |
||||||
<children> |
<?import javafx.scene.text.Font?> |
||||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
|
||||||
<children> |
<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="197.0" prefWidth="487.0" type="VBox" xmlns="http://javafx.com/javafx/8.0.321" xmlns:fx="http://javafx.com/fxml/1"> |
||||||
<Label text="朗读人:"> |
<children> |
||||||
<font> |
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||||
<Font name="Microsoft YaHei" size="16.0" /> |
<children> |
||||||
</font> |
<Label text="朗读人:"> |
||||||
</Label> |
<font> |
||||||
<JFXComboBox fx:id="speakerSelectBar" prefHeight="23.0" prefWidth="138.0" style="-fx-font-family: Microsoft YaHei;" /> |
<Font name="Microsoft YaHei" size="16.0" /> |
||||||
</children> |
</font> |
||||||
<padding> |
</Label> |
||||||
<Insets left="10.0" /> |
<JFXComboBox fx:id="speakerSelectBar" prefHeight="23.0" prefWidth="138.0" style="-fx-font-family: Microsoft YaHei;" /> |
||||||
</padding> |
</children> |
||||||
</HBox> |
<padding> |
||||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
<Insets left="10.0" /> |
||||||
<children> |
</padding> |
||||||
<Label text="语速:"> |
</HBox> |
||||||
<font> |
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||||
<Font name="Microsoft YaHei" size="16.0" /> |
<children> |
||||||
</font> |
<Label text="语速:"> |
||||||
</Label> |
<font> |
||||||
<JFXSlider fx:id="voiceSpeedBar" majorTickUnit="1.0" max="15.0" minorTickCount="1" prefHeight="14.0" prefWidth="395.0" showTickLabels="true" snapToTicks="true" value="5.0" /> |
<Font name="Microsoft YaHei" size="16.0" /> |
||||||
</children> |
</font> |
||||||
<padding> |
</Label> |
||||||
<Insets left="10.0" /> |
<JFXSlider fx:id="voiceSpeedBar" majorTickUnit="1.0" max="15.0" minorTickCount="1" prefHeight="14.0" prefWidth="395.0" showTickLabels="true" snapToTicks="true" value="5.0" /> |
||||||
</padding> |
</children> |
||||||
</HBox> |
<padding> |
||||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
<Insets left="10.0" /> |
||||||
<children> |
</padding> |
||||||
<Label text="语调:"> |
</HBox> |
||||||
<font> |
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||||
<Font name="Microsoft YaHei" size="16.0" /> |
<children> |
||||||
</font> |
<Label text="语调:"> |
||||||
</Label> |
<font> |
||||||
<JFXSlider fx:id="intonationBar" majorTickUnit="1.0" max="15.0" minorTickCount="1" prefHeight="14.0" prefWidth="395.0" showTickLabels="true" snapToTicks="true" value="5.0" /> |
<Font name="Microsoft YaHei" size="16.0" /> |
||||||
</children> |
</font> |
||||||
<padding> |
</Label> |
||||||
<Insets left="10.0" /> |
<JFXSlider fx:id="intonationBar" majorTickUnit="1.0" max="15.0" minorTickCount="1" prefHeight="14.0" prefWidth="395.0" showTickLabels="true" snapToTicks="true" value="5.0" /> |
||||||
</padding> |
</children> |
||||||
</HBox> |
<padding> |
||||||
<Pane nodeOrientation="LEFT_TO_RIGHT" prefHeight="40.0" prefWidth="487.0"> |
<Insets left="10.0" /> |
||||||
<children> |
</padding> |
||||||
<JFXButton layoutX="14.0" layoutY="9.0" onAction="#showAdvancedVoiceSettings" text="高级设置"> |
</HBox> |
||||||
<font> |
<HBox alignment="CENTER_LEFT" prefHeight="69.0" prefWidth="487.0" spacing="10.0"> |
||||||
<Font name="Microsoft YaHei" size="13.0" /> |
<children> |
||||||
</font> |
<Label text="音频格式:"> |
||||||
</JFXButton> |
<font> |
||||||
</children> |
<Font size="16.0" /> |
||||||
</Pane> |
</font> |
||||||
</children> |
</Label> |
||||||
</fx:root> |
<VBox alignment="CENTER_LEFT" spacing="10.0"> |
||||||
|
<children> |
||||||
|
<JFXRadioButton fx:id="wavFormatButton" selected="true" text="WAV(音质好,缓存体积较大(约20kb))" /> |
||||||
|
<JFXRadioButton fx:id="mp3FormatButton" text="MP3(音质较差,缓存体积小(约3kb))" /> |
||||||
|
</children> |
||||||
|
</VBox> |
||||||
|
<JFXButton onAction="#clearCache" prefHeight="34.0" prefWidth="94.0" ripplerFill="#70e9ff" style="-fx-background-color: #2689da;" text="清除缓存" textFill="WHITE"> |
||||||
|
<font> |
||||||
|
<Font size="16.0" /> |
||||||
|
</font> |
||||||
|
</JFXButton> |
||||||
|
</children> |
||||||
|
<padding> |
||||||
|
<Insets left="10.0" /> |
||||||
|
</padding> |
||||||
|
</HBox> |
||||||
|
</children> |
||||||
|
</fx:root> |
||||||
|
Loading…
Reference in new issue