Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(.env.example): add ELEVENLABS_VOICE_ID environment variable to … #17

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ELEVEN_API_KEY=''
# JARVIS_MODEL='jarvis:latest' # for local dev and testing of model before pushing to hub
JARVIS_MODEL='fotiecodes/jarvis:latest' # for usage: uncomment and use this instead if you downloaded model from https://ollama.com/fotiecodes/jarvis
VISION_MODEL='llava'
VISION_MODEL='llava'
ELEVENLABS_VOICE_ID='add the voice id here'
3 changes: 2 additions & 1 deletion modules/Interlocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
load_dotenv(override=True)

ELEVENLABS_API_KEY = os.getenv('ELEVENLABS_API_KEY')
ELEVENLABS_VOICE_ID = os.getenv('ELEVENLABS_VOICE_ID')

class Interlocus:
def __init__(self):
Expand All @@ -22,7 +23,7 @@ def speak(self, text):
audio = generate(
api_key=ELEVENLABS_API_KEY,
text=text,
voice="xFjhlCVIoEAjDeZpAmFe",
voice=ELEVENLABS_VOICE_ID,
model="eleven_turbo_v2",
)
play(audio)
Expand Down