- .NET 8 SDK
- FFmpeg (must be installed and available in PATH)
- OpenAI API Key
-
Install FFmpeg
- Windows: Download from https://ffmpeg.org/download.html and add to PATH
- Or use:
winget install ffmpeg - Verify installation:
ffmpeg -version
-
Configure OpenAI API Key
- Open
SublyAI/appsettings.json - Add your OpenAI API key:
"OpenAI": { "ApiKey": "your-api-key-here", "Model": "gpt-4" }
- Open
-
Restore NuGet Packages
dotnet restore
-
Run the Application
dotnet run --project SublyAI
-
Access Swagger UI
- Navigate to:
http://localhost:5000orhttps://localhost:5001 - Swagger UI will be available at the root URL
- Navigate to:
POST /api/videos/upload- Upload a video filePOST /api/videos/{videoId}/transcribe- Transcribe video audioPOST /api/videos/{videoId}/translate- Translate transcriptionPOST /api/videos/{videoId}/subtitles- Generate SRT subtitle fileGET /api/videos/{videoId}/subtitles/download- Download subtitle file
Videos and generated files are stored locally in the Storage directory (configurable in appsettings.json).
Logs are written to:
- Console
- File:
logs/sublyai-YYYYMMDD.txt
CORS is configured to allow requests from http://localhost:4200 (Angular default). Update appsettings.json to add more origins.