Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to bind Rust commands to Picovoice/Rhino so I can make a use that Rhino understands what I just said #711

Closed
Tschukedi opened this issue May 23, 2024 · 1 comment

Comments

@Tschukedi
Copy link

Tschukedi commented May 23, 2024

What is the URL of the doc?

https://github.com/Picovoice/rhino/tree/master/binding/rust

What is the nature of the issue?

Before I start, with this code I get a scope error:

``
fn main() {
use rhino::RhinoBuilder;

let rhino: Rhino = RhinoBuilder::RhinoBuilder::new(access_key, "../rhino/interaktionMitWindows_de.rhn")
    .sensitivity(0.42f32)
    .model_path("../rhino/rhino_params_de.pv")
    .init().expect("Unable to create Rhino");

}
``

I get the error : "error[E0412]: cannot find type Rhino in this scope"

@ErisMik
Copy link
Contributor

ErisMik commented May 23, 2024

You aren't importing the Rhino type. I recommend reading through the Rust reference book before opening issues like these: https://doc.rust-lang.org/reference/items/use-declarations.html

@ErisMik ErisMik closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants