channels
voice
voice-message
voice-message-sending-operations

Send single voice message

This method allows you to send single voice message to one or more destination addresses.

post/tts/3/single

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Request body

audioFileUrlstring

An audio file can be delivered as a voice message to the recipients. An audio file must be uploaded online, so that the existing URL can be available for file download. Size of the audio file must be below 4 MB. Supported formats of the provided file are mp3 and wav. Our platform needs to have permission to make GET and HEAD HTTP requests on the provided URL. Standard http ports (like 80, 8080, etc.) are advised.

textstring

Message to be converted to speech and played to subscribers. Message text can be up to 1400 characters long and cannot contain only punctuation. SSML (Speech Synthesis Markup Language) is supported and can be used to fully customize pronunciation of the provided text.

languagestring

If the message is in text format, the language in which the message is written must be defined for correct pronunciation. More about Text-to-speech functionality and supported TTS languages can be found here. If not set, default language is English [en]. If voice is not set, then default voice for that specific language is used. In the case of English language, the voice is [Joanna].

fromstring required

Numeric sender ID in E.164 standard format (Example: 41793026727). This is caller ID that will be presented to the end user where applicable.

tostring required

Phone number of the recipient. Phone number must be written in E.164 standard format (Example: 41793026727).

Response

Success

bulkIdstring

The ID that uniquely identifies the request. Bulk ID will be received only when you send a message to more than one destination address.

Changes

No recorded changes to this operation across all 1 revision of this API.