melotts
unofficialtts
melotts specifications
| Context window | — |
|---|---|
| Max output tokens | — |
| Release date | — |
| Input | Text |
| Output | Audio |
What melotts can do
- Streaming responses
melotts API: connection and code examples
The service exposes a single OpenAI-compatible API. Set our base_url and the key from your dashboard.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")
audio = client.audio.speech.create(model="myshell-ai/melotts-08130", voice="default", input="Привет!")
audio.write_to_file("speech.mp3")cURL
curl https://api.neuralbridge.ru/v1/audio/speech \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "myshell-ai/melotts-08130", "input": "Привет!"}' \
--output speech.mp3API endpoints
POST /v1/audio/speechprimary | Audio — speech Σύνθεση ομιλίας: κείμενο ως είσοδο, αρχείο ήχου ως έξοδο. |
Supported request parameters
| Parameter | Default | Allowed values | Description |
|---|---|---|---|
language | — | — | Γλώσσα του υλικού: υπόδειξη στο μοντέλο σε ποια γλώσσα μιλάται ή είναι γραπτό το κείμενο. Συνήθως επιταχύνει και διευκρινίζει την επεξεργασία. |
speed | 1 | — | Ταχύτητα ομιλίας σε σχέση με τη φυσιολογική: λιγότερο από 1 — πιο αργά, περισσότερο — πιο γρήγορα. |
response_format | mp3 | — | Μορφή απάντησης: απλό κείμενο ή αυστηρό JSON σύμφωνα με το καθορισμένο σχήμα. |