To expand the lean and performant BlahST into a snappy, UI-less platform for natural, spoken interaction with LLMs, the tool blahstbot has been added. This tool leverages whisper.cpp for Automatic Speech Recognition (ASR), LLM text interaction using llama.cpp and Piper Text-to-Speech (TTS) to create a seamless interactive speech chat experience across multiple languages. The text of the conversation can be pasted optionally and selectively, or automatically in any editable text field in the desktop. Would you like to hear Gemma3 speaking like multiple polyglots in the same conversation? Here is an example (unmute audio please):
blahstbotml.mp4
A conversation (speech to speech chat) where the answers and statements of the same LLM are spoken in various languages, by different TTS models and voices, selected automatically. The conversation text can be pasted in any open window with a editable text field (here an editor), for example a chat app or a web forum, for interaction with foreign speakers.
- Real-time speech intertaction
- Multilingual support
- LLM-powered conversation
- Fast, yet natural-sounding speech synthesis
- NEW: Append context to questions spoken in turn by simply selecting any text in any window with the mouse. Even speaking is optional.
Aside from configuring BlahST as described in the main README.md, one needs to download the .onnx and .json files for each desired TTS language from the Piper GitHub repo and place the in $AI/piper subfolder (see blahst.cfg)
Several languages are preconfigured in blahst.cfg and the availability of at least some of those files in $AI/piper will be required.
Adding new model files should be done in blahst.cfg in similar fashion.
- All languages available in the Piper repository
- English default.
- Languages are added/configured in
blahst.cfgas elements of an associative array, with keys that must conform to the ISO 639-1 standard, e.g. 'FR', 'DE', 'PT', etc.
Set a new hotkey to start blahstbot -n (for llama-server use) and reuse the main "STOP-RECORDING" hotkey of BlahST at the end of your speech.
The bot will answer promptly and provide the question and answer as text to be pasted or autopasted (if configured).
- Automatic Speech Recognition (ASR) - whisper.cpp
- Large Language Model (LLM) - Gemma3-12B preset, can be replaced with others depending on system hardware and user needs.
- Text-to-Speech (TTS) - Piper
- Text parser and low-overhead workflow orchestrator - zsh Outperforms languages like Python by a lot with its direct execution of pipelined command-line tools.