Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrogson/elevenlabs-rs
https://github.com/scrogson/elevenlabs-rs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/scrogson/elevenlabs-rs
- Owner: scrogson
- License: mit
- Created: 2023-04-27T03:22:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-27T03:27:22.000Z (over 1 year ago)
- Last Synced: 2024-10-08T18:21:24.951Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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).*