Skip to content

Instantly share code, notes, and snippets.

View Daniel-V-Richardson's full-sized avatar
🎇
Thinking

Ʀɨ¢Ϧ♬Ʀᖱន០⩎ Daniel-V-Richardson

🎇
Thinking
View GitHub Profile
#!/bin/bash
# Download libgraph
wget http://download.savannah.gnu.org/releases/libgraph/libgraph-1.0.2.tar.gz
tar -xvzf libgraph-1.0.2.tar.gz
# Install dependencies
sudo apt install build-essential
sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 \
guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \
@Daniel-V-Richardson
Daniel-V-Richardson / assistant.py
Created January 24, 2023 14:44
Simple AI Voice Assistant using OpenAI API
import speech_recognition as sr
import pyttsx3
import openai
openai.api_key = "Your API Key"
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voices', voices[1].id)