Skip to content

TheTheAloe/Ai-stuff

Repository files navigation

ONLY TESTED ON WINDOWS!!!

Must install...

1. setup Ollama API locally (https://ollama.com/download)
Once Ollama is installed go into your PCs terminal and paste the command (ollama run deepseek-r1:32b)
For this to work, you need to have the Ollama service running locally at http://localhost:11434

2. This was made on Python version 3.13.2 (install from https://www.python.org/downloads/)
Check the option to "Add Python to PATH" during installation.
Now install the Python extension on VScode then reboot software. Once software posts run python --version in the terminal. If it says Python 3.13.2 it is working.

3. Install Required Libraries:
You'll need three libraries for your code:

pip within the terminal (python get-pip.py)
requests (for making HTTP requests)
pyttsx3 (for text-to-speech)
json (comes with Python)
To install the necessary libraries, run the following command in your VScode terminal:
pip install requests pyttsx3 (run this within VScode terminal)

For speech to speech, you will need also to install...

Speech_recognition (pip install SpeechRecognition)
PyAudio (pip install pyaudio)
To install the necessary libraries, run the following command in your VScode terminal:
pip install SpeechRecognition pyaudio

Now it should work!

If you are running this script's openAI version, install openAi's python package. (pip install openai)
Where it says "OpenAIAPIkey" paste in your API key.

With the final script, the wakeword will be hey ai, to end the chat the phrase is end chat and to kill the script the word is kill. 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages