SolDocs
Sol + Vapi

Your Vapi agent. The voice of Sol.

Connect Sol to your assistant and generate Spanish speech during the conversation. Set it up with Vapi’s Custom Voice.

4 stepsNo server to host
01

Prepare your account

Create a key in Sol API Keys and check that you have credits available. In Vapi, create a test assistant or open an existing one.

You need an account and credits in both services. Sol bills speech generation; Vapi and your other providers bill their services separately.

02

Create the credential

In Vapi, open Integrations → Server Configuration and select Add Custom Credential.

Authentication Type
Bearer Token
Credential Name
Sol
Token
Your Sol API key
Header Name
Authorization
Include Bearer Prefix
Enabled
Vapi form with Bearer Token, name Sol, Authorization header and Bearer Prefix enabled.
Vapi credential. The Token field is empty in this screenshot.

Select Save. Then open View Details and copy the Credential ID for the next step.

03

Connect the voice

Save the voice and its credential on the assistant using Vapi’s API. The dashboard shows Custom Voice and Server URL; the credential is linked through credentialId.

  1. Copy the assistant ID from the top of its page. Replace YOUR_ASSISTANT_ID in the command.
  2. Replace YOUR_CREDENTIAL_ID with the credential ID from step 2.
  3. In your terminal, set VAPI_API_KEY to a Vapi private key from Vapi → API Keys. This is separate from your Sol key.
Environment variable · terminal
export VAPI_API_KEY="YOUR_VAPI_PRIVATE_KEY"
Connect Sol · cURL
curl --fail-with-body --request PATCH \
  "https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID" \
  --header "Authorization: Bearer $VAPI_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "voice": {
      "provider": "custom-voice",
      "server": {
        "url": "https://api.buildsol.ai/v1/integrations/vapi/tts",
        "credentialId": "YOUR_CREDENTIAL_ID",
        "timeoutSeconds": 30
      }
    }
  }'

A successful response returns the updated assistant. Reload the dashboard and open Voice → Edit: you’ll see Custom Voice and the Sol URL.

Server URL
https://api.buildsol.ai/v1/integrations/vapi/tts
Choose another voice (optional)

The URL above uses the default voice. To choose another, get its ID from GET /v1/voices and append ?voice_id=YOUR_VOICE_ID to voice.server.url. Run the command again with that URL.

Use the URL parameter to select the Sol voice; the dashboard’s Voice ID field alone does not select it.

Vapi Voice Settings panel showing Custom Voice, the Sol endpoint and an example voice.
The connection with a specific voice selected.

Always use the saved assistant. Vapi may withhold the credential if you send the URL as a temporary configuration when creating a call.

04

Test your assistant

  1. In Transcriber, select Spanish. In the model prompt, ask it to respond in Spanish.
  2. Save your assistant changes; if Vapi shows a draft, select Publish and check the version you are testing.
  3. Select Talk and say: “Hola, cuéntame qué puedes hacer”. You should hear the response in Sol’s voice.
  4. Check Vapi’s Logs and Sol usage to confirm the connection is working.
Voice latency

600–900 ms

An indicative range to first audio. Latency depends on where Vapi connects to Sol, distance to the server and network conditions; it can fall outside this range.

Total assistant latency also includes transcription, the language model response and detecting when you stop speaking. Measure your call in Logs; the dashboard estimate is not a measurement of Sol.

Troubleshooting

401: authentication error

Check that the Sol key is active, Header Name is Authorization and Bearer Prefix is enabled. The credentialId must be inside voice.server on the saved assistant.

No voice audio

Check Sol credits, the URL and any errors in Logs. A private voice must belong to the API key’s account. To verify Sol, temporarily turn off Voice Caching and fallback voices in Voice → Advanced.