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
//! Cloud integration and distributed processing for VoiRS.
//!
//! This module provides cloud-based functionality for VoiRS CLI, enabling
//! distributed synthesis, model synchronization, and collaborative workflows.
//! It supports various cloud storage providers and distributed processing
//! architectures for scalable text-to-speech synthesis.
//!
//! ## Features
//!
//! - **Cloud Storage**: Synchronize models, configurations, and audio files
//! - **Distributed Processing**: Scale synthesis across multiple cloud instances
//! - **API Integration**: Connect to external TTS and translation services
//! - **Load Balancing**: Distribute synthesis requests efficiently
//! - **Collaborative Workflows**: Share voices and configurations across teams
//!
//! ## Modules
//!
//! - [`api`]: External API integrations and service connections
//! - [`distributed`]: Distributed processing and load balancing
//! - [`storage`]: Cloud storage synchronization and backup
//!
//! ## Example
//!
//! ```rust,no_run
//! use voirs_cli::cloud::storage::{CloudStorageManager, CloudStorageConfig, SyncDirection};
//! use std::path::PathBuf;
//!
//! # async fn example() -> anyhow::Result<()> {
//! let config = CloudStorageConfig::default();
//! let cache_dir = PathBuf::from("/tmp/voirs_cache");
//! let mut storage = CloudStorageManager::new(config, cache_dir)?;
//! storage.add_to_sync(
//! PathBuf::from("model.bin"),
//! "models/model.bin".to_string(),
//! SyncDirection::Upload
//! ).await?;
//! let _result = storage.sync().await?;
//! # Ok(())
//! # }
//! ```
pub use *;
pub use *;
pub use *;