Crates.io | houndify |
lib.rs | houndify |
version | 0.3.2 |
source | src |
created_at | 2020-01-31 05:34:02.983185 |
updated_at | 2020-02-04 06:19:29.693598 |
description | Houndify SDK in Rust |
homepage | http://houndify-sdk-rust.github.io |
repository | https://github.com/kevinjqiu/houndify-sdk-rust |
max_upload_size | |
id | 203554 |
size | 170,049 |
__ __ ___ ____
/ / / /___ __ ______ ____/ (_) __/_ __
/ /_/ / __ \/ / / / __ \/ __ / / /_/ / / /
/ __ / /_/ / /_/ / / / / /_/ / / __/ /_/ /
/_/ /_/\____/\__,_/_/ /_/\__,_/_/_/ \__, /
/____/
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.
Add houndify = "<VERSION>"
to your Cargo.toml file.
See a list of versions here.
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,
);
let request_info = RequestInfo::new();
See a list of supported RequestInfo attributes here.
let file = File::open("tests/whattimeisit.wav").unwrap();
let buf = BufReader::new(file);
let query = VoiceQuery::new(Box::new(buf), "kevinq", RequestInfo::new());
let resp = c.voice_query(query);
match resp {
Ok(r) => println!("{}", r),
Err(e) => println!("Error={}", e),
}