TTS WebUI

GitHub   Feedback / Bug reports

Voice Config Generator

Manage your voice presets

JSON Output

Generated configuration

API Sample Code

Examples for using the API

from openai import OpenAI

client = OpenAI(
    api_key="sk-1234567890", 
    base_url="http://localhost:7778/v1"
)

with client.audio.speech.with_streaming_response.create(
    model="global_preset",
    voice="your_preset_name",
    input="Today is a wonderful day to build something people love!",
) as response:
    audio = response.read()
    with open("audio.mp3", "wb") as f:
        f.write(audio)