Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

ElevenLabs FastAPI Integration

Setup

  1. Add your API Key: Open .env and replace YOUR_API_KEY with your actual ElevenLabs API key.

    ELEVENLABS_API_KEY=sk_...
    
  2. Run the Server: You can use the helper script:

    ./run.sh

    Or manually:

    source venv/bin/activate
    uvicorn main:app --reload

Usage

Endpoint: POST /speak

Request Body:

{
  "text": "Hello, this is a test."
}

Example (Curl):

curl -X POST "http://localhost:8000/speak" \
     -H "Content-Type: application/json" \
     -d '{"text": "Refactoring works!"}' \
     --output response.mp3

Configuration

The app is configured to use:

  • Model: eleven_multilingual_v2
  • Voice ID: JBFqnCBsd6RMkjVDRZzb

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages