This commit is contained in:
John Goyette 2023-11-18 15:38:16 -05:00 committed by GitHub
commit 61b2a2478c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,14 @@ import time
import simpleaudio as sa import simpleaudio as sa
import errno import errno
from elevenlabs import generate, play, set_api_key, voices from elevenlabs import generate, play, set_api_key, voices
from dotenv import load_dotenv
# import environment from dotenv file (.env)
# .env file should have API keys as follows
# OPENAI_API_KEY=<YOUR-API-KEY>
# ELEVENLABS_API_KEY=<YOUR-API-KEY>
# ELEVENLABS_VOICE_ID=<YOUR-VOICE-ID>
load_dotenv()
client = OpenAI() client = OpenAI()

Binary file not shown.