Speech to text: try transcription in the AI Playground
Describes AI 0.29.1.
The Speech to text card in the Playground writes down what is said in a recording. The clip stays on the page, so you can run it again with another model, language or instructions and compare the answers. The same settings drive the Dictate button that pages on the site can embed.
Where to find it
Open AI, then Playground (/admin/ai/playground), and pick an Endpoint: the Speech to text card appears under the chat. You need the AI permission, and the AI module must be on. Each try is a real, paid call made in your name as the Playground task, and it is listed on the Usage page.
Getting a clip
- Record: records from the microphone, up to five minutes. It needs PhoenixKit 3.4 or later; on an older one the card says Recording here needs PhoenixKit 3.4 or later. Pick a file instead.
- Pick a file: an audio file (WAV, MP3, OGG/Opus, AAC, WebM, MP4 and other audio types), up to 25 MB unless the site sets another limit.
Once loaded, the clip shows its length and can be played back (a very large one says Too large to play back here.). Remove drops it.
Settings
- Model (override): another model than the endpoint’s. When the provider’s catalogue knows models that take audio, the card says how many and suggests them as you type.
- Language (optional): a language code such as
et,enorru, as a hint. - Path: how the audio is sent. Automatic picks for you and shows its choice; Chat with the audio attached sends it to a chat model that hears; Speech-to-text API sends it to a dedicated transcription model.
- Instructions (optional): context that helps the model, for example how to write sizes or names.
Under the settings, a hint says which path the call will take and whether the model is known to take audio. If the model is known not to, the call will be refused, and the hint says so in red. If nobody has verified it and Only verified models is on (AI → Tasks), the call will be refused too. With the speech-to-text API, nothing checks beforehand that the model is a transcription model.
Writing it down
Write it down sends the clip; after the first answer the button reads Write it down again. The last five answers are listed under Answers, newest first, each with the endpoint, path, language found, length, cost, any Language hint and whether it ran With instructions. For each answer:
- Copy: copies the text.
- Use as chat message: puts the text into the chat’s Message field, switching the chat to freeform if a prompt was picked.
A clip with no speech answers No speech was heard in the recording.: that is a result, not an error. Clear empties the list.
Dictate
The Dictate button under the chat message records, writes down with these same settings, and puts the words into the message. It is the same component a module or the host app can place on its own pages.
What it doesn’t do
- It doesn’t store the audio: the usage entry keeps the clip’s format, size and length, not the recording.
- It transcribes one clip at a time and keeps only the last five answers, until you leave the page.
For developers
The recording button for your own pages is PhoenixKitAI.Web.Components.Dictate, a live component that sends the page {:dictated, id, text}; calls run as the ai.dictation task unless you name another, so its limits are on AI → Tasks. The upload size limit is config :phoenix_kit_ai, max_audio_bytes: …. See the module README for the attributes.