Tech & AIrelated: r/LocalLLaMA
Build an offline voice assistant
Whisper to hear, a local model to think, a Piper voice to answer. No cloud involved.
- time
- a weekend
- cost
- free
- effort
- a challenge
- where
- at your desk
what it is
- A fully local assistant needs three parts: speech to text, a language model and text to speech.
- Home Assistant can chain them through its Assist pipeline.
- You can also glue them together in Python.
how it goes
- Install faster-whisper for speech recognition and test it on a recording.
- Send the text to Ollama through its local API on port 11434.
- Speak the reply with Piper TTS, which runs fast even on a Raspberry Pi.
- Add a push to talk hotkey and give it one job, like reading your calendar.
you need
- a microphone
why try it
People like proving that the smart speaker experience does not need to send audio to a company.
More in Tech & AI, or pick a niche.