Bitel
2.0.0
2.0.0
  • Introduction
  • Authorization
  • API Structure
  • General API Errors
  • SMS
    • Introduction
    • Template SMS
    • OTP SMS
    • Single SMS
    • Batch SMS
    • Batch P2P SMS
    • SMS Status
  • Call
    • Introduction
    • OTP Call
    • Single Call
    • Single TTS Call
    • Batch Call
    • Batch TTS Call
    • Call Status
  • Webhook
    • Sms Webhook Events
    • Voice Webhook Events
  • Files
    • Introduction
    • Upload Voice
    • Text To Speech
    • Download Voice
  • Code Samples
    • C#
    • PHP
    • Python
Powered by GitBook
On this page

Was this helpful?

  1. Files

Text To Speech

Convert a text to voice and download the voiceId

POST https://api.bitel.rest/api/v2/files/tts

Headers

Name
Type
Description

content-type

string

application/json

Request Body

Name
Type
Description

text

string

the message to be converted

speaker

string

whether the speaker is "male" or "female", default is "female"

{
  "result": {
    "id": "9e8b2e5565774d3ebfa29082a7c61e6f",
    "dateCreated": 1564642810
  },
  "error": null
}

Sample Request

{
    "text": "Hi, there"
}
PreviousUpload VoiceNextDownload Voice

Last updated 5 years ago

Was this helpful?