connect action that opens a WebSocket carrying Linear PCM 16kHz audio — higher quality than Twilio’s μ-law.
Vault Credentials
In the Rapida dashboard go to Credentials → Create Credential, select provider type Vonage:| Key | Description |
|---|---|
api_key | Vonage API key |
api_secret | Vonage API secret |
application_id | Vonage Application ID (required for JWT auth on outbound) |
private_key | Vonage Application private key — PEM string (required for JWT auth on outbound) |
Setup
Create a Vonage Voice Application
In the Vonage Dashboard → Applications → Create a new application, enable Voice capability and set:
Download the private key and save it in the vault credential.
| Field | Value |
|---|---|
| Answer URL (POST) | https://{PUBLIC_ASSISTANT_HOST}/v1/talk/vonage/call/{assistantId} |
| Event URL (POST) | https://{PUBLIC_ASSISTANT_HOST}/v1/talk/vonage/ctx/{contextId}/event |
Attach vault credential to the assistant
In the assistant’s Phone Deployment, select the Vonage vault credential.
Audio Spec
| Property | Value |
|---|---|
| Encoding | Linear PCM 16-bit |
| Sample rate | 16000 Hz |
| Channels | Mono |
| Transport | Raw binary WebSocket frames |
Vonage uses 16kHz Linear PCM — higher quality than Twilio’s 8kHz μ-law. This can improve STT accuracy for providers that support 16kHz input.