Prompt
I'm building an IVR workflow and need an API for synthetic voice prompts
Latest observation
Oct 11, 2026
OpenAI APIWeb search: off
Yes — you can build this as a simple TTS (“text-to-speech”) API for your IVR workflow.
Recommended API shape
1) Generate a prompt
POST /v1/voice-prompts
Request
{
"text": "Thank you for calling. Press 1 for sales, 2 for support.",
"voice": "en-US-Standard-A",
"format": "wav",
"sample_rate_hz": 8000,
"speed": 1.0,
"pitch": 0
}
Response
{
"prompt_id": "vp_12345",
"status": "ready",
"audio_url": "https://cdn.example.com/prompts/vp_12345.wav",
"duration_ms": 4200,
"format": "wav",
"sample_rate_hz": 8000
}
2) Fetch prompt metadata
GET /v1/voice-prompts/{prompt_id}
3) Delete prompt
DELETE /v1/voice-prompts/{prompt_id}
IVR-friendly requirements
For phone systems, you’ll usually want:
- 8 kHz sample rate
- WAV/PCM or telephony-friendly MP3
- Consistent voice model
- Support for SSML if you want pauses, numbers, dates, and emphasis
Example with SSML:
{
"ssml": "<speak>Thank you for calling. <break time=\"500ms\"/> Press 1 for sales, 2 for support.</speak>",
"voice": "en-US-Standard-A",
"format": "wav",
"sample_rate_hz": 8000
}
Useful extra features
- Async job processing for long prompts
- Caching by text+voice+settings hash
- Versioning for voice models
- Callbacks/webhooks when synthesis completes
- Pronunciation dictionary for acronyms/company names
If you want, I can help with one of these next:
- A full OpenAPI spec
- A FastAPI/Node.js implementation
- A telephony-optimized design for Twilio/Asterisk/Genesys
- A sample IVR prompt generation pipeline