/upload-ai

This application converts mp4 videos to mp3 using the browser, transcribes the video using the OpenAI API, and generates a title and description based on the video provided

Primary LanguageTypeScriptMIT LicenseMIT

upload-ai

This application converts mp4 videos to mp3 using the browser, transcribes the video using the OpenAI API, and generates a title and description based on the video provided

Functional requirements

  • Should be able get all prompts
  • Should be able upload videos
  • Should be able get video transcription
  • Should be able get video transcript summary

Non-functional requirements

  • The video must be a maximum of 25mb
  • The video must be sent in .mp4
  • The video must be converted to .mp3
  • Application data must be stored in SQLite

Routes

  • List all prompts
GET /prompts
  • Upload video
POST /videos
  • Create transcription
POST /videos/:videoId/transcription
  • Generate video transcript summary
POST /ai/completion

Run app

Install dependencies:

$ pnpm i

Start app

$ pnpm dev

Run API

Install dependencies:

$ pnpm i

Run migration

$ pnpm prisma migrate dev

Update env

$ cp .env.example .env

Update the OPENAI_KEY value, get this value here: https://platform.openai.com/account/api-keys

Start API

$ pnpm dev