Skip to main content

NeuralSpace VoiceAI (1.0.1)

Download OpenAPI specification:Download

NeuralSpace APIs for advanced Speech-To-Text.

File Transcription

APIs to carry out creation, listing and deletion of file transcription jobs.

Create Job

Endpoint to create a file transcription job.

Authorizations:
PlatformToken
header Parameters
Authorization
required
string <apiKey>
Request Body schema: multipart/form-data
files
string <binary>

Not required if rerun is passed in config.

object (JobConfig)

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/jobs' \
  --header 'Authorization: {{NS_API_KEY}}' \
  --form 'files=@"{{LOCAL_AUDIO_FILE_PATH}}"' \
  --form 'config="{\"file_transcription\":{\"mode\":\"advanced\"}}"'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Jobs

Get details of multiple transcription jobs.

Authorizations:
PlatformToken
query Parameters
page
number

The page of results to return.

pageSize
integer >= 1
Default: 20
Example: pageSize=20

The number of jobs to return per page.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/jobs' \
  --header 'Authorization: {{API_KEY}}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Job

Get details of a transcription job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the job to retrieve.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/jobs/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Update Job

Update a transcription job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the job to update

header Parameters
Authorization
required
string <apiKey>
Request Body schema: application/json
filename
string

The new filename to set for the transcription job.

Responses

Request samples

Content type
application/json
{
  • "filename": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Delete Job

Endpoint to delete a file transcription job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the job to delete

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location --request DELETE 'https://voice.neuralspace.ai/api/v1/jobs/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Ask Me Anything

APIs to answer natural language queries on the content of your file transcription jobs.

Create Prompt Job

Endpoint to create a prompt job.

Authorizations:
PlatformToken
header Parameters
Authorization
required
string <apiKey>
Request Body schema: application/json
jobId
string

The jobId the prompts should be asked against.

prompts
Array of strings

An array of prompts to answer.

Responses

Request samples

Content type
application/json
{
  • "jobId": "string",
  • "prompts": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get Prompt Jobs

Get details of multiple prompt jobs.

Authorizations:
PlatformToken
query Parameters
jobId
string

The jobId the prompts were run against

pageNumber
number

The page of results to return.

pageSize
integer >= 1
Default: 20
Example: pageSize=20

The number of jobs to return per page.

sort
string
Enum: "asc" "desc"

The sort order of results.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v2/prompts' \
  --header 'Authorization: {{API_KEY}}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Prompt Job

Get details of a prompt job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the prompt to retrieve.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v2/prompts/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Delete Prompt Job

Endpoint to delete a prompt job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the prompt to delete

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location --request DELETE 'https://voice.neuralspace.ai/api/v2/prompts/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Text to Speech

APIs to carry out creation, listing and deletion of text to speech jobs.

Create TTS Job

Endpoint to create a text to speech job.

Authorizations:
PlatformToken
header Parameters
Authorization
required
string <apiKey>
Request Body schema: application/json
text
string

The text that should be used to generate speech.

speaker_id
string

The id of the voice to be used to generate speech. From /tts/voices.

stream
boolean

Whether to return a byte stream as the API response.

object (TTSConfig)

Responses

Request samples

Content type
application/json
{
  • "text": "string",
  • "speaker_id": "string",
  • "stream": true,
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get TTS Jobs

Get details of multiple text to speech jobs.

Authorizations:
PlatformToken
query Parameters
pageNumber
number

The page of results to return.

pageSize
integer >= 1
Default: 20
Example: pageSize=20

The number of jobs to return per page.

sort
string
Enum: "asc" "desc"

The sort order of results.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/tts' \
  --header 'Authorization: {{API_KEY}}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get TTS Job

Get details of a text to speech job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the job to retrieve.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/tts/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Delete TTS Job

Endpoint to delete a text to speech job.

Authorizations:
PlatformToken
path Parameters
id
required
string <uuid>

The ID of the job to delete

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location --request DELETE 'https://voice.neuralspace.ai/api/v1/tts/{YOUR_JOB_ID}' \
  --header 'Authorization: {YOUR_API_KEY}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Languages

APIs to find supported languages and their identifiers.

Get Supported Voices

Get supported speaker IDs.

Authorizations:
PlatformToken
header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/tts/voices' \
  --header 'Authorization: {{API_KEY}}'

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get Supported Languages

Get supported language codes.

Authorizations:
PlatformToken
query Parameters
type
required
string
Enum: "file" "stream"

The transcription mode to get supported languages for.

header Parameters
Authorization
required
string <apiKey>

Responses

Request samples

curl --location 'https://voice.neuralspace.ai/api/v1/languages?type=file' \
  --header 'Authorization: {{API_KEY}}'

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}