Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scrogson/elevenlabs-rs


https://github.com/scrogson/elevenlabs-rs

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        



Stars


Build Status


Downloads


Crates.io

ElevenLabs client, generated from the OpenAPI spec.

# Usage

```rust
use elevenlabs::ElevenLabsClient;
use elevenlabs::model::*;

#[tokio::main]
async fn main() {
let client = ElevenLabsClient::from_env();
let response = client
.get_generated_items_v1_history_get()
.xi_api_key("your xi api key")
.await
.unwrap();
println!("{:#?}", response);
}
```

This example loads configuration from environment variables, specifically:

* `ELEVEN_LABS_BASE_URL`

# Installation

Add this to your Cargo.toml:

```toml
[dependencies]
elevenlabs = "0.1.0"
```

# Documentation

* [Client Library Documentation](https://docs.rs/elevenlabs)

You can see working examples of every API call in the `examples/` directory.

# Contributing

Contributions are welcome!

*Library created with [Libninja](https://www.libninja.com).*