Skip to content

Instantly share code, notes, and snippets.

@Gottano
Gottano / assistant.py
Created April 6, 2023 01:09 — forked from Daniel-V-Richardson/assistant.py
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)