Files
speech-on-dgx-spark/README.md
T

10 KiB

Speech on DGX Spark

English | Deutsch · Idea: Dominik Bornhäußer

Buy me a coffee

Speech recognition (Qwen3-ASR), text to speech (Qwen3-TTS), pictures (FLUX.2 klein) and an own language model (vLLM) as services on an NVIDIA DGX Spark (GB10), plus a web panel with a voice assistant, profiles and monitoring. Runs natively with systemd, without Docker. The panel runs on the Spark itself or on a small computer of its own such as a Raspberry Pi 5.

Assistant Status Architecture
Assistant Status Architecture

Installation

git clone https://github.com/db9979/speech-on-dgx-spark
cd speech-on-dgx-spark
sudo ./install.sh

The script asks what to install:

  • Complete: models, APIs and the web panel with the assistant.
  • Only the models with their APIs: for Open WebUI, your own apps or Home Assistant, without the panel. Managed with sudo speech-spark.
  • Split (Spark split): the panel on a computer of its own such as a Raspberry Pi 5, the DGX only serves the models. Guide, also for moving: Spark split.

At the end it prints the address, password and API key, then TTS speaks a sentence and ASR checks it. The panel is at https://SPARK:31443 (https is needed so the browser allows the microphone).

Task Command
Update button in the panel under Settings → Update, or sudo speech-spark update
Show addresses and keys sudo speech-spark info
Own language model sudo ./install.sh --llm (switches the chat to it)
Workshop (test run, code measurement, diagnosis, repair) on the model computer sudo ./install.sh --werkstatt, then Features → Workshop
Develop on the Pi (OpenCode with the own language model, install locally) on the panel computer sudo ./install.sh --entwickeln, then Features → Develop on the Pi; used under Status → Workshop → Develop (overview, terminal in the browser, code orders from the chat); guide with pictures in Installation
Screen in remote access (guacd) on the computer with the panel sudo ./install.sh --fernbild, then Features → Remote access to servers → Screen
Move the panel to another computer sudo speech-spark umziehen --code, see Spark split
Uninstall sudo ./uninstall.sh (config, models and voices stay; --purge removes everything)

All options for running without questions (--mode api --asr 1.7b --tts 0.6b --yes …) are in Installation in detail.

Latest changes

  • V01.1.527 Pi voice: while the DGX Spark does not speak (gone or memory guard), the panel computer speaks by itself with the Piper voice Thorsten; admin switch, off by default
  • V01.1.526 Mischbetrieb memory guard: while the other project starts or memory runs short, Hören and Sprechen on the DGX Spark give their memory back, the Pi hears with Parakeet meanwhile
  • V01.1.525 Mischbetrieb: the DGX Spark works for another project, the assistant keeps listening and speaking
  • V01.1.524 Alzeo as a foreign model service: several checked models, the panel follows the running lane
  • V01.1.523 Spark console on a Spark alone: embeddings and re-ranking as GPU services for programs such as Open WebUI, the helper model to choose
  • V01.1.522 Red fix: help copy of the docs regenerated after V01.1.521
  • V01.1.521 Spark console: the overview also shows this computer's language model, LLM-Tor, helper model, vision, pictures and music
  • V01.1.520 Fillers: more varied, now and then with your name, only one per answer and no longer cut off in the car
  • V01.1.519 Blocked services are said at once: "The internet is blocked right now, please try again later" instead of "Let me look" and nothing
  • V01.1.518 Spark console reordered: four areas in a side bar (at the bottom on a phone), overview with one sentence and tiles with history, models and connections as list and detail, maintenance with updates and logs, light and dark follow the system

All versions: CHANGELOG.md

How it works

