teamtalk 6.0.0

TeamTalk SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use teamtalk::client::ffi::AudioFileFormat;
use teamtalk::types::UserId;
use teamtalk::{UserRecordingOptions, UserRecordingSession};

fn main() -> teamtalk::Result<()> {
    let client = teamtalk::Client::new()?;
    let options = UserRecordingOptions::new(
        "recordings/users",
        "user-%user_id%-%username%",
        AudioFileFormat::AFF_WAVE_FORMAT,
    );
    let _session = UserRecordingSession::start(&client, UserId(1), options);
    Ok(())
}