Whisper Transcriber
😮‍💨

Whisper Transcriber

Tags
Node.js
OpenAI
Content/Media
Published
April 14, 2024
Author
Schedule

Overview

Creating a simple video transcriber using OpenAI’s Whisper API and the popular JavaScript library ffmpeg.
 

Project Setup

Dependencies

  • ffmpeg
  • OpenAI’s Whisper library
  • fs-extra to work with file system

Logic

  1. Extract audio from the video file first using fluent-ffmpeg
  1. Use the Whisper API to transcribe the audio file
  1. Bring it all together as a simple app

Code

  1. Initialize the project
> mkdir whisper-transcriber > cd whisper-transcriber > npm init -y
  1. Install the necessary dependencies
> npm install openai fluent-ffmpeg fs-extra dotenv