jarvis-cli added for dev tests
This commit is contained in:
parent
1ee944ce7a
commit
f9fa4a9fc1
39 changed files with 369652 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ pub mod recorder;
|
|||
#[cfg(feature = "jarvis_app")]
|
||||
pub mod stt;
|
||||
|
||||
#[cfg(feature = "jarvis_app")]
|
||||
#[cfg(feature = "intent")]
|
||||
pub mod intent;
|
||||
|
||||
// shared statics
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ pub fn init() -> Result<(), ()> {
|
|||
// wake word files list
|
||||
// @TODO. Make it configurable via GUI for custom user voice.
|
||||
let rustpotter_wake_word_files: [&str; 1] = [
|
||||
"rustpotter/jarvis-default.rpw",
|
||||
"resources/rustpotter/jarvis-default.rpw",
|
||||
// "rustpotter/jarvis-community-1.rpw",
|
||||
// "rustpotter/jarvis-community-2.rpw",
|
||||
// "rustpotter/jarvis-community-3.rpw",
|
||||
|
|
@ -58,6 +58,8 @@ pub fn data_callback(frame_buffer: &[i16]) -> Option<i32> {
|
|||
// let detection = rustpotter.process_samples(frame_buffer.to_vec()); // @TODO. Temp crutch. Fix optimization issue, frame_buffer should not be copied to a new vector!
|
||||
let detection = rustpotter.process_samples(frame_buffer);
|
||||
|
||||
// info!("Ruspotter data callback");
|
||||
|
||||
if let Some(detection) = detection {
|
||||
if detection.score > config::RUSPOTTER_MIN_SCORE {
|
||||
info!("Rustpotter detection info:\n{:?}", detection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue