Speech Synthesis

Send Voice notes, audio files, real-time audio and get transcription, translation or voice response.

1. Speech to Speech

POST /speech

Headers

Content-Type

application/Json

apikey

string

secret

string

Body

Name
Type
Description

speech

{filedatabase64} or {file url}

must be .ogg, .mp3, .wav

inlanguage

string

outlanguage

string

responsetype

string

Can be voice, image, video or text. If you need voice and text use voice,text.

stream

boolean

{
    "speech":{filedatabase64} or {file url}, 
    "inlanguage":"hausa",
    "outputlanguage":"english",
    "responsetype":"voice", 
    "stream":false
}

2. Speech to Text

Name
Value

Content-Type

application/json

apiKey

string

secret

string

Body

Name
Type
Description

speech

{filedatabase64} or {file url}

must be .ogg, .mp3, .wav

inlanguage

string

outputlanguage

string

responsetype

string

Can be voice, image, video or text. If you need voice and text use voice,text.

stream

boolean

{
    "speech":{filedatabase64} or {file url}, //must be .ogg, .mp3, .wav
    "inlanguage":"yoruba",
    "outputlanguage":"igbo",
    "responsetype":"text", //Can be voice, image, video or text. If you need voice and text use voice,text
    "stream":false
}

Last updated

Was this helpful?