willdphan / gpt-eleven-labs

A Python script for converting text to speech using the Eleven Labs API.
MIT License
9 stars 1 forks source link
eleven-labs gpt-3

Eleven Labs Text to Speech

This repository provides a Python script for converting text to speech using the Eleven Labs API. The script takes in text input, along with the user's Eleven Labs voice ID and API key, and returns the corresponding audio output.

Installation

To install the necessary packages, use the command below:

Copy code

pip3 install gradio requests

Usage

Run the script with the following command:

python3 genius.py

This will open a Gradio interface where you can input the desired text, voice ID, and API key. The output will be audio corresponding to the input text.

Note: You need to have an account with Eleven Labs to obtain an API key and a voice ID.

License

This script is open-source and licensed under the MIT License. For more details, check the LICENSE file.