stephengpope / no-code-architects-toolkit

The No-Code Architects Toolkit eliminates costly monthly API subscriptions by replacing them with a FREE API that you can deploy on low cost servers.
https://skool.com/no-code-architects
MIT License
143 stars 69 forks source link

Add .ass support for word by word highlight #24

Open aabdelrahmanm opened 1 month ago

aabdelrahmanm commented 1 month ago

Added caption_type= data['caption_type'] which is mandatory and it accepts either srt or ass

to test POST: http://localhost:8080/transcribe-media

{
    "media_url":"https://drive.google.com/uc?id=1Nz9FgrBumJAWlfPTYeyCxPlJGKCMcajI",
    "output": "ass",
    "webhook_url": "",
    "id": "local-transcribe"
}

POST: http://localhost:8080/caption-video

{
    "video_url":"https://drive.google.com/uc?id=1Nz9FgrBumJAWlfPTYeyCxPlJGKCMcajI",
    "caption_type": "ass",
    "srt":"COPY OUTPUT FROM PREVIOUS STEP",   
    "webhook_url": "",
    "id": "gdrive-five"
}