You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all of the relevant Picovoice Porcupine docs
I have searched the existing issues for Porcupine
SDK
Rust
Porcupine package version
3.0.3
Framework version
2.0.6
Platform
macOS (x86_64, arm64)
OS/Browser version
14.6.1
Describe the bug
when we use rust and build macos version, will return this error
Couldn't find model file at /Users/xxxxx/work/geneai-desktop-assistant/src-tauri/target/release/build/pv_porcupine-d1fe74abd593b99b/out/lib/common/porcupine_params.pv with status 'ArgumentError'
this is my code. i have use library_path add libpv_porcupine libs. but now return coludn't find porcupine_params.pv lib.
so, how to add porcupine_params.pv lib ?
let library_path = if cfg!(target_os = "windows") {
"src/libs/porcupine/windows_amd64/libpv_porcupine.dll"
} else if cfg!(target_os = "macos") {
if cfg!(target_arch = "x86_64") {
"src/libs/porcupine/mac_x86_64/libpv_porcupine.dylib"
} else if cfg!(target_arch = "aarch64") {
"src/libs/porcupine/mac_arm64/libpv_porcupine.dylib"
} else {
return;
}
} else {
return;
};
let real_library_path = match app_handle
.path()
.resolve(library_path, BaseDirectory::Resource)
{
Ok(path) => {
path
}
Err(e) => {
return;
}
};
let mut porcupine = None;
for &access_key in &access_keys {
match PorcupineBuilder::new_with_keyword_paths(access_key, &[PathBuf::from(&real_path)])
.library_path(&real_library_path)
.sensitivities(&[0.5])
.init()
{
Ok(p) => {
porcupine = Some(p);
break;
}
Err(e) => {
continue;
}
}
}
Steps To Reproduce
none
Expected Behavior
don't return any error
The text was updated successfully, but these errors were encountered:
Have you checked the docs and existing issues?
SDK
Rust
Porcupine package version
3.0.3
Framework version
2.0.6
Platform
macOS (x86_64, arm64)
OS/Browser version
14.6.1
Describe the bug
when we use rust and build macos version, will return this error
Couldn't find model file at /Users/xxxxx/work/geneai-desktop-assistant/src-tauri/target/release/build/pv_porcupine-d1fe74abd593b99b/out/lib/common/porcupine_params.pv with status 'ArgumentError'
this is my code. i have use library_path add libpv_porcupine libs. but now return coludn't find porcupine_params.pv lib.
so, how to add porcupine_params.pv lib ?
let library_path = if cfg!(target_os = "windows") {
"src/libs/porcupine/windows_amd64/libpv_porcupine.dll"
} else if cfg!(target_os = "macos") {
if cfg!(target_arch = "x86_64") {
"src/libs/porcupine/mac_x86_64/libpv_porcupine.dylib"
} else if cfg!(target_arch = "aarch64") {
"src/libs/porcupine/mac_arm64/libpv_porcupine.dylib"
} else {
Steps To Reproduce
none
Expected Behavior
don't return any error
The text was updated successfully, but these errors were encountered: