| Mode | Flags | Input | Output |
|---|---|---|---|
/voice |
voice_mode_active=True, agent_voice_active=True |
Mic loop | Text plus ElevenLabs speech |
/voice1 |
agent_voice_active=True |
Keyboard | ElevenLabs on assistant lines |
/voice2 |
voice_mode_active=True, agent_voice_active=False |
Mic loop | Text only from assistant |
/voiceoff |
both False | — | Console confirmation |
speak_responsestreams TTS from ElevenLabs usingVOICE_IDandELEVENLABS_API_KEY.speak_agent_responseswaps toNYX_VOICE_IDorG1_VOICE_IDfor agent-colored room lines.
speech_recognition.Recognizerwith the default microphone.recognize_googlepath (networked).
listen_for_voice_command(timeout=5) listens for the word voice to auto-start /voice mode; otherwise it prompts the operator to type /voice later.
custom_words maps spoken phrases to local audio files for similarity-triggered actions. Default paths are developer-specific (E:\Agents\Test 1\...); replace with your own media or remove unused entries.
display_help() in help.py loads system_sounds/helpbell.mp3 relative to help.py.
Set in .env:
ELEVENLABS_API_KEYVOICE_ID,NYX_VOICE_ID,G1_VOICE_IDG1_VOICE_LIVEfor/ask g1 live
Ensure the default Windows recording device matches expectations.