msedge-tts 0.4.0

This library is a wrapper of MSEdge Read aloud function API. You can use it to synthesize text to speech with many voices MS provided.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Smol Async Runtime

use crate::error::Result;
use crate::tts::{client::MSEdgeTTSClientAsync, websocket_connect_smol_async};

/// Create Async TTS [Client](MSEdgeTTSClientAsync)
pub async fn connect_async() -> Result<MSEdgeTTSClientAsync<async_tungstenite::smol::ConnectStream>>
{
    Ok(MSEdgeTTSClientAsync(websocket_connect_smol_async().await?))
}

#[cfg(feature = "proxy")]
#[cfg_attr(docsrs, doc(cfg(all(feature = "smol-runtime", feature = "proxy"))))]
pub use crate::tts::proxy::smol_runtime::connect_proxy_async;