Synopsis
POST /answer on Moorcheh Edge, and optionally plays the reply with Piper TTS.
Run
moorcheh-edge up --with-llm first so Ollama and the answer model are available. Run voice setup once before first use.Options
| Flag | Default | Description |
|---|---|---|
--base-url | http://localhost:8080 | Moorcheh Edge API base URL |
--query | - | Skip STT and use this text as the question |
--seconds | 5 | Recording length when --query is omitted |
--capture-device | - | ALSA capture device for recording |
--playback-device | - | ALSA playback device for TTS |
--top-k | 5 | Passages to retrieve for context |
--threshold | 0.0 | Minimum score when --kiosk-mode is set |
--kiosk-mode | off | Filter low-scoring passages |
--header-prompt | - | Custom system instruction |
--footer-prompt | - | Instruction before the question |
--chat-history-json | - | Prior turns as JSON array |
--temperature | server default | LLM temperature 0.0–2.0 |
--timeout | 120 | HTTP timeout in seconds |
--no-speak | off | Print answer only; do not play TTS |
--json | off | Print full API JSON plus heard; still speaks unless --no-speak |
Examples
--query is omitted, the CLI records for --seconds and prints what it heard before answering.
Output
Without--json, prints Q: and A: lines. With --json, prints the full /answer response plus "heard".