Skip to content

Voice Generation

Voice generation APIs turn text or runtime speech content into voice output for voice-enabled flows and telephony integrations.

TermDefinition
Voice generationProducing an audio response from text or runtime prompt content.
Voice settingsThe workflow or request-level settings that select voice, language, and speech behavior.
Voice interactionA phone or voice-channel conversation that can include generated audio and recordings.
Recording URLA presigned URL used to retrieve a stored voice interaction recording when available.
ActionEndpoint
Generate voicePOST /llm-chain/voice/generate
Retrieve a recording URLGET /telephony/recordings/:id/presigned-url
Terminal window
curl -X POST "$OCTO_BASE_URL/llm-chain/voice/generate" \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Thanks for calling. I can help with that.",
"context": { "spaceId": "space_123", "language": "en-US" }
}'

Voice settings are normally configured on the AI Workflow version under language, voice, and phone settings. Use the API when a trusted integration needs to generate speech outside a normal entry-point call flow.

Voice interactions can expose recordings in the Interactions UI when recording is enabled. Integrations can request a presigned URL for a recording by ID.

Terminal window
curl "$OCTO_BASE_URL/telephony/recordings/recording_123/presigned-url" \
-H "Authorization: Bearer $OCTO_API_KEY"

Treat presigned URLs as temporary sensitive links. Do not store them permanently or expose them outside approved support and compliance workflows.

SituationWhat to check
No audio generatedConfirm text input, voice settings, language, and provider availability.
Recording missingConfirm recording was enabled on the workflow phone settings before the interaction.
Recording URL expiredRequest a fresh presigned URL.
Voice call not reaching workflowCheck the phone number, voice entry point, and published workflow version.

Should I generate voice directly for every phone call? No. Voice entry points and workflow phone settings handle normal call audio. Use this API for trusted integration paths.

Are recording URLs permanent? No. Treat them as temporary access links and request a new URL when needed.