Loading...
Loading...
Inworld TTS API. Covers voice cloning, audio markups, timestamps. Keywords: text-to-speech, visemes.
npx skill4agent add itechmeat/llm-code inworld| Topic | Reference |
|---|---|
| Installation | installation.md |
| Voice Cloning | cloning.md |
| Voice Control | voice-control.md |
| API Reference | api.md |
[happy][sad]| Model | ID | Latency | Price |
|---|---|---|---|
| TTS 1.5 Max | | ~200ms | $10/1M chars |
| TTS 1.5 Mini | | ~120ms | $5/1M chars |
import requests, base64, os
response = requests.post(
"https://api.inworld.ai/tts/v1/voice",
headers={"Authorization": f"Basic {os.getenv('INWORLD_API_KEY')}"},
json={"text": "Hello!", "voiceId": "Ashley", "modelId": "inworld-tts-1.5-max"}
)
audio = base64.b64decode(response.json()['audioContent'])[happy][laughing][sigh]/voice:stream