OpenAssistantAPI

User API

Voice

In-app voice calls and available voices

GET/voice/providers

Voice engines this app has credentials for (none listed means no engine is configured) and their voices. Portal callers get a reduced view: no reason text and no customer deployment model name.

Responses

200Success
ok reqenumtrue
defaultProviderIdenumvapigoogle-liveazure-live
providers reqobject[]
id reqenumvapigoogle-liveazure-live
name reqstring
modelstring
enabled reqboolean
available reqboolean
reasonstring
defaultVoiceId reqstring
voices reqobject[]
voiceId reqstring
name reqstring
gender reqenummalefemaleother
descriptionstring

Request

curl 'https://app.openassistant.us/api/voice/providers' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "providers": [
    {
      "id": "vapi",
      "name": "string",
      "enabled": true,
      "available": true,
      "defaultVoiceId": "string",
      "voices": [
        {
          "voiceId": null,
          "name": null,
          "gender": null
        }
      ]
    }
  ]
}
POST/voice/live/session

Create a scoped browser voice session

Request body

assistantIdstring
chatIdstring | null
taskIdstring | null
onBehalfOfstring
previewobject
provider reqenumgoogle-liveazure-live
voiceId reqstring
text reqstring

Responses

200Success
provider reqenumvapigoogle-liveazure-live
409Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring
429Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring

Request

curl 'https://app.openassistant.us/api/voice/live/session' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "assistantId": "string",
  "chatId": "string",
  "taskId": "string",
  "onBehalfOf": "string"
}'

Response

{
  "provider": "vapi"
}
POST/voice/live/cancel

Cancel an owned browser session before gateway connection

Request body

sessionId reqstring

Responses

200Success
ok reqenumtrue
cancelled reqenumtrue
404Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring

Request

curl 'https://app.openassistant.us/api/voice/live/cancel' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "string"
}'

Response

{
  "ok": true,
  "cancelled": true
}