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"?> |
||||
|
||||
<?import com.jfoenix.controls.JFXButton?> |
||||
<?import com.jfoenix.controls.JFXComboBox?> |
||||
<?import com.jfoenix.controls.JFXSlider?> |
||||
<?import javafx.geometry.Insets?> |
||||
<?import javafx.scene.control.Label?> |
||||
<?import javafx.scene.layout.*?> |
||||
<?import javafx.scene.text.Font?> |
||||
<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"> |
||||
<children> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="朗读人:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<JFXComboBox fx:id="speakerSelectBar" prefHeight="23.0" prefWidth="138.0" style="-fx-font-family: Microsoft YaHei;" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="语速:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<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" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="语调:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<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" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<Pane nodeOrientation="LEFT_TO_RIGHT" prefHeight="40.0" prefWidth="487.0"> |
||||
<children> |
||||
<JFXButton layoutX="14.0" layoutY="9.0" onAction="#showAdvancedVoiceSettings" text="高级设置"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="13.0" /> |
||||
</font> |
||||
</JFXButton> |
||||
</children> |
||||
</Pane> |
||||
</children> |
||||
</fx:root> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
||||
<?import com.jfoenix.controls.JFXButton?> |
||||
<?import com.jfoenix.controls.JFXComboBox?> |
||||
<?import com.jfoenix.controls.JFXRadioButton?> |
||||
<?import com.jfoenix.controls.JFXSlider?> |
||||
<?import javafx.geometry.Insets?> |
||||
<?import javafx.scene.control.Label?> |
||||
<?import javafx.scene.layout.HBox?> |
||||
<?import javafx.scene.layout.VBox?> |
||||
<?import javafx.scene.text.Font?> |
||||
|
||||
<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"> |
||||
<children> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="朗读人:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<JFXComboBox fx:id="speakerSelectBar" prefHeight="23.0" prefWidth="138.0" style="-fx-font-family: Microsoft YaHei;" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="语速:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<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" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="200.0" spacing="5.0"> |
||||
<children> |
||||
<Label text="语调:"> |
||||
<font> |
||||
<Font name="Microsoft YaHei" size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<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" /> |
||||
</children> |
||||
<padding> |
||||
<Insets left="10.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" prefHeight="69.0" prefWidth="487.0" spacing="10.0"> |
||||
<children> |
||||
<Label text="音频格式:"> |
||||
<font> |
||||
<Font size="16.0" /> |
||||
</font> |
||||
</Label> |
||||
<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