Jianling: A Local Voice Intelligence Module Development Plan, v0.1

🔹 I. Aims and principles

  • Speech recognition support: Taiwanese Hokkien (Tâi-lô / Hokkien) + modern Mandarin
  • Speech synthesis (TTS): able to read Taiwanese Hokkien and classical texts (such as the Analects and the Book of Songs) locally
  • Joined to dictionaries: the Kangxi Dictionary, the Campbell Dictionary, and a homemade corpus
  • Independence from the OpenAI cloud, using local models and options such as Gemini / LoRA / Bark
  • Can be integrated on a Raspberry Pi or a desktop Ubuntu machine

🔹 II. Module architecture

Module Description
Speech-to-Text (STT) Run speech recognition locally with Whisper.cpp, with support for a Taiwanese-Hokkien-tuned speech model
Text-to-Speech (TTS) Use Bark / Coqui TTS; local support for Taiwanese Hokkien speech synthesis (can be paired with experiments in ritual-lyric adaptation and historical pronunciation)
LLM Optional local language models: Vicuna / Qwen / Taiwan-LLM; later, switch dialogue style with LoRA
Dictionary comparison module Integrate the Kangxi Dictionary and the Campbell Dictionary for comparison and etymological annotation
Interactive interface CLI, Node-RED, a Tkinter GUI, or a local WebUI

🔹 III. Near-term feasible steps (v0.1)

  1. ✅ Set up a virtual environment, install Whisper.cpp, and support microphone recording with text output
  2. ✅ After text is entered, query the Kangxi Dictionary and the Campbell Dictionary locally and compare the results
  3. ✅ Build a simple Taiwanese corpus from Traditional Chinese materials and Tâi-lô-annotated vocabulary
  4. 🟡 Try producing speech with Bark or Open JTalk
  5. 🟡 Integrate an interactive flow (similar to Orsiris’s CLI chat)

🔹 IV. Open-source resources and alternatives

Function Open-source options
STT Whisper.cpp / VOSK
TTS Bark / Coqui TTS / Open JTalk
LLM llama.cpp / gguf Vicuna / Gemini API
Dictionaries Kangxi Dictionary XML (local backup) + OCR of the Campbell (Gan Weilin) Dictionary
Taiwanese materials Ministry of Education Taiwanese Hokkien Romanization Dictionary / a self-built lexicon