Skip to content

fschuindt/simple_chatgpt_voice_prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Simple ChatGPT Voice Prompt

A simple example on how to use 3rd party APIs to prompt ChatGPT with voice. Responses will also be given in generative AI voice by Elevenlabs.

Currently, context is being dropped every new prompt.

It uses the following web APIs:

Installation

Install the following dependencies.

For Whisper CLI and SGPT, make sure you have also configured their respective API keys.

For the Elevenlabs API key, just export it like so:

export ELEVENLABS_API_KEY=your_key_here

Usage

./simple_chatgpt_voice_prompt

Start speaking, then enter Ctrl + C when done recording your message. Wait for the voice response.

All audio files are kept within the ./recordings folder. .wav files are the original prompt, .mp3 files are the original prompt converted into MP3 for lower file sizes and, .mpeg files are the generative voice responses.

About

Speak and listen to the ChatGPT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages