edge-tts-rs 0.1.3

Provide simple packaging for edge tts services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::time::{SystemTime, UNIX_EPOCH};
use uuid::Uuid;

pub fn now_millis() -> u128 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .expect("SystemTime::now panic")
        .as_millis()
}

pub fn gen_request_id() -> String {
    Uuid::new_v4().to_string().replace("-", "")
}