Transcribe Pre-recorded Audio
curl --request POST \
--url https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"audio_url": "https://example.com/audio.wav",
"content_type": "audio/wav"
}
'import requests
url = "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded"
payload = {
"audio_url": "https://example.com/audio.wav",
"content_type": "audio/wav"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({audio_url: 'https://example.com/audio.wav', content_type: 'audio/wav'})
};
fetch('https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'audio_url' => 'https://example.com/audio.wav',
'content_type' => 'audio/wav'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded"
payload := strings.NewReader("{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"channels": 123,
"created": "<string>",
"duration": 123,
"request_id": "<string>",
"model_info": {},
"models": [
"<string>"
],
"sha256": "<string>",
"transaction_key": "<string>"
},
"results": {
"channels": [
{
"alternatives": [
{
"confidence": 123,
"transcript": "<string>",
"words": [
{
"confidence": 123,
"end": 123,
"start": 123,
"word": "<string>",
"punctuated_word": "<string>",
"speaker": 123,
"speaker_confidence": 123
}
]
}
]
}
],
"utterances": [
{
"confidence": 123,
"end": 123,
"speaker": 123,
"start": 123,
"transcript": "<string>"
}
]
},
"warnings": [
"<string>"
]
}Deepgram
Transcribe Pre-recorded Audio
Transcribe Pre-recorded Audio
POST
https://api.aisa.one
/
apis
/
v1
/
deepgram
/
speech-to-text-pre-recorded
Transcribe Pre-recorded Audio
curl --request POST \
--url https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"audio_url": "https://example.com/audio.wav",
"content_type": "audio/wav"
}
'import requests
url = "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded"
payload = {
"audio_url": "https://example.com/audio.wav",
"content_type": "audio/wav"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({audio_url: 'https://example.com/audio.wav', content_type: 'audio/wav'})
};
fetch('https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'audio_url' => 'https://example.com/audio.wav',
'content_type' => 'audio/wav'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded"
payload := strings.NewReader("{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"audio_url\": \"https://example.com/audio.wav\",\n \"content_type\": \"audio/wav\"\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"channels": 123,
"created": "<string>",
"duration": 123,
"request_id": "<string>",
"model_info": {},
"models": [
"<string>"
],
"sha256": "<string>",
"transaction_key": "<string>"
},
"results": {
"channels": [
{
"alternatives": [
{
"confidence": 123,
"transcript": "<string>",
"words": [
{
"confidence": 123,
"end": 123,
"start": 123,
"word": "<string>",
"punctuated_word": "<string>",
"speaker": 123,
"speaker_confidence": 123
}
]
}
]
}
],
"utterances": [
{
"confidence": 123,
"end": 123,
"speaker": 123,
"start": 123,
"transcript": "<string>"
}
]
},
"warnings": [
"<string>"
]
}Request contract
- Method and path: POST /apis/v1/deepgram/speech-to-text-pre-recorded
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded
{
"operationId": "deepgram.speech-to-text-pre-recorded",
"method": "POST",
"path": "/apis/v1/deepgram/speech-to-text-pre-recorded",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"alternatives": {
"description": "Number of alternative transcripts to return.",
"minimum": 1,
"type": "integer"
},
"audio_url": {
"description": "Public URL of the audio file to transcribe. Must be a direct, publicly downloadable media file URL — not a preview page, auth-gated link, or expiring/short-lived URL.",
"examples": [
"https://example.com/audio.wav"
],
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"type": "string"
},
"content_type": {
"description": "MIME type of the audio file. Without your own Deepgram key, only 'audio/wav' is supported.",
"enum": [
"audio/wav",
"audio/mp3",
"audio/mpeg",
"audio/flac",
"audio/webm"
],
"examples": [
"audio/wav",
"audio/mp3"
],
"type": "string"
},
"detect_language": {
"description": "Automatically detect language if true. Prefer explicit `language` over this when the audio language is known; auto-detection reduces accuracy for non-English content. Requires your own Deepgram key.",
"type": "boolean"
},
"diarize": {
"description": "Enable speaker diarization if true. Requires your own Deepgram key.",
"type": "boolean"
},
"interim_results": {
"description": "Return interim results if true. Requires your own Deepgram key.",
"type": "boolean"
},
"keyterm": {
"description": "List of keyterms to boost in the transcript. Supported by Nova-3 and Flux models only. Use simple terms without intensifiers (e.g., 'invoice', 'payment terms'). For other models, use 'keywords' instead. Requires your own Deepgram key.",
"examples": [
[
"invoice",
"payment terms",
"customer name"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"keywords": {
"description": "List of keywords to boost in the transcript. Supported by Nova-2, Nova-1, Enhanced, and Base models. Format: 'keyword:intensifier' (e.g., 'invoice:5'). For Nova-3 or Flux models, use 'keyterm' instead. Requires your own Deepgram key.",
"examples": [
[
"invoice:5",
"payment:3"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"language": {
"description": "Language code for transcription (e.g., 'en-US'). Without your own Deepgram key, only 'en' or 'en-US' is supported and 'en' is used when omitted.",
"examples": [
"en-US"
],
"type": "string"
},
"model": {
"description": "Deepgram model to use (e.g., 'nova-3', 'general', 'phonecall'). Without your own Deepgram key, only 'nova-3' is supported and is used when omitted.",
"examples": [
"nova-3"
],
"type": "string"
},
"punctuate": {
"description": "Automatically punctuate transcript.",
"type": "boolean"
},
"smart_format": {
"description": "Apply smart formatting (capitalization/punctuation).",
"type": "boolean"
},
"tier": {
"const": "enhanced",
"description": "Enhanced tier for higher-accuracy recognition. Requires your own Deepgram key.",
"type": "string"
},
"version": {
"description": "Specific model version to use. Requires your own Deepgram key.",
"type": "string"
}
},
"required": [
"audio_url",
"content_type"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0103 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
List of keyterms to boost in the transcript. Supported by Nova-3 and Flux models only. Use simple terms without intensifiers (e.g., 'invoice', 'payment terms'). For other models, use 'keywords' instead. Requires your own Deepgram key.
Example:
["invoice", "payment terms", "customer name"]