6 releases
0.3.2 | Feb 4, 2020 |
---|---|
0.3.1 | Feb 4, 2020 |
0.2.1 | Feb 3, 2020 |
0.1.0 | Jan 31, 2020 |
#2232 in Development tools
21 downloads per month
110KB
470 lines
__ __ ___ ____
/ / / /___ __ ______ ____/ (_) __/_ __
/ /_/ / __ \/ / / / __ \/ __ / / /_/ / / /
/ __ / /_/ / /_/ / / / / /_/ / / __/ /_/ /
/_/ /_/\____/\__,_/_/ /_/\__,_/_/_/ \__, /
/____/
Houndify Rust SDK
This is a rust library for the Houndify SDK. Houndify is a voice AI platform that allows anyone to add smart, conversational interfaces to anything with an internet connection.
Usage
Add houndify = "<VERSION>"
to your Cargo.toml file.
See a list of versions here.
Setup client
let client_id = <YOUR_CLIENT_ID>;
let client_key = <YOUR_CLIENT_KEY>;
let client = Client::new(
houndify::DEFAULT_API_ENDPOINT,
client_id,
client_key,
None,
);
Create a request info object
let request_info = RequestInfo::new();
See a list of supported RequestInfo attributes here.
Create a voice query object
let file = File::open("tests/whattimeisit.wav").unwrap();
let buf = BufReader::new(file);
let query = VoiceQuery::new(Box::new(buf), "kevinq", RequestInfo::new());
Send the voice query and read the result
let resp = c.voice_query(query);
match resp {
Ok(r) => println!("{}", r),
Err(e) => println!("Error={}", e),
}
Dependencies
~5–10MB
~186K SLoC