Text-to-Speech
Text-to-Speech
Tạo audio từ text. Response trả về byte stream audio thô.
Authentication
AuthorizationBearer
API key làm bearer token. Tạo API key tại [Console](https://console.staging.tram.ai.vn/keys).
Request
This endpoint expects an object.
model
Model ID (ví dụ: GPT-4o Mini TTS, ElevenLabs v3)
input
Text cần chuyển thành giọng nói
voice
Giọng nói (ví dụ: alloy, ash, coral, echo, nova, onyx, sage)
response_format
Format audio: mp3, pcm, opus, aac, flac, wav
speed
Tốc độ (0.25–4.0, mặc định 1.0)
provider
Cấu hình passthrough riêng theo provider
Response
Audio stream
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
