Wrapper: A Local-First Architecture for Voice-Based Robot Assistants Using Speech Recognition, Retrieval-Augmented Generation, and Hierarchical LLM Fallback

Voice-based interaction is increasingly central to human–robot communication, yet most deployed voice assistants depend heavily on cloud services, which introduces latency, requires continuous network connectivity, and raises data-privacy concerns. These constraints are especially limiting for robots operating in laboratories, industrial sites, and remote environ- ments. This paper proposes Wrapper, a local-first architecture for voice-based robot assistants that unifies local speech-to-text, retrieval-augmented generation (RAG) over a local knowledge base, on-device large language model (LLM) inference, and a cloud LLM that is invoked only as a last resort. The central design element is a confidence-based routing layer that escalates a query through three stages—RAG, then a local LLM, then a cloud LLM—using explicit relevance and confidence thresholds, so that cloud calls occur only when local options are exhausted. We describe the system architecture, the runtime inference pipeline, and the routing logic, and we present a proof-of-concept implementation built from open-source and freely available components (Whisper, sentence-transformer embeddings, a local vector store, an Ollama-hosted local LLM, and a cloud LLM API). The contribution of this work is architectural: a coherent, reproducible design for privacy-aware, low-dependency voice interaction in robotics. A systematic empirical evaluation of transcription accuracy, routing correctness, latency, and response quality is outlined as the immediate next step and is left to future work.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-05-31
DOI
https://doi.org/10.5281/zenodo.20473875
Primary Topic
Speech Recognition and Synthesis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Wrapper: A Local-First Architecture for Voice-Based Robot Assistants Using Speech Recognition, Retrieval-Augmented Generation, and Hierarchical LLM Fallback

Hamim Fahmid Hossain
Zenodo (CERN European Organization for Nuclear Research)
Speech Recognition and Synthesis
preprint

Wrapper: A Local-First Architecture for Voice-Based Robot Assistants Using Speech Recognition, Retrieval-Augmented Generation, and Hierarchical LLM Fallback

Hamim Fahmid Hossain
preprint en

Abstract

Voice-based interaction is increasingly central to human–robot communication, yet most deployed voice assistants depend heavily on cloud services, which introduces latency, requires continuous network connectivity, and raises data-privacy concerns. These constraints are especially limiting for robots operating in laboratories, industrial sites, and remote environ- ments. This paper proposes Wrapper, a local-first architecture for voice-based robot assistants that unifies local speech-to-text, retrieval-augmented generation (RAG) over a local knowledge base, on-device large language model (LLM) inference, and a cloud LLM that is invoked only as a last resort. The central design element is a confidence-based routing layer that escalates a query through three stages—RAG, then a local LLM, then a cloud LLM—using explicit relevance and confidence thresholds, so that cloud calls occur only when local options are exhausted. We describe the system architecture, the runtime inference pipeline, and the routing logic, and we present a proof-of-concept implementation built from open-source and freely available components (Whisper, sentence-transformer embeddings, a local vector store, an Ollama-hosted local LLM, and a cloud LLM API). The contribution of this work is architectural: a coherent, reproducible design for privacy-aware, low-dependency voice interaction in robotics. A systematic empirical evaluation of transcription accuracy, routing correctness, latency, and response quality is outlined as the immediate next step and is left to future work.

Zenodo (CERN European Organization for Nuclear Research)
North South University (BD)
Speech Recognition and Synthesis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Wrapper: A Local-First Architecture for Voice-Based Robot Assistants Using Speech Recognition, Retrieval-Augmented Generation, and Hierarchical LLM Fallback — Hamim Fahmid Hossain · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS