Text-2-Speech

Text-2-Speech is an API that can be used when you want to get the audio for the text.

Using this api you can get the audio for any text

Path: /api/v1/speech/

Method: POST

Request Data

{
    “content”: <string>,
    "accent": <"EN_IN" | "EN_US" | "EN_UK">, // EN_IN - INDIAN, EN_US - AMERICAN, EN_UK - British
    "voice_type": <"male" | "female">,
    "num_of_words_per_minute": <number>
}

Response Data

{
    "id": <speech_id:ID>,
    "text_2_speech_status_url": "/api/v1/speech/<speech_id>/status/",
    "status": “pending” | “in_progress” | “completed” | “failed”,
    "error": <string> | <None>,
    "data": <None>
}

Example

Request Data

ch is sound vocabulary that can be used for listening exercises such as Phonetics

Response Data

Check the status of text-to-speech

Path: /api/v1/speech/<speech_id>/status/

Method: GET

Request Data

Response Data

Example

Request data

Response data

Last updated