# Text to speech for AI phone agents

Listen to speech samples and find a voice for your AI agent. Compare the same line in clean audio and simulated phone audio.

[AI Voice Library](/voice-library)[Voice Preview API](#speech-api)

## Listen to a sample

This illustrative sample uses eSpeak NG. Catalogue voices are listed separately. The phone version simulates narrowband audio and does not measure a live call.

Clean audio / Simulated phone audioClean audioSimulated phone audio

Sample transcript

> Hello, this is a reminder that your appointment is tomorrow at three in the afternoon.

## Generate speech with the API

Use an API key with agents:write and a project ID to synthesize up to 200 characters without placing a call. Get a complete WAV (base64 in JSON) or stream audio as NDJSON.

-   `POST https://api.skysay.ai/v1/voice-previews`
-   `POST https://api.skysay.ai/v1/voice-previews/stream`

```
curl --fail-with-body https://api.skysay.ai/v1/voice-previews \
  -H "Authorization: Bearer $SKYSAY_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "project_id": "YOUR_PROJECT_ID",
  "provider": "gemini",
  "model": "gemini-3.8-flash-tts",
  "voice_id": "Achernar",
  "language": "en",
  "text": "Thanks for calling."
}'
```

[Read the voice API guide](/docs/voice-library#preview-a-voice-over-the-api)

## Browse by language

-   [Arabic text to speech](/text-to-speech/arabic)
-   [English text to speech](/text-to-speech/english)
-   [British English text to speech](/text-to-speech/english/british)

## Compare with the same script

Try a short line with a name, number or time. Then use the same script and language to compare voices before testing a real call.

[AI Voice Library](/voice-library)
