Text-to-Speech Call
AI-generatedSummary
Initiates an outbound call using Sinch Programmable Voice API with a text-to-speech message.
Inputs
- toNumber (required) — Destination phone number in E.164 format.
- fromNumber (required) — Your Sinch phone number (E.164) to call from.
- message (required) — Text to be spoken during the call.
- voice — Voice to use for text-to-speech (e.g., en-US-female). Default: en-US-female.
- recordCall — Whether to record the call. Default: false.
- maxDuration — Maximum call duration in seconds (1‑14400). Default: 300.
- webhookUrl — URL to receive call event notifications.
Output shape
object
Returns a single item per input with the following JSON fields: callId (string), to (string), from (string), status (string), message (string), voice (string), recordingEnabled (boolean), maxDuration (number).
Examples
Example 1: Send a simple voice notification.
Set To Number, From Number, Message, and optionally Voice. Leave Record Call disabled and use default max duration.