This is essentially a convenience wrapper for another amazing tool called shell-gpt. It enables you to interact with chatGPT using either text or voice, and receive voice and text responses back.
User input is kept very minimal.
This should be usable from linux or macOS systems. Testing still needs to be done to confirm this.
No installation for the tool itself, it is simply a bash script. You will just need to install a few dependencies-
sudo apt install lame festival jq curl
pip install shell-gpt
- Set your openai api key in your bashrc -
OPENAI_API_KEY=<key>
- Put the script in your ~/.local/bin/ directory.
- Create a folder anywhere in your filesystem where the script's temporary files can be stored
- Open the script file and set the ROOT_DIR variable to the path for the folder you just created.
Call jarvis
in your terminal and a voice recording will start.
Press enter and the recording will be used as a chatgpt prompt.
You can alternatively type your prompt, and that will be used as the prompt instead.
You will get both a text and an audio response. The audio can be skipped by pressing enter. Hit enter again to begin the next prompt