flowchart LR
  subgraph Clients["Devices and apps"]
    B["Browser and phone,<br/>iPhone and Android app,<br/>Companion for Windows/Mac"]
    T["Terminal client spark-tui<br/>e.g. on the uConsole"]
    X["ESP32 speakers,<br/>HA Assist via Wyoming :31003,<br/>phone (SIP), Telegram,<br/>Siri, Pebble"]
    M["MCP and API programs<br/>Claude, n8n, Open WebUI"]
  end
  subgraph Panel["Panel computer: the Spark or a Raspberry Pi 5"]
    G["Web panel :31443<br/>login, 2FA, passkeys,<br/>profiles, releases"]
    R["Router: tool choice<br/>by fixed rules"]
    K["Own knowledge: documents,<br/>reMarkable, memory"]
    S["Guard netguard<br/>allowed targets only"]
    LOG["Request log, live,<br/>backup, update after test"]
    NB["Emergency mode with Parakeet<br/>while the DGX is away"]
  end
  subgraph Spark["DGX Spark: model computer"]
    ASR["Speech recognition :31001<br/>Qwen3-ASR or Parakeet"]
    TTS["Speech output :31002<br/>Qwen3-TTS, own voices"]
    LLM["LLM-Tor :31006<br/>own language model (vLLM)"]
    IMG["Pictures :31005<br/>FLUX.2 klein"]
    MUS["Music :31004<br/>ACE-Step 1.5"]
    WS["Workshop: sandbox without network<br/>or data, tests and OpenCode"]
  end
  subgraph Out["Services and sources"]
    E["Home Assistant, calendars,<br/>mail, weather, parcels"]
    Q["SearXNG, Kiwix, Wikipedia,<br/>reMarkable cloud, MCP servers"]
  end
  A["Open WebUI, own apps"]
  B --> G
  T --> G
  X --> G
  M -->|"MCP server /mcp"| G
  G --> R
  R --> K
  R --> S
  S --> E
  S --> Q
  G ==>|"sound, text, pictures;<br/>split: through the TLS-Tor"| Spark
  A -->|"API key"| Spark
  1. You speak into your phone, browser, one of the apps, the terminal client, a speaker or the phone. The panel signs you in, sends the audio to speech recognition and gets text back.
  2. The router picks by fixed rules which tools the question needs. The panel passes the text, with memory, conversation history, your own knowledge and exactly those tools, to the language model behind the LLM-Tor.
  3. When the answer needs calendars, mail, weather, Home Assistant, web search, Kiwix or Wikipedia, the panel fetches the data itself; switching and adding entries only happen after you confirm. Pictures are painted and edited by FLUX.2 klein on the Spark; music is made by ACE-Step 1.5 (at first only “Test music” for the admin under State → Checks).
  4. The answer goes sentence by sentence to text to speech and is played as a stream while the model is still writing. Priority makes sure spoken answers and important people go first.
  5. With the Spark split the panel, profiles, chats and calls live on the small computer and reach the models only through the TLS-Tor. If the DGX restarts or is switched off, chats, reminders and calls keep running, and emergency mode understands a few fixed commands without a language model.
  6. Other apps use ASR and TTS directly through the OpenAI-style APIs with an API key, MCP programs use the Spark as an MCP server with their own access, and own programs the language model at /v1 with a key of their profile (Language model by API).

Every new feature is off by default. Once the admin releases it, it applies to every profile at once; only the admin can block single profiles. Guests get questions and answers only, never a tool. Updates only go live after a green self-test and can be rolled back.

Read more

The panel has its own guide for every feature next to its switch under Funktionen (Features); the search (Ctrl K) finds each one.

Support

The project is free. If you like it, you can support it at buymeacoffee.com/zquu1xu570.

License

FSL-1.1-MIT (Functional Source License), see LICENSE. You may use, read, change and share the Spark for yourself, your family and friends, for teaching and research; the only thing not allowed is offering it as a competing commercial product. Every version turns MIT on its own two years after its release. Versions up to V01.0.542 remain under MIT. Third-party parts included (e.g. XiaoZhi firmware, Lucide icons) keep their own license. The models (Qwen3-ASR, Qwen3-TTS) and packages (vLLM, vllm-omni, PyTorch) are downloaded during installation and come under their own licenses. This project is not affiliated with NVIDIA or the Qwen team.