Jarvis-Termux is a PHP project that allows you to interact with an AI chat and voice assistant powered by OpenAI's ChatGPT model. It provides a convenient way to have voice-based conversations with an AI assistant right from your Termux terminal. You can ask questions, get responses, and even have a natural language conversation.
- Voice-based AI assistant: Interact with Jarvis using voice commands and receive spoken responses.
- Chat-based AI assistant: Interact with Jarvis using text.
- Natural language conversation: Engage in free-flowing conversations with the AI assistant.
- OpenAI-powered: Jarvis utilizes the OpenAI ChatGPT model for generating intelligent responses.
- Easy installation: Simply install the required libraries using Composer and you're ready to go.
- ChatGPT by HaoZiTeam: A PHP library for interacting with OpenAI's ChatGPT model.
- LibConfig by AmitxD: A configuration management library for PHP.
- LibVoice (Termux) by AmitxD: A PHP library for voice interaction using Termux.
- PHP: Make sure you have PHP installed on your system. You can check by running
php -v
in your terminal. - Composer: Install Composer, the PHP dependency management tool, on your system. You can download it from the official Composer website.
-
Clone the Jarvis-Termux repository from GitHub:
git clone https://github.com/Amitminer/Jarvis-Termux.git
-
Navigate to the project directory:
cd Jarvis-Termux
-
Install the required libraries using Composer:
composer install
-
Obtain an API access token from OpenAI:
- Login to your OpenAI account.
- Visit https://chat.openai.com/api/auth/session to obtain your access_token.
-
Update the API token in the
config.yml
file:- Open the
config.yml
file in a text editor. - Replace
<i hate myself>
with your actual access token obtained from OpenAI. - Save the changes.
- Open the
-
Run the Jarvis-Termux script:
php src/Jarvis.php
-
Start talking to Jarvis:
- Choose the mode you want to talk with Jarvis using that!.
- Speak commands or ask questions to Jarvis.
- Jarvis will respond with spoken answers and text answer generated by the AI.
- Add functionality to open various apps using Jarvis.
Contributions to Jarvis-Termux are welcome! If you have any ideas, suggestions, or bug reports, please feel free to create an issue or submit a pull request on the Jarvis-Termux GitHub repository. Let's make Jarvis-Termux even better together!
Jarvis-Termux is released under the MIT License.