This is an example Speech to text app who uses Whisper through the openAI API. It uses the Next.js framework with React. Follow the instructions below to get set up.
-
If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)
-
Clone this repository
-
Navigate into the project directory
$ cd Whisper_web_demo
-
Install the requirements
$ npm install
-
Create a .env file at the root of the project
-
Add your API key to the newly created
.env
fileOPENAI_API_KEY=YOUR_KEY
-
Run the app
$ npm run dev
You should now be able to access the app at http://localhost:3000!
The backend function stores audio in your /tmp directory