First off, read this entirely, or else the code will not work, this is a gaurantee
Secondly, read the security.md too, its very important
Thirdly, im developing this robot as this project is alive, so right now it kinda works i guess but its very early beta, please understand that
Fourthly, theres a GladOS form in the branch GladOS if you prefer that
Fifthly, sometimes it only works on the console, this is being fixed, thank you for your patience
This is a public repository where i dump my BMO Robot Code (Adventure Time) OR GLADOS So if any of you guys want you can make your own using my shitty code All versions before v1.0.0 expect insane requirements that arent physically possible, just use the latest version
To install the libraries necessaries and create the BMO voice, double click on __init__.py
, even though the console blabbers about some errors about Path, ignore them, it works without it, this step might take a while by the way.
First off, you will need to buy credit for the openai-api, and the elevenlabs api, links here and here respectively.
Next step is downloading the source code for the most recent version, when downloaded extract all and open __init__.py
located inside the folder using notepad or any other text changing software and do the following:
import subprocess
subprocess.call(["pip", "install", "elevenlabs"])
subprocess.call(["pip", "install", "openai"])
subprocess.call(["pip", "install", "numpy"])
subprocess.call(["pip", "install", "sounddevice"])
import os
from elevenlabs import voices, set_api_key
from elevenlabs import clone, generate, play
set_api_key('YOUR ELEVENLABS KEY') # << Right here, change this to your actual elevenlabs API key
Make sure to save as .py as __init__.py
Next step, open Main.py
in the same place as __init__.py
with notepad or any other text changing software
from elevenlabs import generate, play
from elevenlabs import voices, set_api_key
from openai import OpenAI
client = OpenAI()
import time
import os
import tkinter as tk
import sounddevice as sd
import numpy as np
import shutil
set_api_key('YOUR ELEVENLABS KEY') # << Right here, change this to your actual, real elevenlabs key.
Make sure to save changes.
To set up your OpenAi Key, create a new environment variable on your device called OPENAI_API_KEY, set its value to your key
Dont know how to create an environment variable? then buckle up partner, skip this part if you know how.
To create an environment variable, simply double click on the "This pc" icon on your desktop or file explorer and click properties. This will open a settings tab, next, find the "Advanced settings" option, or something similar. This should open a tab featuring a pc icon, find the "Environment variables" button, click it. Find the "Add" button and click it. Name the variable "OPENAI_API_KEY" and set its value to your key. Save changes and exit, make sure to double check if it saved.
Until the terminal bug is fixed, select the run as terminal option when rightclicking on the Main.py file.
When the terminal opens, type the following command: Python Main.py
or ``Python3 Main.py` if you're on windows or not.
If something doesnt work, add an issue using the template found in .github/ISSUE-TEMPLATES