Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
248 changes: 248 additions & 0 deletions docs/tts-research.md

Large diffs are not rendered by default.

387 changes: 363 additions & 24 deletions frontend/src-tauri/Cargo.lock

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions frontend/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,19 @@ axum = "0.8"
pdf-extract = "0.7"
base64 = "0.22"

[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies]
# TTS dependencies (Supertonic) - desktop only
ort = "2.0.0-rc.10"
ndarray = { version = "0.16", features = ["rayon"] }
rand = "0.8"
rand_distr = "0.4"
hound = "3.5"
unicode-normalization = "0.1"
regex = "1.10"
reqwest = { version = "0.12", features = ["stream"] }
futures-util = "0.3"
dirs = "5.0"
sha2 = "0.10"
Comment thread
AnthonyRonning marked this conversation as resolved.

[target.'cfg(target_os = "android")'.dependencies]
openssl = { version = "0.10", default-features = false, features = ["vendored"] }
9 changes: 9 additions & 0 deletions frontend/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use tauri_plugin_deep_link::DeepLinkExt;

mod pdf_extractor;
mod proxy;
#[cfg(desktop)]
mod tts;

#[cfg(desktop)]
#[tauri::command]
Expand Down Expand Up @@ -34,6 +36,7 @@ pub fn run() {
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_fs::init())
.manage(proxy::ProxyState::new())
.manage(tts::TTSState::new())
.invoke_handler(tauri::generate_handler![
proxy::start_proxy,
proxy::stop_proxy,
Expand All @@ -43,6 +46,12 @@ pub fn run() {
proxy::test_proxy_port,
pdf_extractor::extract_document_content,
restart_for_update,
tts::tts_get_status,
tts::tts_download_models,
tts::tts_load_models,
tts::tts_synthesize,
tts::tts_unload_models,
tts::tts_delete_models,
])
.setup(|app| {
// Initialize proxy auto-start
Expand Down
Loading
Loading