A Typescript port (and extension) of the python web application "Ask Hugh" created by IgnoranceAI available here: https://github.com/IgnoranceAI/hugh
This is intended as a simple starting project for ChatGPT+Whisper+ElevenLabs.
It allows you to record audio, transcribe it, and then ask a question based on the transcription. The application uses the Whisper API, the ChatGPT API, and the ElevenLabs API.
-
Clone this repository:
git clone https://github.com/karl-friman/asknova-ts.git
-
Install
npm i
-
Duplicate the file .env.sample to a file called .env.local and add your API keys:
OPENAI_API_KEY = "YOUR API KEY HERE"
.
ELEVENLABS_API_KEY = "YOUR API KEY HERE"
-
Create a folder called "uploads" in the root directory.
- Start the server:
npm start
- Open your web browser and navigate to http://localhost:3000.
- Click the “Record” button to start recording audio. Speak into your microphone and then click the button again when you’re done. The transcription will appear in the text box.
- Alternatively, type your question into the text box and click the “Ask” button to submit your question and generate a response.
- The response will appear in the area below the audio player. It will begin playing and typing once it is ready.
The original "Record and Ask" was created by Artificial Ignorance using Flask, OpenAI’s Whisper, OpenAI’s ChatGPT, and ElevenLabs.
This project is licensed under the MIT License - see the LICENSE file for details.