diff --git a/README.md b/README.md index e983447..57831e3 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ This are the neural networks we are currently using: - Text-To-Speech - [~~Silero TTS~~](https://github.com/snakers4/silero-models) *(currently not used)* - [~~Coqui TTS~~](https://github.com/coqui-ai/TTS) *(currently not used)* - - [~~WinRT~~] (https://github.com/ndarilek/tts-rs) *(currently not used)* - - [~gTTS~] (https://github.com/nightlyistaken/tts_rust) *(currently not used)* - - [~~SAM~~] (https://github.com/s-macke/SAM) *(currently not used)* + - [~~WinRT~~](https://github.com/ndarilek/tts-rs) *(currently not used)* + - [~gTTS~](https://github.com/nightlyistaken/tts_rust) *(currently not used)* + - [~~SAM~~](https://github.com/s-macke/SAM) *(currently not used)* - Wake Word - [Rustpotter](https://github.com/GiviMAD/rustpotter) *(Partially implemented, still WIP)* - [Picovoice Porcupine](https://github.com/Picovoice/porcupine) via [official SDK](https://github.com/Picovoice/porcupine#rust) *(requires API key)* diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico index 4e19503..4ca0662 100644 Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ diff --git a/src-tauri/src/.cargo/config.toml b/src-tauri/src/.cargo/config.toml deleted file mode 100644 index 02759fd..0000000 --- a/src-tauri/src/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[env] -PORTAUDIO_ONLY_STATIC = true \ No newline at end of file diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index 8142f09..9c48b77 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -1,25 +1,15 @@ -use std::iter::Once; +mod structs; +use structs::WakeWordEngine; +use structs::SpeechToTextEngine; -use once_cell::sync::OnceCell; - -// use const_concat::const_concat; - -// pub const IS_DEV: bool = cfg!(debug_assertions);// cfg!(debug_assertions); -// pub const PUBLIC_PATH: &str = if IS_DEV { -// "D:/Rust/jarvis-app/public" -// } else { -// "./public" -// }; - -// APP -// pub const WAKE_WORD_ENGINES: [&str; 3] = ["rustpotter", "vosk", "picovoice"]; -pub enum WakeWordEngine { - Rustpotter, - Vosk, - Porcupine -} +/* + Defaults. + */ pub const DEFAULT_WAKE_WORD_ENGINE: WakeWordEngine = WakeWordEngine::Rustpotter; +pub const DEFAULT_SPEECH_TO_TEXT_ENGINE: SpeechToTextEngine = SpeechToTextEngine::Vosk; + + pub const DB_FILE_NAME: &str = "app.db"; pub const LOG_FILE_NAME: &str = "log.txt"; diff --git a/src-tauri/src/config/structs.rs b/src-tauri/src/config/structs.rs new file mode 100644 index 0000000..6073065 --- /dev/null +++ b/src-tauri/src/config/structs.rs @@ -0,0 +1,13 @@ +pub enum WakeWordEngine { + Rustpotter, + Vosk, + Porcupine +} + +pub enum SpeechToTextEngine { + Vosk +} + +// pub enum TextToSpeechEngine {} + +// pub enum IntentRecognitionEngine {} \ No newline at end of file