Voice-to-Text

Convert input audio content to text output.

Request Method

POST

Request URL

https://api.gptbots.ai/v1/bot/detail

Request Authentication

See Overview for authentication details.

Request

Request Example

curl -X POST https://api.gptbots.ai/v1/identify \
  -H 'Authorization: Bearer your_apikey' \
  -H 'Content-Type: multipart/form-data' \
  -F 'file=@'

Request Headers

FieldTypeDescription

Authorization

Bearer ${token}

Use Authorization: Bearer ${token} for authentication. Get the key from the API Keys page as token.

Content-Type

application/json

Data type, set to application/json.

Request Body

ieldTypeRequiredDescription

file

multipart/form-data

Yes

Audio file, max 25 MB. Supported formats: mp3

Response

Response Example

{
  "text": "Hi, is there anything I can help you?"
}

Success Response

FieldTypeDescription

text

string

Recognized text.

Failure Response

FieldTypeDescription

code

int

Error code.

message

string

Error details.

Error Codes

CodeMessage

40000

Invalid parameter

40107

Credentials expired

40127

Developer authentication failed

40325

Invalid file type, only 'm4a', 'mp3', 'webm', 'mp4', 'mpga', 'wav', 'mpeg' supported

50000

Internal server error

Last updated