1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Text to speech module.
//!
//! This module provides a client to interact with the Azure Text to Speech service.
//!
//! # Example
//!
//! ```no_run
//!use azure_speech::{synthesizer, Auth, stream::StreamExt};
//! use std::env;
//! use std::error::Error;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn Error>> {
//! tracing_subscriber::fmt()
//! .with_max_level(tracing::Level::DEBUG)
//! .init();
//! // Add your Azure region and subscription key to the environment variables
//! let auth = Auth::from_subscription(
//! env::var("AZURE_REGION").expect("Region set on AZURE_REGION env"),
//! env::var("AZURE_SUBSCRIPTION_KEY")
//! .expect("Subscription set on AZURE_SUBSCRIPTION_KEY env"),
//! );
//!
//! // Set auth and the configuration for the synthesizer
//! let client = synthesizer::Client::connect(auth,synthesizer::Config::default()).await.expect("to connect to azure");
//! let mut stream = client.synthesize("Hello world!").await.expect("to synthesize");
//!
//! while let Some(event) = stream.next().await {
//! match event {
//! _ => tracing::info!("Event: {:?}", event)
//! }
//! }
//! Ok(())
//! }
//!
//! ```
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;