Skip to content

Commit 40277bb

Browse files
Merge pull request clevaway#17 from clevaway/develop
chore(.env.example): add ELEVENLABS_VOICE_ID environment variable to …
2 parents fef9856 + 09ed904 commit 40277bb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ELEVEN_API_KEY=''
22
# JARVIS_MODEL='jarvis:latest' # for local dev and testing of model before pushing to hub
33
JARVIS_MODEL='fotiecodes/jarvis:latest' # for usage: uncomment and use this instead if you downloaded model from https://ollama.com/fotiecodes/jarvis
4-
VISION_MODEL='llava'
4+
VISION_MODEL='llava'
5+
ELEVENLABS_VOICE_ID='add the voice id here'

modules/Interlocus.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
load_dotenv(override=True)
1010

1111
ELEVENLABS_API_KEY = os.getenv('ELEVENLABS_API_KEY')
12+
ELEVENLABS_VOICE_ID = os.getenv('ELEVENLABS_VOICE_ID')
1213

1314
class Interlocus:
1415
def __init__(self):
@@ -22,7 +23,7 @@ def speak(self, text):
2223
audio = generate(
2324
api_key=ELEVENLABS_API_KEY,
2425
text=text,
25-
voice="xFjhlCVIoEAjDeZpAmFe",
26+
voice=ELEVENLABS_VOICE_ID,
2627
model="eleven_turbo_v2",
2728
)
2829
play(audio)

0 commit comments

Comments
 (0)