This repository was archived by the owner on Apr 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: enable Whisper STT locally (medium.en) #5
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
844c929
fix: add restart: unless-stopped to vtm-api and ollama services
jaewilson07 cfa2094
feat: move non-secret settings from .env to config.yaml
jaewilson07 d87cd93
fix: address PR review comments — dict validation, ImportError fallba…
jaewilson07 49ab161
feat: enable whisper STT locally (medium.en, auto device)
jaewilson07 4a1b10e
fix: _stt_available flag, _config_section() safe reads, correct stt_e…
jaewilson07 57b21fc
merge: resolve conflicts with main — keep _config_section() helper an…
jaewilson07 9c94da5
docs: address PR review comments — clarify config.yaml ownership, cle…
jaewilson07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,19 @@ | ||
| # voice-to-mermaid backend — copy to .env and fill in | ||
| # | ||
| # Non-secret settings (model names, Whisper config, prompt path, model filter) | ||
| # are in config.yaml — edit that file instead of adding them here. | ||
|
|
||
| # ── LLM backend (pick one) ──────────────────────────────────────────────── | ||
| # ── LLM backend URLs (secrets — keep out of config.yaml) ───────────────── | ||
|
|
||
| # Option A: Ollama (local, recommended for self-hosting) | ||
| OLLAMA_URL=http://localhost:11434 | ||
| OLLAMA_MODEL=qwen2.5:14b | ||
| # Comma-separated model name prefixes shown in the picker (empty = show all) | ||
| OLLAMA_MODEL_FILTER=qwen2.5:,qwen3.5: | ||
|
|
||
| # Option B: OpenAI-compatible API (vLLM, OpenAI, Together, etc.) | ||
| # OPENAI_BASE_URL=https://api.openai.com/v1 | ||
| # OPENAI_API_KEY=sk-... | ||
| # OPENAI_MODEL=gpt-4o-mini | ||
|
|
||
| # ── Whisper (transcription) ─────────────────────────────────────────────── | ||
| # Model size: tiny | base | small | medium | large-v3 | ||
| # Device: auto | cpu | cuda | ||
| WHISPER_MODEL=medium | ||
| WHISPER_DEVICE=auto | ||
|
|
||
| # ── Server ──────────────────────────────────────────────────────────────── | ||
| PORT=7625 | ||
| # Shared secret — Next.js proxy sends this as X-Api-Key header. | ||
| # Leave blank to disable auth (dev only). | ||
| API_KEY= | ||
|
|
||
| # ── Prompts ─────────────────────────────────────────────────────────────── | ||
| # Path to mermaid prompt template (relative to this file). | ||
| # Edit prompts/mermaid.txt to customise diagram generation behaviour. | ||
| MERMAID_PROMPT_PATH=prompts/mermaid.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whisper.enabledis set totrueby default, but the Docker image (Dockerfile installs onlyrequirements.txt) doesn’t includewhisperlivekit/faster-whisper. In the defaultdocker compose upflow this will result in STT being effectively unavailable (and currently can still cause runtime import failures unless additionally guarded). Either ship STT deps in the image (e.g., installrequirements.stt.txtbehind a build arg/profile) or defaultwhisper.enabledtofalseand document the steps needed to enable STT locally.