mirror of
https://github.com/Priler/jarvis.git
synced 2026-06-07 21:04:41 +00:00
pre 0.0.3
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 69 KiB |
@@ -1,2 +0,0 @@
|
||||
[env]
|
||||
PORTAUDIO_ONLY_STATIC = true
|
||||
@@ -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";
|
||||
|
||||
13
src-tauri/src/config/structs.rs
Normal file
13
src-tauri/src/config/structs.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
pub enum WakeWordEngine {
|
||||
Rustpotter,
|
||||
Vosk,
|
||||
Porcupine
|
||||
}
|
||||
|
||||
pub enum SpeechToTextEngine {
|
||||
Vosk
|
||||
}
|
||||
|
||||
// pub enum TextToSpeechEngine {}
|
||||
|
||||
// pub enum IntentRecognitionEngine {}
|
||||
Reference in New Issue
Block a user