Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created January 11, 2024 09:19
Show Gist options
  • Save KaushikShresth07/8db52cc2b03b742a36542806f373fbbd to your computer and use it in GitHub Desktop.
Save KaushikShresth07/8db52cc2b03b742a36542806f373fbbd to your computer and use it in GitHub Desktop.
from elevenlabs import set_api_key
from elevenlabs import generate, play
set_api_key('')
def Speak(Text):
Text = str(Text)
audio = generate(
text=Text,
voice="Matilda",
model="eleven_monolingual_v1"
)
print(f"Jarvis : {Text}")
play(audio)
Speak("Hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment