Expand description
ElevenLabs Voice Changer API client
A type-safe, async Rust client for the ElevenLabs TTS API.
§Quick Start
use elevenlabs_vc::{ElevenLabsVCClient, models, voices};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = ElevenLabsVCClient::new("your-api-key");
let audio = client
.voice_changer([].to_vec(), voices::all_voices::PAUL.voice_id)
.execute()
.await?;
// audio is Vec<u8> - raw audio data
std::fs::write("output.mp3", audio)?;
Ok(())
}Re-exports§
pub use error::ElevenLabsVCError;pub use types::*;
Modules§
Structs§
- Eleven
LabsVC Client - Main client for interacting with ElevenLabs API
- Voice
Changer Builder - Builder for Voice Changer requests