Tutorial: Get Started with Mirach¶
This tutorial will walk you through installing Mirach, configuring your first voice assistant, and having your first conversation. By the end, you'll understand the basic workflow: press a hotkey, talk, and get a spoken response.
What you'll learn¶
- How to install Mirach on your system
- How to configure your assistant's personality
- How to use the hotkey to start and stop recording
- How conversations are saved and viewed
Prerequisites¶
- Linux desktop (tested on CachyOS + Hyprland; any Wayland/X11 desktop with
notify-sendworks) - Python 3.11+
- NVIDIA GPU with CUDA 12 drivers (CPU mode works but adds 2-5s latency)
- A microphone
Step 1: Install Mirach¶
Run the installer from your terminal:
The interactive wizard will guide you through:
- GPU detection — automatically detects CUDA and sets the right Whisper device
- Assistant name — what your assistant will be called (e.g., "Mirach", "Aria", "Nexus")
- Language — choose English or Spanish for UI strings and filler phrases
- Whisper model —
medium(multilingual) ormedium.en(English-optimized) - Piper voice download — selects and downloads a voice model for text-to-speech
- Obsidian vault path — optional, for persistent memory across sessions
- OpenCode CLI — checks for or installs the LLM backend
- System prompt generation — creates your personalized
system_prompt.md - Skill installation — installs OpenCode skills for extended capabilities
- Systemd service — creates and starts the user service
If you want to accept all defaults without interaction:
After installation¶
Run opencode auth to configure your LLM provider if you haven't already:
Step 2: Understand the hotkey workflow¶
Mirach uses a single hotkey (default: Alt+Z) for all interactions. The hotkey is bound during installation. Here's how it works:
First press: Start recording¶
- Press
Alt+Z - You hear a short high beep (1320 Hz)
- A desktop notification appears: "🎤 Listening..."
- Start talking — the microphone is now recording
Second press: Process and respond¶
- Press
Alt+Zagain when you're done speaking - You hear a short low beep (660 Hz)
- Mirach transcribes your speech, queries the LLM, and speaks the answer
- A notification shows what you said and the assistant's response
Third press (during processing or speaking): Interrupt¶
- Press
Alt+Zwhile Mirach is thinking or speaking - The current response is interrupted immediately
- You hear the high beep again — start a new recording
This means the same keypress does three different things depending on the current state.
Step 3: Have your first conversation¶
Try asking something simple:
"What's the weather today?"
Or in Spanish:
"¿Qué hora es?"
You should hear: 1. The low beep when you press the hotkey to finish 2. A processing notification 3. If the LLM takes more than 10 seconds, a notification appears 4. If it takes more than 30 seconds, you hear "Still working on it..." (or the Spanish equivalent) 5. The spoken response
Step 4: View your conversation¶
After your first exchange, say one of these phrases:
- English: "show conversation", "view conversation", "read the conversation"
- Spanish: "muéstrame la conversación", "ver conversación", "lee la conversación"
Mirach will generate a styled HTML page and open it in your browser. The page shows your conversation in a chat-style layout with dark theme.
You can also find the raw Markdown file at:
Each session creates a new timestamped file, and latest.md is a symlink to the most recent one.
Step 5: Customize your assistant¶
Your assistant's personality is defined in system_prompt.md. Edit it to change how your assistant behaves:
After editing, restart the daemon:
The system prompt controls: - Language and tone - Response length (important for TTS — keep it short) - Whether to confirm before destructive actions - How to use skills and tools
What's next?¶
- How-to guides for specific tasks: adding user scripts, changing voices, troubleshooting
- Reference for all configuration options
- Explanation of how the architecture works
Common issues during setup¶
"Daemon is not running" notification when pressing the hotkey
Start the daemon:
No sound from the speaker
Check that your Piper voice was downloaded correctly:
You should see at least one .onnx file.
Microphone not detected
List available microphones:
Then set MIRACH_MIC to a substring of your mic name in the systemd service file.