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

Upload Voice

To use a custom voice in a call, the client has to first upload the file and retrieve the identifier. this identifier can then be used in call APIs

The file should be in binary format and the limit must be less than 128 megabytes.

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

Headers

Name
Type
Description

content-type

string

multipart/formdata

Request Body

Name
Type
Description

data

object

the binary voice to be uploaded

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

The uploaded file can later be downloaded using the voiceId

PreviousIntroductionNextText To Speech

Last updated 5 years ago

Was this helpful?