POST
/
cURL
curl --location --request POST 'https://revapi.reverieinc.com/' \
--header 'REV-API-KEY: <YOUR API KEY>' \
--header 'REV-APP-ID: <YOUR APP-ID>' \
--header 'REV-APPNAME: tts' \
--header 'speaker: hi_female' \
--header 'Content-Type: application/json' \
--data-raw '{
  "text": ["भारत मेरा देश है।", "मेरी कंपनी का नाम रेवेरी लैंग्वेज टेक्नोलॉजीज है।"],
  "speed": 1,
  "pitch": 0,
  "format": "WAV"
}'
This response does not have an example.

Headers

Content-Type
enum<string>
required

The format of the data to be posted.

Available options:
application/json
Example:

"application/json"

REV-API-KEY
string
required

A unique key/token provided by Reverie to identify the user using the Localization API.

Example:

"<YOUR API KEY>"

REV-APP-ID
string
required

The unique account ID to identify the user and the default account settings.

Example:

"<YOUR APP-ID>"

REV-APPNAME
enum<string>
required

The parameter to identify the API.

Available options:
tts
Example:

"tts"

speaker
enum<string>
required

The desired language and voice code for synthesizing the audio file

Available options:
hi_male,
hi_male_2,
hi_male_3,
hi_male_4,
hi_female,
hi_female_2,
hi_female_3,
bn_male,
bn_male_2,
bn_female,
bn_female_2,
kn_male,
kn_male_2,
kn_female,
kn_female_2,
ml_male,
ml_female,
ta_male,
ta_female,
te_male,
te_male_2,
te_female,
te_female_2,
gu_male,
gu_female,
or_male,
or_female,
as_male,
as_female,
mr_male,
mr_male_2,
mr_male_3,
mr_female,
mr_female_2,
mr_female_3,
pa_male,
pa_female,
en_male,
en_male_2,
en_female,
en_female_2
Example:

"hi_male"

Body

application/json

Text content to be generated to speech

text
string[]
required

The text you want to process to generate the speech.

speed
number

The speech rate of the audio file. Allows values from 0.5 (slowest speed) up to 1.5 (fastest speed).

pitch
number

Speaking pitch, in the range from -3 to 3. 3 indicates an increase of 3 semitones; -3 indicates a decrease of 3 semitones.

sample_rate
integer

The sampling rate (in hertz) to synthesize the audio output.

format
string

The speech audio format to generate the audio file (e.g., WAV, MP3).

Response

TTS response

Audio data in MP3 format