Phase 2 of the rebrand cascade. Renames all 9 workspace crates from magnotia-* to lumotia-* plus the src-tauri binary crate name: - magnotia-ai-formatting -> lumotia-ai-formatting - magnotia-audio -> lumotia-audio - magnotia-cloud-providers -> lumotia-cloud-providers - magnotia-core -> lumotia-core - magnotia-hotkey -> lumotia-hotkey - magnotia-llm -> lumotia-llm - magnotia-mcp -> lumotia-mcp - magnotia-storage -> lumotia-storage - magnotia-transcription -> lumotia-transcription - magnotia -> lumotia (src-tauri binary) - magnotia_lib -> lumotia_lib (src-tauri lib target) Crate directories (crates/audio/ etc.) stay as-is; only the Cargo.toml [package] name field changes plus all consumer module imports (magnotia_core -> lumotia_core, etc.). Remaining magnotia_* references at this point are intentional and scoped to later phases: tracing targets (Phase 4), DB setting keys magnotia_preferences/magnotia_history (Phase 5). cargo build --workspace passes. cargo test --workspace: 330 pass, 0 fail. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
946 B
Rust
36 lines
946 B
Rust
// Voice Activity Detection — stubbed.
|
|
//
|
|
// Both `voice_activity_detector` and `silero-vad-rust` pin ort 2.0.0-rc.10
|
|
// which conflicts with transcribe-rs requiring ort 2.0.0-rc.12.
|
|
// When the ort ecosystem aligns (likely at 2.0.0 stable), add Silero VAD here.
|
|
//
|
|
// For now, all audio is treated as speech. This matches v0.2 behaviour
|
|
// (no VAD) and doesn't affect core functionality.
|
|
|
|
use lumotia_core::constants::VAD_SPEECH_THRESHOLD;
|
|
|
|
/// Stub speech detector. Treats all audio as speech.
|
|
#[derive(Default)]
|
|
pub struct SpeechDetector {
|
|
threshold: f64,
|
|
}
|
|
|
|
impl SpeechDetector {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
threshold: VAD_SPEECH_THRESHOLD,
|
|
}
|
|
}
|
|
|
|
/// Always returns true (no VAD filtering until ort conflict resolved).
|
|
pub fn is_speech(&self, _samples: &[f32]) -> bool {
|
|
true
|
|
}
|
|
|
|
pub fn threshold(&self) -> f64 {
|
|
self.threshold
|
|
}
|
|
|
|
pub fn reset(&mut self) {}
|
|
}
|