Last updated 2 months ago
Converts text into speech using a text-to-speech (TTS) model, useful for creating audio outputs from textual inputs for applications like voice assistants or accessibility tools.
const response = await fetch('https://api.aimlapi.com/tts', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "model": "text", "text": "text" }), }); const data = await response.json();