Rust SSIP Client
Speech Dispatcher SSIP client library in pure rust.
- Unix socket.
- TCP socket.
- Stop, cancel, pause and resume.
- List, set voices.
- Set rate, pitch, volume.
- Notifications.
- Message history.
-
tokio
support. -
async-io
support. - separate protocol driving mechanism in the
ssip
crate.
Feature Flags
default
: none.dbus
: add support to send these types over DBus via thezbus
crate.serde
: add support to serialize/deserialize the types withserde
.async-io
: add support for thesmol
/async-io
runtime. This does not pull in an entire runtime, it only adds genericasync
integration points.tokio
: add support for thetokio
runtime. This will pull in thetokio
runtime along with support for itstokio::io::Async*
traits.async-mio
: add support for the low-levelmio
polling mechanism.
Example
use ;
let mut client = new.build?;
client
.set_client_name?
.check_client_name_set?;
let msg_id = client.speak?.send_line?.receive_message_id?;
client.quit?;
See other examples in the repository.
License
This software is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.