Overview
POST /v1/converse runs one turn of a conversation. You send what the person said; the API returns what it heard, a reply written in Hausa, and the reply spoken by Nadia. Play the audio, record the next thing the person says, and send it again.
- Model:
voice-agent(research) - Language: Hausa
- Persona:
nadia - Counts: the audio you send plus the spoken reply
Turn on the scope
New keys do not include theconverse scope. When you create a key in the console, tick Voice agent. A key without it gets 403 insufficient_scope.
One turn
Response
Request
file
required
What the person said. Any format speech to text accepts.
string
default:"nadia"
Who answers.
nadia is the only persona.string
Your own id for the conversation, up to 100 characters. It comes back in the answer so you can match turns; the API never stores it.
What it does not do yet
- No memory between turns. Each request stands alone; the API does not keep the conversation.
- No streaming. The reply arrives once it is ready, as a whole file.
- Hausa only.
422 nothing_heard: ask the person to speak again.
Related
Talk to the voice agent
Tutorial
API reference
POST /v1/converse