Inworld AI

Inworld AI Realtime TTS-2 — Text to audio API

Inworld AI, text-to-audio. Credits per character of text (counted as #speech.text): 0.0042.

← Inworld AI

Endpoint: POST https://queue.auray.run/auray-serverless/inworld/tts-2

Endpoint ID: auray-serverless/inworld/tts-2

Open in PlaygroundInworld AI Realtime TTS-2 · Text to audio

Usage notes

One of Auray's catalogue models: the same key, the same credits, the same job lifecycle as every other address.

Its request shape is published below. Whether it runs right now is GET /v1/catalogue's word, with no key needed: its addresses say connected for an address that runs, and a submit to any other is refused before anything is charged — described answers 501 model_not_connected, paused 503 model_disabled.

Category text-to-audio · Scope audio:write (or external:write on an older key) · Price Credits per character of text (counted as #speech.text): 0.0042. From 29 to 2000 characters a request. Quoted when you submit, at the most the request can cost; the charge settles to what the job cost and never above the quote. The submit's answer carries the quote as credits_quoted, and credits_charged says what has been taken.

  • speech — Text → Speech
  • Prompt: up to 2,000 characters
  • Languages: en, ja, zh, ko, ru, it, es, de, fr, ar, pl, nl, hi, he
  • Voices: 133 to choose from
  • Sound: makes its own sound
  • Priced by: char_in (the whole rule is under Price)

Find the addresses that do any of these with GET /v1/models?operation=<id>; the openapi.json carries them as data under x-auray-capability.

Quick start

curl -X POST https://queue.auray.run/auray-serverless/inworld/tts-2 \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "speech": {
    "text": "a brass orrery on a walnut desk, morning light from a window to the left",
    "voice": "Loretta"
  }
}'

The same body on https://auray.run runs synchronously and answers the result — unless it usually takes longer than a run may hold its connection, which is refused 400 model_not_synchronous before anything is charged. Options — ?webhook=, ?wait=, priority and timeout headers — are on Submit a request.

Input schema

speechobjectrequired
Show child attributes
textstringrequired
Text to convert to speech. Documented range: 2 to 2,000 characters.
voicestringrequired
Voice identifier to use for speech generation. One of "Loretta", "Darlene", "Marlene", "Hank", "Evelyn", "Celeste", "Pippa", "Tessa"
and 125 more"Liam", "Callum", "Hamish", "Abby", "Graham", "Rupert", "Mortimer", "Snik", "Anjali", "Saanvi", "Arjun", "Claire", "Oliver", "Simon", "Elliot", "James", "Serena", "Gareth", "Vinny", "Lauren", "Jessica", "Ethan", "Tyler", "Jason", "Chloe", "Veronica", "Victoria", "Miranda", "Sebastian", "Victor", "Malcolm", "Nate", "Brian", "Amina", "Kelsey", "Derek", "Evan", "Kayla", "Jake", "Grant", "Tristan", "Nadia", "Selene", "Marcus", "Riley", "Damon", "Cedric", "Mia", "Naomi", "Jonah", "Levi", "Avery", "Brandon", "Conrad", "Bianca", "Lucian", "Trevor", "Alex", "Ashley", "Craig", "Deborah", "Dennis", "Edward", "Elizabeth", "Hades", "Julia", "Pixie", "Mark", "Olivia", "Priya", "Ronald", "Sarah", "Shaun", "Theodore", "Timothy", "Wendy", "Dominus", "Hana", "Clive", "Carter", "Blake", "Luna", "Reed", "Duncan", "Felix", "Eleanor", "Sophie", "Asuka", "Satoshi", "Yichen", "Xiaoyin", "Xinyi", "Jing", "Hyunwoo", "Minji", "Seojun", "Yoona", "Svetlana", "Elena", "Dmitry", "Nikolai", "Gianni", "Orietta", "Diego", "Lupita", "Miguel", "Rafael", "Johanna", "Josef", "Alain", "Hélène", "Mathieu", "Étienne", "Nour", "Omar", "Szymon", "Wojciech", "Erik", "Katrien", "Lennart", "Lore", "Riya", "Manoj", "Yael", "Oren"
languagestring
Language code for speech generation. Documented range: 1 or more. One of "en", "ja", "zh", "ko", "ru", "it", "es", "de", "fr", "ar", "pl", "nl", "hi", "he".
speednumberdefault: 1
Playback speed of the generated speech. Documented range: 0.5 to 1.5.
settingsobject
Show child attributes
textNormalizationboolean
Expands numbers, dates, abbreviations before speech generation.
outputTypestringdefault: "URL"
Audio output type. One of "URL".
outputFormatstringdefault: "MP3"
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities. - `JPG`: Best for photorealistic images with smaller file sizes (no transparency). - `PNG`: Lossless compression, supports high quality and transparency (alpha channel). - `WEBP`: Modern format providing superior compression and transparency support. - `MP4`: Widely supported video container (H.264), recommended for general use. - `WEBM`: Optimized for web delivery. - `MOV`: QuickTime format, common in professional workflows (Apple ecosystem). - `GIF`: Animated image format (no audio), suitable for short loops or previews. - `MP3`: Compressed audio, smaller file size. - `WAV`: Uncompressed, high-quality audio. - `FLAC`: Lossless compression. - `OGG`: Open-source compressed audio format (Vorbis codec). - `SVG`: Scalable Vector Graphics. - `TIFF`: High-quality output supporting layers. - `GLB`: Binary glTF format for 3D models, including geometry, textures, and PBR materials. > [!NOTE] > **Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency. One of "MP3", "WAV", "FLAC", "OGG".
audioSettingsobject
Show child attributes
bitrateinteger
Audio bitrate in kbps. Documented range: 8 or more.
channelsintegerdefault: 2
Number of audio channels. 1 for mono, 2 for stereo. One of 1, 2.
sampleRateinteger
Audio sample rate in Hz.
idempotency_keystring
Your own name for this request. Send the same one twice and the second call is answered with the first request rather than charged again. Idempotency-Key: as a header is accepted as an alias — that is the spelling a retrying proxy replays, and the one to use when running a model on auray.run, where a request that outlives its connection is answered 504 and recovered by replay. Omit it and the platform mints one. 1 to 64 characters.

