For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send a Voice SMS

This request is used to send a Voice SMS to a mobile phone

URL

POST https://api.voicepartner.fr/v1/tts/send

Required Parameters

Name
Value

text

Text of the voice message. A pause between words is possible.

tokenAudio

Identifier of the audio file; the "text" parameter will not be taken into account

lang

The language the message is sent in

phoneNumbers

Recipients' mobile phone numbers. To send multiple messages, the numbers must be separated by commas. They can be:

  • in national format (06xxxxxxxx) or international format (+336xxxxxxxx), for French numbers.

Optional Parameters

Name
Value

speechRate

The speech rate of the message. Only effective when using text. The supported range is from 0.5 (slowed down speech) to 2 (sped up speech). Values below 0.5 will be replaced with 0.5 and values above 2 will be replaced with 2. The default speed is 1.

notifyUrl

Callback URL for the status of the sent voice SMS, sent as POST in JSON format

scheduledDate

Send date of the message, in YYYY-mm-dd H:m:00 format (e.g. 2021-02-02 14:15:00). Only set this if you want the SMS to be sent later.

audioComplementary

Identifier of the audio file that will be dropped if the recipient does not answer.

Pause between words

It is possible to add pauses between words and extend the duration of the voice message by using the comma «,». For example, if you want a 3-second pause after each word, the text parameter should look like this: «one ,,,,,, two ,,,,,, three ,,,,,,». Each comma creates a 0.5-second pause.

Requests

Response

Last updated