chore: tts

This commit is contained in:
lencx
2023-03-05 11:45:52 +08:00
parent e3e0c86aaf
commit 6c899634c2
5 changed files with 69 additions and 20 deletions

View File

@@ -40,6 +40,7 @@ pub_struct!(AppConf {
save_window_state: bool,
global_shortcut: Option<String>,
default_origin: String,
speech_lang: String,
// Main Window
isinit: bool,
@@ -69,6 +70,10 @@ impl AppConf {
save_window_state: false,
theme: "light".into(),
auto_update: "prompt".into(),
#[cfg(target_os = "macos")]
speech_lang: "com.apple.eloquence.en-US.Rocko".into(),
#[cfg(not(target_os = "macos"))]
speech_lang: "".into(),
tray: true,
popup_search: false,
isinit: true,