AI 0.11.0: Instructions for text-to-speech
AI 0.11.0 lets an app tell a speech model how to read: speak/3 accepts :instructions, so steerable models such as gpt-4o-mini-tts get the accent, tone, pace and the language to read the text in.
Why it matters
Without it, a speech model has no way to know which language a short text is in. An app reading Italian heard words like “come” and “fine” pronounced as English. With instructions: naming the language, the model reads them as Italian.
The option is sent only when a call passes it, like :voice. In this release it goes to every provider.
In the admin
The endpoint form’s Enable Thinking checkbox and the prompt form’s Enabled checkbox now use PhoenixKit’s own checkbox component.
Upgrading
AI 0.11 needs PhoenixKit 1.7.184 or later. No migration. Update both dependencies.
Full release notes: AI 0.11.0
0.11.0 · 12 July 2026
Added
:instructionsoption forPhoenixKitAI.speak/3/Completion.text_to_speech/3. Forwards steerable instructions text to/audio/speech(accent, tone, pacing, and which language to read ambiguous input as) — needed forgpt-4o-mini-ttsand similar steerable models. Fixes a real mispronunciation case: without a way to tell the model which language the input is in, a host app’s Italian TTS read homographs like “come”/“fine” as English words. Sent only when the caller passes it (same provider-neutral pattern as:voice/:voice_id); Mistral’s/audio/speechschema allows unrecognized JSON properties, so the field is safe to send unconditionally rather than gated per-provider.
AI 0.11.0. Install or update: {:phoenix_kit_ai, "~> 0.11"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.