naonauno commited on
Commit
aa11dfb
·
verified ·
1 Parent(s): a6e928a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import threading
4
  import discord
5
  from discord import app_commands
 
6
  from elevenlabs import set_api_key, voices, generate, Voice, VoiceSettings, User
7
  import tempfile
8
  import speech_recognition as sr
@@ -17,6 +18,9 @@ logger = logging.getLogger(__name__)
17
  ELEVENLABS_API_KEY = os.getenv("ELEVENLABS_API_KEY")
18
  set_api_key(ELEVENLABS_API_KEY)
19
 
 
 
 
20
  # Discord bot setup
21
  intents = discord.Intents.default()
22
  intents.message_content = True
 
3
  import threading
4
  import discord
5
  from discord import app_commands
6
+ from typing import List
7
  from elevenlabs import set_api_key, voices, generate, Voice, VoiceSettings, User
8
  import tempfile
9
  import speech_recognition as sr
 
18
  ELEVENLABS_API_KEY = os.getenv("ELEVENLABS_API_KEY")
19
  set_api_key(ELEVENLABS_API_KEY)
20
 
21
+ # Create the voice command group
22
+ voice_group = app_commands.Group(name="voice", description="Voice generation commands")
23
+
24
  # Discord bot setup
25
  intents = discord.Intents.default()
26
  intents.message_content = True