v1

circle-exclamation
circle-info

API prefix: https://neura.al/api/v1

Speech to text

POST /stt

Submit a speech-to-text transcription request.

Headers

Name
Value

Content-Type

multipart/form-data

Body

Name
Type
Description
Optional

keyId

string

Your API key

audio

file

The content of the audio to be transcribed

callback_url

url

URL to be called once status changes

callback_info_only

boolean

Weather to return just the callbackID and status to callback_url

word_timestamps

boolean

Weather to include timestamps for each word

Response

{
    "callbackID": "ID of the callback" 
}

Example

Text to speech

POST /tts

Submit a text-to-speech request

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description
Optional

keyId

string

Your API key

text

string

The text you want to convert to speech

speaker

ENUM ['f1', f2', 'f3', 'f4', 'm1', 'm2', 'm3', 'm4']

The speaker you want to use

callback_url

url

URL to be called once status changes

callback_info_only

boolean

Weather to return just the callbackID and status to callback_url

Response

Example

Callback status

POST /callback/status

Check the result of a specific callback

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description
Optional

keyId

string

Your API key

callbackId

string

Callback ID to be checked

result_as

ENUM ["json", "txt","srt", "srt_words"]

How to format the response for Speech to text: “json” → returns a json element

“txt” → returns a txt element

“srt” → returns a srt compatible file with segments

“srt_words” → returns a srt compatible file with each word as a segment

Response

Example

List

POST /list

List the operations performed in the API

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description
Optional

keyId

string

Your API key

count

number

Number of elements to retrieve

status

ENUM ["processing", "success", "failed"]

Filter by status of the requests

type

ENUM ["stt-api", "tts-api"]

Filter by type of request

include_body

boolean

Weather to return the response (Default = False)

Response

Example

Last updated