First Run Wizard
A step-by-step walkthrough of the seven-step setup wizard that runs when you first open FiavaionDictate.
The Setup Wizard
When you open FiavaionDictate for the first time, the Setup Wizard runs automatically. It walks you through seven short steps. You can finish quickly if you skip AI setup, or take a few minutes more to configure a provider.
None of the AI steps are mandatory. Dictation works without any AI configured. You can skip local AI or the API key step, or choose “No thanks, local is fine” on the cloud step, and revisit them any time with the setup wizard button or the gear button (AI Provider Settings) in the header.
Step 1 — Welcome
A short introduction. Click Get started.
Step 2 — System Check
What you’ll see: A checklist of two items, each showing a green tick or a red cross:
- FiavaionDictate server — confirms the Python server is running
- Ollama (local AI) — confirms Ollama is running, and how many models it has
Neither check blocks you: Next is enabled once the checks finish, whatever they find.
If the server check fails: The Python server isn’t running. Make sure start.bat (Windows) or start.command (macOS) is running, or run python3 server.py, and reload the page.
The wizard does not test your microphone. Chrome asks for microphone permission the first time you click START; see Troubleshooting on the Getting Started page if it doesn’t work.
Step 3 — Local AI Setup
This step helps you set up Ollama — a free tool that runs AI models on your own computer. Nothing you dictate leaves your machine when you use Ollama.
What you see depends on what the check found:
- Ollama running with models: pick which model to use.
- Ollama running, no models: choose a model and click Download model; a progress bar shows the download.
- Ollama not found: a link to the Ollama download page and a Check again button. You can also click Skip.
| Model | Download Size | Note |
|---|---|---|
| Gemma 3 4B | ~3 GB | Fast, recommended |
| Llama 3.2 3B | ~2 GB | Lightest option |
| Mistral 7B Instruct | ~5 GB | Better writing quality |
Not sure which model to pick? Start with Gemma 3 4B. You can add more models later.
Step 4 — Cloud AI, Optional
This step compares local and cloud AI. Cloud AI is faster and smarter, but needs internet, may cost money, and sends your text to the provider when a correction runs.
Click Set up cloud AI to continue, or No thanks, local is fine to skip to the end.
Step 5 — Choose a Cloud Provider
Pick one of three providers:
| Provider | Cost |
|---|---|
| Google Gemini | Free tier, no credit card needed |
| Anthropic Claude | Pay per use |
| OpenAI GPT | Pay per use |
Gemini is pre-selected. The wizard describes the Gemini free plan as 10 requests per minute and 250 per day; Google sets those limits and can change them.
Step 6 — API Key
For Google Gemini:
- Click Open Google API keys (it opens aistudio.google.com/apikey)
- Sign in and click Create API Key
- Paste the key into the wizard
For Anthropic Claude: the button opens console.anthropic.com. Create a key and paste it.
For OpenAI: the button opens platform.openai.com. Create a key and paste it.
Click Test & continue. The wizard sends a tiny test request to confirm the key works. Leave Remember key in browser ticked to keep the key, encrypted, in your browser. Untick it and the key is kept only until you close the page.
Your key is never sent to Fiavaion. When you use AI correction, your browser sends it to the local server on your machine, which forwards it to the AI provider.
Step 7 — You’re All Set
A summary of what is configured. Click Start dictating to close the wizard, then:
- Click the START button (or press Space when no text field is focused)
- Say: “hello world period”
- You should see: Hello world.
What just happened?
- “hello world” was transcribed as you spoke
- While you were speaking, the text appeared as “interim” text, the engine’s live guess that is not yet committed
- When you paused, the text was committed
- “period” was converted to a
.instead of the word “period”
Step 2 — System Check (technical)
The system check makes two async calls:
-
Server reachability:
fetch('/api/projects')with a 3-second timeout. A200 OKresponse passes. -
Ollama:
GET http://localhost:11434/api/tagswith a 3-second timeout. If it responds, the installed models are listed.
On the GitHub Pages version (fiavaion.github.io) the wizard skips the server and local AI steps and shows five steps instead of seven.
Step 3 — Local AI Setup (technical)
The Download model button sends POST http://localhost:11434/api/pull with {"name": "<model>", "stream": true} and reads the streamed progress. The progress bar reflects the completed and total bytes from the stream.
The Check again button repeats the /api/tags call.
Step 4 — Cloud AI (technical)
This step is purely informational: a static comparison of local and cloud AI. No API calls are made.
Step 6 — API Key Setup (technical)
Encryption implementation:
Keys are encrypted with the Web Crypto API:
- Key derivation:
PBKDF2withSHA-256and 100,000 iterations. The input is a fixed string built into the app pluslocation.origin, and the PBKDF2 salt is the same fixed string. - Encryption:
AES-GCMwith a 256-bit key and a random 12-byte IV for each encryption - Storage:
localStoragekeyfiavaion-ai-apikey-<provider>holdsenc1:followed by the base64 of the IV and ciphertext
Because every install derives the key from the same inputs, this stops a key being read casually in browser storage. It is not protection against someone who can read your browser profile or run code on the page.
Test request: The test sends a minimal request through the local server’s /api/ai/proxy route. The API key is part of the JSON body sent to that route, and the server forwards the request to the provider.
To change keys after the wizard: click the gear button (AI Provider Settings), choose the provider’s tab, and save. Clearing the key field and saving removes the stored key.
Step 7 — Finish (technical)
When you click Start dictating, the app saves firstLaunchCompleted: true in its settings in localStorage. On later loads the wizard does not open by itself.
Interim vs final transcription:
The Web Speech API fires two kinds of result:
- Interim results (
isFinal: false) are the engine’s live guess and may change as more audio arrives. - Final results (
isFinal: true) are committed and run through the voice command parser. If the whole result is a command phrase, the command runs.
Re-running the Wizard
You can restart the wizard at any time by clicking the setup wizard button in the header. It does not clear your existing API keys or AI configuration.
Next Steps
- Configure AI in detail → AI Provider Setup
- Start dictating → Voice Commands Reference