Subtitle Video File
curl --request POST \
--url https://voice.plotweaver.app/v1/videos/subtitle \
--header 'Content-Type: application/json' \
--data '
{
"file": "s3://bucket/audio/lesson_1.mp4",
"source_language": "English",
"target_language": "English"
}
'import requests
url = "https://voice.plotweaver.app/v1/videos/subtitle"
payload = {
"file": "s3://bucket/audio/lesson_1.mp4",
"source_language": "English",
"target_language": "English"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
file: 's3://bucket/audio/lesson_1.mp4',
source_language: 'English',
target_language: 'English'
})
};
fetch('https://voice.plotweaver.app/v1/videos/subtitle', 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://voice.plotweaver.app/v1/videos/subtitle",
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([
'file' => 's3://bucket/audio/lesson_1.mp4',
'source_language' => 'English',
'target_language' => 'English'
]),
CURLOPT_HTTPHEADER => [
"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://voice.plotweaver.app/v1/videos/subtitle"
payload := strings.NewReader("{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://voice.plotweaver.app/v1/videos/subtitle")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://voice.plotweaver.app/v1/videos/subtitle")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Video
Subtitle Video File
Generate and Overlay Subtitles onto a Video
Processes an input video to extract audio, generate transcriptions, and burn-in or side-load subtitles based on the provided configuration.
POST
/
v1
/
videos
/
subtitle
Subtitle Video File
curl --request POST \
--url https://voice.plotweaver.app/v1/videos/subtitle \
--header 'Content-Type: application/json' \
--data '
{
"file": "s3://bucket/audio/lesson_1.mp4",
"source_language": "English",
"target_language": "English"
}
'import requests
url = "https://voice.plotweaver.app/v1/videos/subtitle"
payload = {
"file": "s3://bucket/audio/lesson_1.mp4",
"source_language": "English",
"target_language": "English"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
file: 's3://bucket/audio/lesson_1.mp4',
source_language: 'English',
target_language: 'English'
})
};
fetch('https://voice.plotweaver.app/v1/videos/subtitle', 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://voice.plotweaver.app/v1/videos/subtitle",
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([
'file' => 's3://bucket/audio/lesson_1.mp4',
'source_language' => 'English',
'target_language' => 'English'
]),
CURLOPT_HTTPHEADER => [
"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://voice.plotweaver.app/v1/videos/subtitle"
payload := strings.NewReader("{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://voice.plotweaver.app/v1/videos/subtitle")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://voice.plotweaver.app/v1/videos/subtitle")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"file\": \"s3://bucket/audio/lesson_1.mp4\",\n \"source_language\": \"English\",\n \"target_language\": \"English\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
A Public accessible URI or path string pointing to the video file.
Example:
"s3://bucket/audio/lesson_1.mp4"
The starting language (case-sensitive to your Enum)
Available options:
French, English, Amharic, Swahili, Chinese, Japanese, Korean, German, Russian, Portuguese, Spanish, Italian, Arabic, Dutch, Hindi, Urdu Example:
"English"
A String of valid Language enum values
Available options:
French, English, Amharic, Swahili, Chinese, Japanese, Korean, German, Russian, Portuguese, Spanish, Italian, Arabic, Dutch, Hindi, Urdu Examples:
"English"
"Hindu"
"Chinese"
Response
Successful Response