Rules

Across fields, as the model's documentation states them. Each is judged before anything is charged — warned with a Deprecation header until enforcement starts — and listed as JSON Schema under x-auray-rules in the openapi.json.

  • When outputFormat is one of "WAV", "FLAC", do not send audioSettings.
  • When outputFormat is "MP3", audioSettings.sampleRate must be one of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000. When outputFormat is "MP3", when audioSettings.sampleRate is one of 16000, 22050, 24000, audioSettings.bitrate must be between 8 and 160. When outputFormat is "MP3", when audioSettings.sampleRate is one of 32000, 44100, 48000, audioSettings.bitrate must be between 32 and 320. When outputFormat is "MP3", when audioSettings.sampleRate is one of 8000, 11025, 12000, audioSettings.bitrate must be between 8 and 64.
  • When outputFormat is "OGG", audioSettings.sampleRate must be one of 8000, 12000, 16000, 24000, 48000. When outputFormat is "OGG", when audioSettings.sampleRate is 8000 and audioSettings.channels is 2, audioSettings.bitrate must be between 16 and 80. When outputFormat is "OGG", when audioSettings.sampleRate is 12000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 48. When outputFormat is "OGG", when audioSettings.sampleRate is 12000 and audioSettings.channels is 2, audioSettings.bitrate must be between 16 and 96. When outputFormat is "OGG", when audioSettings.sampleRate is 16000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 96. When outputFormat is "OGG", when audioSettings.sampleRate is 16000 and audioSettings.channels is 2, audioSettings.bitrate must be between 24 and 192. When outputFormat is "OGG", when audioSettings.sampleRate is 24000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 80. When outputFormat is "OGG", when audioSettings.sampleRate is 24000 and audioSettings.channels is 2, audioSettings.bitrate must be between 32 and 160. When outputFormat is "OGG", when audioSettings.sampleRate is 48000 and audioSettings.channels is 1, audioSettings.bitrate must be between 32 and 224. When outputFormat is "OGG", when audioSettings.sampleRate is 48000 and audioSettings.channels is 2, audioSettings.bitrate must be between 48 and 256. When outputFormat is "OGG", when audioSettings.sampleRate is 8000 and audioSettings.channels is 1, audioSettings.bitrate must be between 8 and 40.
  • When speech.language is "en", speech.voice must be one of "Loretta", "Darlene", "Marlene", "Hank", "Evelyn", "Celeste", "Pippa", "Tessa", "Liam", "Callum", "Hamish", "Abby", "Graham", "Rupert", "Mortimer", "Snik", "Anjali", "Saanvi", "Arjun", "Claire", "Oliver", "Simon", "Elliot", "James", "Serena", "Gareth", "Vinny", "Lauren", "Jessica", "Ethan", "Tyler", "Jason", "Chloe", "Veronica", "Victoria", "Miranda", "Sebastian", "Victor", "Malcolm", "Nate", "Brian", "Amina", "Kelsey", "Derek", "Evan", "Kayla", "Jake", "Grant", "Tristan", "Nadia", "Selene", "Marcus", "Riley", "Damon", "Cedric", "Mia", "Naomi", "Jonah", "Levi", "Avery", "Brandon", "Conrad", "Bianca", "Lucian", "Trevor", "Alex", "Ashley", "Craig", "Deborah", "Dennis", "Edward", "Elizabeth", "Hades", "Julia", "Pixie", "Mark", "Olivia", "Priya", "Ronald", "Sarah", "Shaun", "Theodore", "Timothy", "Wendy", "Dominus", "Hana", "Clive", "Carter", "Blake", "Luna", "Reed", "Duncan", "Felix", "Eleanor", "Sophie".
  • When speech.language is "ja", speech.voice must be one of "Asuka", "Satoshi".
  • When speech.language is "zh", speech.voice must be one of "Yichen", "Xiaoyin", "Xinyi", "Jing".
  • When speech.language is "ko", speech.voice must be one of "Hyunwoo", "Minji", "Seojun", "Yoona".
  • When speech.language is "ru", speech.voice must be one of "Svetlana", "Elena", "Dmitry", "Nikolai".
  • When speech.language is "it", speech.voice must be one of "Gianni", "Orietta".
  • When speech.language is "es", speech.voice must be one of "Diego", "Lupita", "Miguel", "Rafael".
  • When speech.language is "de", speech.voice must be one of "Johanna", "Josef".
  • When speech.language is "fr", speech.voice must be one of "Alain", "Hélène", "Mathieu", "Étienne".
  • When speech.language is "ar", speech.voice must be one of "Nour", "Omar".
  • When speech.language is "pl", speech.voice must be one of "Szymon", "Wojciech".
  • When speech.language is "nl", speech.voice must be one of "Erik", "Katrien", "Lennart", "Lore".
  • When speech.language is "hi", speech.voice must be one of "Riya", "Manoj".
  • When speech.language is "he", speech.voice must be one of "Yael", "Oren".

Machine contracts

  • openapi.json — this page as an OpenAPI 3.1 document, public.
  • llms.txt — the same, written for an agent.

Was this page helpful?

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.